diff options
Diffstat (limited to 'arch/parisc/kernel')
-rw-r--r-- | arch/parisc/kernel/sys_parisc32.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/arch/parisc/kernel/sys_parisc32.c b/arch/parisc/kernel/sys_parisc32.c index e0e4e0bfcc6b..29be4377aca6 100644 --- a/arch/parisc/kernel/sys_parisc32.c +++ b/arch/parisc/kernel/sys_parisc32.c | |||
@@ -313,9 +313,8 @@ struct readdir32_callback { | |||
313 | 313 | ||
314 | #define ROUND_UP(x,a) ((__typeof__(x))(((unsigned long)(x) + ((a) - 1)) & ~((a) - 1))) | 314 | #define ROUND_UP(x,a) ((__typeof__(x))(((unsigned long)(x) + ((a) - 1)) & ~((a) - 1))) |
315 | #define NAME_OFFSET(de) ((int) ((de)->d_name - (char __user *) (de))) | 315 | #define NAME_OFFSET(de) ((int) ((de)->d_name - (char __user *) (de))) |
316 | static int | 316 | static int filldir32 (void *__buf, const char *name, int namlen, |
317 | filldir32 (void *__buf, const char *name, int namlen, loff_t offset, ino_t ino, | 317 | loff_t offset, u64 ino, unsigned int d_type) |
318 | unsigned int d_type) | ||
319 | { | 318 | { |
320 | struct linux32_dirent __user * dirent; | 319 | struct linux32_dirent __user * dirent; |
321 | struct getdents32_callback * buf = (struct getdents32_callback *) __buf; | 320 | struct getdents32_callback * buf = (struct getdents32_callback *) __buf; |
@@ -377,9 +376,8 @@ out: | |||
377 | return error; | 376 | return error; |
378 | } | 377 | } |
379 | 378 | ||
380 | static int | 379 | static int fillonedir32(void * __buf, const char * name, int namlen, |
381 | fillonedir32 (void * __buf, const char * name, int namlen, loff_t offset, ino_t ino, | 380 | loff_t offset, u64 ino, unsigned int d_type) |
382 | unsigned int d_type) | ||
383 | { | 381 | { |
384 | struct readdir32_callback * buf = (struct readdir32_callback *) __buf; | 382 | struct readdir32_callback * buf = (struct readdir32_callback *) __buf; |
385 | struct old_linux32_dirent __user * dirent; | 383 | struct old_linux32_dirent __user * dirent; |