From: kbuild test robot <fengguang.wu@intel.com>
To: Ingo Molnar <mingo@kernel.org>
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org, tipbuild@zytor.com
Subject: [tip:WIP.sched/core 58/63] arch/mips/kernel/mips-mt-fpaff.c:48:28: error: implicit declaration of function 'current_cred'
Date: Fri, 3 Feb 2017 06:40:38 +0800 [thread overview]
Message-ID: <201702030634.wrH89IUE%fengguang.wu@intel.com> (raw)
[-- 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 --]
reply other threads:[~2017-02-02 22:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201702030634.wrH89IUE%fengguang.wu@intel.com \
--to=fengguang.wu@intel.com \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=tipbuild@zytor.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®