From: Andrew Morton Ulrich suggested that the `flags' arg to sync_file_range() become unsigned. Cc: Ulrich Drepper Signed-off-by: Andrew Morton --- fs/sync.c | 4 ++-- include/linux/fs.h | 2 +- include/linux/syscalls.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff -puN include/linux/syscalls.h~sync_file_range-use-unsigned-for-flags include/linux/syscalls.h --- devel/include/linux/syscalls.h~sync_file_range-use-unsigned-for-flags 2006-03-31 10:23:17.000000000 -0800 +++ devel-akpm/include/linux/syscalls.h 2006-03-31 10:23:23.000000000 -0800 @@ -572,6 +572,6 @@ asmlinkage long sys_unshare(unsigned lon asmlinkage long sys_splice(int fdin, int fdout, size_t len, unsigned int flags); asmlinkage long sys_sync_file_range(int fd, loff_t offset, loff_t nbytes, - int flags); + unsigned int flags); #endif diff -puN fs/sync.c~sync_file_range-use-unsigned-for-flags fs/sync.c --- devel/fs/sync.c~sync_file_range-use-unsigned-for-flags 2006-03-31 10:23:17.000000000 -0800 +++ devel-akpm/fs/sync.c 2006-03-31 10:23:56.000000000 -0800 @@ -61,7 +61,7 @@ * will be available after a crash. */ asmlinkage long sys_sync_file_range(int fd, loff_t offset, loff_t nbytes, - int flags) + unsigned int flags) { int ret; struct file *file; @@ -126,7 +126,7 @@ out: * `endbyte' is inclusive */ int do_sync_file_range(struct file *file, loff_t offset, loff_t endbyte, - int flags) + unsigned int flags) { int ret; struct address_space *mapping; diff -puN include/linux/fs.h~sync_file_range-use-unsigned-for-flags include/linux/fs.h --- devel/include/linux/fs.h~sync_file_range-use-unsigned-for-flags 2006-03-31 10:23:47.000000000 -0800 +++ devel-akpm/include/linux/fs.h 2006-03-31 10:24:01.000000000 -0800 @@ -762,7 +762,7 @@ extern int fcntl_getlease(struct file *f #define SYNC_FILE_RANGE_WRITE 2 #define SYNC_FILE_RANGE_WAIT_AFTER 4 extern int do_sync_file_range(struct file *file, loff_t offset, loff_t endbyte, - int flags); + unsigned int flags); /* fs/locks.c */ extern void locks_init_lock(struct file_lock *); _