Kernel 4.11.0 osscore.c compile fix

OSS specific Linux discussion (x86/amd64)

Moderators: hannu, dev, cesium

hash
Member
Posts: 27
Joined: Thu Nov 18, 2010 10:38 am

Kernel 4.11.0 osscore.c compile fix

Postby hash » Fri May 05, 2017 2:00 am

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 43 times
Dirty fix but "works-for-me"! ;)
PS: This article on StackOverflow helped me understand what the problem and what needs to be done.

Return to “Linux”

Who is online

Users browsing this forum: No registered users and 2 guests