tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 
WIP.sched/core
head:   a69a38e26e87ddbe993e33b55f693405cd62c76f
commit: 9633bad92da4f12d249b2d76618302a2af367f4a [118/122] sched/headers: 
Remove various unrelated headers from <linux/sched.h>
config: sh-allyesconfig (attached as .config)
compiler: sh4-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 9633bad92da4f12d249b2d76618302a2af367f4a
        # save the attached .config to linux build tree
        make.cross ARCH=sh 

All error/warnings (new ones prefixed by >>):

   arch/sh/kernel/process.c: In function 'arch_dup_task_struct':
>> arch/sh/kernel/process.c:24:18: error: implicit declaration of function 
>> 'task_pt_regs' [-Werror=implicit-function-declaration]
     unlazy_fpu(src, task_pt_regs(src));
                     ^~~~~~~~~~~~
>> arch/sh/kernel/process.c:24:18: error: passing argument 2 of 'unlazy_fpu' 
>> makes pointer from integer without a cast [-Werror=int-conversion]
   In file included from arch/sh/kernel/process.c:7:0:
   arch/sh/include/asm/fpu.h:52:20: note: expected 'struct pt_regs *' but 
argument is of type 'int'
    static inline void unlazy_fpu(struct task_struct *tsk, struct pt_regs *regs)
                       ^~~~~~~~~~
   cc1: all warnings being treated as errors
--
   arch/sh/kernel/cpu/fpu.c: In function 'init_fpu':
>> arch/sh/kernel/cpu/fpu.c:11:20: error: implicit declaration of function 
>> 'task_pt_regs' [-Werror=implicit-function-declaration]
       unlazy_fpu(tsk, task_pt_regs(tsk));
                       ^~~~~~~~~~~~
>> arch/sh/kernel/cpu/fpu.c:11:20: warning: passing argument 2 of 'unlazy_fpu' 
>> makes pointer from integer without a cast [-Wint-conversion]
   In file included from arch/sh/kernel/cpu/fpu.c:4:0:
   arch/sh/include/asm/fpu.h:52:20: note: expected 'struct pt_regs *' but 
argument is of type 'int'
    static inline void unlazy_fpu(struct task_struct *tsk, struct pt_regs *regs)
                       ^~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/task_pt_regs +24 arch/sh/kernel/process.c

cbf6b1ba Paul Mundt          2010-01-12   8  
0ea820cf Paul Mundt          2010-01-13   9  struct kmem_cache 
*task_xstate_cachep = NULL;
0ea820cf Paul Mundt          2010-01-13  10  unsigned int xstate_size;
0ea820cf Paul Mundt          2010-01-13  11  
5d920bb9 Filippo Arcidiacono 2012-04-19  12  #ifdef CONFIG_CC_STACKPROTECTOR
5d920bb9 Filippo Arcidiacono 2012-04-19  13  unsigned long __stack_chk_guard 
__read_mostly;
5d920bb9 Filippo Arcidiacono 2012-04-19  14  EXPORT_SYMBOL(__stack_chk_guard);
5d920bb9 Filippo Arcidiacono 2012-04-19  15  #endif
5d920bb9 Filippo Arcidiacono 2012-04-19  16  
55ccf3fe Suresh Siddha       2012-05-16  17  /*
55ccf3fe Suresh Siddha       2012-05-16  18   * this gets called so that we can 
store lazy state into memory and copy the
55ccf3fe Suresh Siddha       2012-05-16  19   * current task into the new 
thread.
55ccf3fe Suresh Siddha       2012-05-16  20   */
0ea820cf Paul Mundt          2010-01-13  21  int arch_dup_task_struct(struct 
task_struct *dst, struct task_struct *src)
0ea820cf Paul Mundt          2010-01-13  22  {
55ccf3fe Suresh Siddha       2012-05-16  23  #ifdef CONFIG_SUPERH32
55ccf3fe Suresh Siddha       2012-05-16 @24     unlazy_fpu(src, 
task_pt_regs(src));
55ccf3fe Suresh Siddha       2012-05-16  25  #endif
0ea820cf Paul Mundt          2010-01-13  26     *dst = *src;
0ea820cf Paul Mundt          2010-01-13  27  
0ea820cf Paul Mundt          2010-01-13  28     if (src->thread.xstate) {
0ea820cf Paul Mundt          2010-01-13  29             dst->thread.xstate = 
kmem_cache_alloc(task_xstate_cachep,
0ea820cf Paul Mundt          2010-01-13  30                                     
              GFP_KERNEL);
0ea820cf Paul Mundt          2010-01-13  31             if (!dst->thread.xstate)
0ea820cf Paul Mundt          2010-01-13  32                     return -ENOMEM;

:::::: The code at line 24 was first introduced by commit
:::::: 55ccf3fe3f9a3441731aa79cf42a628fc4ecace9 fork: move the real 
prepare_to_copy() users to arch_dup_task_struct()

:::::: TO: Suresh Siddha <[email protected]>
:::::: CC: H. Peter Anvin <[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