summaryrefslogtreecommitdiff
path: root/pkg/linux-headers/header.sed
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/linux-headers/header.sed')
-rw-r--r--pkg/linux-headers/header.sed7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkg/linux-headers/header.sed b/pkg/linux-headers/header.sed
new file mode 100644
index 00000000..f449f30f
--- /dev/null
+++ b/pkg/linux-headers/header.sed
@@ -0,0 +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/(^|[^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 @