root@localhost wireless]# make
KBUILD_NOPEDANTIC=1 make -C /lib/modules/`uname -r`/build M=`pwd`
make[1]: 进入目录“/usr/src/kernels/4.18.0-305.25.1.el8_4.x86_64”
CFG80211 API is prefered for this kernel version
Using CFG80211 API
CC [M] /usr/local/wireless/src/wl/sys/wl_linux.o
/usr/local/wireless/src/wl/sys/wl_linux.c: 在函数‘wl_pci_probe’中:
/usr/local/wireless/src/wl/sys/wl_linux.c:772:2: 警告:this ‘if’ clause does not guard... [-Wmisleading-indentation]
if ((val & 0x0000ff00) != 0)
^~
/usr/local/wireless/src/wl/sys/wl_linux.c:774:3: 附注:...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
bar1_size = pci_resource_len(pdev, 2);
^~~~~~~~~
/usr/local/wireless/src/wl/sys/wl_linux.c: 在函数‘wl_init_timer’中:
/usr/local/wireless/src/wl/sys/wl_linux.c:2355:2: 错误:implicit declaration of function ‘init_timer’; did you mean ‘init_timers’? [-Werror=implicit-function-declaration]
init_timer(&t->timer);
^~~~~~~~~~
init_timers
/usr/local/wireless/src/wl/sys/wl_linux.c:2356:10: 错误:‘struct timer_list’没有名为‘data’的成员
t->timer.data = (ulong) t;
^
/usr/local/wireless/src/wl/sys/wl_linux.c:2357:20: 错误:assignment to ‘void (*)(struct timer_list *)’ from incompatible pointer type ‘void (*)(ulong)’ {或称 ‘void (*)(long unsigned int)’} [-Werror=incompatible-pointer-types]
t->timer.function = wl_timer;
^
/usr/local/wireless/src/wl/sys/wl_linux.c: 在函数‘wl_monitor’中:
/usr/local/wireless/src/wl/sys/wl_linux.c:2918:10: 错误:‘struct net_device’没有名为‘last_rx’的成员
skb->dev->last_rx = jiffies;
^~
cc1:有些警告被当作是错误
make[2]: *** [scripts/Makefile.build:316:/usr/local/wireless/src/wl/sys/wl_linux.o] 错误 1
make[1]: *** [Makefile:1563:_module_/usr/local/wireless] 错误 2
make[1]: 离开目录“/usr/src/kernels/4.18.0-305.25.1.el8_4.x86_64”
make: *** [Makefile:159:all] 错误 2