2006-03-27 23:40:56

by Randy Dunlap

[permalink] [raw]
Subject: XFS: 2.6.16-git13 warning??


fs/xfs/linux-2.6/xfs_ioctl32.c:114: warning: initialization from incompatible pointer type

vnode_t *vp = vn_to_inode(inode);

vn_to_inode() wants a vnode, not an inode.

should that be vn_from_inode(inode) ??

thanks,
---
~Randy


2006-03-27 23:43:31

by Nathan Scott

[permalink] [raw]
Subject: Re: XFS: 2.6.16-git13 warning??

On Mon, Mar 27, 2006 at 03:43:10PM -0800, Randy.Dunlap wrote:
>
> fs/xfs/linux-2.6/xfs_ioctl32.c:114: warning: initialization from incompatible pointer type
>
> vnode_t *vp = vn_to_inode(inode);
>
> vn_to_inode() wants a vnode, not an inode.
>
> should that be vn_from_inode(inode) ??

Yep, thanks Randy - I'll get that fixed up.

cheers.

--
Nathan