Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4f8ee2c9 authored by Benjamin Herrenschmidt's avatar Benjamin Herrenschmidt Committed by Linus Torvalds
Browse files

lmb: Remove __init from lmb_end_of_DRAM()



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: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent cf481442
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -429,7 +429,7 @@ u64 __init lmb_phys_mem_size(void)
	return lmb.memory.size;
	return lmb.memory.size;
}
}


u64 __init lmb_end_of_DRAM(void)
u64 lmb_end_of_DRAM(void)
{
{
	int idx = lmb.memory.cnt - 1;
	int idx = lmb.memory.cnt - 1;