From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: [xilinx-xlnx:xlnx_rebase_v5.15 364/1093] drivers/usb/dwc3/core.c:583:10: warning: Signed integer overflow for expression '0xf<<28'. [integerOverflow]
Date: Sat, 16 Apr 2022 20:58:12 +0800 [thread overview]
Message-ID: <202204162010.QCTAdsw8-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2662 bytes --]
CC: kbuild-all(a)lists.01.org
BCC: lkp(a)intel.com
CC: linux-arm-kernel(a)lists.infradead.org
TO: Manish Narani <manish.narani@xilinx.com>
CC: Michal Simek <monstr@monstr.eu>
CC: Piyush Mehta <piyush.mehta@xilinx.com>
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.15
head: b1635a7683e2274f21d795783e4c9db7e518267a
commit: f0fac249047d89d08b43602104206071b484e86c [364/1093] usb: dwc3: of-simple: Enable CCI support in dwc3 driver
:::::: branch date: 5 days ago
:::::: commit date: 2 months ago
compiler: riscv64-linux-gcc (GCC) 11.2.0
reproduce (cppcheck warning):
# apt-get install cppcheck
git checkout f0fac249047d89d08b43602104206071b484e86c
cppcheck --quiet --enable=style,performance,portability --template=gcc FILE
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/usb/dwc3/core.c:583:10: warning: Signed integer overflow for expression '0xf<<28'. [integerOverflow]
reg |= DWC3_GSBUSCFG0_DATRDREQINFO |
^
vim +583 drivers/usb/dwc3/core.c
26ceca97502609 Felipe Balbi 2011-09-30 571
f0fac249047d89 Manish Narani 2022-01-26 572 static void dwc3_config_soc_bus(struct dwc3 *dwc)
f0fac249047d89 Manish Narani 2022-01-26 573 {
f0fac249047d89 Manish Narani 2022-01-26 574 /*
f0fac249047d89 Manish Narani 2022-01-26 575 * Check if CCI is enabled for USB. Returns true
f0fac249047d89 Manish Narani 2022-01-26 576 * if the node has property 'dma-coherent'. Otherwise
f0fac249047d89 Manish Narani 2022-01-26 577 * returns false.
f0fac249047d89 Manish Narani 2022-01-26 578 */
f0fac249047d89 Manish Narani 2022-01-26 579 if (of_dma_is_coherent(dwc->dev->of_node)) {
f0fac249047d89 Manish Narani 2022-01-26 580 u32 reg;
f0fac249047d89 Manish Narani 2022-01-26 581
f0fac249047d89 Manish Narani 2022-01-26 582 reg = dwc3_readl(dwc->regs, DWC3_GSBUSCFG0);
f0fac249047d89 Manish Narani 2022-01-26 @583 reg |= DWC3_GSBUSCFG0_DATRDREQINFO |
f0fac249047d89 Manish Narani 2022-01-26 584 DWC3_GSBUSCFG0_DESRDREQINFO |
f0fac249047d89 Manish Narani 2022-01-26 585 DWC3_GSBUSCFG0_DATWRREQINFO |
f0fac249047d89 Manish Narani 2022-01-26 586 DWC3_GSBUSCFG0_DESWRREQINFO;
f0fac249047d89 Manish Narani 2022-01-26 587 dwc3_writel(dwc->regs, DWC3_GSBUSCFG0, reg);
f0fac249047d89 Manish Narani 2022-01-26 588 }
f0fac249047d89 Manish Narani 2022-01-26 589 }
f0fac249047d89 Manish Narani 2022-01-26 590
--
0-DAY CI Kernel Test Service
https://01.org/lkp
reply other threads:[~2022-04-16 12:58 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=202204162010.QCTAdsw8-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.