Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (43 commits) fs: Merge split strings treewide: fix potentially dangerous trailing ';' in #defined values/expressions uwb: Fix misspelling of neighbourhood in comment net, netfilter: Remove redundant goto in ebt_ulog_packet trivial: don't touch files that are removed in the staging tree lib/vsprintf: replace link to Draft by final RFC number doc: Kconfig: `to be' -> `be' doc: Kconfig: Typo: square -> squared doc: Konfig: Documentation/power/{pm => apm-acpi}.txt drivers/net: static should be at beginning of declaration drivers/media: static should be at beginning of declaration drivers/i2c: static should be at beginning of declaration XTENSA: static should be at beginning of declaration SH: static should be at beginning of declaration MIPS: static should be at beginning of declaration ARM: static should be at beginning of declaration rcu: treewide: Do not use rcu_read_lock_held when calling rcu_dereference_check Update my e-mail address PCIe ASPM: forcedly -> forcibly gma500: push through device driver tree ... Fix up trivial conflicts: - arch/arm/mach-ep93xx/dma-m2p.c (deleted) - drivers/gpio/gpio-ep93xx.c (renamed and context nearby) - drivers/net/r8169.c (just context changes)
This commit is contained in:
@ -444,7 +444,7 @@ static unsigned long __init
|
||||
find_bootmap_pfn(const struct resource *mem)
|
||||
{
|
||||
unsigned long bootmap_pages, bootmap_len;
|
||||
unsigned long node_pages = PFN_UP(mem->end - mem->start + 1);
|
||||
unsigned long node_pages = PFN_UP(resource_size(mem));
|
||||
unsigned long bootmap_start;
|
||||
|
||||
bootmap_pages = bootmem_bootmap_pages(node_pages);
|
||||
@ -541,10 +541,10 @@ static void __init setup_bootmem(void)
|
||||
*/
|
||||
if (res->start >= PFN_PHYS(first_pfn)
|
||||
&& res->end < PFN_PHYS(max_pfn))
|
||||
reserve_bootmem_node(
|
||||
NODE_DATA(node), res->start,
|
||||
res->end - res->start + 1,
|
||||
BOOTMEM_DEFAULT);
|
||||
reserve_bootmem_node(NODE_DATA(node),
|
||||
res->start,
|
||||
resource_size(res),
|
||||
BOOTMEM_DEFAULT);
|
||||
}
|
||||
|
||||
node_set_online(node);
|
||||
|
Reference in New Issue
Block a user