tree: git://linuxtv.org/media_tree.git master head: 587d1b06e07b4a079453c74ba9edf17d21931049 commit: c3aed262186841bf01feb9603885671ea567ebd9 [498/499] [media] em28xx-cards: properly initialize the device bitmap reproduce: make C=1 CF=-D__CHECK_ENDIAN__ sparse warnings: (new ones prefixed by >>) >> drivers/media/usb/em28xx/em28xx-cards.c:69:1: sparse: symbol 'em28xx_devused' was not declared. Should it be static? drivers/media/usb/em28xx/em28xx-cards.c:2163:36: sparse: cannot size expression Please consider folding the attached diff :-) --- 0-DAY kernel build testing backend Open Source Technology Center http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
From: Fengguang Wu <fengguang.wu@xxxxxxxxx> Subject: [PATCH linuxtv-media] em28xx-cards: em28xx_devused can be static TO: Mauro Carvalho Chehab <m.chehab@xxxxxxxxxxx> CC: linux-media@xxxxxxxxxxxxxxx CC: linux-media@xxxxxxxxxxxxxxx CC: linux-kernel@xxxxxxxxxxxxxxx CC: Mauro Carvalho Chehab <m.chehab@xxxxxxxxxxx> CC: linux-media@xxxxxxxxxxxxxxx Signed-off-by: Fengguang Wu <fengguang.wu@xxxxxxxxx> --- em28xx-cards.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/usb/em28xx/em28xx-cards.c b/drivers/media/usb/em28xx/em28xx-cards.c index 4d97a76..eb39903 100644 --- a/drivers/media/usb/em28xx/em28xx-cards.c +++ b/drivers/media/usb/em28xx/em28xx-cards.c @@ -66,7 +66,7 @@ MODULE_PARM_DESC(usb_xfer_mode, /* Bitmask marking allocated devices from 0 to EM28XX_MAXBOARDS - 1 */ -DECLARE_BITMAP(em28xx_devused, EM28XX_MAXBOARDS); +static DECLARE_BITMAP(em28xx_devused, EM28XX_MAXBOARDS); struct em28xx_hash_table { unsigned long hash;