[PATCH] printk declaration bug

From: David Howells (dhowells@redhat.com)
Date: Tue Oct 15 2002 - 04:18:29 EST


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
  */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Oct 15 2002 - 22:00:54 EST