From patchwork Fri Aug 21 05:35:58 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 7048191 Return-Path: X-Original-To: patchwork-dmaengine@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 0C7869F2B4 for ; Fri, 21 Aug 2015 05:36:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 33E8420630 for ; Fri, 21 Aug 2015 05:36:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 505B120624 for ; Fri, 21 Aug 2015 05:36:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753194AbbHUFgH (ORCPT ); Fri, 21 Aug 2015 01:36:07 -0400 Received: from relmlor4.renesas.com ([210.160.252.174]:43223 "EHLO relmlie3.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753182AbbHUFgE (ORCPT ); Fri, 21 Aug 2015 01:36:04 -0400 Received: from unknown (HELO relmlir4.idc.renesas.com) ([10.200.68.154]) by relmlie3.idc.renesas.com with ESMTP; 21 Aug 2015 14:36:01 +0900 Received: from relmlac3.idc.renesas.com (relmlac3.idc.renesas.com [10.200.69.23]) by relmlir4.idc.renesas.com (Postfix) with ESMTP id 5C186482CD; Fri, 21 Aug 2015 14:36:01 +0900 (JST) Received: by relmlac3.idc.renesas.com (Postfix, from userid 0) id 45AD91800A; Fri, 21 Aug 2015 14:36:01 +0900 (JST) Received: from relmlac3.idc.renesas.com (localhost [127.0.0.1]) by relmlac3.idc.renesas.com (Postfix) with ESMTP id 0A7421806F; Fri, 21 Aug 2015 14:36:01 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac3.idc.renesas.com with ESMTP id QAC13471; Fri, 21 Aug 2015 14:36:01 +0900 X-IronPort-AV: E=Sophos;i="5.15,719,1432566000"; d="scan'";a="193997187" Received: from mail-sg2apc01lp0245.outbound.protection.outlook.com (HELO APC01-SG2-obe.outbound.protection.outlook.com) ([65.55.88.245]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA; 21 Aug 2015 14:36:00 +0900 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; Received: from morimoto-PC.renesas.com (211.11.155.144) by HK2PR06MB0594.apcprd06.prod.outlook.com (10.161.187.145) with Microsoft SMTP Server (TLS) id 15.1.231.21; Fri, 21 Aug 2015 05:35:58 +0000 Message-ID: <87wpwpurzk.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Vinod Koul , Dan Williams CC: , Subject: CONFIG_OF vs DMA_OF User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Date: Fri, 21 Aug 2015 05:35:58 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: TY1PR01CA0036.jpnprd01.prod.outlook.com (25.164.162.146) To HK2PR06MB0594.apcprd06.prod.outlook.com (25.161.187.145) X-Microsoft-Exchange-Diagnostics: 1; HK2PR06MB0594; 2:T86ZDajTM7WlKuhvQycDr81RBWi4qFmUGcNpl1L2J0SJsfTjlIKc6EbsSZLQZmAPz//nQnE+jxvVGwHOXsETviiy4TWnh2PcPGgRSlERAALaOh7Pe9mCvVsNnTmjibYAbeyaXcUHzwGLyLJ6zchyksKldcrSANVDSBXLnCNEB6A=; 3:9WGBxoQ8yYH8LJmgQau91uUQ8ne4CglVtpgyGyY/N2Xfip4oZ4CoGwFOm3uFufd3qbFH3riFc8wNfMBLWVDokyUctSgwiqXFhFy5yWC+G0egknMnhk64/sm7n2Rs9yJRM5hpG1WLcnfzNmbr25uZmA==; 25:nCty4DRGecZxdq0UcYIWkt982H3g8UiNQ6dkd8uV8dW9KxtojJpXH7y39FF9/GwE+K6F2ldbaIxh4oUHy/YstwRkEXakUiC1F5y9oIogjDHDRh362SVHoCrDmTUog0ftoM16euFNB/XdZhSPOpIodMRitB8pwYnG9y+C2sDd/qN+NtRPnKKjXvmKd6U3tMc5mzPVLVdds+N2HVxs+7io0N+4tPu+gMhxe5r3xT0QUzRpUWicylMWWFCPtHLts6uaHXIfeIDKykyv9IiSKLan0w== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:HK2PR06MB0594; X-Microsoft-Exchange-Diagnostics: 1; HK2PR06MB0594; 20:ENDitBvFF1I/IldTye0Fx885VueYBW0gDbtPc4nJ32CRGFNb0BfWRgLw06Ivn8OgyhbQHiv6W6LnxG3KYIZ8p1O4UdFmf6A4qwxsyGyHxoxpiOxmJG/Wph8EnECBWJ2B3aD34PpFbJ8rHbcWvAinXO2xVPLGtkP7OT5HKuq6ooNGYnQBym70L+PNDWC/zDLkav1RjU9Bazul+0/IkESucpLOApWsxmvF88Gz7ai8K/0kjXXYI7BSRckvIxk/Hf0fZG+2IAKfn2jFkn4B67xP1bfCyH/FplkvhjDInzzs3q8XBID+SEp9Vs4hVsG//X0ve9PADbvyCovcIlxFvZvxgN66vagNCKe1oQA8J/vG8y0Phfvfo3xf15HZuBhCXmE+8r/mXI4JBKi6o04G6c/vHOT6YK+hPWkBHLm/kxzQIZZfeX8d72txzlhmfGVbWsdIEjlYvJS8uMvtjvcW1tQfE9oXSjxpicJr+B8y4gTsTm10sKZftasgJl573Vc7bU8n; 4:E27WG+yZymUDICv024GYB9BrfPF4R4OoF1pKQu84UhBPlq10/2/T/RdwoO+WrVdFozEpsf0rbyERe973gvExYqogB5DWqTLi8ix3KwHbO5gYUhFb4CGFlYqN+2ecXzHnS7jpvFHQGiHXpp3zTN4d0Upz0zRIIhsEVU9CiFkt9V8ieL3oD5Q/D6KKzphQ0AMKR41pUDemnQDIy/ZMTWW8JifF/Me+00hCjvC05yIgNsrMSK5V1kWiQ2n6JRi4aHNEVZRim8FV65c5acZtk2fVO70lujClvdcko7yakc1Feu4jZdPBhHW/ms5sCTMHEtgk X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(8121501046)(3002001); SRVR:HK2PR06MB0594; BCL:0; PCL:0; RULEID:; SRVR:HK2PR06MB0594; X-Forefront-PRVS: 067553F396 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(189002)(199003)(189998001)(42186005)(47776003)(62966003)(5001830100001)(54356999)(5001860100001)(105586002)(77156002)(92566002)(5001960100002)(23726002)(106356001)(50986999)(229853001)(36756003)(5004730100002)(66066001)(87976001)(5007970100001)(40100003)(86362001)(122386002)(68736005)(77096005)(46406003)(46102003)(101416001)(69596002)(33646002)(83506001)(64706001)(50466002)(97736004)(4001350100001)(4001540100001)(81156007)(53416004)(5001770100001); DIR:OUT; SFP:1102; SCL:1; SRVR:HK2PR06MB0594; H:morimoto-PC.renesas.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HK2PR06MB0594; 23:+pKnIyAVOX7YYTo8V2/G0MiezWUGuY6UczB937cRv?= =?us-ascii?Q?JvbnyAelN7g7T1pcvKlJEPaSvq6ScKTcL9EoLTpzkihVCLEsa05DiYdEE4Hw?= =?us-ascii?Q?7xdKABMDVCjzMHQTgsgBsWzKhhQVVgLoNbb8zoeynIk+UG98oJqI24SWWE3J?= =?us-ascii?Q?f7Dhy4j8LDkOsQzfIkKfE+3lUSJzSb4f+MQgilSvoqRbyBmuqkM0XeYfHutF?= =?us-ascii?Q?Ga4OEYJOKFnUohja9Rg8dTVXXyi3+YqiuTgwaSxVV44qNfy/TKbmv2ePvAOJ?= =?us-ascii?Q?/m4WVUYoyO+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nostics: 1; HK2PR06MB0594; 5:xrTxG8M2VXYv2IoJMHE7fYieWwICGcbOCMWU8xLDRGWNk6g28cgf+dDFIXU6+c5Tq2QFIbj+fmpAhpSAs8Y2+1L8pGAeDqQd+t0lt2EfsM+Ul6Jv5uMm5fPFIxsfHlSFXIX3PqPjX8/g8ZBsZ1jPMA==; 24:RgG5rU4Dq9cp4zClRHa2+Tprjhp+1pAPug/TVdTRLIFhT2w5K+OghPsxewB0c8VN7SeZdZM7y7PDFicuKm86XSUVvKDDK337LwHAUbr5fMc=; 20:E6+YRNmmnKfJd7nEjovWwTnQ/L/MXCIM6tDY3afz7wSrXDl5TPfJd2a/vaQSqtJFYyKPDb7Ju6YK58aBX6KJpisucwGqfDv/WMMbVCprKrPrEn63XAIdZ8CwwV6tBODeYJ/1d+So8+DtFidFDvBrqqDsKnI1hOE19wtiIujpbEI= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Aug 2015 05:35:58.5376 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2PR06MB0594 Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi Vinod ${LINUX}/drivers/dma/of-dma.c will be compiled if .config has DMA_OF obj-$(CONFIG_DMA_OF) += of-dma.o But, ${LINUX}/include/linux/of_dma.h is based on CONFIG_OF #ifdef CONFIG_OF extern int of_dma_controller_register(struct device_node *np, ... #else static inline int of_dma_controller_register(struct device_node *np, ... #endif I have issue if .config has CONFIG_OF but not have DMA_OF. Is this correct patch ? --------------------------------- --------------------------------- Best regards --- Kuninori Morimoto -- To unsubscribe from this list: send the line "unsubscribe dmaengine" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/include/linux/of_dma.h b/include/linux/of_dma.h index 98ba752..9440622 100644 --- a/include/linux/of_dma.h +++ b/include/linux/of_dma.h @@ -34,7 +34,7 @@ struct of_dma_filter_info { dma_filter_fn filter_fn; }; -#ifdef CONFIG_OF +#ifdef DMA_OF extern int of_dma_controller_register(struct device_node *np, struct dma_chan *(*of_dma_xlate) (struct of_phandle_args *, struct of_dma *),