All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/dma/imx-sdma.c:1334:23: warning: comparison of unsigned expression >= 0 is always true
@ 2020-06-21  3:06 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-06-21  3:06 UTC (permalink / raw)
  To: Frieder Schrempf; +Cc: kbuild-all, linux-kernel, Vinod Koul, Fabio Estevam

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   8b6ddd10d678bebec32381f71b6b420bafc43ad0
commit: 25962e1a7f1d522f1b57ead2f266fab570042a70 dmaengine: imx-sdma: Fix the event id check to include RX event for UART6
date:   4 months ago
config: arm-randconfig-r006-20200621 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
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
        git checkout 25962e1a7f1d522f1b57ead2f266fab570042a70
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm 

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

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

drivers/dma/imx-sdma.c: In function 'sdma_free_chan_resources':
>> drivers/dma/imx-sdma.c:1334:23: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
1334 |  if (sdmac->event_id0 >= 0)
|                       ^~
drivers/dma/imx-sdma.c: In function 'sdma_config':
drivers/dma/imx-sdma.c:1635:23: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
1635 |  if (sdmac->event_id0 >= 0) {
|                       ^~

vim +1334 drivers/dma/imx-sdma.c

  1324	
  1325	static void sdma_free_chan_resources(struct dma_chan *chan)
  1326	{
  1327		struct sdma_channel *sdmac = to_sdma_chan(chan);
  1328		struct sdma_engine *sdma = sdmac->sdma;
  1329	
  1330		sdma_terminate_all(chan);
  1331	
  1332		sdma_channel_synchronize(chan);
  1333	
> 1334		if (sdmac->event_id0 >= 0)
  1335			sdma_event_disable(sdmac, sdmac->event_id0);
  1336		if (sdmac->event_id1)
  1337			sdma_event_disable(sdmac, sdmac->event_id1);
  1338	
  1339		sdmac->event_id0 = 0;
  1340		sdmac->event_id1 = 0;
  1341		sdmac->context_loaded = false;
  1342	
  1343		sdma_set_channel_priority(sdmac, 0);
  1344	
  1345		clk_disable(sdma->clk_ipg);
  1346		clk_disable(sdma->clk_ahb);
  1347	}
  1348	

---
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: 28238 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* drivers/dma/imx-sdma.c:1334:23: warning: comparison of unsigned expression >= 0 is always true
@ 2020-06-21  3:06 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-06-21  3:06 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   8b6ddd10d678bebec32381f71b6b420bafc43ad0
commit: 25962e1a7f1d522f1b57ead2f266fab570042a70 dmaengine: imx-sdma: Fix the event id check to include RX event for UART6
date:   4 months ago
config: arm-randconfig-r006-20200621 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
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
        git checkout 25962e1a7f1d522f1b57ead2f266fab570042a70
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm 

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

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

drivers/dma/imx-sdma.c: In function 'sdma_free_chan_resources':
>> drivers/dma/imx-sdma.c:1334:23: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
1334 |  if (sdmac->event_id0 >= 0)
|                       ^~
drivers/dma/imx-sdma.c: In function 'sdma_config':
drivers/dma/imx-sdma.c:1635:23: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
1635 |  if (sdmac->event_id0 >= 0) {
|                       ^~

vim +1334 drivers/dma/imx-sdma.c

  1324	
  1325	static void sdma_free_chan_resources(struct dma_chan *chan)
  1326	{
  1327		struct sdma_channel *sdmac = to_sdma_chan(chan);
  1328		struct sdma_engine *sdma = sdmac->sdma;
  1329	
  1330		sdma_terminate_all(chan);
  1331	
  1332		sdma_channel_synchronize(chan);
  1333	
> 1334		if (sdmac->event_id0 >= 0)
  1335			sdma_event_disable(sdmac, sdmac->event_id0);
  1336		if (sdmac->event_id1)
  1337			sdma_event_disable(sdmac, sdmac->event_id1);
  1338	
  1339		sdmac->event_id0 = 0;
  1340		sdmac->event_id1 = 0;
  1341		sdmac->context_loaded = false;
  1342	
  1343		sdma_set_channel_priority(sdmac, 0);
  1344	
  1345		clk_disable(sdma->clk_ipg);
  1346		clk_disable(sdma->clk_ahb);
  1347	}
  1348	

---
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: 28238 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-06-21  3:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-21  3:06 drivers/dma/imx-sdma.c:1334:23: warning: comparison of unsigned expression >= 0 is always true kernel test robot
2020-06-21  3:06 ` 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.