Skip to content

Commit c193591

Browse files
James MorseAlex Shi
authored andcommitted
arm64: kernel: Include _AC definition in page.h
page.h uses '_AC' in the definition of PAGE_SIZE, but doesn't include linux/const.h where this is defined. This produces build warnings when only asm/page.h is included by asm code. Signed-off-by: James Morse <james.morse@arm.com> Acked-by: Mark Rutland <mark.rutland@arm.com> Acked-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com> (cherry picked from commit 812264550dcba6cdbe84bfac2f27e7d23b5b8733) Signed-off-by: Alex Shi <alex.shi@linaro.org>
1 parent 3b5f4eb commit c193591

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

arch/arm64/include/asm/page.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
#ifndef __ASM_PAGE_H
2020
#define __ASM_PAGE_H
2121

22+
#include <linux/const.h>
23+
2224
/* PAGE_SHIFT determines the page size */
2325
/* CONT_SHIFT determines the number of pages which can be tracked together */
2426
#ifdef CONFIG_ARM64_64K_PAGES

0 commit comments

Comments
 (0)