tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 
WIP.sched/core
head:   12372f63e2728a509817b56878cd6633d92053b3
commit: 030a6259fec4df48769d8efc0e0d4431e05935aa [98/154] sched/headers: Move 
task-stack related APIs from <linux/sched.h> to <linux/sched/task_stack.h>
config: mips-generic_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 030a6259fec4df48769d8efc0e0d4431e05935aa
        # save the attached .config to linux build tree
        make.cross ARCH=mips 

All errors (new ones prefixed by >>):

   In file included from arch/mips/include/asm/io.h:28:0,
                    from include/linux/io.h:25,
                    from arch/mips/kernel/smp-cps.c:12:
   arch/mips/kernel/smp-cps.c: In function 'cps_boot_secondary':
>> arch/mips/include/asm/processor.h:384:41: error: implicit declaration of 
>> function 'task_stack_page' [-Werror=implicit-function-declaration]
    #define __KSTK_TOS(tsk) ((unsigned long)task_stack_page(tsk) + \
                                            ^
   arch/mips/kernel/smp-cps.c:302:16: note: in expansion of macro '__KSTK_TOS'
     vpe_cfg->sp = __KSTK_TOS(idle);
                   ^~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/task_stack_page +384 arch/mips/include/asm/processor.h

04cc89d1 arch/mips/include/asm/processor.h Ralf Baechle   2016-03-27  378  
static inline void flush_thread(void)
04cc89d1 arch/mips/include/asm/processor.h Ralf Baechle   2016-03-27  379  {
04cc89d1 arch/mips/include/asm/processor.h Ralf Baechle   2016-03-27  380  }
04cc89d1 arch/mips/include/asm/processor.h Ralf Baechle   2016-03-27  381  
^1da177e include/asm-mips/processor.h      Linus Torvalds 2005-04-16  382  
unsigned long get_wchan(struct task_struct *p);
^1da177e include/asm-mips/processor.h      Linus Torvalds 2005-04-16  383  
484889fc arch/mips/include/asm/processor.h David Daney    2009-07-08 @384  
#define __KSTK_TOS(tsk) ((unsigned long)task_stack_page(tsk) + \
484889fc arch/mips/include/asm/processor.h David Daney    2009-07-08  385       
                 THREAD_SIZE - 32 - sizeof(struct pt_regs))
484889fc arch/mips/include/asm/processor.h David Daney    2009-07-08  386  
#define task_pt_regs(tsk) ((struct pt_regs *)__KSTK_TOS(tsk))
40bc9c67 include/asm-mips/processor.h      Al Viro        2006-01-12  387  
#define KSTK_EIP(tsk) (task_pt_regs(tsk)->cp0_epc)

:::::: The code at line 384 was first introduced by commit
:::::: 484889fc85a223ef56edc31828b86751b2296b7c MIPS: Avoid clobbering struct 
pt_regs in kthreads

:::::: TO: David Daney <[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

Attachment: .config.gz
Description: application/gzip

Reply via email to