Skip to content

Commit 68b7752

Browse files
James HoganMiklos Szeredi
James Hogan
authored and
Miklos Szeredi
committed
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 <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Signed-off-by: Miklos Szeredi <[email protected]> Cc: [email protected]
1 parent 63ba600 commit 68b7752

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/checksyscalls.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ cat << EOF
2525
#define __IGNORE_rmdir /* unlinkat */
2626
#define __IGNORE_lchown /* fchownat */
2727
#define __IGNORE_access /* faccessat */
28-
#define __IGNORE_rename /* renameat */
28+
#define __IGNORE_rename /* renameat2 */
2929
#define __IGNORE_readlink /* readlinkat */
3030
#define __IGNORE_symlink /* symlinkat */
3131
#define __IGNORE_utimes /* futimesat */
@@ -37,6 +37,9 @@ cat << EOF
3737
#define __IGNORE_lstat64 /* fstatat64 */
3838
#endif
3939
40+
/* Missing flags argument */
41+
#define __IGNORE_renameat /* renameat2 */
42+
4043
/* CLOEXEC flag */
4144
#define __IGNORE_pipe /* pipe2 */
4245
#define __IGNORE_dup2 /* dup3 */

0 commit comments

Comments
 (0)