diff mbox

arm64: mm: explicity include linux/vmalloc.h

Message ID 20170515114020.8198-1-tklauser@distanz.ch (mailing list archive)
State New, archived
Headers show

Commit Message

Tobias Klauser May 15, 2017, 11:40 a.m. UTC
arm64's mm/mmu.c uses vm_area_add_early, struct vm_area and other
definitions  but relies on implict inclusion of linux/vmalloc.h which
means that changes in other headers could break the build. Thus, add an
explicit include.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
---
 arch/arm64/mm/mmu.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Ard Biesheuvel May 18, 2017, 9:45 a.m. UTC | #1
On 15 May 2017 at 12:40, Tobias Klauser <tklauser@distanz.ch> wrote:
> arm64's mm/mmu.c uses vm_area_add_early, struct vm_area and other
> definitions  but relies on implict inclusion of linux/vmalloc.h which
> means that changes in other headers could break the build. Thus, add an
> explicit include.
>
> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>

Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>

> ---
>  arch/arm64/mm/mmu.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm64/mm/mmu.c b/arch/arm64/mm/mmu.c
> index 0c429ec6fde8..23c2d89a362e 100644
> --- a/arch/arm64/mm/mmu.c
> +++ b/arch/arm64/mm/mmu.c
> @@ -31,6 +31,7 @@
>  #include <linux/fs.h>
>  #include <linux/io.h>
>  #include <linux/mm.h>
> +#include <linux/vmalloc.h>
>
>  #include <asm/barrier.h>
>  #include <asm/cputype.h>
> --
> 2.13.0
>
>
diff mbox

Patch

diff --git a/arch/arm64/mm/mmu.c b/arch/arm64/mm/mmu.c
index 0c429ec6fde8..23c2d89a362e 100644
--- a/arch/arm64/mm/mmu.c
+++ b/arch/arm64/mm/mmu.c
@@ -31,6 +31,7 @@ 
 #include <linux/fs.h>
 #include <linux/io.h>
 #include <linux/mm.h>
+#include <linux/vmalloc.h>
 
 #include <asm/barrier.h>
 #include <asm/cputype.h>