嵌入式爱好者

查看: 2180|回复: 2

[Linux] A40I 内核编译 error: 'SUNXI_IO_PBASE' undeclared here

[复制链接]

1

主题

2

帖子

7

积分

扫一扫,手机访问本帖
发表于 2022-5-18 18:21:27 | 显示全部楼层 |阅读模式
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)


回复

使用道具 举报

0

主题

1173

帖子

2194

积分

发表于 2022-5-19 10:45:32 | 显示全部楼层
这几个是缺少函数声明。看看是不是少调用头文件或者需要添加声明

点评

谢谢~感谢你的回答。  详情 回复 发表于 2022-5-19 15:16
点评回复 支持 反对

使用道具 举报

0

主题

1

帖子

13

积分

A40i/T3/T507/T527通行证

发表于 2022-5-19 15:16:08 | 显示全部楼层
zhichao 发表于 2022-5-19 10:45
这几个是缺少函数声明。看看是不是少调用头文件或者需要添加声明

谢谢~感谢你的回答。:)
点评回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2024-4-20 22:18

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表