diff options
author | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-08-07 17:54:56 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-08-16 00:30:01 +0300 |
commit | 89aba5759891acb859ab6d34453a8b933e38ace5 (patch) | |
tree | a7bb088c399f77adf72fb76502e87701edfef400 /drivers/iio/test | |
parent | becbe550a36e027440ca0ccef2195e67c054e5bb (diff) | |
download | linux-89aba5759891acb859ab6d34453a8b933e38ace5.tar.xz |
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
Diffstat (limited to 'drivers/iio/test')
-rw-r--r-- | drivers/iio/test/iio-test-rescale.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iio/test/iio-test-rescale.c b/drivers/iio/test/iio-test-rescale.c index cc782ccff880..31ee55a6faed 100644 --- a/drivers/iio/test/iio-test-rescale.c +++ b/drivers/iio/test/iio-test-rescale.c @@ -29,7 +29,7 @@ struct rescale_tc_data { const char *expected_off; }; -const struct rescale_tc_data scale_cases[] = { +static const struct rescale_tc_data scale_cases[] = { /* * Typical use cases */ @@ -477,7 +477,7 @@ const struct rescale_tc_data scale_cases[] = { }, }; -const struct rescale_tc_data offset_cases[] = { +static const struct rescale_tc_data offset_cases[] = { /* * Typical use cases */ |