From: kernel test robot <lkp@intel.com>
To: Rob Herring <robh@kernel.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [robh:for-kernelci 1/9] drivers/tty/serial/lantiq.c:732 fetch_irq_lantiq() warn: unsigned 'ltq_port->tx_irq' is never less than zero.
Date: Tue, 14 Dec 2021 20:00:49 +0800 [thread overview]
Message-ID: <202112141920.cCz4wG5n-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-kernelci
head: 0e59c9b64d3363b98201fc040101f8ff62c7eafb
commit: e12887def507246bafed1c9b1b7f4f03ab225da5 [1/9] serial: lantiq: Remove usage of of_irq_to_resource_table()/of_irq_get()
config: i386-randconfig-m021-20211210 (https://download.01.org/0day-ci/archive/20211214/202112141920.cCz4wG5n-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
smatch warnings:
drivers/tty/serial/lantiq.c:732 fetch_irq_lantiq() warn: unsigned 'ltq_port->tx_irq' is never less than zero.
drivers/tty/serial/lantiq.c:735 fetch_irq_lantiq() warn: unsigned 'ltq_port->rx_irq' is never less than zero.
drivers/tty/serial/lantiq.c:738 fetch_irq_lantiq() warn: unsigned 'ltq_port->err_irq' is never less than zero.
vim +732 drivers/tty/serial/lantiq.c
725
726 static int fetch_irq_lantiq(struct device *dev, struct ltq_uart_port *ltq_port)
727 {
728 struct uart_port *port = <q_port->port;
729 struct platform_device *pdev = to_platform_device(dev);
730
731 ltq_port->tx_irq = platform_get_irq(pdev, 0);
> 732 if (ltq_port->tx_irq < 0)
733 return ltq_port->tx_irq;
734 ltq_port->rx_irq = platform_get_irq(pdev, 1);
> 735 if (ltq_port->rx_irq < 0)
736 return ltq_port->rx_irq;
737 ltq_port->err_irq = platform_get_irq(pdev, 2);
> 738 if (ltq_port->err_irq < 0)
739 return ltq_port->err_irq;
740
741 port->irq = ltq_port->tx_irq;
742
743 return 0;
744 }
745
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
reply other threads:[~2021-12-14 12:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202112141920.cCz4wG5n-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®