编译内核出现implicit declaration of function 'iowrite16be'解决方法

来源:互联网 发布:哪个软件音质最好 编辑:程序博客网 时间:2024/06/05 09:00

完整错误信息:


drivers/gpio/janz-ttl.c: In function 'ttl_set_value':drivers/gpio/janz-ttl.c:107:2: error: implicit declaration of function 'iowrite16be' [-Werror=implicit-function-declaration]cc1: some warnings being treated as errorsscripts/Makefile.build:311: recipe for target 'drivers/gpio/janz-ttl.o' failedmake[2]: *** [drivers/gpio/janz-ttl.o] Error 1scripts/Makefile.build:441: recipe for target 'drivers/gpio' failedmake[1]: *** [drivers/gpio] Error 2Makefile:945: recipe for target 'drivers' failedmake: *** [drivers] Error 2

解决方法:

gedit drivers/gpio/janz-ttl.c
在前面加上下述定义

#define iowrite16be(v, addr) iowrite16(be16_to_cpu(v), (addr))


方法来自:https://zhidao.baidu.com/question/323522025.html

0 0
原创粉丝点击