Staging: pohmelfs: fix type errors

Signed-off-by: Alan Cox <alan@linux.intel.com>
Cc: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Alan Cox 2009-08-19 17:52:08 +01:00 committed by Greg Kroah-Hartman
parent 76efa5e34e
commit 106a47ba0a
2 changed files with 2 additions and 3 deletions

View 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) {

View 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);