]> granicus.if.org Git - strace/commitdiff
Remove initialization of big holes in syscallent.h files
authorDmitry V. Levin <ldv@altlinux.org>
Fri, 29 Apr 2016 21:31:08 +0000 (21:31 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Fri, 29 Apr 2016 21:51:00 +0000 (21:51 +0000)
There is no need to explicitly initialize big holes after conversion
of syscallent.h files to use designated initializers.  For architectures
that have some data at the end of syscallent.h this initialization of
big holes is no-op, for others it just inflates the table unnecessarily.

* linux/arc/syscallent.h: Remove initialization of arch specific block
at the end of table.
* linux/metag/syscallent.h: Likewise.
* linux/nios2/syscallent.h: Likewise.
* linux/or1k/syscallent.h: Likewise.
* linux/tile/syscallent.h: Likewise.
* linux/tile/syscallent1.h: Likewise.
* linux/arm/syscallent.h: Remove explicit initialization of a big hole
before socket subcalls.
* linux/i386/syscallent.h: Likewise.
* linux/m68k/syscallent.h: Likewise.
* linux/mips/syscallent-n32.h: Likewise.
* linux/powerpc/syscallent.h: Likewise.
* linux/powerpc64/syscallent.h: Likewise.
* linux/s390/syscallent.h: Likewise.
* linux/s390x/syscallent.h: Likewise.
* linux/sh/syscallent.h: Likewise.
* linux/sh64/syscallent.h: Likewise.
* linux/sparc/syscallent.h: Likewise.
* linux/sparc64/syscallent.h: Likewise.
* linux/mips/syscallent-compat.h: Remove explicit initialization
of big holes between different mips ABIs.
* linux/mips/syscallent-n64.h: Remove explicit initialization
of big holes before socket subcalls and between different mips ABIs.
* linux/mips/syscallent-o32.h: Likewise.

21 files changed:
linux/arc/syscallent.h
linux/arm/syscallent.h
linux/i386/syscallent.h
linux/m68k/syscallent.h
linux/metag/syscallent.h
linux/mips/syscallent-compat.h
linux/mips/syscallent-n32.h
linux/mips/syscallent-n64.h
linux/mips/syscallent-o32.h
linux/nios2/syscallent.h
linux/or1k/syscallent.h
linux/powerpc/syscallent.h
linux/powerpc64/syscallent.h
linux/s390/syscallent.h
linux/s390x/syscallent.h
linux/sh/syscallent.h
linux/sh64/syscallent.h
linux/sparc/syscallent.h
linux/sparc64/syscallent.h
linux/tile/syscallent.h
linux/tile/syscallent1.h

index 110000834126c9bb3322f14f99dfb3f824b6fc5e..c2db91a1a209ff2e54e47211b170c71771cd7965 100644 (file)
@@ -1,6 +1,6 @@
 #define sys_ARCH_mmap sys_mmap_pgoff
 #include "32/syscallent.h"
+/* [244 ... 259] are arch specific */
 [244] = { 3,   0,      SEN(printargs), "arc_cacheflush"},
 [245] = { 1,   0,      SEN(printargs), "arc_settls"    },
 [246] = { 0,   0,      SEN(printargs), "arc_gettls"    },
-[247 ... 259] = { },
index a94bedc7bb5dad564bf8bbf453927a0720527479..526055184e17c7e5446ee6136054fea095d12bf8 100644 (file)
 [389] = { 2,   0,              SEN(membarrier),                "membarrier",           },
 [390] = { 3,   TM,             SEN(mlock2),                    "mlock2"                },
 [391] = { 6,   TD,             SEN(copy_file_range),           "copy_file_range"       },
-[392 ... 399] = { },
 
 #ifdef __ARM_EABI__
 # define ARM_FIRST_SHUFFLED_SYSCALL 400
index f91fe1db1c0b7126a2a264e7dedc0e72e9a2b3f2..1bba2e7303a5ef8dbeb6110622e11c1d7971658d 100644 (file)
 [375] = { 2,   0,              SEN(membarrier),                "membarrier",           },
 [376] = { 3,   TM,             SEN(mlock2),                    "mlock2"                },
 [377] = { 6,   TD,             SEN(copy_file_range),           "copy_file_range"       },
-[378 ... 399] = { },
 
 #define SYS_socket_subcall     400
 #include "subcall.h"
index 23d507dd24d6f65ba06e9ff839183ac165e44ea0..a7652e3338b6c896bdbf361bea95709ba0936c1e 100644 (file)
 [374] = { 2,   0,              SEN(membarrier),                "membarrier",           },
 [375] = { 3,   TM,             SEN(mlock2),                    "mlock2"                },
 [376] = { 6,   TD,             SEN(copy_file_range),           "copy_file_range"       },
-[377 ... 399] = { },
 
 #define SYS_socket_subcall     400
 #include "subcall.h"
index b2d1e660cc6b8994d36d3120345afbec930267b5..82ad55bbede8a08f2270352fb569748c8e5a5546 100644 (file)
@@ -1,7 +1,6 @@
 #include "32/syscallent.h"
-[244] = { },
+/* [244 ... 259] are arch specific */
 [245] = { 2,   0,      SEN(printargs), "metag_setglobalbit"    },
 [246] = { 1,   0,      SEN(printargs), "metag_set_fpu_flags"   },
 [247] = { 1,   0,      SEN(printargs), "metag_set_tls"         },
 [248] = { 0,   NF,     SEN(printargs), "metag_get_tls"         },
-[249 ... 259] = { },
index 85bbff1f7b1e70f1f197a555166905ca7ec3aa8a..82a373b6a505855f25c9e7be1c818c316afa0f3e 100644 (file)
 [ 207] = { 0,  0,      SEN(printargs),         "svr4_areadv"   },
 [ 208] = { 0,  0,      SEN(printargs),         "svr4_awritev"  },
 
-[209 ... 999] = { }, /* end of SVR4 */
-
 [1000] = { 0,  0,      SEN(printargs),         "sysv_syscall"  }, /* start of SYSV */
 [1001] = { 0,  0,      SEN(printargs),         "sysv_exit"     },
 [1002] = { 0,  0,      SEN(printargs),         "sysv_fork"     },
 [1187] = { 0,  0,      SEN(printargs),         "sysv_pread"    },
 [1188] = { 0,  0,      SEN(printargs),         "sysv_pwrite"   },
 
-[1189 ... 1999] = { }, /* end of SYSV */
-
 [2000] = { 0,  0,      SEN(printargs),         "bsd43_syscall" }, /* start of BSD 4.3 */
 [2001] = { 0,  0,      SEN(printargs),         "bsd43_exit"    },
 [2002] = { 0,  0,      SEN(printargs),         "bsd43_fork"    },
 [2190] = { 0,  0,      SEN(printargs),         "bsd43_areadv"  },
 [2191] = { 0,  0,      SEN(printargs),         "bsd43_awritev" },
 
-[2192 ... 2999] = { }, /* end of BSD 4.3 */
-
 [3000] = { 0,  0,      SEN(printargs),         "posix_syscall" }, /* start of POSIX */
 [3001] = { 0,  0,      SEN(printargs),         "posix_exit"    },
 [3002] = { 0,  0,      SEN(printargs),         "posix_fork"    },
 [3266] = { 0,  0,      SEN(printargs),         "posix_sigprocmask"     },
 [3267] = { 0,  0,      SEN(printargs),         "posix_sigsuspend"      },
 [3268] = { 0,  0,      SEN(printargs),         "posix_sigaction"       },
-
-[3269 ... 3999] = { }, /* end of POSIX */
index 57d9fb18ceef1687f147c245f775f402fbfb7c5b..9084fda719600fe3a4b8b20f40be8649281b3b5b 100644 (file)
 [6322] = { 2,  0,              SEN(membarrier),                "membarrier",           },
 [6323] = { 3,  TM,             SEN(mlock2),                    "mlock2"                },
 [6324] = { 6,  TD,             SEN(copy_file_range),           "copy_file_range"       },
-[6325 ... 6399] = { },
 
 # define SYS_socket_subcall      6400
 # include "subcall.h"
index 170b6eee69c8d7315cc65388fc5efaed01ee178c..c1ecddd66b69774b5c624356edb659db9bcdd4db 100644 (file)
 [5318] = { 2,  0,              SEN(membarrier),                "membarrier",           },
 [5319] = { 3,  TM,             SEN(mlock2),                    "mlock2"                },
 [5320] = { 6,  TD,             SEN(copy_file_range),           "copy_file_range"       },
-[5321 ... 5399] = { },
 
 # define SYS_socket_subcall      5400
 # include "subcall.h"
 
-/* end of Linux N64 */ [SYS_socket_subcall + SYS_socket_nsubcalls + SYS_ipc_nsubcalls ... 5999] = { },
-
 #else
 
 # include "syscallent-n64-stub.h"
-/* end of Linux N64 */ [5400 ... 5999] = { },
 
 #endif
index 61870fa824fd19118119a662039fa598f8a4b739..f65be7022f74f4dc04838c5bdbc8d138f8b49712 100644 (file)
 [4358] = { 2,  0,              SEN(membarrier),                "membarrier",           },
 [4359] = { 3,  TM,             SEN(mlock2),                    "mlock2"                },
 [4360] = { 6,  TD,             SEN(copy_file_range),           "copy_file_range"       },
-[4361 ... 4399] = { },
 
 # define SYS_socket_subcall      4400
 # include "subcall.h"
 
-/* end of Linux o32 */ [SYS_socket_subcall + SYS_socket_nsubcalls + SYS_ipc_nsubcalls ... 4999] = { },
-
 #else
 
 # include "syscallent-o32-stub.h"
-/* end of Linux o32 */ [4400 ... 4999] = { },
 
 #endif
index 01efe3a2b0cb9eb0bc80d023fdc9a1a21d570867..301fd0e23ac2b833457767a554ec0dcc58f59b77 100644 (file)
@@ -1,4 +1,4 @@
 #define sys_ARCH_mmap sys_mmap_pgoff
 #include "32/syscallent.h"
+/* [244 ... 259] are arch specific */
 [244] = {4,    0,      SEN(cacheflush), "cacheflush"},
-[245 ... 259] = { },
index 351fe250506d619e464aef24698c102fd3607b8f..10af205efa3ab38548f961c2fa7e0f19e5a7d02d 100644 (file)
@@ -1,4 +1,4 @@
 #define sys_ARCH_mmap sys_mmap_pgoff
 #include "32/syscallent.h"
+/* [244 ... 259] are arch specific */
 [244] = { 3,   NF,     SEN(or1k_atomic),       "or1k_atomic"   },
-[245 ... 259] = { },
index 806f4d63a00bfc133f1b3238f9e924511022bd0c..d4c9402ce6f627d68d231a6a199fe594a9ab0a8d 100644 (file)
 [377] = { 3,   TI,             SEN(shmctl),                    "shmctl"                },
 [378] = { 3,   TM,             SEN(mlock2),                    "mlock2"                },
 [379] = { 6,   TD,             SEN(copy_file_range),           "copy_file_range"       },
-[380 ... 399] = { },
 
 #define SYS_socket_subcall     400
 #include "subcall.h"
index 1b9571b3bfd526a8c7ae1ba834235d76c9046656..1239a6f2ae40bfb97ab87d9dc2481ab49a6f3b12 100644 (file)
 [377] = { 3,   TI,             SEN(shmctl),                    "shmctl"                },
 [378] = { 3,   TM,             SEN(mlock2),                    "mlock2"                },
 [379] = { 6,   TD,             SEN(copy_file_range),           "copy_file_range"       },
-[380 ... 399] = { },
 
 #define SYS_socket_subcall     400
 #include "subcall.h"
index 68ae7cbfb774a6ae43d4166e7171cab2f47d7dce..92b5c9c68ce89c90c3dc5572fd2a97a5132748c2 100644 (file)
 [373] = { 2,   TN,             SEN(shutdown),                  "shutdown"              },
 [374] = { 3,   TM,             SEN(mlock2),                    "mlock2"                },
 [375] = { 6,   TD,             SEN(copy_file_range),           "copy_file_range"       },
-[376 ... 399] = { },
 
 #define SYS_socket_subcall     400
 #include "subcall.h"
index 00ce24e3af2d3228a5ab0166a4b30e26a88c92a3..fcbe69dd5dab822004ed09f1b85cef7ba2f44964 100644 (file)
 [373] = { 2,   TN,             SEN(shutdown),                  "shutdown"              },
 [374] = { 3,   TM,             SEN(mlock2),                    "mlock2"                },
 [375] = { 6,   TD,             SEN(copy_file_range),           "copy_file_range"       },
-[376 ... 399] = { },
 
 #define SYS_socket_subcall     400
 #include "subcall.h"
index 95b1b59929fe1df8ca5c5fdb233b7e4f363acbfb..d2b462d55e16caccb6a6651d05e7dd2b808f6440 100644 (file)
 [366] = { 6,   0,              SEN(process_vm_writev),         "process_vm_writev"     },
 [367] = { 5,   0,              SEN(kcmp),                      "kcmp"                  },
 [368] = { 3,   TD,             SEN(finit_module),              "finit_module"          },
-[369 ... 399] = { },
+
 #define SYS_socket_subcall     400
 #include "subcall.h"
index 0f9ad1a53a70370e2f623ad375c1a3546af9e8b6..3504881450d38c7ffe01dbb5c0081790b3d7ba2e 100644 (file)
 [377] = { 6,   0,              SEN(process_vm_writev),         "process_vm_writev"     },
 [378] = { 5,   0,              SEN(kcmp),                      "kcmp"                  },
 [379] = { 3,   TD,             SEN(finit_module),              "finit_module"          },
-[380 ... 399] = { },
+
 #define SYS_socket_subcall     400
 #include "subcall.h"
index 4404b95fa147acd0dfeedcdd1a6ab38fee1f50f1..89b22247e4f7283e8daf84fe5bcf7a74d91eb365 100644 (file)
 [355] = { 5,   TN,             SEN(setsockopt),                "setsockopt"            },
 [356] = { 3,   TM,             SEN(mlock2),                    "mlock2"                },
 [357] = { 6,   TD,             SEN(copy_file_range),           "copy_file_range"       },
-[358 ... 399] = { },
 
 #define SYS_socket_subcall     400
 #include "subcall.h"
index 29532153c259ebaa2f4292d6af0c4c9cc88d1583..23de9c9b7ebad2ebefafe31ad5bab48c75c8878f 100644 (file)
 [355] = { 5,   TN,             SEN(setsockopt),                "setsockopt"            },
 [356] = { 3,   TM,             SEN(mlock2),                    "mlock2"                },
 [357] = { 6,   TD,             SEN(copy_file_range),           "copy_file_range"       },
-[358 ... 399] = { },
 
 #define SYS_socket_subcall     400
 #include "subcall.h"
index ee235f3440499deac05ce31493819f6e32155b4f..eb518fb9e198697a67120b3f4b82b2661219b541 100644 (file)
@@ -1,4 +1,4 @@
 #include "64/syscallent.h"
+/* [244 ... 259] are arch specific */
 [244] = { 1,   0,      SEN(printargs), "cmpxchg_badaddr"       },
 [245] = { 3,   0,      SEN(printargs), "cacheflush"            },
-[246 ... 259] = { },
index 28dbab4d65e2e6ad1e176fff6999670cf69cf406..b305f067f78dbc6619a1128fb32a2590009f3135 100644 (file)
@@ -1,6 +1,6 @@
 #define sys_ARCH_mmap sys_mmap_4koff
 #define ARCH_WANT_SYNC_FILE_RANGE2 1
 #include "32/syscallent.h"
+/* [244 ... 259] are arch specific */
 [244] = { 1,   0,      SEN(printargs), "cmpxchg_badaddr"       },
 [245] = { 3,   0,      SEN(printargs), "cacheflush"            },
-[246 ... 259] = { },