The patch titled use-generic-bug-for-powerpc-fix has been removed from the -mm tree. Its filename is use-generic-bug-for-powerpc-fix.patch This patch was dropped because it was folded into use-generic-bug-for-powerpc.patch ------------------------------------------------------ Subject: use-generic-bug-for-powerpc-fix From: Andrew Morton <akpm@xxxxxxxx> lib/bug.c:10: error: conflicting types for 'module_find_bug' include/asm/module.h:49: error: previous declaration of 'module_find_bug' was here lib/bug.c:10: error: conflicting types for 'module_find_bug' include/asm/module.h:49: error: previous declaration of 'module_find_bug' was here lib/bug.c:25: error: conflicting types for 'find_bug' include/asm/bug.h:23: error: previous declaration of 'find_bug' was here lib/bug.c:25: error: conflicting types for 'find_bug' include/asm/bug.h:23: error: previous declaration of 'find_bug' was here 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> --- arch/powerpc/kernel/traps.c | 15 +-------------- arch/powerpc/xmon/xmon.c | 11 ++++++----- include/asm-powerpc/bug.h | 2 -- include/asm-powerpc/module.h | 2 -- lib/bug.c | 2 +- 5 files changed, 8 insertions(+), 24 deletions(-) diff -puN arch/powerpc/kernel/traps.c~use-generic-bug-for-powerpc-fix arch/powerpc/kernel/traps.c --- a/arch/powerpc/kernel/traps.c~use-generic-bug-for-powerpc-fix +++ a/arch/powerpc/kernel/traps.c @@ -32,6 +32,7 @@ #include <linux/kprobes.h> #include <linux/kexec.h> #include <linux/backlight.h> +#include <linux/bug.h> #include <asm/kdebug.h> #include <asm/pgtable.h> @@ -740,20 +741,6 @@ static int emulate_instruction(struct pt */ extern struct bug_entry __start___bug_table[], __stop___bug_table[]; -#ifndef CONFIG_MODULES -#define module_find_bug(x) NULL -#endif - -struct bug_entry *find_bug(unsigned long bugaddr) -{ - struct bug_entry *bug; - - for (bug = __start___bug_table; bug < __stop___bug_table; ++bug) - if (bugaddr == bug->bug_addr) - return bug; - return module_find_bug(bugaddr); -} - int is_valid_bugaddr(unsigned long addr) { return addr >= PAGE_OFFSET; diff -puN arch/powerpc/xmon/xmon.c~use-generic-bug-for-powerpc-fix arch/powerpc/xmon/xmon.c --- a/arch/powerpc/xmon/xmon.c~use-generic-bug-for-powerpc-fix +++ a/arch/powerpc/xmon/xmon.c @@ -19,6 +19,7 @@ #include <linux/module.h> #include <linux/sysrq.h> #include <linux/interrupt.h> +#include <linux/bug.h> #include <asm/ptrace.h> #include <asm/string.h> @@ -32,7 +33,6 @@ #include <asm/cputable.h> #include <asm/rtas.h> #include <asm/sstep.h> -#include <asm/bug.h> #ifdef CONFIG_PPC64 #include <asm/hvcall.h> @@ -1329,7 +1329,7 @@ static void backtrace(struct pt_regs *ex static void print_bug_trap(struct pt_regs *regs) { - struct bug_entry *bug; + const struct bug_entry *bug; unsigned long addr; if (regs->msr & MSR_PR) @@ -1340,11 +1340,12 @@ static void print_bug_trap(struct pt_reg bug = find_bug(regs->nip); if (bug == NULL) return; - if (bug->line & BUG_WARNING_TRAP) + if (is_warning_bug(bug)) return; - printf("kernel BUG in %s at %s:%d!\n", - bug->function, bug->file, (unsigned int)bug->line); + printf("kernel BUG in %s at %s:%u!\n", + bug_get_function(bug), bug_get_file(bug), + bug_get_line(bug)); } void excprint(struct pt_regs *fp) diff -puN include/asm-powerpc/bug.h~use-generic-bug-for-powerpc-fix include/asm-powerpc/bug.h --- a/include/asm-powerpc/bug.h~use-generic-bug-for-powerpc-fix +++ a/include/asm-powerpc/bug.h @@ -20,8 +20,6 @@ struct bug_entry { const char *function; }; -struct bug_entry *find_bug(unsigned long bugaddr); - /* * If this bit is set in the line number it means that the trap * is for WARN_ON rather than BUG or BUG_ON. diff -puN include/asm-powerpc/module.h~use-generic-bug-for-powerpc-fix include/asm-powerpc/module.h --- a/include/asm-powerpc/module.h~use-generic-bug-for-powerpc-fix +++ a/include/asm-powerpc/module.h @@ -46,8 +46,6 @@ struct mod_arch_specific { unsigned int num_bugs; }; -extern struct bug_entry *module_find_bug(unsigned long bugaddr); - /* * Select ELF headers. * Make empty section for module_frob_arch_sections to expand. diff -puN lib/bug.c~use-generic-bug-for-powerpc-fix lib/bug.c --- a/lib/bug.c~use-generic-bug-for-powerpc-fix +++ a/lib/bug.c @@ -64,7 +64,7 @@ static inline const struct bug_entry *mo } #endif -static const struct bug_entry *find_bug(unsigned long bugaddr) +const struct bug_entry *find_bug(unsigned long bugaddr) { const struct bug_entry *bug; _ Patches currently in -mm which might be from akpm@xxxxxxxx are origin.patch git-acpi.patch acpi-preserve-correct-battery-state-through-suspend-resume-cycles-tidy.patch acpi-asus-s3-resume-fix.patch sony_apci-resume.patch kauditd_thread-warning-fix.patch git-block.patch git-block-fixup.patch git-block-hack.patch git-drm.patch git-dvb.patch git-geode-fixup.patch git-gfs2.patch git-ia64.patch git-ieee1394.patch git-input.patch git-intelfb-fixup.patch hdrcheck-permission-fix.patch git-libata-all.patch libata-return-sense-data-in-hdio_drive_cmd-ioctl-tidy.patch mmc-driver-for-ti-flashmedia-card-reader-source.patch git-mtd-fixup.patch git-netdev-all.patch forcedeth-power-management-support-tidy.patch drivers-net-ns83820c-add-paramter-to-disable-auto.patch revert-genirq-core-fix-handle_level_irq.patch git-parisc-fixup.patch git-parisc-powerpc-fix.patch git-pcmcia-fixup.patch git-serial.patch git-serial-fixup.patch serial-fix-uart_bug_txen-test.patch git-scsi-misc.patch git-block-vs-git-sas.patch git-scsi-target-fixup.patch git-scsi-target-vs-git-block.patch xpad-dance-pad-support-tidy.patch git-watchdog.patch revert-insert-ioapics-and-local-apic-into-resource-map.patch x86_64-dump_trace-atomicity-fix.patch arch-i386-pci-mmconfigc-tlb-flush-fix-tweaks.patch xfs-rename-uio_read.patch get-rid-of-zone_table-fix.patch radix-tree-rcu-lockless-readside.patch acx1xx-wireless-driver.patch tiacx-pci-build-fix.patch tiacx-ia64-fix.patch tiacx-build-fix.patch swsusp-add-resume_offset-command-line-parameter-rev-2-fix.patch deprecate-smbfs-in-favour-of-cifs.patch edac-new-opteron-athlon64-memory-controller-driver-tidy.patch add-address_space_operationsbatch_write-fix.patch maximum-latency-tracking-infrastructure-tidy.patch add-config_headers_check-option-to-automatically-run-make-headers_check-nobble.patch submit-checklist-mention-headers_check.patch generic-bug-handling.patch use-generic-bug-for-i386.patch use-generic-bug-for-x86-64.patch use-generic-bug-for-powerpc.patch use-generic-bug-for-powerpc-fix.patch use-generic-bug-for-powerpc-fix-2.patch use-generic-bug-for-powerpc-fix-3.patch bug-test-1.patch list-module-taint-flags-in-oops-panic-tidy.patch ntp-move-all-the-ntp-related-code-to-ntpc-fix.patch reiserfs-on-demand-bitmap-loading.patch streamline-generic_file_-interfaces-and-filemap-gfs-fix.patch add-vector-aio-support-fix.patch csa-basic-accounting-over-taskstats-fix.patch fs-cache-make-kafs-use-fs-cache-fix.patch fs-cache-make-kafs-use-fs-cache-vs-streamline-generic_file_-interfaces-and-filemap.patch nfs-use-local-caching-12-fix.patch stack-overflow-safe-kdump-crash_use_safe_smp_processor_id-fix.patch generic-ioremap_page_range-x86_64-conversion-fix.patch vfs-make-filldir_t-and-struct-kstat-deal-in-64-bit-inode-numbers-alpha-fix.patch some-cleanup-in-the-pipe-code-tidy.patch support-piping-into-commands-in-proc-sys-kernel-core_pattern-fix.patch move-pidmap-to-pspaceh-fix.patch kprobes-handle-symbol-resolution-when-modulesymbol-is-specified-tidy.patch isdn-work-around-excessive-udelay.patch knfsd-add-a-callback-for-when-last-rpc-thread-finishes-tidy.patch knfsd-add-a-callback-for-when-last-rpc-thread-finishes-fix.patch knfsd-separate-out-some-parts-of-nfsd_svc-which-start-nfs-servers-tweaks.patch knfsd-define-new-nfsdfs-file-portlist-contains-list-of-ports-tidy.patch knfsd-define-new-nfsdfs-file-portlist-contains-list-of-ports-fix.patch knfsd-drop-serv-option-to-svc_recv-and-svc_process-nfs-callback-fix-nfs-callback-fix.patch knfsd-move-tempsock-aging-to-a-timer-tidy.patch knfsd-nfsd4-fslocations-data-structures-fix.patch sched-remove-unnecessary-sched-group-allocations-fix.patch swap_prefetch-vs-zoned-counters.patch ecryptfs-mmap-operations.patch ecryptfs-alpha-build-fix.patch ecryptfs-more-elegant-aes-key-size-manipulation.patch ecryptfs-get_sb_dev-fix.patch make-kmem_cache_destroy-return-void-ecryptfs.patch ecryptfs-versioning-fixes-tidy.patch namespaces-add-nsproxy.patch namespaces-utsname-switch-to-using-uts-namespaces.patch namespaces-utsname-switch-to-using-uts-namespaces-klibc-bit-sparc.patch namespaces-utsname-use-init_utsname-when-appropriate.patch namespaces-utsname-implement-utsname-namespaces.patch namespaces-utsname-sysctl-hack.patch ipc-namespace-core.patch rename-the-provided-execve-functions-to-kernel_execve-headers-fix.patch replace-cad_pid-by-a-struct-pid-fixes.patch readahead-sysctl-parameters-fix.patch make-copy_from_user_inatomic-not-zero-the-tail-on-i386-vs-reiser4.patch make-kmem_cache_destroy-return-void-reiser4.patch reiser4-hardirq-include-fix.patch reiser4-run-truncate_inode_pages-in-reiser4_delete_inode.patch reiser4-get_sb_dev-fix.patch reiser4-vs-zoned-allocator.patch reiser4-rename-generic_sounding_globalspatch-fix.patch hpt3xx-rework-rate-filtering-tidy.patch genirq-convert-the-i386-architecture-to-irq-chips.patch genirq-x86_64-irq-reenable-migrating-irqs-to-other-cpus.patch genirq-msi-simplify-msi-enable-and-disable.patch genirq-ia64-irq-dynamic-irq-support.patch genirq-msi-only-build-msi-apicc-on-ia64-fix.patch genirq-i386-irq-remove-the-msi-assumption-that-irq-==-vector.patch genirq-x86_64-irq-make-vector_irq-per-cpu-fix.patch genirq-x86_64-irq-make-vector_irq-per-cpu-warning-fix.patch add-hypertransport-capability-defines-fix.patch initial-generic-hypertransport-interrupt-support-Kconfig-fix.patch srcu-report-out-of-memory-errors-fixlet.patch isdn-debug-build-fix.patch isdn-more-pr_debug-fixes.patch nr_blockdev_pages-in_interrupt-warning.patch device-suspend-debug.patch slab-leaks3-default-y.patch x86-kmap_atomic-debugging.patch restore-rogue-readahead-printk.patch put_bh-debug.patch acpi_format_exception-debug.patch jmicron-warning-fix.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