]>
Commit | Line | Data |
---|---|---|
1 | diff --git a/scripts/hdrcheck.sh b/scripts/hdrcheck.sh | |
2 | index 3159858..33d17cc 100755 | |
3 | --- a/scripts/hdrcheck.sh | |
4 | +++ b/scripts/hdrcheck.sh | |
5 | @@ -6,5 +6,16 @@ for FILE in `grep '^[ \t]*#[ \t]*include[ \t]*<' $2 | cut -f2 -d\< | cut -f1 -d\ | |
6 | exit 1 | |
7 | fi | |
8 | done | |
9 | + | |
10 | +# make sure we export __asm__(), not asm() | |
11 | +lines=$(grep -n -E \ | |
12 | + -e '\<asm[[:space:]]*(_{1,2}?volatile_{1,2}?[[:space:]]*)?\(' \ | |
13 | + $2) | |
14 | +if [ -n "$lines" ] ; then | |
15 | + echo "$2 should convert asm() usage to __asm__() in exported headers" | |
16 | + echo "$lines" | |
17 | + exit 1 | |
18 | +fi | |
19 | + | |
20 | # FIXME: List dependencies into $3 | |
21 | touch $3 |