include/linux/fs.h: fix unsigned enum warning with gcc-4.2
authorArnd Bergmann <[email protected]>
Fri, 10 Mar 2017 00:16:57 +0000 (16:16 -0800)
committerLinus Torvalds <[email protected]>
Fri, 10 Mar 2017 01:01:09 +0000 (17:01 -0800)
commitcbfd0c1001bedb4b051cf4a1f5df24f1500381bc
treec3e8c87a24c2fffaa60c9e3c9c70498aa6e8c61d
parent8c9e7bb7a41f2bbd54b2caefb274fb3de239819f
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/[email protected]
Signed-off-by: Arnd Bergmann <[email protected]>
Cc: Russell King <[email protected]>
Cc: Brendan Gregg <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/fs.h