From: Karel Zak Date: Mon, 13 May 2024 09:43:57 +0000 (+0200) Subject: include/pidfd-utils: remove hardcoded syscall fallback X-Git-Tag: v2.40.2~11 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=d99a71a122a68a62a70ef47a8385e4f746f328c5;p=thirdparty%2Futil-linux.git include/pidfd-utils: remove hardcoded syscall fallback Based on https://github.com/util-linux/util-linux/pull/3018 The syscall numbers should not be hardcoded in the header file. If we really need them, there is UL_CHECK_SYSCALL() to define the numbers for different architectures. I doubt it's really necessary. Just update your kernel header files to get the latest kernel updates ... Signed-off-by: Karel Zak (cherry picked from commit 057080b5c89fa63cece8a5d4a6da4959bd004aa1) --- diff --git a/include/pidfd-utils.h b/include/pidfd-utils.h index ff0bc4c79..2fe4f5a7f 100644 --- a/include/pidfd-utils.h +++ b/include/pidfd-utils.h @@ -8,19 +8,6 @@ #ifdef HAVE_SYS_SYSCALL_H # include -/* - * If the kernel headers are too old to provide the syscall numbers, let's - * define them ourselves. This can be helpful while cross-compiling. - */ -#ifndef __NR_pidfd_send_signal -#define __NR_pidfd_send_signal 424 -#define SYS_pidfd_send_signal __NR_pidfd_send_signal -#endif -#ifndef __NR_pidfd_open -#define __NR_pidfd_open 434 -#define SYS_pidfd_open __NR_pidfd_open -#endif - # if defined(SYS_pidfd_send_signal) && defined(SYS_pidfd_open) # ifdef HAVE_SYS_PIDFD_H # include