DKMS make.log for broadcom-sta-6.30.223.271 for kernel 5.10.9-051009-generic (x86_64) Wed 20 Jan 2021 19:45:27 AEDT /bin/sh: 1: [: Illegal number: /bin/sh: 1: [: Illegal number: Wireless Extension is the only possible API for this kernel version Using Wireless Extension API KBUILD_NOPEDANTIC=1 make -C /lib/modules/5.10.9-051009-generic/build M=`pwd` make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule. make[1]: Entering directory '/usr/src/linux-headers-5.10.9-051009-generic' CFG80211 API is prefered for this kernel version Using CFG80211 API Kernel architecture is X86_64 CC [M] /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/shared/linux_osl.o CC [M] /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.o /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c: In function ‘wl_pci_probe’: /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:787:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 787 | if ((val & 0x0000ff00) != 0) | ^~ /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:789:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 789 | bar1_size = pci_resource_len(pdev, 2); | ^~~~~~~~~ /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c: In function ‘wl_ioctl’: /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:1666:6: error: implicit declaration of function ‘segment_eq’ [-Werror=implicit-function-declaration] 1666 | if (segment_eq(get_fs(), KERNEL_DS)) | ^~~~~~~~~~ /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:1666:17: error: implicit declaration of function ‘get_fs’; did you mean ‘sget_fc’? [-Werror=implicit-function-declaration] 1666 | if (segment_eq(get_fs(), KERNEL_DS)) | ^~~~~~ | sget_fc /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:1666:27: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’? 1666 | if (segment_eq(get_fs(), KERNEL_DS)) | ^~~~~~~~~ | KERNFS_NS /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:1666:27: note: each undeclared identifier is reported only once for each function it appears in cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:279: /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.o] Error 1 make[1]: *** [Makefile:1805: /var/lib/dkms/broadcom-sta/6.30.223.271/build] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-5.10.9-051009-generic' make: *** [Makefile:177: all] Error 2