tree: https://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu.git for-next head: bab9058f2048514bb8db75712a9aca3833f92bb8 commit: 126219c5a0cdb283f9ff2933ae0ac9f43b760918 [9/11] m68k: always make available dump_fpu() config: m68k-allnoconfig (attached as .config) compiler: m68k-linux-gcc (GCC) 4.9.0 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 126219c5a0cdb283f9ff2933ae0ac9f43b760918 # save the attached .config to linux build tree make.cross ARCH=m68k All warnings (new ones prefixed by >>): arch/m68k/kernel/process.c: In function 'dump_fpu':
arch/m68k/kernel/process.c:208:7: warning: unused variable 'fpustate' [-Wunused-variable]
char fpustate[216]; ^ vim +/fpustate +208 arch/m68k/kernel/process.c fde39441 Greg Ungerer 2012-02-09 192 "m" (p->thread.fpcntl[0]) fde39441 Greg Ungerer 2012-02-09 193 : "memory"); fde39441 Greg Ungerer 2012-02-09 194 } fde39441 Greg Ungerer 2012-02-09 195 } fde39441 Greg Ungerer 2012-02-09 196 fde39441 Greg Ungerer 2012-02-09 197 /* Restore the state in case the fpu was busy */ fde39441 Greg Ungerer 2012-02-09 198 asm volatile ("frestore %0" : : "m" (p->thread.fpstate[0])); fde39441 Greg Ungerer 2012-02-09 199 } fde39441 Greg Ungerer 2012-02-09 200 #endif /* CONFIG_FPU */ fde39441 Greg Ungerer 2012-02-09 201 fde39441 Greg Ungerer 2012-02-09 202 return 0; fde39441 Greg Ungerer 2012-02-09 203 } fde39441 Greg Ungerer 2012-02-09 204 fde39441 Greg Ungerer 2012-02-09 205 /* Fill in the fpu structure for a core dump. */ fde39441 Greg Ungerer 2012-02-09 206 int dump_fpu (struct pt_regs *regs, struct user_m68kfp_struct *fpu) fde39441 Greg Ungerer 2012-02-09 207 { fde39441 Greg Ungerer 2012-02-09 @208 char fpustate[216]; fde39441 Greg Ungerer 2012-02-09 209 fde39441 Greg Ungerer 2012-02-09 210 if (FPU_IS_EMU) { fde39441 Greg Ungerer 2012-02-09 211 int i; fde39441 Greg Ungerer 2012-02-09 212 fde39441 Greg Ungerer 2012-02-09 213 memcpy(fpu->fpcntl, current->thread.fpcntl, 12); fde39441 Greg Ungerer 2012-02-09 214 memcpy(fpu->fpregs, current->thread.fp, 96); fde39441 Greg Ungerer 2012-02-09 215 /* Convert internal fpu reg representation fde39441 Greg Ungerer 2012-02-09 216 * into long double format :::::: The code at line 208 was first introduced by commit :::::: fde3944141c70b264aace92334b297a05233e179 m68k: merge the MMU and non-MMU versions of process.c :::::: TO: Greg Ungerer <gerg@xxxxxxxxxxx> :::::: CC: Greg Ungerer <gerg@xxxxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: Binary data