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
This commit is contained in:
James Hogan 2014-04-23 11:08:06 +01:00 committed by Miklos Szeredi
parent 63ba600028
commit 68b7752462

View File

@ -25,7 +25,7 @@ cat << EOF
#define __IGNORE_rmdir /* unlinkat */ #define __IGNORE_rmdir /* unlinkat */
#define __IGNORE_lchown /* fchownat */ #define __IGNORE_lchown /* fchownat */
#define __IGNORE_access /* faccessat */ #define __IGNORE_access /* faccessat */
#define __IGNORE_rename /* renameat */ #define __IGNORE_rename /* renameat2 */
#define __IGNORE_readlink /* readlinkat */ #define __IGNORE_readlink /* readlinkat */
#define __IGNORE_symlink /* symlinkat */ #define __IGNORE_symlink /* symlinkat */
#define __IGNORE_utimes /* futimesat */ #define __IGNORE_utimes /* futimesat */
@ -37,6 +37,9 @@ cat << EOF
#define __IGNORE_lstat64 /* fstatat64 */ #define __IGNORE_lstat64 /* fstatat64 */
#endif #endif
/* Missing flags argument */
#define __IGNORE_renameat /* renameat2 */
/* CLOEXEC flag */ /* CLOEXEC flag */
#define __IGNORE_pipe /* pipe2 */ #define __IGNORE_pipe /* pipe2 */
#define __IGNORE_dup2 /* dup3 */ #define __IGNORE_dup2 /* dup3 */