The patch titled handle BUG=n has been added to the -mm tree. Its filename is generic-bug-implementation-handle-bug=n.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: handle BUG=n From: Randy Dunlap <randy.dunlap@xxxxxxxxxx> Handle BUG=n, GENERIC_BUG=n to prevent build errors: arch/x86_64/kernel/built-in.o: In function `die': (.text+0x3b3c): undefined reference to `report_bug' arch/x86_64/kernel/built-in.o: In function `module_arch_cleanup': (.text+0x10b60): undefined reference to `module_bug_cleanup' arch/x86_64/kernel/built-in.o: In function `module_finalize': (.text+0x10c98): undefined reference to `module_bug_finalize' Signed-off-by: Randy Dunlap <randy.dunlap@xxxxxxxxxx> Cc: Jeremy Fitzhardinge <jeremy@xxxxxxxx> Cc: Andi Kleen <ak@xxxxxx> Cc: Hugh Dickens <hugh@xxxxxxxxxxx> Cc: Michael Ellerman <michael@xxxxxxxxxxxxxx> Cc: Paul Mackerras <paulus@xxxxxxxxx> Cc: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx> Cc: Rusty Russell <rusty@xxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- include/linux/bug.h | 26 ++++++++++++++++++++------ 1 files changed, 20 insertions(+), 6 deletions(-) diff -puN include/linux/bug.h~generic-bug-implementation-handle-bug=n include/linux/bug.h --- a/include/linux/bug.h~generic-bug-implementation-handle-bug=n +++ a/include/linux/bug.h @@ -3,6 +3,12 @@ #include <asm/bug.h> +enum bug_trap_type { + BUG_TRAP_TYPE_NONE = 0, + BUG_TRAP_TYPE_WARN = 1, + BUG_TRAP_TYPE_BUG = 2, +}; + #ifdef CONFIG_GENERIC_BUG #include <linux/module.h> #include <asm-generic/bug.h> @@ -12,12 +18,6 @@ static inline int is_warning_bug(const s return bug->flags & BUGFLAG_WARNING; } -enum bug_trap_type { - BUG_TRAP_TYPE_NONE = 0, - BUG_TRAP_TYPE_WARN = 1, - BUG_TRAP_TYPE_BUG = 2, -}; - const struct bug_entry *find_bug(unsigned long bugaddr); enum bug_trap_type report_bug(unsigned long bug_addr); @@ -29,5 +29,19 @@ void module_bug_cleanup(struct module *) /* These are defined by the architecture */ int is_valid_bugaddr(unsigned long addr); +#else /* !CONFIG_GENERIC_BUG */ + +static inline enum bug_trap_type report_bug(unsigned long bug_addr) +{ + return BUG_TRAP_TYPE_BUG; +} +static inline int module_bug_finalize(const Elf_Ehdr *hdr, + const Elf_Shdr *sechdrs, + struct module *mod) +{ + return 0; +} +static inline void module_bug_cleanup(struct module *mod) {} + #endif /* CONFIG_GENERIC_BUG */ #endif /* _LINUX_BUG_H */ _ Patches currently in -mm which might be from randy.dunlap@xxxxxxxxxx are origin.patch debugfs-add-header-file.patch git-acpi.patch korg1212-fix-printk-format-warning.patch cpufreq-select-consistently-re-2619-rc5-mm1.patch git-ieee1394.patch git-infiniband.patch mtd-fix-printk-format-warning.patch git-ocfs2.patch parisc-fix-module_param-iommu-permission.patch fuse-fix-compile-without-config_block.patch tifm-fix-null-ptr-and-style.patch kconfig-printk_time-depends-on-printk.patch generic-bug-implementation-handle-bug=n.patch visws-sgivwfb-is-module-needs-exports.patch extend-notifier_call_chain-to-count-nr_calls-made-fixes.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html