Skip to contentSkip to conversation

debugging-keep-track-of-page-owners-fix-2.patch removed from -mm tree

folded-merged [email protected] 1 participant 1 message Nov 15, 2013 Documentation

lore
Share & tools
lore
#0 lore raw

Subject: [folded-merged] debugging-keep-track-of-page-owners-fix-2.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Fri, 15 Nov 2013 14:24:02 -0800

The patch titled
Subject: Fix wrong EOF compare
has been removed from the -mm tree. Its filename was
debugging-keep-track-of-page-owners-fix-2.patch

This patch was dropped because it was folded into debugging-keep-track-of-page-owners.patch

------------------------------------------------------
From: Minchan Kim <[email protected]>
Subject: Fix wrong EOF compare

The C standards allows the character type char to be singed or unsinged, depending on the platform and compiler. Most of systems uses signed char, but those based on PowerPC and ARM processors typically use unsigned char. This can lead to unexpected results when the variable is used to compare with EOF(-1). It happens my ARM system and this patch fixes it.

Cc Dave Hansen <[email protected]>
Cc Michal Nazarewicz <[email protected]>
Cc Randy Dunlap <[email protected]>

---

 Documentation/page_owner.c |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
Documentation/page_owner.c renamed from Documentation/page_owner.c~debugging-keep-track-of-page-owners-fix-2 +1 -2
diff -puN Documentation/page_owner.c~debugging-keep-track-of-page-owners-fix-2 Documentation/page_owner.c
@@ -32,12 +32,13 @@ int read_block(char *buf, FILE *fin)
 {
 	int ret = 0;
 	int hit = 0;
+	int val;
 	char *curr = buf;
 
 	for (;;) {
-		*curr = getc(fin);
-		if (*curr == EOF) return -1;