diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-03 11:53:26 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-03 11:53:26 -0400 |
commit | 65fc471343acbab05e2e24ad9688af43a37d6a1b (patch) | |
tree | 9911274b04db7f248405c579ce2231dc57aa4776 | |
parent | ccaa36f73544163ef6e15eb29a620130755f6001 (diff) | |
parent | 94e45a2b87bde64fd2eb170999da2fd2c5b04d28 (diff) |
Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6:
[SPARC64]: Update defconfig.
[SPARC64]: Do not include compat.h from asm-sparc64/signal.h any more.
[SPARC64]: Move signal compat bits to new header file.
-rw-r--r-- | arch/sparc64/defconfig | 23 | ||||
-rw-r--r-- | arch/sparc64/kernel/signal32.c | 1 | ||||
-rw-r--r-- | arch/sparc64/kernel/sys_sparc32.c | 1 | ||||
-rw-r--r-- | arch/sparc64/kernel/sys_sunos32.c | 1 | ||||
-rw-r--r-- | include/asm-sparc64/compat_signal.h | 30 | ||||
-rw-r--r-- | include/asm-sparc64/signal.h | 42 |
6 files changed, 55 insertions, 43 deletions
diff --git a/arch/sparc64/defconfig b/arch/sparc64/defconfig index 0fbdaa5daa8c..f54ab375464b 100644 --- a/arch/sparc64/defconfig +++ b/arch/sparc64/defconfig | |||
@@ -1,7 +1,7 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.18 | 3 | # Linux kernel version: 2.6.18 |
4 | # Tue Sep 26 23:09:35 2006 | 4 | # Mon Oct 2 14:24:40 2006 |
5 | # | 5 | # |
6 | CONFIG_SPARC=y | 6 | CONFIG_SPARC=y |
7 | CONFIG_SPARC64=y | 7 | CONFIG_SPARC64=y |
@@ -35,17 +35,20 @@ CONFIG_LOCALVERSION="" | |||
35 | # CONFIG_LOCALVERSION_AUTO is not set | 35 | # CONFIG_LOCALVERSION_AUTO is not set |
36 | CONFIG_SWAP=y | 36 | CONFIG_SWAP=y |
37 | CONFIG_SYSVIPC=y | 37 | CONFIG_SYSVIPC=y |
38 | # CONFIG_IPC_NS is not set | ||
38 | CONFIG_POSIX_MQUEUE=y | 39 | CONFIG_POSIX_MQUEUE=y |
39 | # CONFIG_BSD_PROCESS_ACCT is not set | 40 | # CONFIG_BSD_PROCESS_ACCT is not set |
40 | # CONFIG_TASKSTATS is not set | 41 | # CONFIG_TASKSTATS is not set |
42 | # CONFIG_UTS_NS is not set | ||
41 | # CONFIG_AUDIT is not set | 43 | # CONFIG_AUDIT is not set |
42 | # CONFIG_IKCONFIG is not set | 44 | # CONFIG_IKCONFIG is not set |
43 | CONFIG_RELAY=y | 45 | CONFIG_RELAY=y |
44 | CONFIG_INITRAMFS_SOURCE="" | 46 | CONFIG_INITRAMFS_SOURCE="" |
45 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | 47 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y |
48 | CONFIG_SYSCTL=y | ||
46 | # CONFIG_EMBEDDED is not set | 49 | # CONFIG_EMBEDDED is not set |
47 | CONFIG_UID16=y | 50 | CONFIG_UID16=y |
48 | CONFIG_SYSCTL=y | 51 | # CONFIG_SYSCTL_SYSCALL is not set |
49 | CONFIG_KALLSYMS=y | 52 | CONFIG_KALLSYMS=y |
50 | # CONFIG_KALLSYMS_ALL is not set | 53 | # CONFIG_KALLSYMS_ALL is not set |
51 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 54 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
@@ -77,6 +80,7 @@ CONFIG_KMOD=y | |||
77 | # | 80 | # |
78 | # Block layer | 81 | # Block layer |
79 | # | 82 | # |
83 | CONFIG_BLOCK=y | ||
80 | CONFIG_BLK_DEV_IO_TRACE=y | 84 | CONFIG_BLK_DEV_IO_TRACE=y |
81 | 85 | ||
82 | # | 86 | # |
@@ -154,7 +158,7 @@ CONFIG_BINFMT_ELF32=y | |||
154 | # | 158 | # |
155 | CONFIG_BINFMT_ELF=y | 159 | CONFIG_BINFMT_ELF=y |
156 | CONFIG_BINFMT_MISC=m | 160 | CONFIG_BINFMT_MISC=m |
157 | # CONFIG_SOLARIS_EMUL is not set | 161 | CONFIG_SOLARIS_EMUL=y |
158 | # CONFIG_CMDLINE_BOOL is not set | 162 | # CONFIG_CMDLINE_BOOL is not set |
159 | 163 | ||
160 | # | 164 | # |
@@ -622,6 +626,7 @@ CONFIG_BNX2=m | |||
622 | # Input device support | 626 | # Input device support |
623 | # | 627 | # |
624 | CONFIG_INPUT=y | 628 | CONFIG_INPUT=y |
629 | # CONFIG_INPUT_FF_MEMLESS is not set | ||
625 | 630 | ||
626 | # | 631 | # |
627 | # Userland interfaces | 632 | # Userland interfaces |
@@ -644,6 +649,7 @@ CONFIG_KEYBOARD_SUNKBD=y | |||
644 | CONFIG_KEYBOARD_LKKBD=m | 649 | CONFIG_KEYBOARD_LKKBD=m |
645 | # CONFIG_KEYBOARD_XTKBD is not set | 650 | # CONFIG_KEYBOARD_XTKBD is not set |
646 | # CONFIG_KEYBOARD_NEWTON is not set | 651 | # CONFIG_KEYBOARD_NEWTON is not set |
652 | # CONFIG_KEYBOARD_STOWAWAY is not set | ||
647 | CONFIG_INPUT_MOUSE=y | 653 | CONFIG_INPUT_MOUSE=y |
648 | CONFIG_MOUSE_PS2=y | 654 | CONFIG_MOUSE_PS2=y |
649 | CONFIG_MOUSE_SERIAL=y | 655 | CONFIG_MOUSE_SERIAL=y |
@@ -821,6 +827,7 @@ CONFIG_HWMON=y | |||
821 | # CONFIG_SENSORS_SMSC47M192 is not set | 827 | # CONFIG_SENSORS_SMSC47M192 is not set |
822 | # CONFIG_SENSORS_SMSC47B397 is not set | 828 | # CONFIG_SENSORS_SMSC47B397 is not set |
823 | # CONFIG_SENSORS_VIA686A is not set | 829 | # CONFIG_SENSORS_VIA686A is not set |
830 | # CONFIG_SENSORS_VT1211 is not set | ||
824 | # CONFIG_SENSORS_VT8231 is not set | 831 | # CONFIG_SENSORS_VT8231 is not set |
825 | # CONFIG_SENSORS_W83781D is not set | 832 | # CONFIG_SENSORS_W83781D is not set |
826 | # CONFIG_SENSORS_W83791D is not set | 833 | # CONFIG_SENSORS_W83791D is not set |
@@ -1092,6 +1099,7 @@ CONFIG_USB_HIDDEV=y | |||
1092 | # CONFIG_USB_ATI_REMOTE2 is not set | 1099 | # CONFIG_USB_ATI_REMOTE2 is not set |
1093 | # CONFIG_USB_KEYSPAN_REMOTE is not set | 1100 | # CONFIG_USB_KEYSPAN_REMOTE is not set |
1094 | # CONFIG_USB_APPLETOUCH is not set | 1101 | # CONFIG_USB_APPLETOUCH is not set |
1102 | # CONFIG_USB_TRANCEVIBRATOR is not set | ||
1095 | 1103 | ||
1096 | # | 1104 | # |
1097 | # USB Imaging devices | 1105 | # USB Imaging devices |
@@ -1123,6 +1131,7 @@ CONFIG_USB_HIDDEV=y | |||
1123 | # | 1131 | # |
1124 | # CONFIG_USB_EMI62 is not set | 1132 | # CONFIG_USB_EMI62 is not set |
1125 | # CONFIG_USB_EMI26 is not set | 1133 | # CONFIG_USB_EMI26 is not set |
1134 | # CONFIG_USB_ADUTUX is not set | ||
1126 | # CONFIG_USB_AUERSWALD is not set | 1135 | # CONFIG_USB_AUERSWALD is not set |
1127 | # CONFIG_USB_RIO500 is not set | 1136 | # CONFIG_USB_RIO500 is not set |
1128 | # CONFIG_USB_LEGOTOWER is not set | 1137 | # CONFIG_USB_LEGOTOWER is not set |
@@ -1130,9 +1139,9 @@ CONFIG_USB_HIDDEV=y | |||
1130 | # CONFIG_USB_LED is not set | 1139 | # CONFIG_USB_LED is not set |
1131 | # CONFIG_USB_CYPRESS_CY7C63 is not set | 1140 | # CONFIG_USB_CYPRESS_CY7C63 is not set |
1132 | # CONFIG_USB_CYTHERM is not set | 1141 | # CONFIG_USB_CYTHERM is not set |
1133 | # CONFIG_USB_PHIDGETKIT is not set | 1142 | # CONFIG_USB_PHIDGET is not set |
1134 | # CONFIG_USB_PHIDGETSERVO is not set | ||
1135 | # CONFIG_USB_IDMOUSE is not set | 1143 | # CONFIG_USB_IDMOUSE is not set |
1144 | # CONFIG_USB_FTDI_ELAN is not set | ||
1136 | # CONFIG_USB_APPLEDISPLAY is not set | 1145 | # CONFIG_USB_APPLEDISPLAY is not set |
1137 | # CONFIG_USB_SISUSBVGA is not set | 1146 | # CONFIG_USB_SISUSBVGA is not set |
1138 | # CONFIG_USB_LD is not set | 1147 | # CONFIG_USB_LD is not set |
@@ -1256,8 +1265,10 @@ CONFIG_DNOTIFY=y | |||
1256 | # | 1265 | # |
1257 | CONFIG_PROC_FS=y | 1266 | CONFIG_PROC_FS=y |
1258 | CONFIG_PROC_KCORE=y | 1267 | CONFIG_PROC_KCORE=y |
1268 | CONFIG_PROC_SYSCTL=y | ||
1259 | CONFIG_SYSFS=y | 1269 | CONFIG_SYSFS=y |
1260 | CONFIG_TMPFS=y | 1270 | CONFIG_TMPFS=y |
1271 | # CONFIG_TMPFS_POSIX_ACL is not set | ||
1261 | CONFIG_HUGETLBFS=y | 1272 | CONFIG_HUGETLBFS=y |
1262 | CONFIG_HUGETLB_PAGE=y | 1273 | CONFIG_HUGETLB_PAGE=y |
1263 | CONFIG_RAMFS=y | 1274 | CONFIG_RAMFS=y |
@@ -1374,9 +1385,11 @@ CONFIG_DEBUG_BUGVERBOSE=y | |||
1374 | # CONFIG_DEBUG_INFO is not set | 1385 | # CONFIG_DEBUG_INFO is not set |
1375 | CONFIG_DEBUG_FS=y | 1386 | CONFIG_DEBUG_FS=y |
1376 | # CONFIG_DEBUG_VM is not set | 1387 | # CONFIG_DEBUG_VM is not set |
1388 | # CONFIG_DEBUG_LIST is not set | ||
1377 | # CONFIG_UNWIND_INFO is not set | 1389 | # CONFIG_UNWIND_INFO is not set |
1378 | CONFIG_FORCED_INLINING=y | 1390 | CONFIG_FORCED_INLINING=y |
1379 | # CONFIG_RCU_TORTURE_TEST is not set | 1391 | # CONFIG_RCU_TORTURE_TEST is not set |
1392 | # CONFIG_LKDTM is not set | ||
1380 | # CONFIG_DEBUG_STACK_USAGE is not set | 1393 | # CONFIG_DEBUG_STACK_USAGE is not set |
1381 | # CONFIG_DEBUG_DCFLUSH is not set | 1394 | # CONFIG_DEBUG_DCFLUSH is not set |
1382 | # CONFIG_STACK_DEBUG is not set | 1395 | # CONFIG_STACK_DEBUG is not set |
diff --git a/arch/sparc64/kernel/signal32.c b/arch/sparc64/kernel/signal32.c index 708ba9b42cda..c45f21b881d5 100644 --- a/arch/sparc64/kernel/signal32.c +++ b/arch/sparc64/kernel/signal32.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include <asm/psrcompat.h> | 29 | #include <asm/psrcompat.h> |
30 | #include <asm/fpumacro.h> | 30 | #include <asm/fpumacro.h> |
31 | #include <asm/visasm.h> | 31 | #include <asm/visasm.h> |
32 | #include <asm/compat_signal.h> | ||
32 | 33 | ||
33 | #define _BLOCKABLE (~(sigmask(SIGKILL) | sigmask(SIGSTOP))) | 34 | #define _BLOCKABLE (~(sigmask(SIGKILL) | sigmask(SIGSTOP))) |
34 | 35 | ||
diff --git a/arch/sparc64/kernel/sys_sparc32.c b/arch/sparc64/kernel/sys_sparc32.c index dbc6d1a3be1f..e27cb71bd8e2 100644 --- a/arch/sparc64/kernel/sys_sparc32.c +++ b/arch/sparc64/kernel/sys_sparc32.c | |||
@@ -61,6 +61,7 @@ | |||
61 | #include <asm/semaphore.h> | 61 | #include <asm/semaphore.h> |
62 | #include <asm/mmu_context.h> | 62 | #include <asm/mmu_context.h> |
63 | #include <asm/a.out.h> | 63 | #include <asm/a.out.h> |
64 | #include <asm/compat_signal.h> | ||
64 | 65 | ||
65 | asmlinkage long sys32_chown16(const char __user * filename, u16 user, u16 group) | 66 | asmlinkage long sys32_chown16(const char __user * filename, u16 user, u16 group) |
66 | { | 67 | { |
diff --git a/arch/sparc64/kernel/sys_sunos32.c b/arch/sparc64/kernel/sys_sunos32.c index e414c8ef0225..7da72d3b322a 100644 --- a/arch/sparc64/kernel/sys_sunos32.c +++ b/arch/sparc64/kernel/sys_sunos32.c | |||
@@ -43,6 +43,7 @@ | |||
43 | #include <asm/idprom.h> /* for gethostid() */ | 43 | #include <asm/idprom.h> /* for gethostid() */ |
44 | #include <asm/unistd.h> | 44 | #include <asm/unistd.h> |
45 | #include <asm/system.h> | 45 | #include <asm/system.h> |
46 | #include <asm/compat_signal.h> | ||
46 | 47 | ||
47 | /* For the nfs mount emulation */ | 48 | /* For the nfs mount emulation */ |
48 | #include <linux/socket.h> | 49 | #include <linux/socket.h> |
diff --git a/include/asm-sparc64/compat_signal.h b/include/asm-sparc64/compat_signal.h new file mode 100644 index 000000000000..7aefa301321e --- /dev/null +++ b/include/asm-sparc64/compat_signal.h | |||
@@ -0,0 +1,30 @@ | |||
1 | #ifndef _COMPAT_SIGNAL_H | ||
2 | #define _COMPAT_SIGNAL_H | ||
3 | |||
4 | #include <linux/config.h> | ||
5 | #include <linux/compat.h> | ||
6 | #include <asm/signal.h> | ||
7 | |||
8 | #ifdef CONFIG_COMPAT | ||
9 | struct __new_sigaction32 { | ||
10 | unsigned sa_handler; | ||
11 | unsigned int sa_flags; | ||
12 | unsigned sa_restorer; /* not used by Linux/SPARC yet */ | ||
13 | compat_sigset_t sa_mask; | ||
14 | }; | ||
15 | |||
16 | struct __old_sigaction32 { | ||
17 | unsigned sa_handler; | ||
18 | compat_old_sigset_t sa_mask; | ||
19 | unsigned int sa_flags; | ||
20 | unsigned sa_restorer; /* not used by Linux/SPARC yet */ | ||
21 | }; | ||
22 | |||
23 | typedef struct sigaltstack32 { | ||
24 | u32 ss_sp; | ||
25 | int ss_flags; | ||
26 | compat_size_t ss_size; | ||
27 | } stack_t32; | ||
28 | #endif | ||
29 | |||
30 | #endif /* !(_COMPAT_SIGNAL_H) */ | ||
diff --git a/include/asm-sparc64/signal.h b/include/asm-sparc64/signal.h index 9968871103bc..fa6f467389db 100644 --- a/include/asm-sparc64/signal.h +++ b/include/asm-sparc64/signal.h | |||
@@ -8,7 +8,6 @@ | |||
8 | #ifndef __ASSEMBLY__ | 8 | #ifndef __ASSEMBLY__ |
9 | #include <linux/personality.h> | 9 | #include <linux/personality.h> |
10 | #include <linux/types.h> | 10 | #include <linux/types.h> |
11 | #include <linux/compat.h> | ||
12 | #endif | 11 | #endif |
13 | #endif | 12 | #endif |
14 | 13 | ||
@@ -167,23 +166,6 @@ struct __new_sigaction { | |||
167 | __new_sigset_t sa_mask; | 166 | __new_sigset_t sa_mask; |
168 | }; | 167 | }; |
169 | 168 | ||
170 | #ifdef __KERNEL__ | ||
171 | |||
172 | #ifdef CONFIG_COMPAT | ||
173 | struct __new_sigaction32 { | ||
174 | unsigned sa_handler; | ||
175 | unsigned int sa_flags; | ||
176 | unsigned sa_restorer; /* not used by Linux/SPARC yet */ | ||
177 | compat_sigset_t sa_mask; | ||
178 | }; | ||
179 | #endif | ||
180 | |||
181 | struct k_sigaction { | ||
182 | struct __new_sigaction sa; | ||
183 | void __user *ka_restorer; | ||
184 | }; | ||
185 | #endif | ||
186 | |||
187 | struct __old_sigaction { | 169 | struct __old_sigaction { |
188 | __sighandler_t sa_handler; | 170 | __sighandler_t sa_handler; |
189 | __old_sigset_t sa_mask; | 171 | __old_sigset_t sa_mask; |
@@ -191,19 +173,6 @@ struct __old_sigaction { | |||
191 | void (*sa_restorer)(void); /* not used by Linux/SPARC yet */ | 173 | void (*sa_restorer)(void); /* not used by Linux/SPARC yet */ |
192 | }; | 174 | }; |
193 | 175 | ||
194 | #ifdef __KERNEL__ | ||
195 | |||
196 | #ifdef CONFIG_COMPAT | ||
197 | struct __old_sigaction32 { | ||
198 | unsigned sa_handler; | ||
199 | compat_old_sigset_t sa_mask; | ||
200 | unsigned int sa_flags; | ||
201 | unsigned sa_restorer; /* not used by Linux/SPARC yet */ | ||
202 | }; | ||
203 | #endif | ||
204 | |||
205 | #endif | ||
206 | |||
207 | typedef struct sigaltstack { | 176 | typedef struct sigaltstack { |
208 | void __user *ss_sp; | 177 | void __user *ss_sp; |
209 | int ss_flags; | 178 | int ss_flags; |
@@ -212,13 +181,10 @@ typedef struct sigaltstack { | |||
212 | 181 | ||
213 | #ifdef __KERNEL__ | 182 | #ifdef __KERNEL__ |
214 | 183 | ||
215 | #ifdef CONFIG_COMPAT | 184 | struct k_sigaction { |
216 | typedef struct sigaltstack32 { | 185 | struct __new_sigaction sa; |
217 | u32 ss_sp; | 186 | void __user *ka_restorer; |
218 | int ss_flags; | 187 | }; |
219 | compat_size_t ss_size; | ||
220 | } stack_t32; | ||
221 | #endif | ||
222 | 188 | ||
223 | struct signal_deliver_cookie { | 189 | struct signal_deliver_cookie { |
224 | int restart_syscall; | 190 | int restart_syscall; |