你好,我在安裝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