The patch titled Subject: include/linux/fs.h: fix unsigned enum warning with gcc-4.2 has been added to the -mm tree. Its filename is fs-fix-unsigned-enum-warning-with-gcc-42.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/fs-fix-unsigned-enum-warning-with-gcc-42.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/fs-fix-unsigned-enum-warning-with-gcc-42.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Arnd Bergmann <arnd@xxxxxxxx> Subject: include/linux/fs.h: fix unsigned enum warning with gcc-4.2 With arm-linux-gcc-4.2, almost every file we build in the kernel ends up with this warning: include/linux/fs.h:2648: warning: comparison of unsigned expression < 0 is always false Later versions don't have this problem, but it's easy enough to work around. Link: http://lkml.kernel.org/r/20161216105634.235457-12-arnd@xxxxxxxx Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx> Cc: Russell King <rmk+kernel@xxxxxxxxxxxxxxx> Cc: Brendan Gregg <brendan.d.gregg@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/fs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN include/linux/fs.h~fs-fix-unsigned-enum-warning-with-gcc-42 include/linux/fs.h --- a/include/linux/fs.h~fs-fix-unsigned-enum-warning-with-gcc-42 +++ a/include/linux/fs.h @@ -2652,7 +2652,7 @@ static const char * const kernel_read_fi static inline const char *kernel_read_file_id_str(enum kernel_read_file_id id) { - if (id < 0 || id >= READING_MAX_ID) + if ((unsigned)id >= READING_MAX_ID) return kernel_read_file_str[READING_UNKNOWN]; return kernel_read_file_str[id]; _ Patches currently in -mm which might be from arnd@xxxxxxxx are fs-fix-unsigned-enum-warning-with-gcc-42.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html