[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1278226587-31213-5-git-send-email-yinghai@kernel.org>
Date: Sat, 3 Jul 2010 23:56:08 -0700
From: Yinghai Lu <yinghai@...nel.org>
To: Ingo Molnar <mingo@...e.hu>, Thomas Gleixner <tglx@...utronix.de>,
"H. Peter Anvin" <hpa@...or.com>,
Andrew Morton <akpm@...ux-foundation.org>,
David Miller <davem@...emloft.net>,
Benjamin Herrenschmidt <benh@...nel.crashing.org>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>,
Johannes Weiner <hannes@...xchg.org>,
linux-kernel@...r.kernel.org, linux-arch@...r.kernel.org,
Yinghai Lu <yinghai@...nel.org>
Subject: [PATCH 04/23] lmb: Export LMB_ERROR again
will used by x86 lmb_x86_find_in_range_node and nobootmem replacement
-v2: use 0 instead -1ULL, Suggesed by Linus, so we don't need cast them later to unsigned long
Signed-off-by: Yinghai Lu <yinghai@...nel.org>
---
include/linux/lmb.h | 1 +
lib/lmb.c | 2 --
2 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/include/linux/lmb.h b/include/linux/lmb.h
index 5124fca..1a0ba7a 100644
--- a/include/linux/lmb.h
+++ b/include/linux/lmb.h
@@ -19,6 +19,7 @@
#include <asm/lmb.h>
#define INIT_LMB_REGIONS 128
+#define LMB_ERROR 0
struct lmb_region {
phys_addr_t base;
diff --git a/lib/lmb.c b/lib/lmb.c
index dde8d04..7f89468 100644
--- a/lib/lmb.c
+++ b/lib/lmb.c
@@ -27,8 +27,6 @@ int lmb_can_resize;
static struct lmb_region lmb_memory_init_regions[INIT_LMB_REGIONS + 1];
struct lmb_region lmb_reserved_init_regions[INIT_LMB_REGIONS + 1];
-#define LMB_ERROR (~(phys_addr_t)0)
-
/* inline so we don't get a warning when pr_debug is compiled out */
static inline const char *lmb_type_name(struct lmb_type *type)
{
--
1.6.4.2
--
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