Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make error on 'isFileReadable' #4

Open
apetridis opened this issue Jun 14, 2022 · 0 comments
Open

Make error on 'isFileReadable' #4

apetridis opened this issue Jun 14, 2022 · 0 comments

Comments

@apetridis
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant