Re: [PATCH] adfs: add hexadecimal filetype suffix option

From: Geert Uytterhoeven
Date: Wed Mar 23 2011 - 16:38:17 EST

On Thu, Jan 20, 2011 at 00:49, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> wrote:
> On Wed, 12 Jan 2011 18:07:23 +0000
> Stuart Swales <stuart.swales.croftnuisk@xxxxxxxxx> wrote:
>> From: Stuart Swales<stuart.swales.croftnuisk@xxxxxxxxx>

>> +static inline int append_filetype_suffix(char *buf, __u16 filetype)
>> +{
>> + Â Â if ((__u16) -1 == filetype)
> unneeded cast.

My compiler tends to disagree. On current mainline, it says:

fs/adfs/adfs.h: In function âappend_filetype_suffixâ:
fs/adfs/adfs.h:115: warning: comparison is always false due to limited
range of data type



Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
             Â Â -- Linus Torvalds
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at