UML - compile fixes
PATCH 5/10 UML - compile fixes
This fixes some warnings, and changes the system call table so that it will compile in -linus, where the vperf system calls are not yet merged.
arch/um/include/sysdep-i386/ptrace_user.h +1 -0
@@ -6,6 +6,7 @@#ifndef __SYSDEP_I386_PTRACE_USER_H__#define __SYSDEP_I386_PTRACE_USER_H__ +#include <linux/ptrace.h> #include <asm/ptrace.h> #define PT_OFFSET (r) ((r) * sizeof(long))
arch/um/include/sysdep-i386/syscalls.h +23 -4
@@ -15,6 +15,11 @@extern syscall_handler_t sys_rt_sigaction;extern syscall_handler_t old_mmap_i386; +extern syscall_handler_t sys_vperfctr_open; +extern syscall_handler_t sys_vperfctr_control; +extern syscall_handler_t sys_vperfctr_unlink; +extern syscall_handler_t sys_vperfctr_iresume; +extern syscall_handler_t sys_vperfctr_read;#define EXECUTE_SYSCALL (syscall, regs) \ ((long (*)(struct syscall_args)) (*sys_call_table[syscall]))(SYSCALL_ARGS(®s->regs))
@@ -105,11 +110,25 @@ [ 251 ] = (syscall_handler_t *) sys_ni_syscall, \ [ __NR_remap_file_pages ] = (syscall_handler_t *) sys_remap_file_pages, \ [ __NR_utimes ] = (syscall_handler_t *) sys_utimes, \ - [ __NR_vserver ] = (syscall_handler_t *) sys_ni_syscall, + [ __NR_vserver ] = (syscall_handler_t *) sys_ni_syscall, \ + [ __NR_sys_kexec_load ] = (syscall_handler_t *) sys_kexec_load, \ + [ __NR_add_key ] = (syscall_handler_t *) sys_add_key, \ + [ __NR_request_key ] = (syscall_handler_t *) sys_request_key, \ + [ __NR_keyctl ] = (syscall_handler_t *) sys_keyctl, \ + VPERF + +#ifdef __NR_vperfctr_open +#define VPERF \ + [ __NR_vperfctr_open ] = (syscall_handler_t *) sys_vperfctr_open, \ + [ __NR_vperfctr_control ] = (syscall_handler_t *) sys_vperfctr_control, \ + [ __NR_vperfctr_unlink ] = (syscall_handler_t *) sys_vperfctr_unlink, \ + [ __NR_vperfctr_iresume ] = (syscall_handler_t *) sys_vperfctr_iresume, \ + [ __NR_vperfctr_read ] = (syscall_handler_t *) sys_vperfctr_read, +#else +#define VPERF +#endif -/* 222 doesn't yet have a name in include/asm-i386/unistd.h */ - -#define LAST_ARCH_SYSCALL __NR_vserver +#define LAST_ARCH_SYSCALL __NR_vperfctr_read/* * Overrides for Emacs so that we follow Linus's tabbing style.
arch/um/kernel/sys_call_table.c +1 -29
@@ -20,11 +20,7 @@#define NFSSERVCTL sys_ni_syscall#endif -#if 0 -#define LAST_GENERIC_SYSCALL __NR_vperfctr_read -#else -#define LAST_GENERIC_SYSCALL __NR_keyctl -#endif +#define LAST_GENERIC_SYSCALL __NR_waitid#if LAST_GENERIC_SYSCALL >LAST_ARCH_SYSCALL #define LAST_SYSCALL LAST_GENERIC_SYSCALL
@@ -56,17 +52,8 @@extern syscall_handler_t sys_mbind;extern syscall_handler_t sys_get_mempolicy;extern syscall_handler_t sys_set_mempolicy; -extern syscall_handler_t sys_sys_kexec_load;extern syscall_handler_t sys_sys_setaltroot; -#if 0 -extern syscall_handler_t sys_vperfctr_open; -extern syscall_handler_t sys_vperfctr_control; -extern syscall_handler_t sys_vperfctr_unlink; -extern syscall_handler_t sys_vperfctr_iresume; -extern syscall_handler_t sys_vperfctr_read; -#endif -syscall_handler_t *sys_call_table[] = { [ __NR_restart_syscall ] = (syscall_handler_t *) sys_restart_syscall, [ __NR_exit ] = (syscall_handler_t *) sys_exit,
@@ -280,25 +267,10 @@ [ __NR_mq_timedreceive ] = (syscall_handler_t *) sys_mq_timedreceive, [ __NR_mq_notify ] = (syscall_handler_t *) sys_mq_notify, [ __NR_mq_getsetattr ] = (syscall_handler_t *) sys_mq_getsetattr, -#if 0 - [ __NR_sys_kexec_load ] = (syscall_handler_t *) sys_kexec_load, -#endif - [ __NR_sys_kexec_load ] = (syscall_handler_t *) sys_ni_syscall, [ __NR_waitid ] = (syscall_handler_t *) sys_waitid, #if 0 [ __NR_sys_setaltroot ] = (syscall_handler_t *) sys_sys_setaltroot, #endif - [ __NR_add_key ] = (syscall_handler_t *) sys_add_key, - [ __NR_request_key ] = (syscall_handler_t *) sys_request_key, - [ __NR_keyctl ] = (syscall_handler_t *) sys_keyctl, - /* These syscalls are still in -mm only*/ -#if 0 - [ __NR_vperfctr_open ] = (syscall_handler_t *) sys_vperfctr_open, - [ __NR_vperfctr_control ] = (syscall_handler_t *) sys_vperfctr_control, - [ __NR_vperfctr_unlink ] = (syscall_handler_t *) sys_vperfctr_unlink, - [ __NR_vperfctr_iresume ] = (syscall_handler_t *) sys_vperfctr_iresume, - [ __NR_vperfctr_read ] = (syscall_handler_t *) sys_vperfctr_read, -#endif ARCH_SYSCALLS [ LAST_SYSCALL + 1 ... NR_syscalls ] =
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 9 lines · Andrew Morton
Quoted 8 lines · Blaisorblade
Quoted 7 lines · Andrew Morton
Quoted 3 lines · Jeff Dike
This fixes some warnings, and changes the system call table so that it will compile in -linus, where the vperf system calls are not yet merged.
methinks we already fixed this.
Quoted 8 lines
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Signed-off-by Jeff Dike <[email protected]>No, incorrect, this is not applied, current bitkeeper snapshots don't compile for this reason too.
Jeff, I think you should resend the patch anyway.
I don't know what this is about.
Yes, it was from some days ago... so I guess either I or Jeff will have to resend it...
Andrew, when do you plan to release 2.6.11?
Jeff, you should send your queued fixes, and also resend this one (indeed, it was not applied). If I find the time I'll select the interesting ones and send them (with a mail to request their prompt merge).
Quoted 3 lines
The only UML patch I have pending is
uml-kconfig_arch-little-cleanup-to-merge-before-2611.patch
Ok, please merge it ASAP (as the title suggests).
Quoted 1 line
From: [email protected]
Signature · 3 lines
Paolo Giarrusso, aka Blaisorblade Linux registered user n. 292729 http://www.user-mode-linux.org/~blaisorblade