comparison sources/patches/linux-noperl-headers.patch @ 1584:75e291fafacc

linux 3.8.
author Rob Landley <rob@landley.net>
date Mon, 25 Feb 2013 11:45:44 -0600
parents bee6b26a006d
children 3cbf1abde44a
comparison
equal deleted inserted replaced
1583:307f4415d2bf 1584:75e291fafacc
56 + -e 's/([ \t(])(__user|__force|__iomem)[ \t]/\1/g' \ 56 + -e 's/([ \t(])(__user|__force|__iomem)[ \t]/\1/g' \
57 + -e 's/__attribute_const__([ \t]|$)/\1/g' \ 57 + -e 's/__attribute_const__([ \t]|$)/\1/g' \
58 + -e 's@^#include <linux/compiler.h>@@' \ 58 + -e 's@^#include <linux/compiler.h>@@' \
59 + -e 's/(^|[^a-zA-Z0-9])__packed([^a-zA-Z0-9_]|$)/\1__attribute__((packed))\2/g' \ 59 + -e 's/(^|[^a-zA-Z0-9])__packed([^a-zA-Z0-9_]|$)/\1__attribute__((packed))\2/g' \
60 + -e 's/(^|[ \t])(inline|asm|volatile)([ \t(]|$)/\1__\2__\3/g' \ 60 + -e 's/(^|[ \t])(inline|asm|volatile)([ \t(]|$)/\1__\2__\3/g' \
61 + -e 's@#(ifndef|define|endif /[*]) _UAPI@#\1 @' \ 61 + -e 's@#(ifndef|define|endif[ \t]*/[*])[ \t]*_UAPI@#\1 @' \
62 + "$i" > "$OUTDIR/$FILE.sed" || exit 1 62 + "$i" > "$OUTDIR/$FILE.sed" || exit 1
63 + scripts/unifdef -U__KERNEL__ -D__EXPORTED_HEADERS__ "$OUTDIR/$FILE.sed" \ 63 + scripts/unifdef -U__KERNEL__ -D__EXPORTED_HEADERS__ "$OUTDIR/$FILE.sed" \
64 + > "$OUTDIR/$FILE" 64 + > "$OUTDIR/$FILE"
65 + [ $? -gt 1 ] && exit 1 65 + [ $? -gt 1 ] && exit 1
66 + rm -f "$OUTDIR/$FILE.sed" 66 + rm -f "$OUTDIR/$FILE.sed"
132 - $line =~ s/\b__packed\b/__attribute__((packed))/g; 132 - $line =~ s/\b__packed\b/__attribute__((packed))/g;
133 - $line =~ s/^#include <linux\/compiler.h>//; 133 - $line =~ s/^#include <linux\/compiler.h>//;
134 - $line =~ s/(^|\s)(inline)\b/$1__$2__/g; 134 - $line =~ s/(^|\s)(inline)\b/$1__$2__/g;
135 - $line =~ s/(^|\s)(asm)\b(\s|[(]|$)/$1__$2__$3/g; 135 - $line =~ s/(^|\s)(asm)\b(\s|[(]|$)/$1__$2__$3/g;
136 - $line =~ s/(^|\s|[(])(volatile)\b(\s|[(]|$)/$1__$2__$3/g; 136 - $line =~ s/(^|\s|[(])(volatile)\b(\s|[(]|$)/$1__$2__$3/g;
137 - $line =~ s/#ifndef _UAPI/#ifndef /; 137 - $line =~ s/#ifndef\s+_UAPI/#ifndef /;
138 - $line =~ s/#define _UAPI/#define /; 138 - $line =~ s/#define\s+_UAPI/#define /;
139 - $line =~ s!#endif /[*] _UAPI!#endif /* !; 139 - $line =~ s!#endif\s+/[*]\s*_UAPI!#endif /* !;
140 - printf {$out} "%s", $line; 140 - printf {$out} "%s", $line;
141 - } 141 - }
142 - close $out; 142 - close $out;
143 - close $in; 143 - close $in;
144 - 144 -