[tty:tty-testing 42/91] drivers/tty/serial/amba-pl011.c:2610:2: error: implicit declaration of function 'of_get_rs485_mode'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tty-testing
head:   7f490ac24ed4b59ef8807c31e46a9afea1ca43c6
commit: d5237f6946360a240ad70699642587a9dc95d254 [42/91] serial: amba-pl011: Add basic rs485 support
config: arm-mxs_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout d5237f6946360a240ad70699642587a9dc95d254
        # save the attached .config to linux build tree
        make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   drivers/tty/serial/amba-pl011.c: In function 'pl011_setup_port':
>> drivers/tty/serial/amba-pl011.c:2610:2: error: implicit declaration of function 'of_get_rs485_mode' [-Werror=implicit-function-declaration]
     of_get_rs485_mode(dev->of_node, &uap->port.rs485);
     ^~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/of_get_rs485_mode +2610 drivers/tty/serial/amba-pl011.c

  2599	
  2600	static int pl011_setup_port(struct device *dev, struct uart_amba_port *uap,
  2601				    struct resource *mmiobase, int index)
  2602	{
  2603		void __iomem *base;
  2604	
  2605		base = devm_ioremap_resource(dev, mmiobase);
  2606		if (IS_ERR(base))
  2607			return PTR_ERR(base);
  2608	
  2609		index = pl011_probe_dt_alias(index, dev);
> 2610		of_get_rs485_mode(dev->of_node, &uap->port.rs485);
  2611	
  2612		uap->old_cr = 0;
  2613		uap->port.dev = dev;
  2614		uap->port.mapbase = mmiobase->start;
  2615		uap->port.membase = base;
  2616		uap->port.fifosize = uap->fifosize;
  2617		uap->port.flags = UPF_BOOT_AUTOCONF;
  2618		uap->port.line = index;
  2619	
  2620		amba_ports[index] = uap;
  2621	
  2622		return 0;
  2623	}
  2624	

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux