Skip to content

Commit e6ee902

Browse files
committed
LoongArch: Fix build errors for tinyconfig
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 and fix succeeding vdso errors. Fixes: 09cfefb ("LoongArch: Add memory management") Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Huacai Chen <[email protected]>
1 parent 1123809 commit e6ee902

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

arch/loongarch/include/asm/page.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#define _ASM_PAGE_H
77

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

1011
/*
1112
* PAGE_SHIFT determines the page size

arch/loongarch/vdso/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ ccflags-vdso += $(filter --target=%,$(KBUILD_CFLAGS))
2121
endif
2222

2323
cflags-vdso := $(ccflags-vdso) \
24+
-isystem $(shell $(CC) -print-file-name=include) \
2425
$(filter -W%,$(filter-out -Wa$(comma)%,$(KBUILD_CFLAGS))) \
2526
-O2 -g -fno-strict-aliasing -fno-common -fno-builtin -G0 \
2627
-fno-stack-protector -fno-jump-tables -DDISABLE_BRANCH_PROFILING \

0 commit comments

Comments
 (0)