asm-generic: fix unistd_32.h generation format
authorMichal Simek <michal.simek@xilinx.com>
Tue, 7 Apr 2020 03:09:23 +0000 (20:09 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 7 Apr 2020 17:43:42 +0000 (10:43 -0700)
Generated files are also checked by sparse that's why add newline to
remove sparse (C=1) warning.

The issue was found on Microblaze and reported like this:
./arch/microblaze/include/generated/uapi/asm/unistd_32.h:438:45: warning:
no newline at end of file

Mips and PowerPC have it already but let's align with style used by m68k.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Stefan Asserhall <stefan.asserhall@xilinx.com>
Acked-by: Max Filippov <jcmvbkbc@gmail.com> (xtensa)
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Max Filippov <jcmvbkbc@gmail.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Chris Zankel <chris@zankel.net>
Cc: David S. Miller <davem@davemloft.net>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: Helge Deller <deller@gmx.de>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Cc: Matt Turner <mattst88@gmail.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Paul Burton <paulburton@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Rich Felker <dalias@libc.org>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Link: http://lkml.kernel.org/r/4d32ab4e1fb2edb691d2e1687e8fb303c09fd023.1581504803.git.michal.simek@xilinx.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/alpha/kernel/syscalls/syscallhdr.sh
arch/ia64/kernel/syscalls/syscallhdr.sh
arch/microblaze/kernel/syscalls/syscallhdr.sh
arch/mips/kernel/syscalls/syscallhdr.sh
arch/parisc/kernel/syscalls/syscallhdr.sh
arch/powerpc/kernel/syscalls/syscallhdr.sh
arch/sh/kernel/syscalls/syscallhdr.sh
arch/sparc/kernel/syscalls/syscallhdr.sh
arch/xtensa/kernel/syscalls/syscallhdr.sh

index e5b99bd..1780e86 100644 (file)
@@ -32,5 +32,5 @@ grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | (
        printf "#define __NR_syscalls\t%s\n" "${nxt}"
        printf "#endif\n"
        printf "\n"
-       printf "#endif /* %s */" "${fileguard}"
+       printf "#endif /* %s */\n" "${fileguard}"
 ) > "$out"
index 0c2d2c7..f407b6e 100644 (file)
@@ -32,5 +32,5 @@ grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | (
        printf "#define __NR_syscalls\t%s\n" "${nxt}"
        printf "#endif\n"
        printf "\n"
-       printf "#endif /* %s */" "${fileguard}"
+       printf "#endif /* %s */\n" "${fileguard}"
 ) > "$out"
index 2e9062a..a914854 100644 (file)
@@ -32,5 +32,5 @@ grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | (
        printf "#define __NR_syscalls\t%s\n" "${nxt}"
        printf "#endif\n"
        printf "\n"
-       printf "#endif /* %s */" "${fileguard}"
+       printf "#endif /* %s */\n" "${fileguard}"
 ) > "$out"
index d2bcfa8..2e241e7 100644 (file)
@@ -32,6 +32,5 @@ grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | (
        printf "#define __NR_syscalls\t%s\n" "${nxt}"
        printf "#endif\n"
        printf "\n"
-       printf "#endif /* %s */" "${fileguard}"
-       printf "\n"
+       printf "#endif /* %s */\n" "${fileguard}"
 ) > "$out"
index 50242b7..730db28 100644 (file)
@@ -32,5 +32,5 @@ grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | (
        printf "#define __NR_syscalls\t%s\n" "${nxt}"
        printf "#endif\n"
        printf "\n"
-       printf "#endif /* %s */" "${fileguard}"
+       printf "#endif /* %s */\n" "${fileguard}"
 ) > "$out"
index c0a9a32..02d6751 100644 (file)
@@ -32,6 +32,5 @@ grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | (
        printf "#define __NR_syscalls\t%s\n" "${nxt}"
        printf "#endif\n"
        printf "\n"
-       printf "#endif /* %s */" "${fileguard}"
-       printf "\n"
+       printf "#endif /* %s */\n" "${fileguard}"
 ) > "$out"
index 1de0334..4c05198 100644 (file)
@@ -32,5 +32,5 @@ grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | (
        printf "#define __NR_syscalls\t%s\n" "${nxt}"
        printf "#endif\n"
        printf "\n"
-       printf "#endif /* %s */" "${fileguard}"
+       printf "#endif /* %s */\n" "${fileguard}"
 ) > "$out"
index 626b574..cf50a75 100644 (file)
@@ -32,5 +32,5 @@ grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | (
        printf "#define __NR_syscalls\t%s\n" "${nxt}"
        printf "#endif\n"
        printf "\n"
-       printf "#endif /* %s */" "${fileguard}"
+       printf "#endif /* %s */\n" "${fileguard}"
 ) > "$out"
index d37db64..eebfb8a 100644 (file)
@@ -32,5 +32,5 @@ grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | (
        printf "#define __NR_syscalls\t%s\n" "${nxt}"
        printf "#endif\n"
        printf "\n"
-       printf "#endif /* %s */" "${fileguard}"
+       printf "#endif /* %s */\n" "${fileguard}"
 ) > "$out"