* [nomadik:ux500-skomer-v5.5-rc1 62/63] drivers/iio/light/gp2ap002.c:196:35: sparse: sparse: symbol 'gp2ap002_illuminance_table' was not declared. Should it be static?
@ 2019-12-29 10:19 ` kbuild test robot
0 siblings, 0 replies; 4+ messages in thread
From: kbuild test robot @ 2019-12-29 10:19 UTC (permalink / raw)
To: Linus Walleij; +Cc: kbuild-all, linux-arm-kernel
tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git ux500-skomer-v5.5-rc1
head: 0060faaf7fa91b7d76500f5b3092dcf0f864fab8
commit: f095962c5090d10649c6aa3c52da9fff190b8d22 [62/63] iio: light: Add a driver for Sharp GP2AP002x00F
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-129-g341daf20-dirty
git checkout f095962c5090d10649c6aa3c52da9fff190b8d22
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/iio/light/gp2ap002.c:196:35: sparse: sparse: symbol 'gp2ap002_illuminance_table' was not declared. Should it be static?
Please review and possibly fold the followup patch.
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 4+ messages in thread
* [nomadik:ux500-skomer-v5.5-rc1 62/63] drivers/iio/light/gp2ap002.c:196:35: sparse: sparse: symbol 'gp2ap002_illuminance_table' was not declared. Should it be static?
@ 2019-12-29 10:19 ` kbuild test robot
0 siblings, 0 replies; 4+ messages in thread
From: kbuild test robot @ 2019-12-29 10:19 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 1026 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git ux500-skomer-v5.5-rc1
head: 0060faaf7fa91b7d76500f5b3092dcf0f864fab8
commit: f095962c5090d10649c6aa3c52da9fff190b8d22 [62/63] iio: light: Add a driver for Sharp GP2AP002x00F
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-129-g341daf20-dirty
git checkout f095962c5090d10649c6aa3c52da9fff190b8d22
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/iio/light/gp2ap002.c:196:35: sparse: sparse: symbol 'gp2ap002_illuminance_table' was not declared. Should it be static?
Please review and possibly fold the followup patch.
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org Intel Corporation
^ permalink raw reply [flat|nested] 4+ messages in thread
* [RFC PATCH nomadik] iio: light: gp2ap002_illuminance_table[] can be static
2019-12-29 10:19 ` kbuild test robot
@ 2019-12-29 10:23 ` kbuild test robot
-1 siblings, 0 replies; 4+ messages in thread
From: kbuild test robot @ 2019-12-29 10:23 UTC (permalink / raw)
To: Linus Walleij; +Cc: kbuild-all, linux-arm-kernel
Fixes: f095962c5090 ("iio: light: Add a driver for Sharp GP2AP002x00F")
Signed-off-by: kbuild test robot <lkp@intel.com>
---
gp2ap002.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iio/light/gp2ap002.c b/drivers/iio/light/gp2ap002.c
index 98553041d63cd..6964719d21222 100644
--- a/drivers/iio/light/gp2ap002.c
+++ b/drivers/iio/light/gp2ap002.c
@@ -193,7 +193,7 @@ struct gp2ap002_illuminance {
* This mapping is based on the following formula.
* illuminance = 10 ^ (current / 10)
*/
-const struct gp2ap002_illuminance gp2ap002_illuminance_table[] = {
+static const struct gp2ap002_illuminance gp2ap002_illuminance_table[] = {
{ .curr = 5, .lux = 3 },
{ .curr = 6, .lux = 4 },
{ .curr = 7, .lux = 5 },
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [RFC PATCH nomadik] iio: light: gp2ap002_illuminance_table[] can be static
@ 2019-12-29 10:23 ` kbuild test robot
0 siblings, 0 replies; 4+ messages in thread
From: kbuild test robot @ 2019-12-29 10:23 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 771 bytes --]
Fixes: f095962c5090 ("iio: light: Add a driver for Sharp GP2AP002x00F")
Signed-off-by: kbuild test robot <lkp@intel.com>
---
gp2ap002.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iio/light/gp2ap002.c b/drivers/iio/light/gp2ap002.c
index 98553041d63cd..6964719d21222 100644
--- a/drivers/iio/light/gp2ap002.c
+++ b/drivers/iio/light/gp2ap002.c
@@ -193,7 +193,7 @@ struct gp2ap002_illuminance {
* This mapping is based on the following formula.
* illuminance = 10 ^ (current / 10)
*/
-const struct gp2ap002_illuminance gp2ap002_illuminance_table[] = {
+static const struct gp2ap002_illuminance gp2ap002_illuminance_table[] = {
{ .curr = 5, .lux = 3 },
{ .curr = 6, .lux = 4 },
{ .curr = 7, .lux = 5 },
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-12-29 10:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-29 10:19 [nomadik:ux500-skomer-v5.5-rc1 62/63] drivers/iio/light/gp2ap002.c:196:35: sparse: sparse: symbol 'gp2ap002_illuminance_table' was not declared. Should it be static? kbuild test robot
2019-12-29 10:19 ` kbuild test robot
2019-12-29 10:23 ` [RFC PATCH nomadik] iio: light: gp2ap002_illuminance_table[] can be static kbuild test robot
2019-12-29 10:23 ` kbuild test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.