All of lore.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH v6 5/5] drivers/tty/serial: add LiteUART driver
Date: Thu, 28 May 2020 06:32:01 +0800	[thread overview]
Message-ID: <202005280608.6aME2Q9p%lkp@intel.com> (raw)
In-Reply-To: <20200527182545.3859622-5-mholenko@antmicro.com>

[-- Attachment #1: Type: text/plain, Size: 3997 bytes --]

Hi Mateusz,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on robh/for-next]
[also build test ERROR on tty/tty-testing usb/usb-testing staging/staging-testing driver-core/driver-core-testing linus/master v5.7-rc7 next-20200526]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]

url:    https://github.com/0day-ci/linux/commits/Mateusz-Holenko/LiteX-SoC-controller-and-LiteUART-serial-driver/20200528-003240
base:   https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 3393cc4cebf9969db94dc424b7a2b6195589c33b)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>

All error/warnings (new ones prefixed by >>, old ones prefixed by <<):

>> drivers/tty/serial/liteuart.c:266:9: error: implicit declaration of function 'kzalloc' [-Werror,-Wimplicit-function-declaration]
uart = kzalloc(sizeof(struct liteuart_port), GFP_KERNEL);
^
drivers/tty/serial/liteuart.c:266:9: note: did you mean 'vzalloc'?
include/linux/vmalloc.h:106:14: note: 'vzalloc' declared here
extern void *vzalloc(unsigned long size);
^
>> drivers/tty/serial/liteuart.c:266:7: warning: incompatible integer to pointer conversion assigning to 'struct liteuart_port *' from 'int' [-Wint-conversion]
uart = kzalloc(sizeof(struct liteuart_port), GFP_KERNEL);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.

vim +/kzalloc +266 drivers/tty/serial/liteuart.c

   243	
   244	static int liteuart_probe(struct platform_device *pdev)
   245	{
   246		struct device_node *np = pdev->dev.of_node;
   247		struct liteuart_port *uart;
   248		struct uart_port *port;
   249		struct xa_limit limit;
   250		int dev_id, ret;
   251	
   252		/* no device tree */
   253		if (!np)
   254			return -ENODEV;
   255	
   256		if (!litex_check_accessors())
   257			return -EPROBE_DEFER;
   258	
   259		/* look for aliases; auto-enumerate for free index if not found */
   260		dev_id = of_alias_get_id(np, "serial");
   261		if (dev_id < 0)
   262			limit = XA_LIMIT(0, CONFIG_SERIAL_LITEUART_MAX_PORTS);
   263		else
   264			limit = XA_LIMIT(dev_id, dev_id);
   265	
 > 266		uart = kzalloc(sizeof(struct liteuart_port), GFP_KERNEL);
   267		if (!uart)
   268			return -ENOMEM;
   269	
   270		ret = xa_alloc(&liteuart_array, &dev_id, uart, limit, GFP_KERNEL);
   271		if (ret)
   272			return ret;
   273	
   274		port = &uart->port;
   275	
   276		/* get membase */
   277		port->membase = devm_platform_get_and_ioremap_resource(pdev, 0, NULL);
   278		if (!port->membase)
   279			return -ENXIO;
   280	
   281		/* values not from device tree */
   282		port->dev = &pdev->dev;
   283		port->iotype = UPIO_MEM;
   284		port->flags = UPF_BOOT_AUTOCONF;
   285		port->ops = &liteuart_ops;
   286		port->regshift = 2;
   287		port->fifosize = 16;
   288		port->iobase = 1;
   289		port->type = PORT_UNKNOWN;
   290		port->line = dev_id;
   291		spin_lock_init(&port->lock);
   292	
   293		return uart_add_one_port(&liteuart_driver, &uart->port);
   294	}
   295	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 73561 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: kbuild test robot <lkp@intel.com>
To: Mateusz Holenko <mholenko@antmicro.com>,
	Rob Herring <robh+dt@kernel.org>,
	Mark Rutland <mark.rutland@arm.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Jiri Slaby <jslaby@suse.com>,
	devicetree@vger.kernel.org, linux-serial@vger.kernel.org
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
	Stafford Horne <shorne@gmail.com>,
	Karol Gugala <kgugala@antmicro.com>,
	Mateusz Holenko <mholenko@antmicro.com>,
	Mauro Carvalho Chehab <mchehab@kernel.org>,
	linux-media@vger.kernel.org,
	"Paul E. McKenney" <paulmck@linux.ibm.com>,
	Filip Kokosinski <fkokosinski@antmicro.com>,
	Pawel Czarnecki <pczarnecki@internships.antmicro.com>,
	Joel Stanley <joel@jms.id.au>
Subject: Re: [PATCH v6 5/5] drivers/tty/serial: add LiteUART driver
Date: Thu, 28 May 2020 06:32:01 +0800	[thread overview]
Message-ID: <202005280608.6aME2Q9p%lkp@intel.com> (raw)
In-Reply-To: <20200527182545.3859622-5-mholenko@antmicro.com>

