commit: b275ed3c0711327bff6c1e67dbeaac8c5452a0e4
parent 3c7d1aadfbe558bdee90ff73ff63a721d1db7da5
Author: Michael Forney <mforney@mforney.org>
Date: Wed, 15 Apr 2020 18:46:26 -0700
linux-headers: Fix portability issue in sed script
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pkg/linux-headers/header.sed b/pkg/linux-headers/header.sed
@@ -1,7 +1,7 @@
# scripts/headers_install.sh
s/([[:space:](])(__user|__force|__iomem)[[:space:]]/\1/g
s/__attribute_const__([[:space:]]|$)/\1/g
-s@^#include <linux/compiler(|_types).h>@@
+s@^#include <linux/compiler(_types)?.h>@@
s/(^|[^a-zA-Z0-9])__packed([^a-zA-Z0-9_]|$)/\1__attribute__((packed))\2/g
s/(^|[[:space:](])(inline|asm|volatile)([[:space:](]|$)/\1__\2__\3/g
s@#(ifndef|define|endif[[:space:]]*/[*])[[:space:]]*_UAPI@#\1 @