]> git.wh0rd.org - patches.git/blob - linux-use-posix-sed-in-headersinst.patch
sync vapier-m
[patches.git] / linux-use-posix-sed-in-headersinst.patch
1 diff --git a/scripts/Makefile.headersinst b/scripts/Makefile.headersinst
2 index 8cd6301..fb6726b 100644
3 --- a/scripts/Makefile.headersinst
4 +++ b/scripts/Makefile.headersinst
5 @@ -11,13 +11,13 @@ UNIFDEF := scripts/unifdef -U__KERNEL__
6
7 # Eliminate the contents of (and inclusions of) compiler.h
8 HDRSED := sed -e "s/ inline / __inline__ /g" \
9 - -e "s/[[:space:]]__user[[:space:]]\+/ /g" \
10 - -e "s/(__user[[:space:]]\+/ (/g" \
11 - -e "s/[[:space:]]__force[[:space:]]\+/ /g" \
12 - -e "s/(__force[[:space:]]\+/ (/g" \
13 - -e "s/[[:space:]]__iomem[[:space:]]\+/ /g" \
14 - -e "s/(__iomem[[:space:]]\+/ (/g" \
15 - -e "s/[[:space:]]__attribute_const__[[:space:]]\+/\ /g" \
16 + -e "s/[[:space:]]__user[[:space:]]\{1,\}/ /g" \
17 + -e "s/(__user[[:space:]]\{1,\}/ (/g" \
18 + -e "s/[[:space:]]__force[[:space:]]\{1,\}/ /g" \
19 + -e "s/(__force[[:space:]]\{1,\}/ (/g" \
20 + -e "s/[[:space:]]__iomem[[:space:]]\{1,\}/ /g" \
21 + -e "s/(__iomem[[:space:]]\{1,\}/ (/g" \
22 + -e "s/[[:space:]]__attribute_const__[[:space:]]\{1,\}/\ /g" \
23 -e "s/[[:space:]]__attribute_const__$$//" \
24 -e "/^\#include <linux\/compiler.h>/d"
25