realtek-rtl88xxau-dkms icon indicating copy to clipboard operation
realtek-rtl88xxau-dkms copied to clipboard

Make error on 'isFileReadable'

Open apetridis opened this issue 2 years ago • 0 comments

Hello, I am on an Ubuntu 20.04.4 LTS and when I run make I get the following error:

/home/nobody_/realtek-rtl88xxau-dkms/os_dep/osdep_service.c: In function ‘isFileReadable’:
/home/nobody_/realtek-rtl88xxau-dkms/os_dep/osdep_service.c:2201:11: error: implicit declaration of function ‘get_fs’; did you mean ‘get_sa’? [-Werror=implicit-function-declaration]
 2201 |   oldfs = get_fs();
      |           ^~~~~~
      |           get_sa
/home/nobody_/realtek-rtl88xxau-dkms/os_dep/osdep_service.c:2201:11: error: incompatible types when assigning to type ‘mm_segment_t’ {aka ‘struct <anonymous>’} from type ‘int’
/home/nobody_/realtek-rtl88xxau-dkms/os_dep/osdep_service.c:2203:3: error: implicit declaration of function ‘set_fs’; did you mean ‘sget_fc’? [-Werror=implicit-function-declaration]
 2203 |   set_fs(KERNEL_DS);
      |   ^~~~~~
      |   sget_fc
/home/nobody_/realtek-rtl88xxau-dkms/os_dep/osdep_service.c:2203:10: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?
 2203 |   set_fs(KERNEL_DS);
      |          ^~~~~~~~~
      |          KERNFS_NS
/home/nobody_/realtek-rtl88xxau-dkms/os_dep/osdep_service.c:2203:10: note: each undeclared identifier is reported only once for each function it appears in
/home/nobody_/realtek-rtl88xxau-dkms/os_dep/osdep_service.c: In function ‘retriveFromFile’:
/home/nobody_/realtek-rtl88xxau-dkms/os_dep/osdep_service.c:2243:12: error: incompatible types when assigning to type ‘mm_segment_t’ {aka ‘struct <anonymous>’} from type ‘int’
 2243 |    oldfs = get_fs();
      |            ^~~~~~
/home/nobody_/realtek-rtl88xxau-dkms/os_dep/osdep_service.c:2245:11: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?
 2245 |    set_fs(KERNEL_DS);
      |           ^~~~~~~~~
      |           KERNFS_NS
/home/nobody_/realtek-rtl88xxau-dkms/os_dep/osdep_service.c: In function ‘storeToFile’:
/home/nobody_/realtek-rtl88xxau-dkms/os_dep/osdep_service.c:2282:12: error: incompatible types when assigning to type ‘mm_segment_t’ {aka ‘struct <anonymous>’} from type ‘int’
 2282 |    oldfs = get_fs();
      |            ^~~~~~
/home/nobody_/realtek-rtl88xxau-dkms/os_dep/osdep_service.c:2284:11: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?
 2284 |    set_fs(KERNEL_DS);
      |           ^~~~~~~~~
      |           KERNFS_NS
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:281: /home/nobody_/realtek-rtl88xxau-dkms/os_dep/osdep_service.o] Error 1
make[1]: *** [Makefile:1879: /home/nobody_/realtek-rtl88xxau-dkms] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.13.0-48-generic'
make: *** [Makefile:2246: modules] Error 2

apetridis avatar Jun 14 '22 09:06 apetridis