diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/Kconfig | 2 | ||||
-rw-r--r-- | arch/h8300/Kconfig | 2 | ||||
-rw-r--r-- | arch/ppc/kernel/machine_kexec.c | 6 | ||||
-rw-r--r-- | arch/sparc64/Kconfig | 2 | ||||
-rw-r--r-- | arch/um/Makefile | 3 | ||||
-rw-r--r-- | arch/x86_64/kernel/vmlinux.lds.S | 4 | ||||
-rw-r--r-- | arch/xtensa/kernel/asm-offsets.c | 1 | ||||
-rw-r--r-- | arch/xtensa/kernel/syscalls.c | 4 | ||||
-rw-r--r-- | arch/xtensa/kernel/syscalls.h | 6 | ||||
-rw-r--r-- | arch/xtensa/kernel/traps.c | 4 | ||||
-rw-r--r-- | arch/xtensa/kernel/vmlinux.lds.S | 6 |
11 files changed, 26 insertions, 14 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 45462714caf1..7bc4a583f4e1 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
@@ -746,6 +746,8 @@ source "drivers/char/Kconfig" | |||
746 | 746 | ||
747 | source "drivers/i2c/Kconfig" | 747 | source "drivers/i2c/Kconfig" |
748 | 748 | ||
749 | source "drivers/hwmon/Kconfig" | ||
750 | |||
749 | #source "drivers/l3/Kconfig" | 751 | #source "drivers/l3/Kconfig" |
750 | 752 | ||
751 | source "drivers/misc/Kconfig" | 753 | source "drivers/misc/Kconfig" |
diff --git a/arch/h8300/Kconfig b/arch/h8300/Kconfig index 375f2a8ff3b5..26698a49f153 100644 --- a/arch/h8300/Kconfig +++ b/arch/h8300/Kconfig | |||
@@ -181,6 +181,8 @@ source "drivers/serial/Kconfig" | |||
181 | 181 | ||
182 | source "drivers/i2c/Kconfig" | 182 | source "drivers/i2c/Kconfig" |
183 | 183 | ||
184 | source "drivers/hwmon/Kconfig" | ||
185 | |||
184 | source "drivers/usb/Kconfig" | 186 | source "drivers/usb/Kconfig" |
185 | 187 | ||
186 | endmenu | 188 | endmenu |
diff --git a/arch/ppc/kernel/machine_kexec.c b/arch/ppc/kernel/machine_kexec.c index 84d65a87191e..a72787747df7 100644 --- a/arch/ppc/kernel/machine_kexec.c +++ b/arch/ppc/kernel/machine_kexec.c | |||
@@ -28,6 +28,12 @@ typedef NORET_TYPE void (*relocate_new_kernel_t)( | |||
28 | const extern unsigned char relocate_new_kernel[]; | 28 | const extern unsigned char relocate_new_kernel[]; |
29 | const extern unsigned int relocate_new_kernel_size; | 29 | const extern unsigned int relocate_new_kernel_size; |
30 | 30 | ||
31 | /* | ||
32 | * Provide a dummy crash_notes definition while crash dump arrives to ppc. | ||
33 | * This prevents breakage of crash_notes attribute in kernel/ksysfs.c. | ||
34 | */ | ||
35 | void *crash_notes = NULL; | ||
36 | |||
31 | void machine_shutdown(void) | 37 | void machine_shutdown(void) |
32 | { | 38 | { |
33 | if (ppc_md.machine_shutdown) | 39 | if (ppc_md.machine_shutdown) |
diff --git a/arch/sparc64/Kconfig b/arch/sparc64/Kconfig index 140607870f13..9afd28e2c4d5 100644 --- a/arch/sparc64/Kconfig +++ b/arch/sparc64/Kconfig | |||
@@ -649,6 +649,8 @@ source "drivers/input/Kconfig" | |||
649 | 649 | ||
650 | source "drivers/i2c/Kconfig" | 650 | source "drivers/i2c/Kconfig" |
651 | 651 | ||
652 | source "drivers/hwmon/Kconfig" | ||
653 | |||
652 | source "fs/Kconfig" | 654 | source "fs/Kconfig" |
653 | 655 | ||
654 | source "drivers/media/Kconfig" | 656 | source "drivers/media/Kconfig" |
diff --git a/arch/um/Makefile b/arch/um/Makefile index 3f073902351f..4a375bbac109 100644 --- a/arch/um/Makefile +++ b/arch/um/Makefile | |||
@@ -140,7 +140,8 @@ endef | |||
140 | #When cleaning we don't include .config, so we don't include | 140 | #When cleaning we don't include .config, so we don't include |
141 | #TT or skas makefiles and don't clean skas_ptregs.h. | 141 | #TT or skas makefiles and don't clean skas_ptregs.h. |
142 | CLEAN_FILES += linux x.i gmon.out $(ARCH_DIR)/include/uml-config.h \ | 142 | CLEAN_FILES += linux x.i gmon.out $(ARCH_DIR)/include/uml-config.h \ |
143 | $(GEN_HEADERS) $(ARCH_DIR)/include/skas_ptregs.h | 143 | $(GEN_HEADERS) $(ARCH_DIR)/include/skas_ptregs.h \ |
144 | $(ARCH_DIR)/include/user_constants.h | ||
144 | 145 | ||
145 | MRPROPER_FILES += $(SYMLINK_HEADERS) $(ARCH_SYMLINKS) \ | 146 | MRPROPER_FILES += $(SYMLINK_HEADERS) $(ARCH_SYMLINKS) \ |
146 | $(addprefix $(ARCH_DIR)/kernel/,$(KERN_SYMLINKS)) $(ARCH_DIR)/os \ | 147 | $(addprefix $(ARCH_DIR)/kernel/,$(KERN_SYMLINKS)) $(ARCH_DIR)/os \ |
diff --git a/arch/x86_64/kernel/vmlinux.lds.S b/arch/x86_64/kernel/vmlinux.lds.S index 61c12758ca70..2a94f9b60b2d 100644 --- a/arch/x86_64/kernel/vmlinux.lds.S +++ b/arch/x86_64/kernel/vmlinux.lds.S | |||
@@ -62,8 +62,8 @@ SECTIONS | |||
62 | } | 62 | } |
63 | 63 | ||
64 | #define VSYSCALL_ADDR (-10*1024*1024) | 64 | #define VSYSCALL_ADDR (-10*1024*1024) |
65 | #define VSYSCALL_PHYS_ADDR ((LOADADDR(.data.cacheline_aligned) + SIZEOF(.data.cacheline_aligned) + 4095) & ~(4095)) | 65 | #define VSYSCALL_PHYS_ADDR ((LOADADDR(.data.read_mostly) + SIZEOF(.data.read_mostly) + 4095) & ~(4095)) |
66 | #define VSYSCALL_VIRT_ADDR ((ADDR(.data.cacheline_aligned) + SIZEOF(.data.cacheline_aligned) + 4095) & ~(4095)) | 66 | #define VSYSCALL_VIRT_ADDR ((ADDR(.data.read_mostly) + SIZEOF(.data.read_mostly) + 4095) & ~(4095)) |
67 | 67 | ||
68 | #define VLOAD_OFFSET (VSYSCALL_ADDR - VSYSCALL_PHYS_ADDR) | 68 | #define VLOAD_OFFSET (VSYSCALL_ADDR - VSYSCALL_PHYS_ADDR) |
69 | #define VLOAD(x) (ADDR(x) - VLOAD_OFFSET) | 69 | #define VLOAD(x) (ADDR(x) - VLOAD_OFFSET) |
diff --git a/arch/xtensa/kernel/asm-offsets.c b/arch/xtensa/kernel/asm-offsets.c index 840cd9a1d3d2..7cd1d7f8f608 100644 --- a/arch/xtensa/kernel/asm-offsets.c +++ b/arch/xtensa/kernel/asm-offsets.c | |||
@@ -15,7 +15,6 @@ | |||
15 | #include <asm/processor.h> | 15 | #include <asm/processor.h> |
16 | 16 | ||
17 | #include <linux/types.h> | 17 | #include <linux/types.h> |
18 | #include <linux/sched.h> | ||
19 | #include <linux/stddef.h> | 18 | #include <linux/stddef.h> |
20 | #include <linux/thread_info.h> | 19 | #include <linux/thread_info.h> |
21 | #include <linux/ptrace.h> | 20 | #include <linux/ptrace.h> |
diff --git a/arch/xtensa/kernel/syscalls.c b/arch/xtensa/kernel/syscalls.c index 7270509c44de..f20c6494c518 100644 --- a/arch/xtensa/kernel/syscalls.c +++ b/arch/xtensa/kernel/syscalls.c | |||
@@ -69,8 +69,8 @@ int sys_pipe(int __user *userfds) | |||
69 | /* | 69 | /* |
70 | * Common code for old and new mmaps. | 70 | * Common code for old and new mmaps. |
71 | */ | 71 | */ |
72 | long sys_mmap2(unsigned long addr, unsigned long len, unsigned long prot, | 72 | long sys_mmap(unsigned long addr, unsigned long len, unsigned long prot, |
73 | unsigned long flags, unsigned long fd, unsigned long pgoff) | 73 | unsigned long flags, unsigned long fd, unsigned long pgoff) |
74 | { | 74 | { |
75 | int error = -EBADF; | 75 | int error = -EBADF; |
76 | struct file * file = NULL; | 76 | struct file * file = NULL; |
diff --git a/arch/xtensa/kernel/syscalls.h b/arch/xtensa/kernel/syscalls.h index 07580696b602..216c10a31501 100644 --- a/arch/xtensa/kernel/syscalls.h +++ b/arch/xtensa/kernel/syscalls.h | |||
@@ -42,7 +42,7 @@ SYSCALL(sys_mknod, 3) | |||
42 | SYSCALL(sys_chmod, 2) /* 15 */ | 42 | SYSCALL(sys_chmod, 2) /* 15 */ |
43 | SYSCALL(sys_lchown, 3) | 43 | SYSCALL(sys_lchown, 3) |
44 | SYSCALL(sys_ni_syscall, 0) | 44 | SYSCALL(sys_ni_syscall, 0) |
45 | SYSCALL(sys_stat, 2) | 45 | SYSCALL(sys_newstat, 2) |
46 | SYSCALL(sys_lseek, 3) | 46 | SYSCALL(sys_lseek, 3) |
47 | SYSCALL(sys_getpid, 0) /* 20 */ | 47 | SYSCALL(sys_getpid, 0) /* 20 */ |
48 | SYSCALL(sys_mount, 5) | 48 | SYSCALL(sys_mount, 5) |
@@ -52,7 +52,7 @@ SYSCALL(sys_getuid, 0) | |||
52 | SYSCALL(sys_ni_syscall, 1) /* 25 */ | 52 | SYSCALL(sys_ni_syscall, 1) /* 25 */ |
53 | SYSCALL(sys_ptrace, 4) | 53 | SYSCALL(sys_ptrace, 4) |
54 | SYSCALL(sys_ni_syscall, 1) | 54 | SYSCALL(sys_ni_syscall, 1) |
55 | SYSCALL(sys_fstat, 2) | 55 | SYSCALL(sys_newfstat, 2) |
56 | SYSCALL(sys_ni_syscall, 0) | 56 | SYSCALL(sys_ni_syscall, 0) |
57 | SYSCALL(sys_utime, 2) /* 30 */ | 57 | SYSCALL(sys_utime, 2) /* 30 */ |
58 | SYSCALL(sys_ni_syscall, 0) | 58 | SYSCALL(sys_ni_syscall, 0) |
@@ -108,7 +108,7 @@ SYSCALL(sys_getgroups, 2) /* 80 */ | |||
108 | SYSCALL(sys_setgroups, 2) | 108 | SYSCALL(sys_setgroups, 2) |
109 | SYSCALL(sys_ni_syscall, 0) | 109 | SYSCALL(sys_ni_syscall, 0) |
110 | SYSCALL(sys_symlink, 2) | 110 | SYSCALL(sys_symlink, 2) |
111 | SYSCALL(sys_lstat, 2) | 111 | SYSCALL(sys_newlstat, 2) |
112 | SYSCALL(sys_readlink, 3) /* 85 */ | 112 | SYSCALL(sys_readlink, 3) /* 85 */ |
113 | SYSCALL(sys_uselib, 1) | 113 | SYSCALL(sys_uselib, 1) |
114 | SYSCALL(sys_swapon, 2) | 114 | SYSCALL(sys_swapon, 2) |
diff --git a/arch/xtensa/kernel/traps.c b/arch/xtensa/kernel/traps.c index 804246e743b1..225d64d73f04 100644 --- a/arch/xtensa/kernel/traps.c +++ b/arch/xtensa/kernel/traps.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include <linux/module.h> | 29 | #include <linux/module.h> |
30 | #include <linux/stringify.h> | 30 | #include <linux/stringify.h> |
31 | #include <linux/kallsyms.h> | 31 | #include <linux/kallsyms.h> |
32 | #include <linux/delay.h> | ||
32 | 33 | ||
33 | #include <asm/ptrace.h> | 34 | #include <asm/ptrace.h> |
34 | #include <asm/timex.h> | 35 | #include <asm/timex.h> |
@@ -488,8 +489,7 @@ void die(const char * str, struct pt_regs * regs, long err) | |||
488 | 489 | ||
489 | if (panic_on_oops) { | 490 | if (panic_on_oops) { |
490 | printk(KERN_EMERG "Fatal exception: panic in 5 seconds\n"); | 491 | printk(KERN_EMERG "Fatal exception: panic in 5 seconds\n"); |
491 | set_current_state(TASK_UNINTERRUPTIBLE); | 492 | ssleep(5); |
492 | schedule_timeout(5 * HZ); | ||
493 | panic("Fatal exception"); | 493 | panic("Fatal exception"); |
494 | } | 494 | } |
495 | do_exit(err); | 495 | do_exit(err); |
diff --git a/arch/xtensa/kernel/vmlinux.lds.S b/arch/xtensa/kernel/vmlinux.lds.S index 476b2b53cd01..5ed71dfc8110 100644 --- a/arch/xtensa/kernel/vmlinux.lds.S +++ b/arch/xtensa/kernel/vmlinux.lds.S | |||
@@ -90,10 +90,10 @@ SECTIONS | |||
90 | *(.literal .text) | 90 | *(.literal .text) |
91 | *(.srom.text) | 91 | *(.srom.text) |
92 | VMLINUX_SYMBOL(__sched_text_start) = .; | 92 | VMLINUX_SYMBOL(__sched_text_start) = .; |
93 | *(.sched.text.literal .sched.text) | 93 | *(.sched.literal .sched.text) |
94 | VMLINUX_SYMBOL(__sched_text_end) = .; | 94 | VMLINUX_SYMBOL(__sched_text_end) = .; |
95 | VMLINUX_SYMBOL(__lock_text_start) = .; | 95 | VMLINUX_SYMBOL(__lock_text_start) = .; |
96 | *(.spinlock.text.literal .spinlock.text) | 96 | *(.spinlock.literal .spinlock.text) |
97 | VMLINUX_SYMBOL(__lock_text_end) = .; | 97 | VMLINUX_SYMBOL(__lock_text_end) = .; |
98 | 98 | ||
99 | } | 99 | } |
@@ -164,7 +164,7 @@ SECTIONS | |||
164 | __init_begin = .; | 164 | __init_begin = .; |
165 | .init.text : { | 165 | .init.text : { |
166 | _sinittext = .; | 166 | _sinittext = .; |
167 | *(.init.text.literal) *(.init.text) | 167 | *(.init.literal) *(.init.text) |
168 | _einittext = .; | 168 | _einittext = .; |
169 | } | 169 | } |
170 | 170 | ||