Kernel 4.11.0 osscore.c compile fix

OSS specific Linux discussion (x86/amd64)

Moderators: hannu, dev, cesium

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

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

Re: Kernel 4.11.0 osscore.c compile fix

Postby hash » Mon Sep 25, 2017 10:24 am

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 15 times


Return to “Linux”

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest