tree: https://kernel.googlesource.com/pub/scm/linux/kernel/git/gregkh/tty.git tty-testing head: 92770c07234fb9e097ceb512e4bb29aca750075c commit: 5dce8eccb54355ea42918b651f1085e54b2c5f2f [84/90] serial: lpc32xx_hs: allow compile-testing config: i386-allmodconfig (attached as .config) compiler: gcc-7 (Debian 7.4.0-10) 7.4.0 reproduce: git checkout 5dce8eccb54355ea42918b651f1085e54b2c5f2f # save the attached .config to linux build tree make ARCH=i386 If you fix the issue, kindly add following tag Reported-by: kbuild test robot <lkp@xxxxxxxxx> All errors (new ones prefixed by >>): drivers/tty/serial/lpc32xx_hs.c: In function 'lpc32xx_loopback_set': drivers/tty/serial/lpc32xx_hs.c:447:7: error: 'LPC32XX_HS_UART1_BASE' undeclared (first use in this function); did you mean 'LPC32XX_HSUART_RATE'? case LPC32XX_HS_UART1_BASE: ^~~~~~~~~~~~~~~~~~~~~ LPC32XX_HSUART_RATE drivers/tty/serial/lpc32xx_hs.c:447:7: note: each undeclared identifier is reported only once for each function it appears in drivers/tty/serial/lpc32xx_hs.c:450:7: error: 'LPC32XX_HS_UART2_BASE' undeclared (first use in this function); did you mean 'LPC32XX_HS_UART1_BASE'? case LPC32XX_HS_UART2_BASE: ^~~~~~~~~~~~~~~~~~~~~ LPC32XX_HS_UART1_BASE drivers/tty/serial/lpc32xx_hs.c:453:7: error: 'LPC32XX_HS_UART7_BASE' undeclared (first use in this function); did you mean 'LPC32XX_HS_UART2_BASE'? case LPC32XX_HS_UART7_BASE: ^~~~~~~~~~~~~~~~~~~~~ LPC32XX_HS_UART2_BASE >> drivers/tty/serial/lpc32xx_hs.c:461:14: error: 'LPC32XX_UARTCTL_CLOOP' undeclared (first use in this function); did you mean 'LPC32XX_HSUART_CTRL'? tmp = readl(LPC32XX_UARTCTL_CLOOP); ^~~~~~~~~~~~~~~~~~~~~ LPC32XX_HSUART_CTRL In file included from drivers/tty/serial/lpc32xx_hs.c:13:0: drivers/tty/serial/lpc32xx_hs.c: In function 'serial_lpc32xx_release_port': drivers/tty/serial/lpc32xx_hs.c:580:37: error: 'SZ_4K' undeclared (first use in this function) release_mem_region(port->mapbase, SZ_4K); ^ include/linux/ioport.h:244:81: note: in definition of macro 'release_mem_region' #define release_mem_region(start,n) __release_region(&iomem_resource, (start), (n)) ^ drivers/tty/serial/lpc32xx_hs.c: In function 'serial_lpc32xx_request_port': drivers/tty/serial/lpc32xx_hs.c:591:42: error: 'SZ_4K' undeclared (first use in this function) if (!request_mem_region(port->mapbase, SZ_4K, MODNAME)) ^ include/linux/ioport.h:232:86: note: in definition of macro 'request_mem_region' #define request_mem_region(start,n,name) __request_region(&iomem_resource, (start), (n), (name), 0) ^ drivers/tty/serial/lpc32xx_hs.c: In function 'serial_hs_lpc32xx_probe': drivers/tty/serial/lpc32xx_hs.c:693:20: error: 'LPC32XX_MAIN_OSC_FREQ' undeclared (first use in this function); did you mean 'LPC32XX_HSU_OFFSET'? p->port.uartclk = LPC32XX_MAIN_OSC_FREQ; ^~~~~~~~~~~~~~~~~~~~~ LPC32XX_HSU_OFFSET vim +461 drivers/tty/serial/lpc32xx_hs.c 596f93f50e2d1a Roland Stigge 2012-06-11 439 596f93f50e2d1a Roland Stigge 2012-06-11 440 /* LPC3250 Errata HSUART.1: Hang workaround via loopback mode on inactivity */ 596f93f50e2d1a Roland Stigge 2012-06-11 441 static void lpc32xx_loopback_set(resource_size_t mapbase, int state) 596f93f50e2d1a Roland Stigge 2012-06-11 442 { 596f93f50e2d1a Roland Stigge 2012-06-11 443 int bit; 596f93f50e2d1a Roland Stigge 2012-06-11 444 u32 tmp; 596f93f50e2d1a Roland Stigge 2012-06-11 445 596f93f50e2d1a Roland Stigge 2012-06-11 446 switch (mapbase) { 596f93f50e2d1a Roland Stigge 2012-06-11 @447 case LPC32XX_HS_UART1_BASE: 596f93f50e2d1a Roland Stigge 2012-06-11 448 bit = 0; 596f93f50e2d1a Roland Stigge 2012-06-11 449 break; 596f93f50e2d1a Roland Stigge 2012-06-11 450 case LPC32XX_HS_UART2_BASE: 596f93f50e2d1a Roland Stigge 2012-06-11 451 bit = 1; 596f93f50e2d1a Roland Stigge 2012-06-11 452 break; 596f93f50e2d1a Roland Stigge 2012-06-11 453 case LPC32XX_HS_UART7_BASE: 596f93f50e2d1a Roland Stigge 2012-06-11 454 bit = 6; 596f93f50e2d1a Roland Stigge 2012-06-11 455 break; 596f93f50e2d1a Roland Stigge 2012-06-11 456 default: 596f93f50e2d1a Roland Stigge 2012-06-11 457 WARN(1, "lpc32xx_hs: Warning: Unknown port at %08x\n", mapbase); 596f93f50e2d1a Roland Stigge 2012-06-11 458 return; 596f93f50e2d1a Roland Stigge 2012-06-11 459 } 596f93f50e2d1a Roland Stigge 2012-06-11 460 596f93f50e2d1a Roland Stigge 2012-06-11 @461 tmp = readl(LPC32XX_UARTCTL_CLOOP); 596f93f50e2d1a Roland Stigge 2012-06-11 462 if (state) 596f93f50e2d1a Roland Stigge 2012-06-11 463 tmp |= (1 << bit); 596f93f50e2d1a Roland Stigge 2012-06-11 464 else 596f93f50e2d1a Roland Stigge 2012-06-11 465 tmp &= ~(1 << bit); 596f93f50e2d1a Roland Stigge 2012-06-11 466 writel(tmp, LPC32XX_UARTCTL_CLOOP); 596f93f50e2d1a Roland Stigge 2012-06-11 467 } 596f93f50e2d1a Roland Stigge 2012-06-11 468 :::::: The code at line 461 was first introduced by commit :::::: 596f93f50e2d1a926bbb6c73aa7ee7fd862b7062 serial: Add driver for LPC32xx High Speed UARTs :::::: TO: Roland Stigge <stigge@xxxxxxxxx> :::::: CC: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip