Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

s390/syscalls: Remove system call table pointer from thread_struct

With compat support gone there is only one system call table
left. Therefore remove the sys_call_table pointer from
thread_struct and use the sys_call_table directly.

Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>

+1 -3
-1
arch/s390/include/asm/elf.h
··· 217 217 do { \ 218 218 set_personality(PER_LINUX | \ 219 219 (current->personality & (~PER_MASK))); \ 220 - current->thread.sys_call_table = sys_call_table; \ 221 220 } while (0) 222 221 223 222 /*
-1
arch/s390/include/asm/processor.h
··· 175 175 unsigned long system_timer; /* task cputime in kernel space */ 176 176 unsigned long hardirq_timer; /* task cputime in hardirq context */ 177 177 unsigned long softirq_timer; /* task cputime in softirq context */ 178 - const sys_call_ptr_t *sys_call_table; /* system call table address */ 179 178 union teid gmap_teid; /* address and flags of last gmap fault */ 180 179 unsigned int gmap_int_code; /* int code of last gmap fault */ 181 180 int ufpu_flags; /* user fpu flags */
+1 -1
arch/s390/kernel/syscall.c
··· 122 122 goto out; 123 123 regs->gprs[2] = -ENOSYS; 124 124 if (likely(nr < NR_syscalls)) 125 - regs->gprs[2] = current->thread.sys_call_table[nr](regs); 125 + regs->gprs[2] = sys_call_table[nr](regs); 126 126 out: 127 127 syscall_exit_to_user_mode(regs); 128 128 }