mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-16 04:04:06 +00:00
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
This commit is contained in:
parent
becbe550a3
commit
89aba57598
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue