lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Sat, 25 Nov 2006 20:15:16 +0100 From: Adrian Bunk <bunk@...sta.de> To: Andrew Morton <akpm@...l.org>, Jeremy Fitzhardinge <jeremy@...p.org> Cc: linux-kernel@...r.kernel.org Subject: [-mm patch] include/linux/bug.h must always #include <linux/module.h> This patch fixes the folliwing compile error with CONFIG_BUG=n: <-- snip --> ... CC arch/i386/kernel/traps.o In file included from /home/bunk/linux/kernel-2.6/linux-2.6.19-rc6-mm1/arch/i386/kernel/traps.c:32: /home/bunk/linux/kernel-2.6/linux-2.6.19-rc6-mm1/include/linux/bug.h:38: warning: type defaults to 'int' in declaration of 'Elf_Ehdr' /home/bunk/linux/kernel-2.6/linux-2.6.19-rc6-mm1/include/linux/bug.h:38: error: expected ';', ',' or ')' before '*' token ... make[2]: *** [arch/i386/kernel/traps.o] Error 1 <-- snip --> Signed-off-by: Adrian Bunk <bunk@...sta.de> --- linux-2.6.19-rc6-mm1/include/linux/bug.h.old 2006-11-24 23:25:50.000000000 +0100 +++ linux-2.6.19-rc6-mm1/include/linux/bug.h 2006-11-24 23:26:04.000000000 +0100 @@ -1,6 +1,7 @@ #ifndef _LINUX_BUG_H #define _LINUX_BUG_H +#include <linux/module.h> #include <asm/bug.h> enum bug_trap_type { @@ -10,7 +11,6 @@ }; #ifdef CONFIG_GENERIC_BUG -#include <linux/module.h> #include <asm-generic/bug.h> static inline int is_warning_bug(const struct bug_entry *bug) - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists