projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mm/rmap: fix new bug: premature return from page_mlock_one()
[linux-2.6-microblaze.git]
/
scripts
/
syscalltbl.sh
diff --git
a/scripts/syscalltbl.sh
b/scripts/syscalltbl.sh
index
aa6ab15
..
6abe143
100755
(executable)
--- a/
scripts/syscalltbl.sh
+++ b/
scripts/syscalltbl.sh
@@
-52,10
+52,15
@@
outfile="$2"
nxt=0
nxt=0
-grep -E "^[0-9]+[[:space:]]+$abis" "$infile" |
sort -n |
{
+grep -E "^[0-9]+[[:space:]]+$abis" "$infile" | {
while read nr abi name native compat ; do
while read nr abi name native compat ; do
+ if [ $nxt -gt $nr ]; then
+ echo "error: $infile: syscall table is not sorted or duplicates the same syscall number" >&2
+ exit 1
+ fi
+
while [ $nxt -lt $nr ]; do
echo "__SYSCALL($nxt, sys_ni_syscall)"
nxt=$((nxt + 1))
while [ $nxt -lt $nr ]; do
echo "__SYSCALL($nxt, sys_ni_syscall)"
nxt=$((nxt + 1))