Message ID | 20220807145457.646062-2-jic23@kernel.org (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | IIO: Clean up a couple of warnings that snuck in. | expand |
On Sun, Aug 07, 2022 at 03:54:56PM +0100, Jonathan Cameron wrote: > From: Jonathan Cameron <Jonathan.Cameron@huawei.com> > > 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> > --- > drivers/iio/test/iio-test-rescale.c | 4 ++-- > 1 file 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 > */ > -- > 2.37.1 >
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 */