[-- Attachment #1: Type: text/plain, Size: 3897 bytes --]

Hi Mateusz,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on robh/for-next]
[also build test ERROR on tty/tty-testing usb/usb-testing staging/staging-testing driver-core/driver-core-testing linus/master v5.7-rc7 next-20200526]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]

url:    https://github.com/0day-ci/linux/commits/Mateusz-Holenko/LiteX-SoC-controller-and-LiteUART-serial-driver/20200528-003240
base:   https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 3393cc4cebf9969db94dc424b7a2b6195589c33b)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>

All error/warnings (new ones prefixed by >>, old ones prefixed by <<):

>> drivers/tty/serial/liteuart.c:266:9: error: implicit declaration of function 'kzalloc' [-Werror,-Wimplicit-function-declaration]
uart = kzalloc(sizeof(struct liteuart_port), GFP_KERNEL);
^
drivers/tty/serial/liteuart.c:266:9: note: did you mean 'vzalloc'?
include/linux/vmalloc.h:106:14: note: 'vzalloc' declared here
extern void *vzalloc(unsigned long size);
^
>> drivers/tty/serial/liteuart.c:266:7: warning: incompatible integer to pointer conversion assigning to 'struct liteuart_port *' from 'int' [-Wint-conversion]
uart = kzalloc(sizeof(struct liteuart_port), GFP_KERNEL);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.

vim +/kzalloc +266 drivers/tty/serial/liteuart.c

   243	
   244	static int liteuart_probe(struct platform_device *pdev)
   245	{
   246		struct device_node *np = pdev->dev.of_node;
   247		struct liteuart_port *uart;
   248		struct uart_port *port;
   249		struct xa_limit limit;
   250		int dev_id, ret;
   251	
   252		/* no device tree */
   253		if (!np)
   254			return -ENODEV;
   255	
   256		if (!litex_check_accessors())
   257			return -EPROBE_DEFER;
   258	
   259		/* look for aliases; auto-enumerate for free index if not found */
   260		dev_id = of_alias_get_id(np, "serial");
   261		if (dev_id < 0)
   262			limit = XA_LIMIT(0, CONFIG_SERIAL_LITEUART_MAX_PORTS);
   263		else
   264			limit = XA_LIMIT(dev_id, dev_id);
   265	
 > 266		uart = kzalloc(sizeof(struct liteuart_port), GFP_KERNEL);
   267		if (!uart)
   268			return -ENOMEM;
   269	
   270		ret = xa_alloc(&liteuart_array, &dev_id, uart, limit, GFP_KERNEL);
   271		if (ret)
   272			return ret;
   273	
   274		port = &uart->port;
   275	
   276		/* get membase */
   277		port->membase = devm_platform_get_and_ioremap_resource(pdev, 0, NULL);
   278		if (!port->membase)
   279			return -ENXIO;
   280	
   281		/* values not from device tree */
   282		port->dev = &pdev->dev;
   283		port->iotype = UPIO_MEM;
   284		port->flags = UPF_BOOT_AUTOCONF;
   285		port->ops = &liteuart_ops;
   286		port->regshift = 2;
   287		port->fifosize = 16;
   288		port->iobase = 1;
   289		port->type = PORT_UNKNOWN;
   290		port->line = dev_id;
   291		spin_lock_init(&port->lock);
   292	
   293		return uart_add_one_port(&liteuart_driver, &uart->port);
   294	}
   295	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 73561 bytes --]

  parent reply	other threads:[~2020-05-27 22:32 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-27 16:25 [PATCH v6 0/5] LiteX SoC controller and LiteUART serial driver Mateusz Holenko
2020-05-27 16:26 ` [PATCH v6 1/5] dt-bindings: vendor: add vendor prefix for LiteX Mateusz Holenko
2020-05-27 16:26 ` [PATCH v6 2/5] dt-bindings: soc: document LiteX SoC Controller bindings Mateusz Holenko
2020-05-27 16:26 ` [PATCH v6 3/5] drivers/soc/litex: add LiteX SoC Controller driver Mateusz Holenko
2020-05-27 16:26 ` [PATCH v6 4/5] dt-bindings: serial: document LiteUART bindings Mateusz Holenko
2020-05-27 16:27 ` [PATCH v6 5/5] drivers/tty/serial: add LiteUART driver Mateusz Holenko
2020-05-27 20:08   ` kbuild test robot
2020-05-27 20:08     ` kbuild test robot
2020-05-27 22:32   ` kbuild test robot [this message]
2020-05-27 22:32     ` kbuild test robot
2020-06-04  7:16   ` Mateusz Holenko
2020-06-04  7:57     ` Greg Kroah-Hartman
2020-06-04  8:25       ` Mateusz Holenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202005280608.6aME2Q9p%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.