scripts/checksyscalls.sh: Make renameat optional

The new renameat2 syscall provides all the functionality of renameat
with an additional flags argument, so make renameat optional so that
future architectures can omit it without getting a warning.

This patch doesn't affect existing architectures.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Cc: linux-arch@vger.kernel.org

authored by James Hogan and committed by Miklos Szeredi 68b77524 63ba6000

+4 -1
+4 -1
scripts/checksyscalls.sh
··· 25 #define __IGNORE_rmdir /* unlinkat */ 26 #define __IGNORE_lchown /* fchownat */ 27 #define __IGNORE_access /* faccessat */ 28 - #define __IGNORE_rename /* renameat */ 29 #define __IGNORE_readlink /* readlinkat */ 30 #define __IGNORE_symlink /* symlinkat */ 31 #define __IGNORE_utimes /* futimesat */ ··· 36 #define __IGNORE_stat64 /* fstatat64 */ 37 #define __IGNORE_lstat64 /* fstatat64 */ 38 #endif 39 40 /* CLOEXEC flag */ 41 #define __IGNORE_pipe /* pipe2 */
··· 25 #define __IGNORE_rmdir /* unlinkat */ 26 #define __IGNORE_lchown /* fchownat */ 27 #define __IGNORE_access /* faccessat */ 28 + #define __IGNORE_rename /* renameat2 */ 29 #define __IGNORE_readlink /* readlinkat */ 30 #define __IGNORE_symlink /* symlinkat */ 31 #define __IGNORE_utimes /* futimesat */ ··· 36 #define __IGNORE_stat64 /* fstatat64 */ 37 #define __IGNORE_lstat64 /* fstatat64 */ 38 #endif 39 + 40 + /* Missing flags argument */ 41 + #define __IGNORE_renameat /* renameat2 */ 42 43 /* CLOEXEC flag */ 44 #define __IGNORE_pipe /* pipe2 */