]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
parisc: Drop alloc_hugepages and free_hugepages syscalls
authorHelge Deller <deller@gmx.de>
Sun, 20 Mar 2016 11:20:31 +0000 (12:20 +0100)
committerHelge Deller <deller@gmx.de>
Wed, 23 Mar 2016 14:42:18 +0000 (15:42 +0100)
The system calls alloc_hugepages() and free_hugepages() were introduced
in Linux 2.5.36 and removed again in 2.5.54. They were never implemented
on parisc, so let's drop them now.

Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/include/uapi/asm/unistd.h
arch/parisc/kernel/sys_parisc.c
arch/parisc/kernel/syscall_table.S

index b75039f9211645becb970599deeaafe257b86001..fdb3c4e90d4cd435d5f4d28180e5d6668c73ca94 100644 (file)
 #define __NR_io_getevents       (__NR_Linux + 217)
 #define __NR_io_submit          (__NR_Linux + 218)
 #define __NR_io_cancel          (__NR_Linux + 219)
-#define __NR_alloc_hugepages    (__NR_Linux + 220)
-#define __NR_free_hugepages     (__NR_Linux + 221)
+#define __NR_alloc_hugepages    (__NR_Linux + 220) /* not used */
+#define __NR_free_hugepages     (__NR_Linux + 221) /* not used */
 #define __NR_exit_group         (__NR_Linux + 222)
 #define __NR_lookup_dcookie     (__NR_Linux + 223)
 #define __NR_epoll_create       (__NR_Linux + 224)
index 5aba01ac457ffc5d4823cf09c071f02f00a1d015..0a393a04e89182cba498fa64774dd32177860eb7 100644 (file)
@@ -368,16 +368,6 @@ asmlinkage long parisc_fallocate(int fd, int mode, u32 offhi, u32 offlo,
                              ((u64)lenhi << 32) | lenlo);
 }
 
-asmlinkage unsigned long sys_alloc_hugepages(int key, unsigned long addr, unsigned long len, int prot, int flag)
-{
-       return -ENOMEM;
-}
-
-asmlinkage int sys_free_hugepages(unsigned long addr)
-{
-       return -EINVAL;
-}
-
 long parisc_personality(unsigned long personality)
 {
        long err;
index 585d50fc75c0f9776cf2bca74651387790ab6c22..c2c90931ffc110d5640606dfd604523c5dfca9ca 100644 (file)
        ENTRY_COMP(io_getevents)
        ENTRY_COMP(io_submit)
        ENTRY_SAME(io_cancel)
-       ENTRY_SAME(alloc_hugepages)     /* 220 */
-       ENTRY_SAME(free_hugepages)
+       ENTRY_SAME(ni_syscall)          /* 220: was alloc_hugepages */
+       ENTRY_SAME(ni_syscall)          /* was free_hugepages */
        ENTRY_SAME(exit_group)
        ENTRY_COMP(lookup_dcookie)
        ENTRY_SAME(epoll_create)