make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.1.0-050100rc4-generic/build M=/home/ygl/Desktop/rtl8821ce-master modules
make[1]: 进入目录“/usr/src/linux-headers-5.1.0-050100rc4-generic”
CC [M] /home/ygl/Desktop/rtl8821ce-master/os_dep/osdep_service.o
In file included from /home/ygl/Desktop/rtl8821ce-master/include/drv_types.h:35:0,
from /home/ygl/Desktop/rtl8821ce-master/os_dep/osdep_service.c:24:
/home/ygl/Desktop/rtl8821ce-master/include/wifi.h:1019:0: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
#define IEEE80211_MAX_AMPDU_BUF 0x40
In file included from /home/ygl/Desktop/rtl8821ce-master/include/osdep_service_linux.h:86:0,
from /home/ygl/Desktop/rtl8821ce-master/include/osdep_service.h:48,
from /home/ygl/Desktop/rtl8821ce-master/include/drv_types.h:32,
from /home/ygl/Desktop/rtl8821ce-master/os_dep/osdep_service.c:24:
./include/linux/ieee80211.h:1444:0: note: this is the location of the previous definition
#define IEEE80211_MAX_AMPDU_BUF 0x100
/home/ygl/Desktop/rtl8821ce-master/os_dep/osdep_service.c: In function ‘isFileReadable’:
/home/ygl/Desktop/rtl8821ce-master/os_dep/osdep_service.c:2088:10: error: implicit declaration of function ‘get_ds’; did you mean ‘get_da’? [-Werror=implicit-function-declaration]
set_fs(get_ds());
^~~~~~
get_da
/home/ygl/Desktop/rtl8821ce-master/os_dep/osdep_service.c:2088:10: error: incompatible type for argument 1 of ‘set_fs’
In file included from ./include/linux/uaccess.h:11:0,
from ./include/linux/crypto.h:26,
from ./include/crypto/hash.h:16,
from ./include/linux/uio.h:14,
from ./include/linux/socket.h:8,
from ./include/linux/compat.h:15,
from ./include/linux/ethtool.h:17,
from ./include/linux/netdevice.h:41,
from /home/ygl/Desktop/rtl8821ce-master/include/osdep_service_linux.h:35,
from /home/ygl/Desktop/rtl8821ce-master/include/osdep_service.h:48,
from /home/ygl/Desktop/rtl8821ce-master/include/drv_types.h:32,
from /home/ygl/Desktop/rtl8821ce-master/os_dep/osdep_service.c:24:
./arch/x86/include/asm/uaccess.h:29:20: note: expected ‘mm_segment_t {aka struct }’ but argument is of type ‘int’
static inline void set_fs(mm_segment_t fs)
^~~~~~
/home/ygl/Desktop/rtl8821ce-master/os_dep/osdep_service.c: In function ‘retriveFromFile’:
/home/ygl/Desktop/rtl8821ce-master/os_dep/osdep_service.c:2126:11: error: incompatible type for argument 1 of ‘set_fs’
set_fs(get_ds());
^~~~~~
In file included from ./include/linux/uaccess.h:11:0,
from ./include/linux/crypto.h:26,
from ./include/crypto/hash.h:16,
from ./include/linux/uio.h:14,
from ./include/linux/socket.h:8,
from ./include/linux/compat.h:15,
from ./include/linux/ethtool.h:17,
from ./include/linux/netdevice.h:41,
from /home/ygl/Desktop/rtl8821ce-master/include/osdep_service_linux.h:35,
from /home/ygl/Desktop/rtl8821ce-master/include/osdep_service.h:48,
from /home/ygl/Desktop/rtl8821ce-master/include/drv_types.h:32,
from /home/ygl/Desktop/rtl8821ce-master/os_dep/osdep_service.c:24:
./arch/x86/include/asm/uaccess.h:29:20: note: expected ‘mm_segment_t {aka struct }’ but argument is of type ‘int’
static inline void set_fs(mm_segment_t fs)
^~~~~~
/home/ygl/Desktop/rtl8821ce-master/os_dep/osdep_service.c: In function ‘storeToFile’:
/home/ygl/Desktop/rtl8821ce-master/os_dep/osdep_service.c:2161:11: error: incompatible type for argument 1 of ‘set_fs’
set_fs(get_ds());
^~~~~~
In file included from ./include/linux/uaccess.h:11:0,
from ./include/linux/crypto.h:26,
from ./include/crypto/hash.h:16,
from ./include/linux/uio.h:14,
from ./include/linux/socket.h:8,
from ./include/linux/compat.h:15,
from ./include/linux/ethtool.h:17,
from ./include/linux/netdevice.h:41,
from /home/ygl/Desktop/rtl8821ce-master/include/osdep_service_linux.h:35,
from /home/ygl/Desktop/rtl8821ce-master/include/osdep_service.h:48,
from /home/ygl/Desktop/rtl8821ce-master/include/drv_types.h:32,
from /home/ygl/Desktop/rtl8821ce-master/os_dep/osdep_service.c:24:
./arch/x86/include/asm/uaccess.h:29:20: note: expected ‘mm_segment_t {aka struct }’ but argument is of type ‘int’
static inline void set_fs(mm_segment_t fs)
^~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:276:/home/ygl/Desktop/rtl8821ce-master/os_dep/osdep_service.o] 错误 1
make[1]: *** [Makefile:1571:_module_/home/ygl/Desktop/rtl8821ce-master] 错误 2
make[1]: 离开目录“/usr/src/linux-headers-5.1.0-050100rc4-generic”
make: *** [Makefile:1902:modules] 错误 2