tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 
WIP.sched/core
head:   12372f63e2728a509817b56878cd6633d92053b3
commit: 63a4ca7de1d32b82b973dc6eb1da7398fb2630d2 [131/154] sched/headers: 
Remove <asm/ptrace.h> from <linux/sched.h>
config: sh-sh2007_defconfig (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 63a4ca7de1d32b82b973dc6eb1da7398fb2630d2
        # save the attached .config to linux build tree
        make.cross ARCH=sh 

All errors (new ones prefixed by >>):

   In file included from arch/sh/kernel/cpu/sh4/fpu.c:18:0:
   arch/sh/include/asm/fpu.h: In function 'release_fpu':
>> arch/sh/include/asm/fpu.h:11:6: error: dereferencing pointer to incomplete 
>> type 'struct pt_regs'
     regs->sr |= SR_FD;
         ^~
   In file included from arch/sh/include/asm/traps.h:7:0,
                    from arch/sh/kernel/cpu/sh4/fpu.c:19:
   arch/sh/kernel/cpu/sh4/fpu.c: At top level:
>> arch/sh/include/asm/traps_32.h:53:24: error: parameter 5 ('__regs') has 
>> incomplete type
            struct pt_regs __regs)
                           ^
   arch/sh/kernel/cpu/sh4/fpu.c:405:1: note: in expansion of macro 
'BUILD_TRAP_HANDLER'
    BUILD_TRAP_HANDLER(fpu_error)
    ^~~~~~~~~~~~~~~~~~
   arch/sh/kernel/cpu/sh4/fpu.c: In function 'fpu_error_trap_handler':
   arch/sh/kernel/cpu/sh4/fpu.c:428:2: error: implicit declaration of function 
'force_sig' [-Werror=implicit-function-declaration]
     force_sig(SIGFPE, tsk);
     ^~~~~~~~~
   cc1: some warnings being treated as errors

vim +11 arch/sh/include/asm/fpu.h

332fd57b include/asm-sh/fpu.h      Paul Mundt    2007-11-22   1  #ifndef 
__ASM_SH_FPU_H
332fd57b include/asm-sh/fpu.h      Paul Mundt    2007-11-22   2  #define 
__ASM_SH_FPU_H
332fd57b include/asm-sh/fpu.h      Paul Mundt    2007-11-22   3  
332fd57b include/asm-sh/fpu.h      Paul Mundt    2007-11-22   4  #ifndef 
__ASSEMBLY__
0ea820cf arch/sh/include/asm/fpu.h Paul Mundt    2010-01-13   5  
0ea820cf arch/sh/include/asm/fpu.h Paul Mundt    2010-01-13   6  struct 
task_struct;
332fd57b include/asm-sh/fpu.h      Paul Mundt    2007-11-22   7  
332fd57b include/asm-sh/fpu.h      Paul Mundt    2007-11-22   8  #ifdef 
CONFIG_SH_FPU
332fd57b include/asm-sh/fpu.h      Paul Mundt    2007-11-22   9  static inline 
void release_fpu(struct pt_regs *regs)
332fd57b include/asm-sh/fpu.h      Paul Mundt    2007-11-22  10  {
332fd57b include/asm-sh/fpu.h      Paul Mundt    2007-11-22 @11         
regs->sr |= SR_FD;
332fd57b include/asm-sh/fpu.h      Paul Mundt    2007-11-22  12  }
332fd57b include/asm-sh/fpu.h      Paul Mundt    2007-11-22  13  
332fd57b include/asm-sh/fpu.h      Paul Mundt    2007-11-22  14  static inline 
void grab_fpu(struct pt_regs *regs)
332fd57b include/asm-sh/fpu.h      Paul Mundt    2007-11-22  15  {
332fd57b include/asm-sh/fpu.h      Paul Mundt    2007-11-22  16         
regs->sr &= ~SR_FD;
332fd57b include/asm-sh/fpu.h      Paul Mundt    2007-11-22  17  }
332fd57b include/asm-sh/fpu.h      Paul Mundt    2007-11-22  18  
d3ea9fa0 arch/sh/include/asm/fpu.h Stuart Menefy 2009-09-25  19  extern void 
save_fpu(struct task_struct *__tsk);

:::::: The code at line 11 was first introduced by commit
:::::: 332fd57b92d26e2ac6112340b98e92bb76117a41 sh: Bring the SH-5 FPU in line 
with the SH-4 FPU API.

:::::: TO: Paul Mundt <let...@linux-sh.org>
:::::: CC: Paul Mundt <let...@linux-sh.org>

---
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