From: Jeff Layton Subject: Re: [PATCH 5/5] cifs: clean up various nits in unicode routines Date: Tue, 5 Apr 2011 11:37:10 -0700 Message-ID: <20110405113710.543d32f4@corrin.poochiereds.net> References: <7828.1302026339@redhat.com> <20110405103209.75fb7da5@corrin.poochiereds.net> <1301607405-4379-1-git-send-email-jlayton@redhat.com> <1301607405-4379-6-git-send-email-jlayton@redhat.com> <7882.1302026478@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Steve French , linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: David Howells Return-path: In-Reply-To: <7882.1302026478-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> Sender: linux-cifs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: On Tue, 05 Apr 2011 19:01:18 +0100 David Howells wrote: > David Howells wrote: > > > Which line is it that actually gives the warning? Is it when 0 is implicitly > > cast to __le16? If so, can you just cast it directly? > > Actually, if it really *is* that line, then perhaps *sparse* is wrong... (0 is > special after all). > > David No, it's because I'm abusing the __le16 on the stack and then fixing it up using cpu_to_le16. It's worth fixing, I think... -- Jeff Layton