projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mm: kmemleak: avoid using __va() on addresses that don't have a lowmem mapping
[deliverable/linux.git]
/
mm
/
nobootmem.c
diff --git
a/mm/nobootmem.c
b/mm/nobootmem.c
index bd05a70f44b96c81d4d7c119fd4a807f1af15bd6..b001384dfbdd952c522ae6da1619af28697c0a88 100644
(file)
--- a/
mm/nobootmem.c
+++ b/
mm/nobootmem.c
@@
-11,18
+11,21
@@
#include <linux/init.h>
#include <linux/pfn.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/pfn.h>
#include <linux/slab.h>
-#include <linux/bootmem.h>
#include <linux/export.h>
#include <linux/kmemleak.h>
#include <linux/range.h>
#include <linux/memblock.h>
#include <linux/export.h>
#include <linux/kmemleak.h>
#include <linux/range.h>
#include <linux/memblock.h>
+#include <linux/bootmem.h>
#include <asm/bug.h>
#include <asm/io.h>
#include <asm/bug.h>
#include <asm/io.h>
-#include <asm/processor.h>
#include "internal.h"
#include "internal.h"
+#ifndef CONFIG_HAVE_MEMBLOCK
+#error CONFIG_HAVE_MEMBLOCK not defined
+#endif
+
#ifndef CONFIG_NEED_MULTIPLE_NODES
struct pglist_data __refdata contig_page_data;
EXPORT_SYMBOL(contig_page_data);
#ifndef CONFIG_NEED_MULTIPLE_NODES
struct pglist_data __refdata contig_page_data;
EXPORT_SYMBOL(contig_page_data);
@@
-81,7
+84,7
@@
void __init free_bootmem_late(unsigned long addr, unsigned long size)
{
unsigned long cursor, end;
{
unsigned long cursor, end;
- kmemleak_free_part
(__va(addr)
, size);
+ kmemleak_free_part
_phys(addr
, size);
cursor = PFN_UP(addr);
end = PFN_DOWN(addr + size);
cursor = PFN_UP(addr);
end = PFN_DOWN(addr + size);
@@
-395,9
+398,6
@@
void * __init __alloc_bootmem_node_high(pg_data_t *pgdat, unsigned long size,
return __alloc_bootmem_node(pgdat, size, align, goal);
}
return __alloc_bootmem_node(pgdat, size, align, goal);
}
-#ifndef ARCH_LOW_ADDRESS_LIMIT
-#define ARCH_LOW_ADDRESS_LIMIT 0xffffffffUL
-#endif
/**
* __alloc_bootmem_low - allocate low boot memory
/**
* __alloc_bootmem_low - allocate low boot memory
This page took
0.024703 seconds
and
5
git commands to generate.