Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio: test: Mark file local structure arrays static.

Warning cleanup:
drivers/iio/test/iio-test-rescale.c:32:30: warning: symbol 'scale_cases' was not declared. Should it be static?
drivers/iio/test/iio-test-rescale.c:480:30: warning: symbol 'offset_cases' was not declared. Should it be static?

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Liam Beguin <liambeguin@gmail.com>
Reviewed-by: Liam Beguin <liambeguin@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20220807145457.646062-2-jic23@kernel.org

+2 -2
+2 -2
drivers/iio/test/iio-test-rescale.c
··· 29 29 const char *expected_off; 30 30 }; 31 31 32 - const struct rescale_tc_data scale_cases[] = { 32 + static const struct rescale_tc_data scale_cases[] = { 33 33 /* 34 34 * Typical use cases 35 35 */ ··· 477 477 }, 478 478 }; 479 479 480 - const struct rescale_tc_data offset_cases[] = { 480 + static const struct rescale_tc_data offset_cases[] = { 481 481 /* 482 482 * Typical use cases 483 483 */