diff options
| author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-03-23 23:44:19 -0500 |
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-03-23 23:44:19 -0500 |
| commit | 1ebbe2b20091d306453a5cf480a87e6cd28ae76f (patch) | |
| tree | f5cd7a0fa69b8b1938cb5a0faed2e7b0628072a5 /include/asm-generic | |
| parent | ac58c9059da8886b5e8cde012a80266b18ca146e (diff) | |
| parent | 674a396c6d2ba0341ebdd7c1c9950f32f018e2dd (diff) | |
Merge branch 'linus'
Diffstat (limited to 'include/asm-generic')
| -rw-r--r-- | include/asm-generic/bug.h | 4 | ||||
| -rw-r--r-- | include/asm-generic/percpu.h | 7 | ||||
| -rw-r--r-- | include/asm-generic/vmlinux.lds.h | 14 |
3 files changed, 19 insertions, 6 deletions
diff --git a/include/asm-generic/bug.h b/include/asm-generic/bug.h index 400c2b41896e..1a565a9d2fa7 100644 --- a/include/asm-generic/bug.h +++ b/include/asm-generic/bug.h | |||
| @@ -7,7 +7,7 @@ | |||
| 7 | #ifdef CONFIG_BUG | 7 | #ifdef CONFIG_BUG |
| 8 | #ifndef HAVE_ARCH_BUG | 8 | #ifndef HAVE_ARCH_BUG |
| 9 | #define BUG() do { \ | 9 | #define BUG() do { \ |
| 10 | printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \ | 10 | printk("BUG: failure at %s:%d/%s()!\n", __FILE__, __LINE__, __FUNCTION__); \ |
| 11 | panic("BUG!"); \ | 11 | panic("BUG!"); \ |
| 12 | } while (0) | 12 | } while (0) |
| 13 | #endif | 13 | #endif |
| @@ -19,7 +19,7 @@ | |||
| 19 | #ifndef HAVE_ARCH_WARN_ON | 19 | #ifndef HAVE_ARCH_WARN_ON |
| 20 | #define WARN_ON(condition) do { \ | 20 | #define WARN_ON(condition) do { \ |
| 21 | if (unlikely((condition)!=0)) { \ | 21 | if (unlikely((condition)!=0)) { \ |
| 22 | printk("Badness in %s at %s:%d\n", __FUNCTION__, __FILE__, __LINE__); \ | 22 | printk("BUG: warning at %s:%d/%s()\n", __FILE__, __LINE__, __FUNCTION__); \ |
| 23 | dump_stack(); \ | 23 | dump_stack(); \ |
| 24 | } \ | 24 | } \ |
| 25 | } while (0) | 25 | } while (0) |
diff --git a/include/asm-generic/percpu.h b/include/asm-generic/percpu.h index 9044aeb37828..78cf45547e31 100644 --- a/include/asm-generic/percpu.h +++ b/include/asm-generic/percpu.h | |||
| @@ -19,10 +19,9 @@ extern unsigned long __per_cpu_offset[NR_CPUS]; | |||
| 19 | #define percpu_modcopy(pcpudst, src, size) \ | 19 | #define percpu_modcopy(pcpudst, src, size) \ |
| 20 | do { \ | 20 | do { \ |
| 21 | unsigned int __i; \ | 21 | unsigned int __i; \ |
| 22 | for (__i = 0; __i < NR_CPUS; __i++) \ | 22 | for_each_cpu(__i) \ |
| 23 | if (cpu_possible(__i)) \ | 23 | memcpy((pcpudst)+__per_cpu_offset[__i], \ |
| 24 | memcpy((pcpudst)+__per_cpu_offset[__i], \ | 24 | (src), (size)); \ |
| 25 | (src), (size)); \ | ||
| 26 | } while (0) | 25 | } while (0) |
| 27 | #else /* ! SMP */ | 26 | #else /* ! SMP */ |
| 28 | 27 | ||
diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index 35de20cf8fac..9d11550b4818 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h | |||
| @@ -58,6 +58,13 @@ | |||
| 58 | VMLINUX_SYMBOL(__stop___ksymtab_gpl) = .; \ | 58 | VMLINUX_SYMBOL(__stop___ksymtab_gpl) = .; \ |
| 59 | } \ | 59 | } \ |
| 60 | \ | 60 | \ |
| 61 | /* Kernel symbol table: GPL-future-only symbols */ \ | ||
| 62 | __ksymtab_gpl_future : AT(ADDR(__ksymtab_gpl_future) - LOAD_OFFSET) { \ | ||
| 63 | VMLINUX_SYMBOL(__start___ksymtab_gpl_future) = .; \ | ||
| 64 | *(__ksymtab_gpl_future) \ | ||
| 65 | VMLINUX_SYMBOL(__stop___ksymtab_gpl_future) = .; \ | ||
| 66 | } \ | ||
| 67 | \ | ||
| 61 | /* Kernel symbol table: Normal symbols */ \ | 68 | /* Kernel symbol table: Normal symbols */ \ |
| 62 | __kcrctab : AT(ADDR(__kcrctab) - LOAD_OFFSET) { \ | 69 | __kcrctab : AT(ADDR(__kcrctab) - LOAD_OFFSET) { \ |
| 63 | VMLINUX_SYMBOL(__start___kcrctab) = .; \ | 70 | VMLINUX_SYMBOL(__start___kcrctab) = .; \ |
| @@ -72,6 +79,13 @@ | |||
| 72 | VMLINUX_SYMBOL(__stop___kcrctab_gpl) = .; \ | 79 | VMLINUX_SYMBOL(__stop___kcrctab_gpl) = .; \ |
| 73 | } \ | 80 | } \ |
| 74 | \ | 81 | \ |
| 82 | /* Kernel symbol table: GPL-future-only symbols */ \ | ||
| 83 | __kcrctab_gpl_future : AT(ADDR(__kcrctab_gpl_future) - LOAD_OFFSET) { \ | ||
| 84 | VMLINUX_SYMBOL(__start___kcrctab_gpl_future) = .; \ | ||
| 85 | *(__kcrctab_gpl_future) \ | ||
| 86 | VMLINUX_SYMBOL(__stop___kcrctab_gpl_future) = .; \ | ||
| 87 | } \ | ||
| 88 | \ | ||
| 75 | /* Kernel symbol table: strings */ \ | 89 | /* Kernel symbol table: strings */ \ |
| 76 | __ksymtab_strings : AT(ADDR(__ksymtab_strings) - LOAD_OFFSET) { \ | 90 | __ksymtab_strings : AT(ADDR(__ksymtab_strings) - LOAD_OFFSET) { \ |
| 77 | *(__ksymtab_strings) \ | 91 | *(__ksymtab_strings) \ |
