V4L/DVB: smsir: make local variables static

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Friday, February 26, 2010 - 7:04 pm

Gitweb:     http://git.kernel.org/linus/5d26b6443292027314a2e2c9178140e60acd3587
Commit:     5d26b6443292027314a2e2c9178140e60acd3587
Parent:     3d36f5c652d9d1b4406b0f8f32d9452eaad8e33a
Author:     Márton Németh <nm127@freemail.hu>
AuthorDate: Fri Jan 29 17:42:17 2010 -0300
Committer:  Mauro Carvalho Chehab <mchehab@redhat.com>
CommitDate: Fri Feb 26 15:10:51 2010 -0300

    V4L/DVB: smsir: make local variables static
    
    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?
    
    Signed-off-by: Márton Németh <nm127@freemail.hu>
    Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
---
 drivers/media/dvb/siano/smsir.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/media/dvb/siano/smsir.c b/drivers/media/dvb/siano/smsir.c
index e3d776f..a56eac7 100644
--- a/drivers/media/dvb/siano/smsir.c
+++ b/drivers/media/dvb/siano/smsir.c
@@ -85,9 +85,9 @@ static struct keyboard_layout_map_t keyboard_layout_maps[] = {
 		{ } /* 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++; }
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
V4L/DVB: smsir: make local variables static, Linux Kernel Mailing ..., (Fri Feb 26, 7:04 pm)