[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1250840168-4614-1-git-send-email-jirislaby@gmail.com>
Date: Fri, 21 Aug 2009 09:36:08 +0200
From: Jiri Slaby <jirislaby@...il.com>
To: akpm@...ux-foundation.org
Cc: linux-kernel@...r.kernel.org, Jiri Slaby <jirislaby@...il.com>,
KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>
Subject: [PATCH 1/1] kcore-use-registerd-physmem-information-fix2
Fix this compilation warning on x86_64:
fs/proc/kcore.c: In function ‘kclist_add_private’:
fs/proc/kcore.c:175: warning: comparison between pointer and integer
Signed-off-by: Jiri Slaby <jirislaby@...il.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>
---
fs/proc/kcore.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/proc/kcore.c b/fs/proc/kcore.c
index aabbc3a..98fcf17 100644
--- a/fs/proc/kcore.c
+++ b/fs/proc/kcore.c
@@ -172,7 +172,7 @@ kclist_add_private(unsigned long pfn, unsigned long nr_pages, void *arg)
ent->size = ULONG_MAX - ent->addr;
/* cut when vmalloc() area is higher than direct-map area */
- if (VMALLOC_START > __va(0)) {
+ if (VMALLOC_START > (unsigned long)__va(0)) {
if (ent->addr > VMALLOC_START)
goto free_out;
if (VMALLOC_START - ent->addr < ent->size)
--
1.6.3.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists