aboutsummaryrefslogtreecommitdiffstats
path: root/arch/parisc/hpux/fs.c
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2014-10-30 12:37:34 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2014-10-31 17:48:54 -0400
commitac7576f4b1da8c9c6bc1ae026c2b9e86ae617ba5 (patch)
treed1bc42645ba37d31ce4cd2208f8e4ab14d47467c /arch/parisc/hpux/fs.c
parent9f2f7d4c8dfcf4617af5de6ea381b91deac3db48 (diff)
vfs: make first argument of dir_context.actor typed
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/parisc/hpux/fs.c')
-rw-r--r--arch/parisc/hpux/fs.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/parisc/hpux/fs.c b/arch/parisc/hpux/fs.c
index 2bedafea3d94..97a7bf8df348 100644
--- a/arch/parisc/hpux/fs.c
+++ b/arch/parisc/hpux/fs.c
@@ -56,11 +56,12 @@ struct getdents_callback {
56 56
57#define NAME_OFFSET(de) ((int) ((de)->d_name - (char __user *) (de))) 57#define NAME_OFFSET(de) ((int) ((de)->d_name - (char __user *) (de)))
58 58
59static int filldir(void * __buf, const char * name, int namlen, loff_t offset, 59static int filldir(struct dir_context *ctx, const char *name, int namlen,
60 u64 ino, unsigned d_type) 60 loff_t offset, u64 ino, unsigned d_type)
61{ 61{
62 struct hpux_dirent __user * dirent; 62 struct hpux_dirent __user * dirent;
63 struct getdents_callback * buf = (struct getdents_callback *) __buf; 63 struct getdents_callback *buf =
64 container_of(ctx, struct getdents_callback, ctx);
64 ino_t d_ino; 65 ino_t d_ino;
65 int reclen = ALIGN(NAME_OFFSET(dirent) + namlen + 1, sizeof(long)); 66 int reclen = ALIGN(NAME_OFFSET(dirent) + namlen + 1, sizeof(long));
66 67