tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.sched/core head: 7f79b5e3727bae36481c9bc5587291d88742291f commit: 153c06f705c75814624e6855e4a8d0ab29d4ba5b [59/63] sched/headers: Remove various unrelated headers from <linux/sched.h> config: mips-fuloong2e_defconfig (attached as .config) compiler: mips64el-linux-gnuabi64-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 153c06f705c75814624e6855e4a8d0ab29d4ba5b # save the attached .config to linux build tree make.cross ARCH=mips
All errors (new ones prefixed by >>):
arch/mips/oprofile/../../../drivers/oprofile/cpu_buffer.c: In function
'oprofile_add_sample':
>> arch/mips/oprofile/../../../drivers/oprofile/cpu_buffer.c:338:16: error:
>> implicit declaration of function 'user_mode'
>> [-Werror=implicit-function-declaration]
is_kernel = !user_mode(regs);
^~~~~~~~~
>> arch/mips/oprofile/../../../drivers/oprofile/cpu_buffer.c:339:8: error:
>> implicit declaration of function 'profile_pc'
>> [-Werror=implicit-function-declaration]
pc = profile_pc(regs);
^~~~~~~~~~
cc1: some warnings being treated as errors
vim +/user_mode +338 arch/mips/oprofile/../../../drivers/oprofile/cpu_buffer.c
27357716 Brian Rogan 2006-03-28 332 void oprofile_add_sample(struct pt_regs
* const regs, unsigned long event)
27357716 Brian Rogan 2006-03-28 333 {
9414e996 Phil Carmody 2010-04-28 334 int is_kernel;
9414e996 Phil Carmody 2010-04-28 335 unsigned long pc;
9414e996 Phil Carmody 2010-04-28 336
9414e996 Phil Carmody 2010-04-28 337 if (likely(regs)) {
9414e996 Phil Carmody 2010-04-28 @338 is_kernel = !user_mode(regs);
9414e996 Phil Carmody 2010-04-28 @339 pc = profile_pc(regs);
9414e996 Phil Carmody 2010-04-28 340 } else {
9414e996 Phil Carmody 2010-04-28 341 is_kernel = 0; /* This value
will not be used */
9414e996 Phil Carmody 2010-04-28 342 pc = ESCAPE_CODE; /* as this
causes an early return. */
:::::: The code at line 338 was first introduced by commit
:::::: 9414e99672271adcc661f3c160a30b374179b92f oprofile: protect from not
being in an IRQ context
:::::: TO: Phil Carmody <[email protected]>
:::::: CC: Robert Richter <[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

