A40I 内核编译 error: 'SUNXI_IO_PBASE' undeclared here
A40i 内核编译报错,有解决过这问题的朋友吗? 感谢drivers/char/dump_reg/dump_reg.c:42:28: error: 'SUNXI_IO_PBASE' undeclared here (not in a function)
#define SUNXI_IO_PHYS_BASE SUNXI_IO_PBASE
^
drivers/char/dump_reg/dump_reg.c:129:16: note: in expansion of macro 'SUNXI_IO_PHYS_BASE'
.pst_addr = SUNXI_IO_PHYS_BASE,
^
drivers/char/dump_reg/dump_reg.c:130:37: error: 'SUNXI_IO_SIZE' undeclared here (not in a function)
.ped_addr = SUNXI_IO_PHYS_BASE + SUNXI_IO_SIZE,
^
drivers/char/dump_reg/dump_reg.c:141:16: error: 'PLAT_PHYS_OFFSET' undeclared here (not in a function)
.pst_addr = PLAT_PHYS_OFFSET,
^
drivers/char/dump_reg/dump_reg.c:43:26: error: implicit declaration of function 'IO_ADDRESS' [-Werror=implicit-function-declaration]
#define SUNXI_IOMEM_VASE IO_ADDRESS(SUNXI_IO_PBASE)
这几个是缺少函数声明。看看是不是少调用头文件或者需要添加声明 zhichao 发表于 2022-5-19 10:45
这几个是缺少函数声明。看看是不是少调用头文件或者需要添加声明
谢谢~感谢你的回答。:)
页:
[1]