Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: 43c6afe ("samples: show race-free pidfd metadata access") Reported-by: Arnd Bergmann <[email protected]> Reported-by: Guenter Roeck <[email protected]> Cc: Christian Brauner <[email protected]> Signed-off-by: Guenter Roeck <[email protected]> [[email protected]: tweak commit message] Signed-off-by: Christian Brauner <[email protected]>
- Loading branch information