tree: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 14a6f1989dae9445d4532941bdd6bbad84f4c8da commit: 9957423f035c2071f6d1c5d2f095cdafbeb25ad7 mn10300: only add -mmem-funcs to KBUILD_CFLAGS if gcc supports it date: 2 years, 9 months ago config: mn10300-allyesconfig (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 git checkout 9957423f035c2071f6d1c5d2f095cdafbeb25ad7 # save the attached .config to linux build tree make.cross ARCH=mn10300 All error/warnings (new ones prefixed by >>): In file included from arch/mn10300/include/asm/bitops.h:20:0, from include/linux/bitops.h:22, from include/linux/kernel.h:19, from drivers/usb/serial/mos7720.c:23: >> arch/mn10300/include/asm/cpu-regs.h:30:30: error: expected identifier before '(' token #define __SYSREG(ADDR, TYPE) (*(volatile TYPE *)(ADDR)) ^ arch/mn10300/include/asm/cpu-regs.h:122:15: note: in expansion of macro '__SYSREG' #define DCR __SYSREG(0xc0000030, u16) /* Debug control register */ ^ drivers/usb/serial/mos7720.c:143:2: note: in expansion of macro 'DCR' DCR, ^ drivers/usb/serial/mos7720.c: In function 'get_reg_value': >> drivers/usb/serial/mos7720.c:189:13: error: 'SP1_REG' undeclared (first use in this function) if (reg >= SP1_REG) /* control reg */ ^ drivers/usb/serial/mos7720.c:189:13: note: each undeclared identifier is reported only once for each function it appears in drivers/usb/serial/mos7720.c: In function 'mos7715_change_mode': >> drivers/usb/serial/mos7720.c:249:44: error: 'ECR' undeclared (first use in this function) write_mos_reg(mos_parport->serial, dummy, ECR, mos_parport->shadowECR); ^ drivers/usb/serial/mos7720.c: In function 'parport_mos7715_restore_state': drivers/usb/serial/mos7720.c:627:42: error: 'ECR' undeclared (first use in this function) write_parport_reg_nonblock(mos_parport, ECR, mos_parport->shadowECR); ^ drivers/usb/serial/mos7720.c: In function 'mos7715_parport_init': >> drivers/usb/serial/mos7720.c:708:44: error: 'PP_REG' undeclared (first use in this function) write_mos_reg(mos_parport->serial, dummy, PP_REG, (__u8)0x80); ^ drivers/usb/serial/mos7720.c:715:44: error: 'ECR' undeclared (first use in this function) write_mos_reg(mos_parport->serial, dummy, ECR, mos_parport->shadowECR); ^ drivers/usb/serial/mos7720.c: In function 'mos7720_open': drivers/usb/serial/mos7720.c:1056:31: error: 'SP1_REG' undeclared (first use in this function) write_mos_reg(serial, dummy, SP1_REG, 0x02); ^ >> drivers/usb/serial/mos7720.c:1057:31: error: 'SP2_REG' undeclared (first use in this function) write_mos_reg(serial, dummy, SP2_REG, 0x02); ^ >> drivers/usb/serial/mos7720.c:1068:37: error: 'SP_CONTROL_REG' undeclared (first use in this function) write_mos_reg(serial, port_number, SP_CONTROL_REG, 0x00); ^ drivers/usb/serial/mos7720.c: In function 'set_higher_rates': drivers/usb/serial/mos7720.c:1382:31: error: 'SP_CONTROL_REG' undeclared (first use in this function) write_mos_reg(serial, dummy, SP_CONTROL_REG, 0x00); ^ drivers/usb/serial/mos7720.c:1389:12: error: 'SP1_REG' undeclared (first use in this function) sp_reg = SP1_REG; ^ drivers/usb/serial/mos7720.c:1391:12: error: 'SP2_REG' undeclared (first use in this function) sp_reg = SP2_REG; ^ drivers/usb/serial/mos7720.c: In function 'change_port_settings': drivers/usb/serial/mos7720.c:1644:33: error: 'SP_CONTROL_REG' undeclared (first use in this function) write_mos_reg(serial, dummy, SP_CONTROL_REG, 0x01); ^ drivers/usb/serial/mos7720.c: In function 'get_reg_value': drivers/usb/serial/mos7720.c:197:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ vim +30 arch/mn10300/include/asm/cpu-regs.h b920de1b include/asm-mn10300/cpu-regs.h David Howells 2008-02-08 14 #ifndef __ASSEMBLY__ b920de1b include/asm-mn10300/cpu-regs.h David Howells 2008-02-08 15 #include b920de1b include/asm-mn10300/cpu-regs.h David Howells 2008-02-08 16 #endif b920de1b include/asm-mn10300/cpu-regs.h David Howells 2008-02-08 17 b920de1b include/asm-mn10300/cpu-regs.h David Howells 2008-02-08 18 /* we tell the compiler to pretend to be AM33 so that it doesn't try and use b920de1b include/asm-mn10300/cpu-regs.h David Howells 2008-02-08 19 * the FP regs, but tell the assembler that we're actually allowed AM33v2 b920de1b include/asm-mn10300/cpu-regs.h David Howells 2008-02-08 20 * instructions */ b920de1b include/asm-mn10300/cpu-regs.h David Howells 2008-02-08 21 #ifndef __ASSEMBLY__ b920de1b include/asm-mn10300/cpu-regs.h David Howells 2008-02-08 22 asm(" .am33_2\n"); b920de1b include/asm-mn10300/cpu-regs.h David Howells 2008-02-08 23 #else b920de1b include/asm-mn10300/cpu-regs.h David Howells 2008-02-08 24 .am33_2 b920de1b include/asm-mn10300/cpu-regs.h David Howells 2008-02-08 25 #endif b920de1b include/asm-mn10300/cpu-regs.h David Howells 2008-02-08 26 b920de1b include/asm-mn10300/cpu-regs.h David Howells 2008-02-08 27 #ifdef __KERNEL__ b920de1b include/asm-mn10300/cpu-regs.h David Howells 2008-02-08 28 b920de1b include/asm-mn10300/cpu-regs.h David Howells 2008-02-08 29 #ifndef __ASSEMBLY__ b920de1b include/asm-mn10300/cpu-regs.h David Howells 2008-02-08 @30 #define __SYSREG(ADDR, TYPE) (*(volatile TYPE *)(ADDR)) b920de1b include/asm-mn10300/cpu-regs.h David Howells 2008-02-08 31 #define __SYSREGC(ADDR, TYPE) (*(const volatile TYPE *)(ADDR)) b920de1b include/asm-mn10300/cpu-regs.h David Howells 2008-02-08 32 #else b920de1b include/asm-mn10300/cpu-regs.h David Howells 2008-02-08 33 #define __SYSREG(ADDR, TYPE) ADDR b920de1b include/asm-mn10300/cpu-regs.h David Howells 2008-02-08 34 #define __SYSREGC(ADDR, TYPE) ADDR b920de1b include/asm-mn10300/cpu-regs.h David Howells 2008-02-08 35 #endif b920de1b include/asm-mn10300/cpu-regs.h David Howells 2008-02-08 36 b920de1b include/asm-mn10300/cpu-regs.h David Howells 2008-02-08 37 /* CPU registers */ b920de1b include/asm-mn10300/cpu-regs.h David Howells 2008-02-08 38 #define EPSW_FLAG_Z 0x00000001 /* zero flag */ :::::: The code at line 30 was first introduced by commit :::::: b920de1b77b72ca9432ac3f97edb26541e65e5dd mn10300: add the MN10300/AM33 architecture to the kernel :::::: TO: David Howells :::::: CC: Linus Torvalds --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation