Re: Fixing fmode_t warnings

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Steve French
Date: Tuesday, November 18, 2008 - 9:49 am

The same kind of thing causes a sparse warning in fs/open.c (and
fs/namei.c and fs/locks.c too)

CHECK   fs/open.c
fs/open.c:270:29: warning: incorrect type in argument 2 (different base types)
fs/open.c:270:29:    expected unsigned int [unsigned] mode
fs/open.c:270:29:    got restricted fmode_t [usertype] <noident>

fs/open.c:	error = break_lease(inode, FMODE_WRITE);

On Tue, Nov 18, 2008 at 10:41 AM, Steve French <smfrench@gmail.com> wrote:



-- 
Thanks,

Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Fixing fmode_t warnings, Steve French, (Tue Nov 18, 9:41 am)
Re: Fixing fmode_t warnings, Steve French, (Tue Nov 18, 9:49 am)
Re: Fixing fmode_t warnings, Al Viro, (Tue Nov 18, 10:00 am)
Re: Fixing fmode_t warnings, Jeff Layton, (Tue Nov 18, 10:03 am)
Re: Fixing fmode_t warnings, Dave Kleikamp, (Tue Nov 18, 10:12 am)