tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tty-testing head: 01883ef9c2b48e43c691ad7509b6b15b0b255b8c commit: 0e75f354db1557b3dbb35f77afb73c2be2167e08 [33/44] serial: imx: add wrappers for writel and readl config: sparc64-allmodconfig (attached as .config) compiler: sparc64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 0e75f354db1557b3dbb35f77afb73c2be2167e08 # save the attached .config to linux build tree make.cross ARCH=sparc64 All error/warnings (new ones prefixed by >>): drivers/tty/serial/imx.c: In function 'imx_poll_get_char': >> drivers/tty/serial/imx.c:1675:23: error: 'sport' undeclared (first use in this function); did you mean 'port'? if (!(imx_uart_readl(sport, USR2) & USR2_RDR)) ^~~~~ port drivers/tty/serial/imx.c:1675:23: note: each undeclared identifier is reported only once for each function it appears in drivers/tty/serial/imx.c: In function 'imx_poll_put_char': drivers/tty/serial/imx.c:1687:27: error: 'sport' undeclared (first use in this function); did you mean 'port'? status = imx_uart_readl(sport, USR1); ^~~~~ port >> drivers/tty/serial/imx.c:1695:34: error: 'portUSR2' undeclared (first use in this function); did you mean 'port'? status = imx_uart_readl(sport, portUSR2); ^~~~~~~~ port drivers/tty/serial/imx.c: In function 'imx_poll_get_char': >> drivers/tty/serial/imx.c:1679:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ vim +1675 drivers/tty/serial/imx.c 1672 1673 static int imx_poll_get_char(struct uart_port *port) 1674 { > 1675 if (!(imx_uart_readl(sport, USR2) & USR2_RDR)) 1676 return NO_POLL_CHAR; 1677 1678 return imx_uart_readl(sport, URXD0) & URXD_RX_DATA; > 1679 } 1680 1681 static void imx_poll_put_char(struct uart_port *port, unsigned char c) 1682 { 1683 unsigned int status; 1684 1685 /* drain */ 1686 do { > 1687 status = imx_uart_readl(sport, USR1); 1688 } while (~status & USR1_TRDY); 1689 1690 /* write */ 1691 imx_uart_writel(sport, c, URTX0); 1692 1693 /* flush */ 1694 do { > 1695 status = imx_uart_readl(sport, portUSR2); 1696 } while (~status & USR2_TXDC); 1697 } 1698 #endif 1699 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip