All of lore.kernel.org
 help / color / mirror / Atom feed
* Fixing fmode_t warnings
@ 2008-11-18 16:41 Steve French
  2008-11-18 16:49 ` Steve French
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Steve French @ 2008-11-18 16:41 UTC (permalink / raw)
  To: Dave Kleikamp, Jeff Layton, Shirish Pargaonkar, linux-fsdevel

Do you think it is worthwhile fixing this "sparse" warning ?  oflags
is an int since the lookup intent open.flags is an int ...

CHECK   fs/cifs/dir.c
fs/cifs/dir.c:169:16: warning: restricted fmode_t degrades to integer
fs/cifs/dir.c:171:16: warning: restricted fmode_t degrades to integer

                int oflags = nd->intent.open.flags;
                desiredAccess = 0;
(line 169) if (oflags & FMODE_READ)
                        desiredAccess |= GENERIC_READ;
(line 171) if (oflags & FMODE_WRITE) {


-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-11-18 17:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-18 16:41 Fixing fmode_t warnings Steve French
2008-11-18 16:49 ` Steve French
2008-11-18 17:00 ` Al Viro
2008-11-18 17:03 ` Jeff Layton
2008-11-18 17:12   ` Dave Kleikamp

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.