Skip to content

Commit

Permalink
lmb: Remove __init from lmb_end_of_DRAM()
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Benjamin Herrenschmidt authored and Linus Torvalds committed Aug 27, 2009
1 parent cf48144 commit 4f8ee2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lmb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 4f8ee2c

Please sign in to comment.