aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2011-12-06 01:48:49 -0500
committerH. Peter Anvin <hpa@zytor.com>2011-12-06 01:56:38 -0500
commita074335a370eca6d72f2ec890e4ae22923a2aea4 (patch)
tree8ef61af965df0b69010aa7b936a65d7d42d45a90 /arch
parent45db1c6176c8171d9ae6fa6d82e07d115a5950ca (diff)
x86, um: Mark system call tables readonly
Mark the system call tables readonly, as they already are on native, and the 32-bit UM version was in the previous assembly version. The 32-bit version lost it due to copy and paste from the 64-bit version, which was missing the const. Cc: Jeff Dike <jdike@addtoit.com> Cc: Richard Weinberger <richard@nod.at> Link: http://lkml.kernel.org/r/tip-45db1c6176c8171d9ae6fa6d82e07d115a5950ca@git.kernel.org Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/um/sys_call_table_32.c2
-rw-r--r--arch/x86/um/sys_call_table_64.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/um/sys_call_table_32.c b/arch/x86/um/sys_call_table_32.c
index b897fcae620..0606aa3e92a 100644
--- a/arch/x86/um/sys_call_table_32.c
+++ b/arch/x86/um/sys_call_table_32.c
@@ -43,7 +43,7 @@ typedef void (*sys_call_ptr_t)(void);
43 43
44extern void sys_ni_syscall(void); 44extern void sys_ni_syscall(void);
45 45
46sys_call_ptr_t sys_call_table[] __cacheline_aligned = { 46const sys_call_ptr_t sys_call_table[] __cacheline_aligned = {
47 /* 47 /*
48 * Smells like a compiler bug -- it doesn't work 48 * Smells like a compiler bug -- it doesn't work
49 * when the & below is removed. 49 * when the & below is removed.
diff --git a/arch/x86/um/sys_call_table_64.c b/arch/x86/um/sys_call_table_64.c
index 797a639bcca..fe626c3ba01 100644
--- a/arch/x86/um/sys_call_table_64.c
+++ b/arch/x86/um/sys_call_table_64.c
@@ -45,7 +45,7 @@ typedef void (*sys_call_ptr_t)(void);
45 45
46extern void sys_ni_syscall(void); 46extern void sys_ni_syscall(void);
47 47
48sys_call_ptr_t sys_call_table[] __cacheline_aligned = { 48const sys_call_ptr_t sys_call_table[] __cacheline_aligned = {
49 /* 49 /*
50 * Smells like a compiler bug -- it doesn't work 50 * Smells like a compiler bug -- it doesn't work
51 * when the & below is removed. 51 * when the & below is removed.