Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1572785

[tip:WIP.sched/core 58/63] arch/mips/kernel/mips-mt-fpaff.c:48:28: error: implicit declaration of function 'current_cred'

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From kbuild test robot <fengguang.wu@intel.com>
Newsgroups linux.kernel
Subject [tip:WIP.sched/core 58/63] arch/mips/kernel/mips-mt-fpaff.c:48:28: error: implicit declaration of function 'current_cred'
Date Thu, 02 Feb 2017 23:50:01 +0100
Message-ID <t6ymt-1Da-9@gated-at.bofh.it> (permalink)
X-Extloop1 1
X-Ironport-Av E=Sophos;i="5.33,326,1477983600"; d="gz'50?scan'50,208,50";a="1102346620"
MIME-Version 1.0
Content-Type multipart/mixed; boundary="lrZ03NoBR/3+SXJZ"
Content-Disposition inline
User-Agent Mutt/1.5.23 (2014-03-12)
X-Sa-Exim-Connect-IP <locally generated>
X-Sa-Exim-Mail-From fengguang.wu@intel.com
X-Sa-Exim-Scanned No (on bee); SAEximRunCond expanded to false
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 408
Organization linux.* mail to news gateway
X-Original-Cc kbuild-all@01.org, linux-kernel@vger.kernel.org, tipbuild@zytor.com
X-Original-Date Fri, 3 Feb 2017 06:40:38 +0800
X-Original-Message-ID <201702030634.wrH89IUE%fengguang.wu@intel.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1572785

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

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

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[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 <fengguang.wu@intel.com> - 2017-02-02 23:50 +0100

csiph-web