From 56ce2f25ab0d8830d914e626bc88e45b42e11661 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 8 Sep 2017 10:25:08 +0200 Subject: openrisc: add forward declaration for struct vm_area_struct After removing linux/vmalloc.h from asm-generic/io.h, the following warning occurs on openrisc: In file included from arch/openrisc/include/asm/io.h:33:0, from include/linux/io.h:25, from drivers/tty/serial/earlycon.c:19: arch/openrisc/include/asm/pgtable.h:424:2: warning: 'struct vm_area_struct' declared inside parameter list unsigned long address, pte_t *pte) ^ arch/openrisc/include/asm/pgtable.h:424:2: warning: its scope is only this definition or declaration, which is probably not what you want Reported-by: kbuild test robot Cc: Arnd Bergmann Signed-off-by: Tobias Klauser Signed-off-by: Stafford Horne --- arch/openrisc/include/asm/pgtable.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'arch/openrisc/include/asm') diff --git a/arch/openrisc/include/asm/pgtable.h b/arch/openrisc/include/asm/pgtable.h index ff97374ca069..71a6f08de8f2 100644 --- a/arch/openrisc/include/asm/pgtable.h +++ b/arch/openrisc/include/asm/pgtable.h @@ -414,6 +414,8 @@ static inline void pmd_set(pmd_t *pmdp, pte_t *ptep) extern pgd_t swapper_pg_dir[PTRS_PER_PGD]; /* defined in head.S */ +struct vm_area_struct; + /* * or32 doesn't have any external MMU info: the kernel page * tables contain all the necessary information. -- cgit v1.2.3