From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752804AbbC3G0f (ORCPT ); Mon, 30 Mar 2015 02:26:35 -0400 Received: from mail-bn1bon0078.outbound.protection.outlook.com ([157.56.111.78]:50400 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751288AbbC3G0d convert rfc822-to-8bit (ORCPT ); Mon, 30 Mar 2015 02:26:33 -0400 Authentication-Results: spf=pass (sender IP is 149.199.60.100) smtp.mailfrom=xilinx.com; vger.kernel.org; dkim=none (message not signed) header.d=none; Date: Mon, 30 Mar 2015 11:56:08 +0530 From: Appana Durga Kedareswara Rao User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Stephen Rothwell , Vinod Koul CC: , , "Kedareswara rao Appana" Subject: Re: linux-next: build warning after merge of the slave-dma tree References: <20150330172053.63896266@canb.auug.org.au> In-Reply-To: <20150330172053.63896266@canb.auug.org.au> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 8BIT X-Originating-IP: [172.23.96.85] X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-7.5.0.1018-21432.005 X-TM-AS-User-Approved-Sender: Yes;Yes;Yes Message-ID: <0d71a355-1f27-4f9f-ad87-01a68aeaaca3@BL2FFO11OLC014.protection.gbl> X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:149.199.60.100;CTRY:US;IPV:NLI;EFV:NLI;BMV:1;SFV:NSPM;SFS:(10009020)(6009001)(438002)(24454002)(51704005)(189002)(199003)(377454003)(479174004)(53416004)(106466001)(86362001)(2950100001)(5890100001)(23746002)(87936001)(54356999)(76176999)(33646002)(50466002)(31696002)(50986999)(1496007)(74316001)(46102003)(47776003)(65806001)(77156002)(64126003)(62966003)(65956001)(92566002)(70736001)(83506001)(65826006);DIR:OUT;SFP:1101;SCL:1;SRVR:BL2FFO11HUB014;H:xsj-pvapsmtpgw02;FPR:;SPF:Pass;MLV:sfv;MX:1;A:1;LANG:en; X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BL2FFO11HUB014; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(5002010);SRVR:BL2FFO11HUB014;BCL:0;PCL:0;RULEID:;SRVR:BL2FFO11HUB014; X-Forefront-PRVS: 05315CBE52 X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Mar 2015 06:26:32.1642 (UTC) X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.60.100];Helo=[xsj-pvapsmtpgw02] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2FFO11HUB014 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Stephen Rothwell, I will fix this and will send a patch. Regards, Kedar. On 3/30/2015 11:50 AM, Stephen Rothwell wrote: > Hi Vinod, > > After merging the slave-dma tree, today's linux-next build (arm > multi_v7_defconfig) produced this warning: > > In file included from drivers/dma/xilinx/xilinx_vdma.c:26:0: > include/linux/dmapool.h:18:4: warning: 'struct device' declared inside parameter list > size_t size, size_t align, size_t allocation); > ^ > include/linux/dmapool.h:18:4: warning: its scope is only this definition or declaration, which is probably not what you want > include/linux/dmapool.h:31:7: warning: 'struct device' declared inside parameter list > size_t size, size_t align, size_t allocation); > ^ > drivers/dma/xilinx/xilinx_vdma.c: In function 'xilinx_vdma_alloc_chan_resources': > drivers/dma/xilinx/xilinx_vdma.c:501:20: warning: passing argument 2 of 'dma_pool_create' from incompatible pointer type > chan->desc_pool = dma_pool_create("xilinx_vdma_desc_pool", > ^ > In file included from drivers/dma/xilinx/xilinx_vdma.c:26:0: > include/linux/dmapool.h:17:18: note: expected 'struct device *' but argument is of type 'struct device *' > struct dma_pool *dma_pool_create(const char *name, struct device *dev, > ^ > > Presumable caused by the include order change in commit 937abe88aea3 > ("dmaengine: xilinx-dma: move header file to common location"). > > I guess that dmapool.h needs a "struct device;" line near the top. > This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.