diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2020-08-19 21:32:00 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2020-08-19 22:04:57 +1000 |
commit | 4156c85dbf936800bc450ceaa3ed7cd1570315dd (patch) | |
tree | f6a41fd63b2ddfc3c01f30fd9f471971bf26acaf | |
parent | d3f6b6e18add2a254e0ae6096fe6f06295880ff2 (diff) | |
download | linux-test.tar.gz |
syscalls: use simpler file guard definestest
A couple of architectures were defining the generated file's guards to 1
rather than just defining then like most of our other include file guards.
This simplifies the generating script a little.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
-rw-r--r-- | scripts/syscallhdr.sh | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/scripts/syscallhdr.sh b/scripts/syscallhdr.sh index 9d4536c41d584..a2275e4affe56 100644 --- a/scripts/syscallhdr.sh +++ b/scripts/syscallhdr.sh @@ -8,11 +8,7 @@ prefix="$4" offset="$5" fg_arch="$6" -fg_val='' fg_prefix='_UAPI' -if [ "$fg_arch" = 'arm' ] || [ "$fg_arch" = 'x86' ]; then - fg_val=' 1' -fi if [ "$fg_arch" = 'x86' ]; then fg_prefix='' fi @@ -22,7 +18,7 @@ fileguard=$(printf '%s_ASM_%s_%s' "$fg_prefix" "$fg_arch" "$(basename "$out")" | grep -E "^[[:xdigit:]Xx]+[[:space:]]+$my_abis" "$in" | sort -n | { printf '#ifndef %s\n' "$fileguard" - printf '#define %s%s\n\n' "$fileguard" "$fg_val" + printf '#define %s\n\n' "$fileguard" nxt=0 while read -r nr _ name _ _ ; do |