소스 검색

[media] saa7164-core: declare symbols as static

Those symbols are used only at saa7164-core.

drivers/media/pci/saa7164/saa7164-core.c:55:14: warning: symbol 'fw_debug' was not declared. Should it be static?
drivers/media/pci/saa7164/saa7164-core.c:75:14: warning: symbol 'print_histogram' was not declared. Should it be static?
drivers/media/pci/saa7164/saa7164-core.c:83:14: warning: symbol 'guard_checking' was not declared. Should it be static?

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Mauro Carvalho Chehab 11 년 전
부모
커밋
5a9ff85dc1
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      drivers/media/pci/saa7164/saa7164-core.c

+ 3 - 3
drivers/media/pci/saa7164/saa7164-core.c

@@ -52,7 +52,7 @@ unsigned int saa_debug;
 module_param_named(debug, saa_debug, int, 0644);
 module_param_named(debug, saa_debug, int, 0644);
 MODULE_PARM_DESC(debug, "enable debug messages");
 MODULE_PARM_DESC(debug, "enable debug messages");
 
 
-unsigned int fw_debug;
+static unsigned int fw_debug;
 module_param(fw_debug, int, 0644);
 module_param(fw_debug, int, 0644);
 MODULE_PARM_DESC(fw_debug, "Firmware debug level def:2");
 MODULE_PARM_DESC(fw_debug, "Firmware debug level def:2");
 
 
@@ -72,7 +72,7 @@ static unsigned int card[]  = {[0 ... (SAA7164_MAXBOARDS - 1)] = UNSET };
 module_param_array(card,  int, NULL, 0444);
 module_param_array(card,  int, NULL, 0444);
 MODULE_PARM_DESC(card, "card type");
 MODULE_PARM_DESC(card, "card type");
 
 
-unsigned int print_histogram = 64;
+static unsigned int print_histogram = 64;
 module_param(print_histogram, int, 0644);
 module_param(print_histogram, int, 0644);
 MODULE_PARM_DESC(print_histogram, "print histogram values once");
 MODULE_PARM_DESC(print_histogram, "print histogram values once");
 
 
@@ -80,7 +80,7 @@ unsigned int crc_checking = 1;
 module_param(crc_checking, int, 0644);
 module_param(crc_checking, int, 0644);
 MODULE_PARM_DESC(crc_checking, "enable crc sanity checking on buffers");
 MODULE_PARM_DESC(crc_checking, "enable crc sanity checking on buffers");
 
 
-unsigned int guard_checking = 1;
+static unsigned int guard_checking = 1;
 module_param(guard_checking, int, 0644);
 module_param(guard_checking, int, 0644);
 MODULE_PARM_DESC(guard_checking,
 MODULE_PARM_DESC(guard_checking,
 	"enable dma sanity checking for buffer overruns");
 	"enable dma sanity checking for buffer overruns");