From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: [pci:for-linus 2/9] drivers/pci/controller/dwc/pcie-tegra194.c:1829:23: warning: Shifting signed 32-bit value by 31 bits is undefined behaviour. See condition at line 1826. [shiftTooManyBitsSigned]
Date: Fri, 18 Jun 2021 09:11:39 +0800 [thread overview]
Message-ID: <202106180930.VMCHPw3p-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2496 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-pci(a)vger.kernel.org
TO: Jon Hunter <jonathanh@nvidia.com>
CC: Bjorn Helgaas <helgaas@kernel.org>
CC: Thierry Reding <treding@nvidia.com>
Hi Jon,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git for-linus
head: 15ac366c3d20ce1e08173f1de393a8ce95a1facf
commit: 99ab5996278379a02d5a84c4a7ac33a2ebfdb29e [2/9] PCI: tegra194: Fix MCFG quirk build regressions
:::::: branch date: 3 hours ago
:::::: commit date: 5 hours ago
compiler: m68k-linux-gcc (GCC) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
cppcheck possible warnings: (new ones prefixed by >>, may not real problems)
>> drivers/pci/controller/dwc/pcie-tegra194.c:1829:23: warning: Shifting signed 32-bit value by 31 bits is undefined behaviour. See condition at line 1826. [shiftTooManyBitsSigned]
appl_writel(pcie, (1 << irq), APPL_MSI_CTRL_1);
^
drivers/pci/controller/dwc/pcie-tegra194.c:1826:19: note: Assuming that condition 'irq>31' is not redundant
if (unlikely(irq > 31))
^
drivers/pci/controller/dwc/pcie-tegra194.c:1829:23: note: Shift
appl_writel(pcie, (1 << irq), APPL_MSI_CTRL_1);
^
vim +1829 drivers/pci/controller/dwc/pcie-tegra194.c
c57247f940e8ea Vidya Sagar 2020-03-03 1823
c57247f940e8ea Vidya Sagar 2020-03-03 1824 static int tegra_pcie_ep_raise_msi_irq(struct tegra_pcie_dw *pcie, u16 irq)
c57247f940e8ea Vidya Sagar 2020-03-03 1825 {
c57247f940e8ea Vidya Sagar 2020-03-03 @1826 if (unlikely(irq > 31))
c57247f940e8ea Vidya Sagar 2020-03-03 1827 return -EINVAL;
c57247f940e8ea Vidya Sagar 2020-03-03 1828
c57247f940e8ea Vidya Sagar 2020-03-03 @1829 appl_writel(pcie, (1 << irq), APPL_MSI_CTRL_1);
c57247f940e8ea Vidya Sagar 2020-03-03 1830
c57247f940e8ea Vidya Sagar 2020-03-03 1831 return 0;
c57247f940e8ea Vidya Sagar 2020-03-03 1832 }
c57247f940e8ea Vidya Sagar 2020-03-03 1833
:::::: The code@line 1829 was first introduced by commit
:::::: c57247f940e8ea13a0ec33378304dc3cdc5da4a8 PCI: tegra: Add support for PCIe endpoint mode in Tegra194
:::::: TO: Vidya Sagar <vidyas@nvidia.com>
:::::: CC: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
reply other threads:[~2021-06-18 1:11 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=202106180930.VMCHPw3p-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild@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.