All of lore.kernel.org
 help / color / mirror / Atom feed
* [xilinx-xlnx:xlnx_rebase_v5.15 364/1093] drivers/usb/dwc3/core.c:583:10: warning: Signed integer overflow for expression '0xf<<28'. [integerOverflow]
@ 2022-04-16 12:58 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-04-16 12:58 UTC (permalink / raw)
  To: kbuild

[-- 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-16 12:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-16 12:58 [xilinx-xlnx:xlnx_rebase_v5.15 364/1093] drivers/usb/dwc3/core.c:583:10: warning: Signed integer overflow for expression '0xf<<28'. [integerOverflow] kernel test robot

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.