aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/pidfd/pidfd_test.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2019-05-30 04:40:47 -0700
committerChristian Brauner <christian@brauner.io>2019-06-05 15:06:07 +0200
commit7c33277b9a9ada187f805b41ffbebe6c51622fb6 (patch)
tree8c34fbee42a6e803bc4d96f91ed20dbacf5229c7 /tools/testing/selftests/pidfd/pidfd_test.c
parentLinux 5.2-rc3 (diff)
downloadlinux-dev-7c33277b9a9ada187f805b41ffbebe6c51622fb6.tar.xz
linux-dev-7c33277b9a9ada187f805b41ffbebe6c51622fb6.zip
samples: fix pidfd-metadata compilation
Define __NR_pidfd_send_signal if it isn't to prevent a compilation error. To make pidfd-metadata compile on all arches, irrespective of whether or not syscall numbers are assigned, define the syscall number to -1. If it isn't defined this will cause the kernel to return -ENOSYS. Fixes: 43c6afee48d4 ("samples: show race-free pidfd metadata access") Reported-by: Arnd Bergmann <arnd@arndb.de> Reported-by: Guenter Roeck <linux@roeck-us.net> Cc: Christian Brauner <christian@brauner.io> Signed-off-by: Guenter Roeck <linux@roeck-us.net> [christian@brauner.io: tweak commit message] Signed-off-by: Christian Brauner <christian@brauner.io>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions