*.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions Module.* modules.order
make -C /lib/modules/4.4.194-14-rockchip-ge49def7efed1/build M=/home/rock/SIM7600_NDIS modules
make[1]: Entering directory '/usr/src/linux-headers-4.4.194-14-rockchip-ge49def7efed1'
CC [M] /home/rock/SIM7600_NDIS/simcom_wwan.o
/home/rock/SIM7600_NDIS/simcom_wwan.c: In function 'simcom_wwan_suspend':
/home/rock/SIM7600_NDIS/simcom_wwan.c:118:17: warning: unused variable 'dev' [-Wunused-variable]
error, forbidden warning:simcom_wwan.c:118
struct usbnet *dev = usb_get_intfdata(intf);
^~~
/home/rock/SIM7600_NDIS/simcom_wwan.c: In function 'simcom_wwan_resume':
/home/rock/SIM7600_NDIS/simcom_wwan.c:136:1: warning: label 'err' defined but not used [-Wunused-label]
error, forbidden warning:simcom_wwan.c:136
err:
^~~
/home/rock/SIM7600_NDIS/simcom_wwan.c:131:17: warning: unused variable 'dev' [-Wunused-variable]
error, forbidden warning:simcom_wwan.c:131
struct usbnet *dev = usb_get_intfdata(intf);
^~~
scripts/Makefile.build:283: recipe for target '/home/rock/SIM7600_NDIS/simcom_wwan.o' failed
make[2]: *** [/home/rock/SIM7600_NDIS/simcom_wwan.o] Error 1
Makefile:1479: recipe for target '_module_/home/rock/SIM7600_NDIS' failed
make[1]: *** [_module_/home/rock/SIM7600_NDIS] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.4.194-14-rockchip-ge49def7efed1'
Makefile:8: recipe for target 'all' failed
make: *** [all] Error 2
в чем проблема? 🤔
пробовал CFLAGS=-Wno-error=unused-label, говорит scripts/Makefile.build:49: *** CFLAGS was changed in "/home/rock/SIM7600_NDIS/Makefile". Fix it to use ccflags-y. Stop.
там же всё написано, Wno-error плохая идея...
а я забил уже
Обсуждают сегодня