[PATCH 1/3] LoongArch: page.h: Add missing include file

From: Guenter Roeck
Date: Fri Jul 01 2022 - 10:49:56 EST


Building loongarch:tinyconfig fails with the following error.

./arch/loongarch/include/asm/page.h: In function 'pfn_valid':
./arch/loongarch/include/asm/page.h:42:32: error: 'PHYS_OFFSET' undeclared

Add the missing include file.

Fixes: 09cfefb7fa70 ("LoongArch: Add memory management")
Signed-off-by: Guenter Roeck <linux@xxxxxxxxxxxx>
---
arch/loongarch/include/asm/page.h | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/loongarch/include/asm/page.h b/arch/loongarch/include/asm/page.h
index 3dba4986f6c9..8cee37f832aa 100644
--- a/arch/loongarch/include/asm/page.h
+++ b/arch/loongarch/include/asm/page.h
@@ -5,6 +5,7 @@
#ifndef _ASM_PAGE_H
#define _ASM_PAGE_H

+#include <asm/addrspace.h>
#include <linux/const.h>

/*
--
2.35.1