diff options
| author | Jens Axboe <jens.axboe@oracle.com> | 2010-05-21 15:27:26 -0400 |
|---|---|---|
| committer | Jens Axboe <jens.axboe@oracle.com> | 2010-05-21 15:27:26 -0400 |
| commit | ee9a3607fb03e804ddf624544105f4e34260c380 (patch) | |
| tree | ce41b6e0fa10982a306f6c142a92dbf3c9961284 /arch/um/kernel | |
| parent | b492e95be0ae672922f4734acf3f5d35c30be948 (diff) | |
| parent | d515e86e639890b33a09390d062b0831664f04a2 (diff) | |
Merge branch 'master' into for-2.6.35
Conflicts:
fs/ext3/fsync.c
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'arch/um/kernel')
| -rw-r--r-- | arch/um/kernel/skas/syscall.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/um/kernel/skas/syscall.c b/arch/um/kernel/skas/syscall.c index 4e3b820bd2be..f5173e1ec3ac 100644 --- a/arch/um/kernel/skas/syscall.c +++ b/arch/um/kernel/skas/syscall.c | |||
| @@ -10,7 +10,7 @@ | |||
| 10 | #include "sysdep/syscalls.h" | 10 | #include "sysdep/syscalls.h" |
| 11 | 11 | ||
| 12 | extern int syscall_table_size; | 12 | extern int syscall_table_size; |
| 13 | #define NR_syscalls (syscall_table_size / sizeof(void *)) | 13 | #define NR_SYSCALLS (syscall_table_size / sizeof(void *)) |
| 14 | 14 | ||
| 15 | void handle_syscall(struct uml_pt_regs *r) | 15 | void handle_syscall(struct uml_pt_regs *r) |
| 16 | { | 16 | { |
| @@ -30,7 +30,7 @@ void handle_syscall(struct uml_pt_regs *r) | |||
| 30 | * in case it's a compiler bug. | 30 | * in case it's a compiler bug. |
| 31 | */ | 31 | */ |
| 32 | syscall = UPT_SYSCALL_NR(r); | 32 | syscall = UPT_SYSCALL_NR(r); |
| 33 | if ((syscall >= NR_syscalls) || (syscall < 0)) | 33 | if ((syscall >= NR_SYSCALLS) || (syscall < 0)) |
| 34 | result = -ENOSYS; | 34 | result = -ENOSYS; |
| 35 | else result = EXECUTE_SYSCALL(syscall, regs); | 35 | else result = EXECUTE_SYSCALL(syscall, regs); |
| 36 | 36 | ||
