public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix arch/i386/kernel/nmi.c - 'unknown_nmi_panic_callback' declared 'static' but never defined warning
@ 2007-07-22 19:20 Gabriel C
  2007-07-25  1:36 ` Andrew Morton
  0 siblings, 1 reply; 3+ messages in thread
From: Gabriel C @ 2007-07-22 19:20 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: Ingo Molnar

Hi,

I get this warning when CONFIG_SYSCTL is not set :

...

arch/i386/kernel/nmi.c:52: warning: 'unknown_nmi_panic_callback' declared 'static' but never defined

...

Signed-off-by: Gabriel Craciunescu <nix.or.die@googlemail.com>

---

diff --git a/arch/i386/kernel/nmi.c b/arch/i386/kernel/nmi.c
index 03b7f55..cf11121 100644
--- a/arch/i386/kernel/nmi.c
+++ b/arch/i386/kernel/nmi.c
@@ -49,8 +49,9 @@ static unsigned int nmi_hz = HZ;
 static DEFINE_PER_CPU(short, wd_enabled);
 
 /* local prototypes */
+#ifdef CONFIG_SYSCTL
 static int unknown_nmi_panic_callback(struct pt_regs *regs, int cpu);
-
+#endif
 static int endflag __initdata = 0;
 
 #ifdef CONFIG_SMP

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-07-25 14:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-22 19:20 [PATCH] Fix arch/i386/kernel/nmi.c - 'unknown_nmi_panic_callback' declared 'static' but never defined warning Gabriel C
2007-07-25  1:36 ` Andrew Morton
     [not found]   ` <1820d69d0707250657y36c902deya66c2171dade843f@mail.gmail.com>
2007-07-25 14:51     ` Fwd: " Gabriel C

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox