]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - arch/arm/tools/syscalltbl.sh
Merge tag 'doc-4.10-3' of git://git.lwn.net/linux
[mirror_ubuntu-bionic-kernel.git] / arch / arm / tools / syscalltbl.sh
CommitLineData
96a8fae0
RK
1#!/bin/sh
2in="$1"
3out="$2"
4my_abis=`echo "($3)" | tr ',' '|'`
5
6grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | (
7 while read nr abi name entry compat; do
8 if [ "$abi" = "eabi" -a -n "$compat" ]; then
9 echo "$in: error: a compat entry for an EABI syscall ($name) makes no sense" >&2
10 exit 1
11 fi
12
13 if [ -n "$entry" ]; then
14 if [ -z "$compat" ]; then
15 echo "NATIVE($nr, $entry)"
16 else
17 echo "COMPAT($nr, $entry, $compat)"
18 fi
19 fi
20 done
21) > "$out"