* [PATCH -next] dvb/frontends: fix duplicate 'debug' symbol
[not found] <20090306191311.697e7b97.sfr@canb.auug.org.au>
@ 2009-03-06 21:24 ` Randy Dunlap
2009-03-06 23:59 ` Andrew Morton
0 siblings, 1 reply; 3+ messages in thread
From: Randy Dunlap @ 2009-03-06 21:24 UTC (permalink / raw)
To: Stephen Rothwell
Cc: linux-next, LKML, linux-media, Mauro Carvalho Chehab,
Andrew Morton
From: Randy Dunlap <randy.dunlap@oracle.com>
Fix dvb frontend debug variable to be static, to avoid linker
errors:
drivers/built-in.o:(.data+0xf4b0): multiple definition of `debug'
arch/x86/kernel/built-in.o:(.kprobes.text+0x90): first defined here
ld: Warning: size of symbol `debug' changed from 85 in arch/x86/kernel/built-in.o to 4 in drivers/built-in.o
It would also be Good if arch/x86/kernel/entry_32.S didn't have a
non-static 'debug' symbol. OTOH, it helps catch things like this one.
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
drivers/media/dvb/frontends/stv0900_core.c | 4 ++--
drivers/media/dvb/frontends/stv0900_priv.h | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
--- linux-next-20090306.orig/drivers/media/dvb/frontends/stv0900_core.c
+++ linux-next-20090306/drivers/media/dvb/frontends/stv0900_core.c
@@ -34,8 +34,8 @@
#include "stv0900_priv.h"
#include "stv0900_init.h"
-int debug = 1;
-module_param(debug, int, 0644);
+static int stvdebug = 1;
+module_param_named(debug, stvdebug, int, 0644);
/* internal params node */
struct stv0900_inode {
--- linux-next-20090306.orig/drivers/media/dvb/frontends/stv0900_priv.h
+++ linux-next-20090306/drivers/media/dvb/frontends/stv0900_priv.h
@@ -62,11 +62,11 @@
#define dmd_choose(a, b) (demod = STV0900_DEMOD_2 ? b : a))
-extern int debug;
+static int stvdebug;
#define dprintk(args...) \
do { \
- if (debug) \
+ if (stvdebug) \
printk(KERN_DEBUG args); \
} while (0)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH -next] dvb/frontends: fix duplicate 'debug' symbol
2009-03-06 21:24 ` [PATCH -next] dvb/frontends: fix duplicate 'debug' symbol Randy Dunlap
@ 2009-03-06 23:59 ` Andrew Morton
2009-03-07 0:05 ` Randy Dunlap
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Morton @ 2009-03-06 23:59 UTC (permalink / raw)
To: Randy Dunlap
Cc: sfr, linux-next, linux-kernel, linux-media, mchehab, Ingo Molnar
On Fri, 06 Mar 2009 13:24:46 -0800
Randy Dunlap <randy.dunlap@oracle.com> wrote:
> It would also be Good if arch/x86/kernel/entry_32.S didn't have a
> non-static 'debug' symbol. OTOH, it helps catch things like this one.
heh, yes, it's a feature. We should put it in init/main.c, along with
100-odd other dont-do-that-dopey symbols.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH -next] dvb/frontends: fix duplicate 'debug' symbol
2009-03-06 23:59 ` Andrew Morton
@ 2009-03-07 0:05 ` Randy Dunlap
0 siblings, 0 replies; 3+ messages in thread
From: Randy Dunlap @ 2009-03-07 0:05 UTC (permalink / raw)
To: Andrew Morton
Cc: sfr, linux-next, linux-kernel, linux-media, mchehab, Ingo Molnar
Andrew Morton wrote:
> On Fri, 06 Mar 2009 13:24:46 -0800
> Randy Dunlap <randy.dunlap@oracle.com> wrote:
>
>> It would also be Good if arch/x86/kernel/entry_32.S didn't have a
>> non-static 'debug' symbol. OTOH, it helps catch things like this one.
>
> heh, yes, it's a feature. We should put it in init/main.c, along with
> 100-odd other dont-do-that-dopey symbols.
hm, I think I'll leave that patch for you or Ingo. ;)
--
~Randy
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-03-07 0:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20090306191311.697e7b97.sfr@canb.auug.org.au>
2009-03-06 21:24 ` [PATCH -next] dvb/frontends: fix duplicate 'debug' symbol Randy Dunlap
2009-03-06 23:59 ` Andrew Morton
2009-03-07 0:05 ` Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox