Staging: pohmelfs: fix type errors
authorAlan Cox <alan@linux.intel.com>
Wed, 19 Aug 2009 16:52:08 +0000 (17:52 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Sep 2009 19:02:26 +0000 (12:02 -0700)
Signed-off-by: Alan Cox <alan@linux.intel.com>
Cc: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/pohmelfs/config.c
drivers/staging/pohmelfs/dir.c

index a6eaa42..99ae1d9 100644 (file)
@@ -446,9 +446,8 @@ out_unlock:
        return err;
 }
 
-static void pohmelfs_cn_callback(void *data)
+static void pohmelfs_cn_callback(struct cn_msg *msg)
 {
-       struct cn_msg *msg = data;
        int err;
 
        switch (msg->flags) {
index 4c58e22..4c63a4c 100644 (file)
@@ -412,7 +412,7 @@ static int pohmelfs_readdir(struct file *file, void *dirent, filldir_t filldir)
                                __func__, file->f_pos, pi->ino, n->data, n->len,
                                n->ino, n->mode, mode, file->f_pos, n->hash);
 
-               file->private_data = (void *)n->hash;
+               file->private_data = (void *)(unsigned long)n->hash;
 
                len = n->len;
                err = filldir(dirent, n->data, n->len, file->f_pos, n->ino, mode);