VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   55 Tags
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200   1) #!/bin/sh
b24413180f560 (Greg Kroah-Hartman 2017-11-01 15:07:57 +0100   2) # SPDX-License-Identifier: GPL-2.0
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200   3) #
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200   4) # Check if current architecture are missing any function calls compared
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200   5) # to i386.
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200   6) # i386 define a number of legacy system calls that are i386 specific
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200   7) # and listed below so they are ignored.
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200   8) #
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200   9) # Usage:
6e5f6856427ab (Geert Uytterhoeven 2010-08-25 12:22:40 +0200  10) # checksyscalls.sh gcc gcc-options
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200  11) #
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200  12) 
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200  13) ignore_list() {
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200  14) cat << EOF
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200  15) #include <asm/types.h>
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200  16) #include <asm/unistd.h>
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200  17) 
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  18) /* *at */
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  19) #define __IGNORE_open		/* openat */
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  20) #define __IGNORE_link		/* linkat */
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  21) #define __IGNORE_unlink		/* unlinkat */
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  22) #define __IGNORE_mknod		/* mknodat */
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  23) #define __IGNORE_chmod		/* fchmodat */
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  24) #define __IGNORE_chown		/* fchownat */
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  25) #define __IGNORE_mkdir		/* mkdirat */
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  26) #define __IGNORE_rmdir		/* unlinkat */
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  27) #define __IGNORE_lchown		/* fchownat */
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  28) #define __IGNORE_access		/* faccessat */
68b7752462aba (James Hogan        2014-04-23 11:08:06 +0100  29) #define __IGNORE_rename		/* renameat2 */
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  30) #define __IGNORE_readlink	/* readlinkat */
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  31) #define __IGNORE_symlink	/* symlinkat */
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  32) #define __IGNORE_utimes		/* futimesat */
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  33) #define __IGNORE_stat		/* fstatat */
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  34) #define __IGNORE_lstat		/* fstatat */
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  35) #define __IGNORE_stat64		/* fstatat64 */
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  36) #define __IGNORE_lstat64	/* fstatat64 */
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  37) 
80d7da1cac62f (Yury Norov         2018-05-16 11:18:50 +0300  38) #ifndef __ARCH_WANT_SET_GET_RLIMIT
80d7da1cac62f (Yury Norov         2018-05-16 11:18:50 +0300  39) #define __IGNORE_getrlimit	/* getrlimit */
80d7da1cac62f (Yury Norov         2018-05-16 11:18:50 +0300  40) #define __IGNORE_setrlimit	/* setrlimit */
80d7da1cac62f (Yury Norov         2018-05-16 11:18:50 +0300  41) #endif
80d7da1cac62f (Yury Norov         2018-05-16 11:18:50 +0300  42) 
7bb7f2ac24a02 (Mike Rapoport      2021-07-07 18:08:11 -0700  43) #ifndef __ARCH_WANT_MEMFD_SECRET
7bb7f2ac24a02 (Mike Rapoport      2021-07-07 18:08:11 -0700  44) #define __IGNORE_memfd_secret
7bb7f2ac24a02 (Mike Rapoport      2021-07-07 18:08:11 -0700  45) #endif
7bb7f2ac24a02 (Mike Rapoport      2021-07-07 18:08:11 -0700  46) 
68b7752462aba (James Hogan        2014-04-23 11:08:06 +0100  47) /* Missing flags argument */
68b7752462aba (James Hogan        2014-04-23 11:08:06 +0100  48) #define __IGNORE_renameat	/* renameat2 */
68b7752462aba (James Hogan        2014-04-23 11:08:06 +0100  49) 
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  50) /* CLOEXEC flag */
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  51) #define __IGNORE_pipe		/* pipe2 */
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  52) #define __IGNORE_dup2		/* dup3 */
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  53) #define __IGNORE_epoll_create	/* epoll_create1 */
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  54) #define __IGNORE_inotify_init	/* inotify_init1 */
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  55) #define __IGNORE_eventfd	/* eventfd2 */
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  56) #define __IGNORE_signalfd	/* signalfd4 */
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  57) 
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  58) /* MMU */
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  59) #ifndef CONFIG_MMU
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  60) #define __IGNORE_madvise
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  61) #define __IGNORE_mbind
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  62) #define __IGNORE_mincore
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  63) #define __IGNORE_mlock
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  64) #define __IGNORE_mlockall
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  65) #define __IGNORE_munlock
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  66) #define __IGNORE_munlockall
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  67) #define __IGNORE_mprotect
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  68) #define __IGNORE_msync
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  69) #define __IGNORE_migrate_pages
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  70) #define __IGNORE_move_pages
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  71) #define __IGNORE_remap_file_pages
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  72) #define __IGNORE_get_mempolicy
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  73) #define __IGNORE_set_mempolicy
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  74) #define __IGNORE_swapoff
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  75) #define __IGNORE_swapon
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  76) #endif
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  77) 
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200  78) /* System calls for 32-bit kernels only */
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200  79) #if BITS_PER_LONG == 64
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200  80) #define __IGNORE_sendfile64
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200  81) #define __IGNORE_ftruncate64
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200  82) #define __IGNORE_truncate64
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200  83) #define __IGNORE_stat64
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200  84) #define __IGNORE_lstat64
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200  85) #define __IGNORE_fcntl64
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200  86) #define __IGNORE_fadvise64_64
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200  87) #define __IGNORE_fstatfs64
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200  88) #define __IGNORE_statfs64
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  89) #define __IGNORE_llseek
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000  90) #define __IGNORE_mmap2
48166e6ea47d2 (Arnd Bergmann      2019-01-10 12:45:11 +0100  91) #define __IGNORE_clock_gettime64
48166e6ea47d2 (Arnd Bergmann      2019-01-10 12:45:11 +0100  92) #define __IGNORE_clock_settime64
48166e6ea47d2 (Arnd Bergmann      2019-01-10 12:45:11 +0100  93) #define __IGNORE_clock_adjtime64
48166e6ea47d2 (Arnd Bergmann      2019-01-10 12:45:11 +0100  94) #define __IGNORE_clock_getres_time64
48166e6ea47d2 (Arnd Bergmann      2019-01-10 12:45:11 +0100  95) #define __IGNORE_clock_nanosleep_time64
48166e6ea47d2 (Arnd Bergmann      2019-01-10 12:45:11 +0100  96) #define __IGNORE_timer_gettime64
48166e6ea47d2 (Arnd Bergmann      2019-01-10 12:45:11 +0100  97) #define __IGNORE_timer_settime64
48166e6ea47d2 (Arnd Bergmann      2019-01-10 12:45:11 +0100  98) #define __IGNORE_timerfd_gettime64
48166e6ea47d2 (Arnd Bergmann      2019-01-10 12:45:11 +0100  99) #define __IGNORE_timerfd_settime64
48166e6ea47d2 (Arnd Bergmann      2019-01-10 12:45:11 +0100 100) #define __IGNORE_utimensat_time64
48166e6ea47d2 (Arnd Bergmann      2019-01-10 12:45:11 +0100 101) #define __IGNORE_pselect6_time64
48166e6ea47d2 (Arnd Bergmann      2019-01-10 12:45:11 +0100 102) #define __IGNORE_ppoll_time64
48166e6ea47d2 (Arnd Bergmann      2019-01-10 12:45:11 +0100 103) #define __IGNORE_io_pgetevents_time64
48166e6ea47d2 (Arnd Bergmann      2019-01-10 12:45:11 +0100 104) #define __IGNORE_recvmmsg_time64
48166e6ea47d2 (Arnd Bergmann      2019-01-10 12:45:11 +0100 105) #define __IGNORE_mq_timedsend_time64
48166e6ea47d2 (Arnd Bergmann      2019-01-10 12:45:11 +0100 106) #define __IGNORE_mq_timedreceive_time64
48166e6ea47d2 (Arnd Bergmann      2019-01-10 12:45:11 +0100 107) #define __IGNORE_semtimedop_time64
48166e6ea47d2 (Arnd Bergmann      2019-01-10 12:45:11 +0100 108) #define __IGNORE_rt_sigtimedwait_time64
48166e6ea47d2 (Arnd Bergmann      2019-01-10 12:45:11 +0100 109) #define __IGNORE_futex_time64
48166e6ea47d2 (Arnd Bergmann      2019-01-10 12:45:11 +0100 110) #define __IGNORE_sched_rr_get_interval_time64
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000 111) #else
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000 112) #define __IGNORE_sendfile
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000 113) #define __IGNORE_ftruncate
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000 114) #define __IGNORE_truncate
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000 115) #define __IGNORE_stat
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000 116) #define __IGNORE_lstat
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000 117) #define __IGNORE_fstat
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000 118) #define __IGNORE_fcntl
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000 119) #define __IGNORE_fadvise64
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000 120) #define __IGNORE_newfstatat
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000 121) #define __IGNORE_fstatfs
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000 122) #define __IGNORE_statfs
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000 123) #define __IGNORE_lseek
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000 124) #define __IGNORE_mmap
48166e6ea47d2 (Arnd Bergmann      2019-01-10 12:45:11 +0100 125) #define __IGNORE_clock_gettime
48166e6ea47d2 (Arnd Bergmann      2019-01-10 12:45:11 +0100 126) #define __IGNORE_clock_settime
48166e6ea47d2 (Arnd Bergmann      2019-01-10 12:45:11 +0100 127) #define __IGNORE_clock_adjtime
48166e6ea47d2 (Arnd Bergmann      2019-01-10 12:45:11 +0100 128) #define __IGNORE_clock_getres
48166e6ea47d2 (Arnd Bergmann      2019-01-10 12:45:11 +0100 129) #define __IGNORE_clock_nanosleep
48166e6ea47d2 (Arnd Bergmann      2019-01-10 12:45:11 +0100 130) #define __IGNORE_timer_gettime
48166e6ea47d2 (Arnd Bergmann      2019-01-10 12:45:11 +0100 131) #define __IGNORE_timer_settime
48166e6ea47d2 (Arnd Bergmann      2019-01-10 12:45:11 +0100 132) #define __IGNORE_timerfd_gettime
48166e6ea47d2 (Arnd Bergmann      2019-01-10 12:45:11 +0100 133) #define __IGNORE_timerfd_settime
48166e6ea47d2 (Arnd Bergmann      2019-01-10 12:45:11 +0100 134) #define __IGNORE_utimensat
48166e6ea47d2 (Arnd Bergmann      2019-01-10 12:45:11 +0100 135) #define __IGNORE_pselect6
48166e6ea47d2 (Arnd Bergmann      2019-01-10 12:45:11 +0100 136) #define __IGNORE_ppoll
48166e6ea47d2 (Arnd Bergmann      2019-01-10 12:45:11 +0100 137) #define __IGNORE_io_pgetevents
48166e6ea47d2 (Arnd Bergmann      2019-01-10 12:45:11 +0100 138) #define __IGNORE_recvmmsg
48166e6ea47d2 (Arnd Bergmann      2019-01-10 12:45:11 +0100 139) #define __IGNORE_mq_timedsend
1d5b82331ee8b (Arnd Bergmann      2019-02-18 21:14:32 +0100 140) #define __IGNORE_mq_timedreceive
48166e6ea47d2 (Arnd Bergmann      2019-01-10 12:45:11 +0100 141) #define __IGNORE_semtimedop
48166e6ea47d2 (Arnd Bergmann      2019-01-10 12:45:11 +0100 142) #define __IGNORE_rt_sigtimedwait
48166e6ea47d2 (Arnd Bergmann      2019-01-10 12:45:11 +0100 143) #define __IGNORE_futex
48166e6ea47d2 (Arnd Bergmann      2019-01-10 12:45:11 +0100 144) #define __IGNORE_sched_rr_get_interval
c8ce48f06503e (Arnd Bergmann      2019-02-18 17:30:06 +0100 145) #define __IGNORE_gettimeofday
c8ce48f06503e (Arnd Bergmann      2019-02-18 17:30:06 +0100 146) #define __IGNORE_settimeofday
c8ce48f06503e (Arnd Bergmann      2019-02-18 17:30:06 +0100 147) #define __IGNORE_wait4
c8ce48f06503e (Arnd Bergmann      2019-02-18 17:30:06 +0100 148) #define __IGNORE_adjtimex
c8ce48f06503e (Arnd Bergmann      2019-02-18 17:30:06 +0100 149) #define __IGNORE_nanosleep
c8ce48f06503e (Arnd Bergmann      2019-02-18 17:30:06 +0100 150) #define __IGNORE_io_getevents
c8ce48f06503e (Arnd Bergmann      2019-02-18 17:30:06 +0100 151) #define __IGNORE_recvmmsg
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 152) #endif
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 153) 
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 154) /* i386-specific or historical system calls */
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 155) #define __IGNORE_break
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 156) #define __IGNORE_stty
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 157) #define __IGNORE_gtty
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 158) #define __IGNORE_ftime
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 159) #define __IGNORE_prof
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 160) #define __IGNORE_lock
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 161) #define __IGNORE_mpx
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 162) #define __IGNORE_ulimit
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 163) #define __IGNORE_profil
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 164) #define __IGNORE_ioperm
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 165) #define __IGNORE_iopl
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 166) #define __IGNORE_idle
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 167) #define __IGNORE_modify_ldt
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 168) #define __IGNORE_ugetrlimit
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 169) #define __IGNORE_vm86
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 170) #define __IGNORE_vm86old
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 171) #define __IGNORE_set_thread_area
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 172) #define __IGNORE_get_thread_area
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 173) #define __IGNORE_madvise1
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 174) #define __IGNORE_oldstat
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 175) #define __IGNORE_oldfstat
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 176) #define __IGNORE_oldlstat
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 177) #define __IGNORE_oldolduname
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 178) #define __IGNORE_olduname
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 179) #define __IGNORE_umount
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 180) #define __IGNORE_waitpid
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 181) #define __IGNORE_stime
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 182) #define __IGNORE_nice
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 183) #define __IGNORE_signal
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 184) #define __IGNORE_sigaction
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 185) #define __IGNORE_sgetmask
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 186) #define __IGNORE_sigsuspend
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 187) #define __IGNORE_sigpending
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 188) #define __IGNORE_ssetmask
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 189) #define __IGNORE_readdir
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 190) #define __IGNORE_socketcall
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 191) #define __IGNORE_ipc
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 192) #define __IGNORE_sigreturn
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 193) #define __IGNORE_sigprocmask
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 194) #define __IGNORE_bdflush
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 195) #define __IGNORE__llseek
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 196) #define __IGNORE__newselect
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 197) #define __IGNORE_create_module
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 198) #define __IGNORE_query_module
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 199) #define __IGNORE_get_kernel_syms
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000 200) #define __IGNORE_sysfs
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000 201) #define __IGNORE_uselib
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000 202) #define __IGNORE__sysctl
f3e4559781bf0 (Arnd Bergmann      2017-03-23 16:18:51 +0100 203) #define __IGNORE_arch_prctl
930e12992ed32 (Firoz Khan         2018-10-08 09:36:47 +0530 204) #define __IGNORE_nfsservctl
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000 205) 
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 206) /* ... including the "new" 32-bit uid syscalls */
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 207) #define __IGNORE_lchown32
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 208) #define __IGNORE_getuid32
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 209) #define __IGNORE_getgid32
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 210) #define __IGNORE_geteuid32
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 211) #define __IGNORE_getegid32
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 212) #define __IGNORE_setreuid32
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 213) #define __IGNORE_setregid32
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 214) #define __IGNORE_getgroups32
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 215) #define __IGNORE_setgroups32
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 216) #define __IGNORE_fchown32
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 217) #define __IGNORE_setresuid32
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 218) #define __IGNORE_getresuid32
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 219) #define __IGNORE_setresgid32
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 220) #define __IGNORE_getresgid32
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 221) #define __IGNORE_chown32
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 222) #define __IGNORE_setuid32
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 223) #define __IGNORE_setgid32
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 224) #define __IGNORE_setfsuid32
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 225) #define __IGNORE_setfsgid32
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 226) 
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000 227) /* these can be expressed using other calls */
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000 228) #define __IGNORE_alarm		/* setitimer */
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000 229) #define __IGNORE_creat		/* open */
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000 230) #define __IGNORE_fork		/* clone */
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000 231) #define __IGNORE_futimesat	/* utimensat */
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000 232) #define __IGNORE_getpgrp	/* getpgid */
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000 233) #define __IGNORE_getdents	/* getdents64 */
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000 234) #define __IGNORE_pause		/* sigsuspend */
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000 235) #define __IGNORE_poll		/* ppoll */
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000 236) #define __IGNORE_select		/* pselect6 */
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000 237) #define __IGNORE_epoll_wait	/* epoll_pwait */
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000 238) #define __IGNORE_time		/* gettimeofday */
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000 239) #define __IGNORE_uname		/* newuname */
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000 240) #define __IGNORE_ustat		/* statfs */
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000 241) #define __IGNORE_utime		/* utimes */
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000 242) #define __IGNORE_vfork		/* clone */
e64a1617eca39 (Arnd Bergmann      2009-05-13 22:56:28 +0000 243) 
edd5cd4a9424f (David Woodhouse    2007-06-27 14:10:09 -0700 244) /* sync_file_range had a stupid ABI. Allow sync_file_range2 instead */
edd5cd4a9424f (David Woodhouse    2007-06-27 14:10:09 -0700 245) #ifdef __NR_sync_file_range2
edd5cd4a9424f (David Woodhouse    2007-06-27 14:10:09 -0700 246) #define __IGNORE_sync_file_range
edd5cd4a9424f (David Woodhouse    2007-06-27 14:10:09 -0700 247) #endif
edd5cd4a9424f (David Woodhouse    2007-06-27 14:10:09 -0700 248) 
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 249) /* Unmerged syscalls for AFS, STREAMS, etc. */
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 250) #define __IGNORE_afs_syscall
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 251) #define __IGNORE_getpmsg
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 252) #define __IGNORE_putpmsg
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 253) #define __IGNORE_vserver
3ef6ca4f354c5 (Palmer Dabbelt     2021-10-02 16:57:13 -0700 254) 
3ef6ca4f354c5 (Palmer Dabbelt     2021-10-02 16:57:13 -0700 255) /* 64-bit ports never needed these, and new 32-bit ports can use statx */
3ef6ca4f354c5 (Palmer Dabbelt     2021-10-02 16:57:13 -0700 256) #define __IGNORE_fstat64
3ef6ca4f354c5 (Palmer Dabbelt     2021-10-02 16:57:13 -0700 257) #define __IGNORE_fstatat64
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 258) EOF
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 259) }
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 260) 
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 261) syscall_list() {
d21832e212d26 (Arnd Bergmann      2017-06-01 16:57:07 +0200 262)     grep '^[0-9]' "$1" | sort -n |
29dc54c673ea2 (H. Peter Anvin     2011-11-11 15:57:53 -0800 263) 	while read nr abi name entry ; do
d21832e212d26 (Arnd Bergmann      2017-06-01 16:57:07 +0200 264) 		echo "#if !defined(__NR_${name}) && !defined(__IGNORE_${name})"
d21832e212d26 (Arnd Bergmann      2017-06-01 16:57:07 +0200 265) 		echo "#warning syscall ${name} not implemented"
d21832e212d26 (Arnd Bergmann      2017-06-01 16:57:07 +0200 266) 		echo "#endif"
29dc54c673ea2 (H. Peter Anvin     2011-11-11 15:57:53 -0800 267) 	done
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 268) }
c53aeca059c4d (Sam Ravnborg       2007-03-27 22:50:29 +0200 269) 
1f57d5d85ba7f (Ingo Molnar        2015-06-03 18:36:41 +0200 270) (ignore_list && syscall_list $(dirname $0)/../arch/x86/entry/syscalls/syscall_32.tbl) | \
20fbb11fe4ea9 (Stephen Rothwell   2021-09-06 15:47:02 +1000 271) $* -Wno-error -E -x c - > /dev/null