All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] printk declaration bug
@ 2002-10-15  9:18 David Howells
  0 siblings, 0 replies; only message in thread
From: David Howells @ 2002-10-15  9:18 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel


Hi Linus,

The attached patch removes a second, extraneous, and different declaration of
printk() from asm-i386/spinlock.h. The difference is that the main one (in
linux/kernel.h) is declared "asmlinkage" and is thus fixed to regparm(0). The
second one isn't.

David

--- linux/include/asm-i386/spinlock.h.orig    2002-10-15 10:12:25.000000000 +0100
+++ linux/include/asm-i386/spinlock.h 2002-10-15 10:12:35.000000000 +0100
@@ -6,9 +6,6 @@
 #include <asm/page.h>
 #include <linux/config.h>
 
-extern int printk(const char * fmt, ...)
-       __attribute__ ((format (printf, 1, 2)));
-
 /*
  * Your basic SMP spinlocks, allowing only a single CPU anywhere
  */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-10-15  9:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-15  9:18 [PATCH] printk declaration bug David Howells

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.