Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932404AbbLNNFG (ORCPT ); Mon, 14 Dec 2015 08:05:06 -0500 Received: from mga09.intel.com ([134.134.136.24]:12110 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752825AbbLNNFE (ORCPT ); Mon, 14 Dec 2015 08:05:04 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,427,1444719600"; d="scan'208";a="707000422" Date: Mon, 14 Dec 2015 21:04:09 +0800 From: kbuild test robot To: Peter Ujfalusi Cc: kbuild-all@01.org, vinod.koul@intel.com, arnd@arndb.de, andy.shevchenko@gmail.com, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, nsekhar@ti.com, tony@atomide.com Subject: Re: [PATCH V02 3/5] dmaengine: core: Introduce new, universal API to request a channel Message-ID: <201512142130.g8eZzCT6%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1450092140-31602-4-git-send-email-peter.ujfalusi@ti.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: fengguang.wu@intel.com X-SA-Exim-Scanned: No (on bee); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1766 Lines: 46 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 linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/