Messages in this thread Patch in this message | | | From | David Howells <> | Subject | [PATCH] printk declaration bug | Date | Tue, 15 Oct 2002 10:18:29 +0100 |
| |
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/
| |