tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.sched/core head: 7f79b5e3727bae36481c9bc5587291d88742291f commit: 8bda2af585fe321f2915cc8312fe4b14f8a2e602 [58/63] sched/headers: Remove <linux/cred.h> inclusion from <linux/sched.h> config: mips-malta_kvm_defconfig (attached as .config) compiler: mipsel-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 8bda2af585fe321f2915cc8312fe4b14f8a2e602 # save the attached .config to linux build tree make.cross ARCH=mips
All errors (new ones prefixed by >>):
arch/mips/kernel/mips-mt-fpaff.c: In function 'check_same_owner':
>> arch/mips/kernel/mips-mt-fpaff.c:48:28: error: implicit declaration of
>> function 'current_cred' [-Werror=implicit-function-declaration]
const struct cred *cred = current_cred(), *pcred;
^~~~~~~~~~~~
>> arch/mips/kernel/mips-mt-fpaff.c:48:28: error: initialization makes pointer
>> from integer without a cast [-Werror=int-conversion]
>> arch/mips/kernel/mips-mt-fpaff.c:52:10: error: implicit declaration of
>> function '__task_cred' [-Werror=implicit-function-declaration]
pcred = __task_cred(p);
^~~~~~~~~~~
>> arch/mips/kernel/mips-mt-fpaff.c:52:8: error: assignment makes pointer from
>> integer without a cast [-Werror=int-conversion]
pcred = __task_cred(p);
^
>> arch/mips/kernel/mips-mt-fpaff.c:53:22: error: dereferencing pointer to
>> incomplete type 'const struct cred'
match = (uid_eq(cred->euid, pcred->euid) ||
^~
cc1: all warnings being treated as errors
vim +/current_cred +48 arch/mips/kernel/mips-mt-fpaff.c
295cbf6d Ralf Baechle 2007-07-03 42
17c04139 Ralf Baechle 2010-05-29 43 /*
17c04139 Ralf Baechle 2010-05-29 44 * check the target process has a UID
that matches the current process's
17c04139 Ralf Baechle 2010-05-29 45 */
17c04139 Ralf Baechle 2010-05-29 46 static bool check_same_owner(struct
task_struct *p)
17c04139 Ralf Baechle 2010-05-29 47 {
17c04139 Ralf Baechle 2010-05-29 @48 const struct cred *cred =
current_cred(), *pcred;
17c04139 Ralf Baechle 2010-05-29 49 bool match;
17c04139 Ralf Baechle 2010-05-29 50
17c04139 Ralf Baechle 2010-05-29 51 rcu_read_lock();
17c04139 Ralf Baechle 2010-05-29 @52 pcred = __task_cred(p);
b88fb18e Florian Fainelli 2012-12-10 @53 match = (uid_eq(cred->euid,
pcred->euid) ||
b88fb18e Florian Fainelli 2012-12-10 54 uid_eq(cred->euid,
pcred->uid));
17c04139 Ralf Baechle 2010-05-29 55 rcu_read_unlock();
17c04139 Ralf Baechle 2010-05-29 56 return match;
:::::: The code at line 48 was first introduced by commit
:::::: 17c04139fd2aeaef30fda380bb91b32de7b41a8f MIPS: MT: Fix FPU affinity.
:::::: TO: Ralf Baechle <[email protected]>
:::::: CC: Ralf Baechle <[email protected]>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
.config.gz
Description: application/gzip

