login
Header Space

 
 

[BUILDFIX PATCH] au0828: debug is a poor global identifier

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Mauro Carvalho Chehab <mchehab@...>, Linus Torvalds <torvalds@...>
Cc: LKML <linux-kernel@...>
Date: Saturday, April 26, 2008 - 2:14 am

Avoid link-time warnings with debug declared in x86/kernel/entry_32.S

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
---
Otherwise you'll see link time warnings about multiple defintions of
debug. (size 4 here, size 76 in entry_32.S)

 drivers/media/video/au0828/au0828-core.c |   14 +++++++-------
 drivers/media/video/au0828/au0828.h      |    4 ++--
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/drivers/media/video/au0828/au0828-core.c b/drivers/media/video/au0828/au0828-core.c
index e65d564..9b7a4d7 100644
--- a/drivers/media/video/au0828/au0828-core.c
+++ b/drivers/media/video/au0828/au0828-core.c
@@ -32,9 +32,9 @@
  * 4 = I2C related
  * 8 = Bridge related
  */
-unsigned int debug;
-module_param(debug, int, 0644);
-MODULE_PARM_DESC(debug, "enable debug messages");
+unsigned int au0828_debug;
+module_param(au0828_debug, int, 0644);
+MODULE_PARM_DESC(au0828_debug, "enable debug messages");
 
 unsigned int usb_debug;
 module_param(usb_debug, int, 0644);
@@ -229,23 +229,23 @@ static int __init au0828_init(void)
 {
 	int ret;
 
-	if (debug)
+	if (au0828_debug)
 		printk(KERN_INFO "%s() Debugging is enabled\n", __func__);
 
 	if (usb_debug) {
 		printk(KERN_INFO "%s() USB Debugging is enabled\n", __func__);
-		debug |= 2;
+		au0828_debug |= 2;
 	}
 
 	if (i2c_debug) {
 		printk(KERN_INFO "%s() I2C Debugging is enabled\n", __func__);
-		debug |= 4;
+		au0828_debug |= 4;
 	}
 
 	if (bridge_debug) {
 		printk(KERN_INFO "%s() Bridge Debugging is enabled\n",
 		       __func__);
-		debug |= 8;
+		au0828_debug |= 8;
 	}
 
 	printk(KERN_INFO "au0828 driver loaded\n");
diff --git a/drivers/media/video/au0828/au0828.h b/drivers/media/video/au0828/au0828.h
index 0200b9f..8344c45 100644
--- a/drivers/media/video/au0828/au0828.h
+++ b/drivers/media/video/au0828/au0828.h
@@ -96,7 +96,7 @@ struct au0828_buff {
 /* au0828-core.c */
 extern u32 au0828_read(struct au0828_dev *dev, u16 reg);
 extern u32 au0828_write(struct au0828_dev *dev, u16 reg, u32 val);
-extern unsigned int debug;
+extern unsigned int au0828_debug;
 extern unsigned int usb_debug;
 extern unsigned int bridge_debug;
 
@@ -123,6 +123,6 @@ extern int au0828_dvb_register(struct au0828_dev *dev);
 extern void au0828_dvb_unregister(struct au0828_dev *dev);
 
 #define dprintk(level, fmt, arg...)\
-	do { if (debug & level)\
+	do { if (au0828_debug & level)\
 		printk(KERN_DEBUG DRIVER_NAME "/0: " fmt, ## arg);\
 	} while (0)
-- 
1.5.5.1.270.g89765



--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[BUILDFIX PATCH] au0828: debug is a poor global identifier, Harvey Harrison, (Sat Apr 26, 2:14 am)
If you want me to quit I will quit, Adrian Bunk, (Sat Apr 26, 7:00 am)
Re: If you want me to quit I will quit, Harvey Harrison, (Sat Apr 26, 3:20 pm)
Re: If you want me to quit I will quit, Adrian Bunk, (Sat Apr 26, 3:42 pm)
Re: If you want me to quit I will quit, Adrian Bunk, (Sat Apr 26, 1:10 pm)
Re: If you want me to quit I will quit, Bartlomiej Zolnierkiewicz..., (Sat Apr 26, 12:21 pm)
Re: If you want me to quit I will quit, Andrew Morton, (Sat Apr 26, 10:51 am)
Re: If you want me to quit I will quit, Adrian Bunk, (Sat Apr 26, 11:23 am)
Re: If you want me to quit I will quit, Andrew Morton, (Sat Apr 26, 11:44 am)
Re: If you want me to quit I will quit, Adrian Bunk, (Sat Apr 26, 1:16 pm)
Re: If you want me to quit I will quit, Linus Torvalds, (Sat Apr 26, 1:31 pm)
Re: If you want me to quit I will quit, Ingo Molnar, (Sun Apr 27, 12:09 pm)
Re: If you want me to quit I will quit, David Miller, (Sat Apr 26, 8:31 pm)
Re: If you want me to quit I will quit, Jeff Garzik, (Sat Apr 26, 10:58 pm)
Re: If you want me to quit I will quit, Stefan Richter, (Sat Apr 26, 2:51 pm)
Re: If you want me to quit I will quit, Linus Torvalds, (Sat Apr 26, 3:05 pm)
Re: If you want me to quit I will quit, Stefan Richter, (Sat Apr 26, 3:43 pm)
Re: If you want me to quit I will quit, Linus Torvalds, (Sat Apr 26, 3:18 pm)
Re: If you want me to quit I will quit, Andrew Morton, (Sat Apr 26, 4:30 pm)
Re: If you want me to quit I will quit, Richard Purdie, (Sun Apr 27, 8:07 am)
Re: If you want me to quit I will quit, Stefan Richter, (Sun Apr 27, 10:28 am)
Re: If you want me to quit I will quit, Stefan Richter, (Sat Apr 26, 4:49 pm)
Re: If you want me to quit I will quit, Linus Torvalds, (Sat Apr 26, 4:35 pm)
Re: If you want me to quit I will quit, Romano Giannetti, (Mon Apr 28, 3:05 pm)
Re: If you want me to quit I will quit, Sam Ravnborg, (Sat Apr 26, 1:42 pm)
Re: If you want me to quit I will quit, Linus Torvalds, (Sat Apr 26, 2:26 pm)
Re: If you want me to quit I will quit, Andrew Morton, (Sat Apr 26, 1:20 pm)
Re: If you want me to quit I will quit, Adrian Bunk, (Sat Apr 26, 1:27 pm)
Re: If you want me to quit I will quit, Linus Torvalds, (Sat Apr 26, 1:35 pm)
Re: If you want me to quit I will quit, Sam Ravnborg, (Sat Apr 26, 7:27 am)
Re: If you want me to quit I will quit, Adrian Bunk, (Sat Apr 26, 10:44 am)
Re: If you want me to quit I will quit, Linus Torvalds, (Sat Apr 26, 12:51 pm)
Re: If you want me to quit I will quit, Adrian Bunk, (Sat Apr 26, 1:09 pm)
Re: If you want me to quit I will quit, Linus Torvalds, (Sat Apr 26, 1:21 pm)
Re: If you want me to quit I will quit, Adrian Bunk, (Sat Apr 26, 1:35 pm)
Re: If you want me to quit I will quit, Linus Torvalds, (Sat Apr 26, 1:56 pm)
speck-geostationary