Re: mn10300, c6x: CONFIG_GENERIC_BUG must depend on CONFIG_BUG

From: kbuild test robot
Date: Tue Mar 01 2016 - 01:20:00 EST


Hi Andrew,

[auto build test ERROR on v4.5-rc6]
[also build test ERROR on next-20160229]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url: https://github.com/0day-ci/linux/commits/Andrew-Morton/mn10300-c6x-CONFIG_GENERIC_BUG-must-depend-on-CONFIG_BUG/20160301-045134
config: mn10300-allnoconfig (attached as .config)
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
# save the attached .config to linux build tree
make.cross ARCH=mn10300

All errors (new ones prefixed by >>):

>> arch/mn10300/kernel/fpu-nofpu.c:27:36: error: unknown type name 'elf_fpregset_t'
int dump_fpu(struct pt_regs *regs, elf_fpregset_t *fpreg)
^

vim +/elf_fpregset_t +27 arch/mn10300/kernel/fpu-nofpu.c

278d91c4 Akira Takeuchi 2010-10-27 11 #include <asm/fpu.h>
278d91c4 Akira Takeuchi 2010-10-27 12
278d91c4 Akira Takeuchi 2010-10-27 13 /*
278d91c4 Akira Takeuchi 2010-10-27 14 * handle an FPU operational exception
278d91c4 Akira Takeuchi 2010-10-27 15 * - there's a possibility that if the FPU is asynchronous, the signal might
278d91c4 Akira Takeuchi 2010-10-27 16 * be meant for a process other than the current one
278d91c4 Akira Takeuchi 2010-10-27 17 */
278d91c4 Akira Takeuchi 2010-10-27 18 asmlinkage
278d91c4 Akira Takeuchi 2010-10-27 19 void unexpected_fpu_exception(struct pt_regs *regs, enum exception_code code)
278d91c4 Akira Takeuchi 2010-10-27 20 {
278d91c4 Akira Takeuchi 2010-10-27 21 panic("An FPU exception was received, but there's no FPU enabled.");
278d91c4 Akira Takeuchi 2010-10-27 22 }
278d91c4 Akira Takeuchi 2010-10-27 23
278d91c4 Akira Takeuchi 2010-10-27 24 /*
278d91c4 Akira Takeuchi 2010-10-27 25 * fill in the FPU structure for a core dump
278d91c4 Akira Takeuchi 2010-10-27 26 */
278d91c4 Akira Takeuchi 2010-10-27 @27 int dump_fpu(struct pt_regs *regs, elf_fpregset_t *fpreg)
278d91c4 Akira Takeuchi 2010-10-27 28 {
278d91c4 Akira Takeuchi 2010-10-27 29 return 0; /* not valid */
278d91c4 Akira Takeuchi 2010-10-27 30 }

:::::: The code at line 27 was first introduced by commit
:::::: 278d91c4609d55202c1e63d5fc5f01466cc7bbab MN10300: Make the FPU operate in non-lazy mode under SMP

:::::: TO: Akira Takeuchi <takeuchi.akr@xxxxxxxxxxxxxxxx>
:::::: CC: David Howells <dhowells@xxxxxxxxxx>

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: Binary data