Page 1 of 1

Kernel 4.11.0 osscore.c compile fix

Posted: Fri May 05, 2017 2:00 am
by hash
So with Linux Kernel 4.11.0, osscore.c no longer compiles with error as follows:

Code: Select all

osscore.c:477:23: error: dereferencing pointer to incomplete type 'const struct cred'    return current->cred->uid.val;
So I "fiddled around" and came up with following fix:
oss-4.9999-001_oss4_linux_4.11_osscore_fix_git.patch.txt
Kernel 4.11.0 osscore.c compile fix
(695 Bytes) Downloaded 89 times
Dirty fix but "works-for-me"! ;)
PS: This article on StackOverflow helped me understand what the problem and what needs to be done.

Re: Kernel 4.11.0 osscore.c compile fix

Posted: Mon Sep 25, 2017 10:24 am
by hash
Here is updated patch for current git from sf.net
oss-4.9999-001_oss4_linux_4.11_osscore_fix_git.patch.txt
UpDated Kernel 4.11.0 osscore.c compile fix
(697 Bytes) Downloaded 67 times