linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [tip:WIP.sched/core 58/63] arch/mips/kernel/mips-mt-fpaff.c:48:28: error: implicit declaration of function 'current_cred'
@ 2017-02-02 22:40 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2017-02-02 22:40 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: kbuild-all, linux-kernel, tipbuild

[-- Attachment #1: Type: text/plain, Size: 3193 bytes --]

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 <ralf@linux-mips.org>
:::::: CC: Ralf Baechle <ralf@linux-mips.org>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 18244 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-02-02 22:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-02 22:40 [tip:WIP.sched/core 58/63] arch/mips/kernel/mips-mt-fpaff.c:48:28: error: implicit declaration of function 'current_cred' kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).