From mboxrd@z Thu Jan 1 00:00:00 1970 From: mark.rutland@arm.com (Mark Rutland) Date: Mon, 12 Jan 2015 15:40:26 +0000 Subject: [PATCH] arm64: mm: dump: add missing includes Message-ID: <1421077226-5530-1-git-send-email-mark.rutland@arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org The arm64 dump code is currently relying on some definitions which are pulled in via transitive dependencies. On next-20150112 at least one of these (PCI_IOBASE) is no longer pulled in with a defconfig build, resulting in the following build failure: arch/arm64/mm/dump.c:55:20: error: ?PCI_IOBASE? undeclared here (not in a function) { (unsigned long) PCI_IOBASE, "PCI I/O start" }, ^ It seems we have implicit dependencies on the following definitions: * PCI_IOBASE (asm/io.h) * MODULES_VADDR (asm/memory.h) * MODULES_END (asm/memory.h) * PAGE_OFFSET (asm/memory.h) * PTE_* (asm/pgtable-hwdef.h) * ENOMEM (asm/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 Reported-by: Mark Brown Cc: Catalin Marinas Cc: Laura Abbott Cc: Steve Capper Cc: Will Deacon --- arch/arm64/mm/dump.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/mm/dump.c b/arch/arm64/mm/dump.c index cf33f33..df69e43 100644 --- a/arch/arm64/mm/dump.c +++ b/arch/arm64/mm/dump.c @@ -15,12 +15,17 @@ */ #include #include +#include #include #include #include +#include #include +#include +#include #include +#include #define LOWEST_ADDR (UL(0xffffffffffffffff) << VA_BITS) -- 1.9.1