Skip to contentSkip to conversation

fs-fix-unsigned-enum-warning-with-gcc-42.patch removed from -mm tree

merged [email protected] 1 participant 1 message Mar 10, 2017

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: include/linux/fs.h: fix unsigned enum warning with gcc-4.2
has been removed from the -mm tree. Its filename was
fs-fix-unsigned-enum-warning-with-gcc-42.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Arnd Bergmann <[email protected]>
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.

---

 include/linux/fs.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/fs.h renamed from include/linux/fs.h~fs-fix-unsigned-enum-warning-with-gcc-42 +1 -1
diff -puN include/linux/fs.h~fs-fix-unsigned-enum-warning-with-gcc-42 include/linux/fs.h
@@ -2678,7 +2678,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 [email protected] are