Hello. I get an error like this. Whatever I did I couldn’t fix it. What is the problem?
I use this
SierraLinuxQMIdriversS2.42N2.64
my module
EM7455
System
Khadas VIM3 Pro Ubuntu 20.04
$ uname -a Linux Khadas 4.9.241 #2 SMP PREEMPT Thu Nov 26 03:11:53 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux
$ uname -r 4.9.241
fkaraokur@Khadas:~/Downloads/SierraLinuxQMIdriversS2.42N2.64/GobiSerial$ su
Password:
root@Khadas:/home/fkaraokur/Downloads/SierraLinuxQMIdriversS2.42N2.64/GobiSerial# make
rm -rf *.o ~ core .depend ..cmd *.ko .mod.c .tmp_versions Module. modules.order .cache.mk *.o.ur-safe
make -C /lib/modules/4.9.241/build M=/home/fkaraokur/Downloads/SierraLinuxQMIdriversS2.42N2.64/GobiSerial modules
make[1]: Entering directory ‘/usr/src/linux-headers-4.9.241’
CC [M] /home/fkaraokur/Downloads/SierraLinuxQMIdriversS2.42N2.64/GobiSerial/GobiSerial.o
/home/fkaraokur/Downloads/SierraLinuxQMIdriversS2.42N2.64/GobiSerial/GobiSerial.c:242:2: error: #warning “Assuming disc_mutex is locked external to the module” [-Werror=cpp]
242 | #warning “Assuming disc_mutex is locked external to the module”
| ^~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [scripts/Makefile.build:341: /home/fkaraokur/Downloads/SierraLinuxQMIdriversS2.42N2.64/GobiSerial/GobiSerial.o] Error 1
make[1]: *** [Makefile:1656: module/home/fkaraokur/Downloads/SierraLinuxQMIdriversS2.42N2.64/GobiSerial] Error 2
make[1]: Leaving directory ‘/usr/src/linux-headers-4.9.241’
make: *** [Makefile:25: all] Error 2
root@Khadas:/home/fkaraokur/Downloads/SierraLinuxQMIdriversS2.42N2.64/GobiSerial#