Message ID | 49B1949E.2000300@oracle.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
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. -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
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. ;)
--- 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)