Skip to contentSkip to conversation

smsir: make local variables static

PATCH New Németh Márton 1 participant 1 message Jan 29, 2010 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 smsir: make local variables static

From: Márton Németh <[email protected]>

Make the file local parameters static.

This will remove the following sparse warnings (see "make C=1"):
* warning: symbol 'ir_pos' was not declared. Should it be static?
* warning: symbol 'ir_word' was not declared. Should it be static?
* warning: symbol 'ir_toggle' was not declared. Should it be static?

---

linux/drivers/media/dvb/siano/smsir.c +3 -3
diff -r 8b9a62386b64 linux/drivers/media/dvb/siano/smsir.c
@@ -85,9 +85,9 @@
 		{ } /* Terminating entry */
 };
 
-u32 ir_pos;
-u32	ir_word;
-u32 ir_toggle;
+static u32 ir_pos;
+static u32 ir_word;
+static u32 ir_toggle;
 
 #define RC5_PUSH_BIT(dst, bit, pos)	\
 	{ dst <<= 1; dst |= bit; pos++; }