安裝CH9344SER_LINUX驅動時,make失敗

你好,我在安裝CH9344SER_LINUX驅動時,make失敗,出現以下報錯,請問該怎么解決

(myenv) rock@rockpi4b:~/qudong/LINUX/driver$ make

make -C /lib/modules/4.4.154-113-rockchip-gdb9dfc2cdd25/build? M=/home/rock/qudong/LINUX/driver?

make[1]: Entering directory '/usr/src/linux-headers-4.4.154-113-rockchip-gdb9dfc2cdd25'

? LD? ? ? /home/rock/qudong/LINUX/driver/built-in.o

? CC [M]? /home/rock/qudong/LINUX/driver/ch9344.o

In file included from /home/rock/qudong/LINUX/driver/ch9344.c:44:

include/linux/module.h:136:7: warning: ‘cleanup_module’ specifies less restrictive attribute than its target ‘ch9344_exit’: ‘cold’ [-Wmissing-attributes]

error, forbidden warning:module.h:136

? 136 |? void cleanup_module(void) __attribute__((alias(#exitfn)));

? ? ? |? ? ? ?^~~~~~~~~~~~~~

/home/rock/qudong/LINUX/driver/ch9344.c:2787:1: note: in expansion of macro ‘module_exit’

?2787 | module_exit(ch9344_exit);

? ? ? | ^~~~~~~~~~~

/home/rock/qudong/LINUX/driver/ch9344.c:2772:20: note: ‘cleanup_module’ target declared here

?2772 | static void __exit ch9344_exit(void)

? ? ? |? ? ? ? ? ? ? ? ? ? ^~~~~~~~~~~

In file included from /home/rock/qudong/LINUX/driver/ch9344.c:44:

include/linux/module.h:130:6: warning: ‘init_module’ specifies less restrictive attribute than its target ‘ch9344_init’: ‘cold’ [-Wmissing-attributes]

error, forbidden warning:module.h:130

? 130 |? int init_module(void) __attribute__((alias(#initfn)));

? ? ? |? ? ? ^~~~~~~~~~~

/home/rock/qudong/LINUX/driver/ch9344.c:2786:1: note: in expansion of macro ‘module_init’

?2786 | module_init(ch9344_init);

? ? ? | ^~~~~~~~~~~

/home/rock/qudong/LINUX/driver/ch9344.c:2723:19: note: ‘init_module’ target declared here

?2723 | static int __init ch9344_init(void)

? ? ? |? ? ? ? ? ? ? ? ? ?^~~~~~~~~~~

make[2]: *** [scripts/Makefile.build:284: /home/rock/qudong/LINUX/driver/ch9344.o] Error 1

make[1]: *** [Makefile:1474: _module_/home/rock/qudong/LINUX/driver] Error 2

make[1]: Leaving directory '/usr/src/linux-headers-4.4.154-113-rockchip-gdb9dfc2cdd25'

make: *** [Makefile:5: default] Error 2


??返回


您好,如上問題應為系統(tǒng)編譯環(huán)境問題,非驅動不兼容該版本內核。您這邊可以使用一個最簡單的hello驅動模塊編譯驗證下,如有問題,可聯系主板提供商解決編譯環(huán)境的問題。


只有登錄才能回復,可以選擇微信賬號登錄

国产91精品新入口,国产成人综合网在线播放,九热这里只有精品,本道在线观看,美女视频a美女视频,韩国美女激情视频,日本美女pvp视频