Skip to contentSkip to conversation

printk declaration bug

PATCH New David Howells 1 participant 1 message Oct 15, 2002

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 printk declaration bug

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

include/asm-i386/spinlock.h 2002-10-15 10:12:35.000000000 +0100 renamed from include/asm-i386/spinlock.h.orig 2002-10-15 10:12:25.000000000 +0100 +0 -3
@@ -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
  */