* [PATCH] lmb: Remove __init from lmb_end_of_DRAM()
@ 2009-08-27 7:20 Benjamin Herrenschmidt
0 siblings, 0 replies; only message in thread
From: Benjamin Herrenschmidt @ 2009-08-27 7:20 UTC (permalink / raw)
To: Linus Torvalds; +Cc: linuxppc-dev list, David Woodhouse, David S. Miller
We call lmb_end_of_DRAM() to test whether a DMA mask
is ok on a machine without IOMMU, but this function is
marked as __init.
I don't think there's a clean way to get the top of RAM
max_pfn doesn't appear to include highmem or I missed
(or we have a bug :-) so for now, let's just avoid having
a broken 2.6.31 by making this function non-__init and we
can revisit later.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
---
David, you use lmb too, any objection there ?
diff --git a/lib/lmb.c b/lib/lmb.c
index e4a6482..0343c05 100644
--- a/lib/lmb.c
+++ b/lib/lmb.c
@@ -429,7 +429,7 @@ u64 __init lmb_phys_mem_size(void)
return lmb.memory.size;
}
-u64 __init lmb_end_of_DRAM(void)
+u64 lmb_end_of_DRAM(void)
{
int idx = lmb.memory.cnt - 1;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-08-27 7:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-27 7:20 [PATCH] lmb: Remove __init from lmb_end_of_DRAM() Benjamin Herrenschmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).