]> git.baikalelectronics.ru Git - kernel.git/commitdiff
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 e5b99bd2e5e7fe32955b6aa29350d988d9ca6068..1780e861492ac16bcbb4a116f1499f7bacd4050f 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 0c2d2c748565a01df6b42f87fcbeee8da2eeeb37..f407b6e53283607bd8997438eaba6062b874d342 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 2e9062a926a3a3d591aa93d232aec8ad378c66b0..a914854f8d9f70f770389089f38bbb52b764f750 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 d2bcfa8f4d1a568061e99a0278ffc9f27dabffe8..2e241e713a7d0f0bd50de17a41b2eebd74fd1136 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 50242b747d7ce7c39b63eea2bd423f2a795b20de..730db288fe5417c90e24e51a042daa5bd4290507 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 c0a9a32937f11af7b13c08de6768a466d76e3977..02d6751f3be36c66c01e16959e9bbaef72defcf6 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 1de0334e577f6619ea95693cd339df82d3d70560..4c0519861e97084b3b06e70138cf61b326724d0d 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 626b5740a9f135f786c21addb1bdd532ce430434..cf50a75cc0bb286e3cedfa25b58baf3009f95a17 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 d37db641ca31ab446e9b59180b784566acbf09bc..eebfb8a8ace6349da1cab618b260ee23f38df891 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"