[PATCH 1/2] maint: update for linux 4.20

Gleb Fotengauer-Malinovskiy glebfm at altlinux.org
Wed Dec 26 16:56:18 UTC 2018


* maint/ioctls_sym.sh: Include linux/compiler_attributes.h in every
processed file.
Use asm/ioctls.h workaround for asm-generic/ioctls.h too.
---
 maint/ioctls_sym.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/maint/ioctls_sym.sh b/maint/ioctls_sym.sh
index 77fc0e234..af4c90211 100755
--- a/maint/ioctls_sym.sh
+++ b/maint/ioctls_sym.sh
@@ -104,6 +104,7 @@ process_file()
 
 	# Common code for every processed file.
 	cat > "$tmpdir"/printents.c <<__EOF__
+#include <linux/compiler_attributes.h>
 #include <asm/termbits.h>
 #include <asm/ioctl.h>
 #include <linux/types.h>
@@ -164,7 +165,7 @@ __EOF__
 		*asm/core_*.h)
 			return 0 # false positives
 			;;
-		*asm/ioctls.h)
+		*asm*/ioctls.h)
 			cat <<'__EOF__'
 #include <asm/termios.h>
 #include <linux/serial.h>

-- 
glebfm


More information about the Strace-devel mailing list