Skip to contentSkip to conversation

media: atmel-isc: Make local symbol fmt_configs_list static

PATCH New Wei Yongjun 2 participants 2 messages Dec 23, 2017 – Dec 26, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 media: atmel-isc: Make local symbol fmt_configs_list static

Fixes the following sparse warning:

drivers/media/platform/atmel/atmel-isc.c:338:19: warning:
symbol 'fmt_configs_list' was not declared. Should it be static?

---
 drivers/media/platform/atmel/atmel-isc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/platform/atmel/atmel-isc.c +1 -1
index 0c26356..2dd72fc 100644
@@ -335,7 +335,7 @@ struct isc_device {
 	},
 };
 
-struct fmt_config fmt_configs_list[] = {
+static struct fmt_config fmt_configs_list[] = {
 	{
 		.fourcc		= V4L2_PIX_FMT_SBGGR8,
 		.pfe_cfg0_bps	= ISC_PFE_CFG0_BPS_EIGHT,
#1 lore raw

PATCH 1/1 media: atmel-isc: Make local symbol fmt_configs_list static

Quoted 7 lines · Wei Yongjun

Fixes the following sparse warning:

drivers/media/platform/atmel/atmel-isc.c:338:19: warning:
symbol 'fmt_configs_list' was not declared. Should it be static?

---

Quoted 17 lines
  drivers/media/platform/atmel/atmel-isc.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/platform/atmel/atmel-isc.c +1 -1
index 0c26356..2dd72fc 100644
@@ -335,7 +335,7 @@ struct isc_device {
  	},
  };
 
-struct fmt_config fmt_configs_list[] = {
+static struct fmt_config fmt_configs_list[] = {
  	{
  		.fourcc		= V4L2_PIX_FMT_SBGGR8,
  		.pfe_cfg0_bps	= ISC_PFE_CFG0_BPS_EIGHT,