Skip to content

Commit a07c772

Browse files
rddunlapchenhuacai
authored andcommitted
LoongArch: Include linux/sizes.h in addrspace.h to prevent build errors
LoongArch's include/asm/addrspace.h uses SZ_32M and SZ_16K, so add <linux/sizes.h> to provide those macros to prevent build errors: In file included from ../arch/loongarch/include/asm/io.h:11, from ../include/linux/io.h:13, from ../include/linux/io-64-nonatomic-lo-hi.h:5, from ../drivers/cxl/pci.c:4: ../include/asm-generic/io.h: In function 'ioport_map': ../arch/loongarch/include/asm/addrspace.h:124:25: error: 'SZ_32M' undeclared (first use in this function); did you mean 'PS_32M'? 124 | #define PCI_IOSIZE SZ_32M Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
1 parent 3744e0e commit a07c772

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

arch/loongarch/include/asm/addrspace.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#define _ASM_ADDRSPACE_H
1212

1313
#include <linux/const.h>
14+
#include <linux/sizes.h>
1415

1516
#include <asm/loongarch.h>
1617

0 commit comments

Comments
 (0)