Re: [PATCH V02 3/5] dmaengine: core: Introduce new, universal API to request a channel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Peter,

[auto build test WARNING on slave-dma/next]
[also build test WARNING on v4.4-rc5 next-20151214]

url:    https://github.com/0day-ci/linux/commits/Peter-Ujfalusi/dmaengine-core-Skip-mask-matching-when-it-is-not-provided-to-private_candidate/20151214-192521
base:   https://git.kernel.org/pub/scm/linux/kernel/git/vkoul/slave-dma.git next


coccinelle warnings: (new ones prefixed by >>)

>> drivers/dma/dmaengine.c:715:23-30: ERROR: PTR_ERR applied after initialization to constant on line 703

vim +715 drivers/dma/dmaengine.c

   697	 *
   698	 * Returns pointer to appropriate DMA channel on success or an error pointer.
   699	 */
   700	struct dma_chan *dma_request_chan(struct device *dev, const char *name)
   701	{
   702		struct dma_device *d, *_d;
 > 703		struct dma_chan *chan = NULL;
   704	
   705		/* If device-tree is present get slave info from here */
   706		if (dev->of_node)
   707			chan = of_dma_request_slave_channel(dev->of_node, name);
   708	
   709		/* If device was enumerated by ACPI get slave info from here */
   710		if (has_acpi_companion(dev) && !chan)
   711			chan = acpi_dma_request_slave_chan_by_name(dev, name);
   712	
   713		if (chan) {
   714			/* Valid channel found or requester need to be deferred */
 > 715			if (!IS_ERR(chan) || PTR_ERR(chan) == -EPROBE_DEFER)
   716				return chan;
   717		}
   718	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
--
To unsubscribe from this list: send the line "unsubscribe dmaengine" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux PCI]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux