aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Rutland <mark.rutland@arm.com>2015-01-22 13:20:36 -0500
committerCatalin Marinas <catalin.marinas@arm.com>2015-01-23 09:14:02 -0500
commit764011ca8247808e066a182bcfe42a2b14c99a9a (patch)
treeb22db9f8083b1e757696b19b1bcfc76e13703c7b
parentaa03c428e67881795f4190f9ffdb62fc14978608 (diff)
arm64: mm: dump: add missing includes
The arm64 dump code is currently relying on some definitions which are pulled in via transitive dependencies. It seems we have implicit dependencies on the following definitions: * MODULES_VADDR (asm/memory.h) * MODULES_END (asm/memory.h) * PAGE_OFFSET (asm/memory.h) * PTE_* (asm/pgtable-hwdef.h) * ENOMEM (linux/errno.h) * device_initcall (linux/init.h) This patch ensures we explicitly include the relevant headers for the above items, fixing the observed build issue and hopefully preventing future issues as headers are refactored. Signed-off-by: Mark Rutland <mark.rutland@arm.com> Reported-by: Mark Brown <broonie@kernel.org> Acked-by: Steve Capper <steve.capper@linaro.org> Cc: Laura Abbott <lauraa@codeaurora.org> Cc: Will Deacon <will.deacon@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
-rw-r--r--arch/arm64/mm/dump.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm64/mm/dump.c b/arch/arm64/mm/dump.c
index 77d39a1b6f8d..bbc5a29ecaaf 100644
--- a/arch/arm64/mm/dump.c
+++ b/arch/arm64/mm/dump.c
@@ -14,13 +14,17 @@
14 * of the License. 14 * of the License.
15 */ 15 */
16#include <linux/debugfs.h> 16#include <linux/debugfs.h>
17#include <linux/errno.h>
17#include <linux/fs.h> 18#include <linux/fs.h>
19#include <linux/init.h>
18#include <linux/mm.h> 20#include <linux/mm.h>
19#include <linux/sched.h> 21#include <linux/sched.h>
20#include <linux/seq_file.h> 22#include <linux/seq_file.h>
21 23
22#include <asm/fixmap.h> 24#include <asm/fixmap.h>
25#include <asm/memory.h>
23#include <asm/pgtable.h> 26#include <asm/pgtable.h>
27#include <asm/pgtable-hwdef.h>
24 28
25#define LOWEST_ADDR (UL(0xffffffffffffffff) << VA_BITS) 29#define LOWEST_ADDR (UL(0xffffffffffffffff) << VA_BITS)
26 30