]> git.pld-linux.org Git - packages/wl.git/blob - kernel-4.14.patch
- fix building with kernel 5.10
[packages/wl.git] / kernel-4.14.patch
1 --- a/src/shared/linux_osl.c
2 +++ b/src/shared/linux_osl.c
3 @@ -1080,7 +1080,11 @@ osl_os_get_image_block(char *buf, int le
4         if (!image)
5                 return 0;
6  
7 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0)
8 +       rdlen = kernel_read(fp, buf, len, &fp->f_pos);
9 +#else
10         rdlen = kernel_read(fp, fp->f_pos, buf, len);
11 +#endif
12         if (rdlen > 0)
13                 fp->f_pos += rdlen;
14  
This page took 0.093575 seconds and 3 git commands to generate.