From 4996b3a352a5853114e2d0426f3e0fade4e90b3d Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Tue, 7 May 2013 01:25:11 +0000 Subject: [PATCH] readahead: fix number of syscall arguments The number of readahead arguments depends on architecture and personality. For 64bit and ilp32 it equals to 3, for unaligned 32bit it equals to 4, and for aligned 32bit it equals to 5. * linux/aarch64/syscallent1.h: Set number of readahead arguments to 3. * linux/alpha/syscallent.h: Likewise. * linux/ia64/syscallent.h: Likewise. * linux/s390x/syscallent.h: Likewise. * linux/sh64/syscallent.h: Likewise. * linux/x32/syscallent.h: Likewise. * linux/x86_64/syscallent.h: Likewise. * linux/or1k/syscallent.h: Set number of readahead arguments to 4. * linux/sh/syscallent.h: Likewise. * linux/tile/syscallent.h: Likewise. * linux/xtensa/syscallent.h: Set number of readahead arguments to 5. --- linux/aarch64/syscallent1.h | 2 +- linux/alpha/syscallent.h | 2 +- linux/ia64/syscallent.h | 2 +- linux/or1k/syscallent.h | 2 +- linux/s390x/syscallent.h | 2 +- linux/sh/syscallent.h | 2 +- linux/sh64/syscallent.h | 2 +- linux/tile/syscallent.h | 2 +- linux/x32/syscallent.h | 2 +- linux/x86_64/syscallent.h | 2 +- linux/xtensa/syscallent.h | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/linux/aarch64/syscallent1.h b/linux/aarch64/syscallent1.h index 39774d51..a8d3a438 100644 --- a/linux/aarch64/syscallent1.h +++ b/linux/aarch64/syscallent1.h @@ -211,7 +211,7 @@ { 2, TN, sys_shutdown, "shutdown" }, /* 210 */ { 3, TN, sys_sendmsg, "sendmsg" }, /* 211 */ { 3, TN, sys_recvmsg, "recvmsg" }, /* 212 */ - { 4, TD, sys_readahead, "readahead" }, /* 213 */ + { 3, TD, sys_readahead, "readahead" }, /* 213 */ { 1, TM, sys_brk, "brk" }, /* 214 */ { 2, TM, sys_munmap, "munmap" }, /* 215 */ { 5, TM, sys_mremap, "mremap" }, /* 216 */ diff --git a/linux/alpha/syscallent.h b/linux/alpha/syscallent.h index fc479858..27c513d2 100644 --- a/linux/alpha/syscallent.h +++ b/linux/alpha/syscallent.h @@ -405,7 +405,7 @@ { 3, 0, printargs, "pciconfig_iobase" }, /* 376 */ { 3, TD, sys_getdents64, "getdents64" }, /* 377 */ { 0, 0, sys_gettid, "gettid" }, /* 378 */ - { 4, TD, sys_readahead, "readahead" }, /* 379 */ + { 3, TD, sys_readahead, "readahead" }, /* 379 */ { 5, 0, NULL, NULL }, /* 380 */ { 2, TS, sys_kill, "tkill" }, /* 381 */ { 5, TF, sys_setxattr, "setxattr" }, /* 382 */ diff --git a/linux/ia64/syscallent.h b/linux/ia64/syscallent.h index b2824fcc..60e75c49 100644 --- a/linux/ia64/syscallent.h +++ b/linux/ia64/syscallent.h @@ -1007,7 +1007,7 @@ { 6, TP, sys_clone, "clone2" }, /* 1213 */ { 3, TD, sys_getdents64, "getdents64" }, /* 1214 */ { 2, 0, printargs, "getunwind" }, /* 1215 */ - { 4, TD, sys_readahead, "readahead" }, /* 1216 */ + { 3, TD, sys_readahead, "readahead" }, /* 1216 */ { 5, TF, sys_setxattr, "setxattr" }, /* 1217 */ { 5, TF, sys_setxattr, "lsetxattr" }, /* 1218 */ { 5, TD, sys_fsetxattr, "fsetxattr" }, /* 1219 */ diff --git a/linux/or1k/syscallent.h b/linux/or1k/syscallent.h index fd31e7d3..4b59f750 100644 --- a/linux/or1k/syscallent.h +++ b/linux/or1k/syscallent.h @@ -211,7 +211,7 @@ { 2, TN, sys_shutdown, "shutdown" }, /* 210 */ { 3, TN, sys_sendmsg, "sendmsg" }, /* 211 */ { 3, TN, sys_recvmsg, "recvmsg" }, /* 212 */ - { 5, TD, sys_readahead, "readahead" }, /* 213 */ + { 4, TD, sys_readahead, "readahead" }, /* 213 */ { 1, TM, sys_brk, "brk" }, /* 214 */ { 2, TM, sys_munmap, "munmap" }, /* 215 */ { 5, TM, sys_mremap, "mremap" }, /* 216 */ diff --git a/linux/s390x/syscallent.h b/linux/s390x/syscallent.h index 4f796683..ef902e6e 100644 --- a/linux/s390x/syscallent.h +++ b/linux/s390x/syscallent.h @@ -249,7 +249,7 @@ { 3, TM, sys_madvise, "madvise" }, /* 219 */ { 3, TD, sys_getdents64, "getdents64" }, /* 220 */ { MA, 0, NULL, NULL }, /* 221 */ - { 4, TD, sys_readahead, "readahead" }, /* 222 */ + { 3, TD, sys_readahead, "readahead" }, /* 222 */ { 4, TD|TN, sys_sendfile64, "sendfile64" }, /* 223 */ { 5, TF, sys_setxattr, "setxattr" }, /* 224 */ { 5, TF, sys_setxattr, "lsetxattr" }, /* 225 */ diff --git a/linux/sh/syscallent.h b/linux/sh/syscallent.h index 4bc9640e..bacd5d59 100644 --- a/linux/sh/syscallent.h +++ b/linux/sh/syscallent.h @@ -255,7 +255,7 @@ { 4, 0, NULL, NULL }, /* 222 */ { 4, 0, NULL, NULL }, /* 223 */ { 4, 0, sys_gettid, "gettid" }, /* 224 */ - { 5, TD, sys_readahead, "readahead" }, /* 225 */ + { 4, TD, sys_readahead, "readahead" }, /* 225 */ { 5, TF, sys_setxattr, "setxattr" }, /* 226 */ { 5, TF, sys_setxattr, "lsetxattr" }, /* 227 */ { 5, TD, sys_fsetxattr, "fsetxattr" }, /* 228 */ diff --git a/linux/sh64/syscallent.h b/linux/sh64/syscallent.h index df98fab0..5ac9d99e 100644 --- a/linux/sh64/syscallent.h +++ b/linux/sh64/syscallent.h @@ -279,7 +279,7 @@ { 4, 0, NULL, NULL }, /* 250 */ { 4, 0, NULL, NULL }, /* 251 */ { 4, 0, sys_gettid, "gettid" }, /* 252 */ - { 5, TD, sys_readahead, "readahead" }, /* 253 */ + { 3, TD, sys_readahead, "readahead" }, /* 253 */ { 5, TF, sys_setxattr, "setxattr" }, /* 254 */ { 5, TF, sys_setxattr, "lsetxattr" }, /* 255 */ { 5, TD, sys_fsetxattr, "fsetxattr" }, /* 256 */ diff --git a/linux/tile/syscallent.h b/linux/tile/syscallent.h index eb5023b7..81aeb86b 100644 --- a/linux/tile/syscallent.h +++ b/linux/tile/syscallent.h @@ -211,7 +211,7 @@ { 2, TN, sys_shutdown, "shutdown" }, /* 210 */ { 3, TN, sys_sendmsg, "sendmsg" }, /* 211 */ { 3, TN, sys_recvmsg, "recvmsg" }, /* 212 */ - { 4, TD, sys_readahead, "readahead" }, /* 213 */ + { 3, TD, sys_readahead, "readahead" }, /* 213 */ { 1, TM, sys_brk, "brk" }, /* 214 */ { 2, TM, sys_munmap, "munmap" }, /* 215 */ { 5, TM, sys_mremap, "mremap" }, /* 216 */ diff --git a/linux/x32/syscallent.h b/linux/x32/syscallent.h index 0098e764..6a840610 100644 --- a/linux/x32/syscallent.h +++ b/linux/x32/syscallent.h @@ -185,7 +185,7 @@ { 3, 0, sys_tuxcall, "tuxcall" }, /* 184 */ { 3, 0, sys_security, "security" }, /* 185 */ { 0, 0, sys_gettid, "gettid" }, /* 186 */ - { 4, TD, sys_readahead, "readahead" }, /* 187 */ + { 3, TD, sys_readahead, "readahead" }, /* 187 */ { 5, TF, sys_setxattr, "setxattr" }, /* 188 */ { 5, TF, sys_setxattr, "lsetxattr" }, /* 189 */ { 5, TD, sys_fsetxattr, "fsetxattr" }, /* 190 */ diff --git a/linux/x86_64/syscallent.h b/linux/x86_64/syscallent.h index e56bd8e1..d5437cb1 100644 --- a/linux/x86_64/syscallent.h +++ b/linux/x86_64/syscallent.h @@ -185,7 +185,7 @@ { 3, 0, sys_tuxcall, "tuxcall" }, /* 184 */ { 3, 0, sys_security, "security" }, /* 185 */ { 0, 0, sys_gettid, "gettid" }, /* 186 */ - { 4, TD, sys_readahead, "readahead" }, /* 187 */ + { 3, TD, sys_readahead, "readahead" }, /* 187 */ { 5, TF, sys_setxattr, "setxattr" }, /* 188 */ { 5, TF, sys_setxattr, "lsetxattr" }, /* 189 */ { 5, TD, sys_fsetxattr, "fsetxattr" }, /* 190 */ diff --git a/linux/xtensa/syscallent.h b/linux/xtensa/syscallent.h index e87764e2..acaccbd4 100644 --- a/linux/xtensa/syscallent.h +++ b/linux/xtensa/syscallent.h @@ -250,7 +250,7 @@ { 5, 0, printargs, "request_key" }, /* 257 */ { 5, 0, printargs, "keyctl" }, /* 258 */ [259] = { }, - { 4, TD, sys_readahead, "readahead" }, /* 260 */ + { 5, TD, sys_readahead, "readahead" }, /* 260 */ { 5, TM, sys_remap_file_pages, "remap_file_pages"}, /* 261 */ { 5, TM, sys_migrate_pages, "migrate_pages" }, /* 262 */ { 0, TM, sys_mbind, "mbind" }, /* 263 */ -- 2.40.0