From patchwork Thu Jan 12 19:06:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 9513981 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6C6CF601E5 for ; Thu, 12 Jan 2017 19:08:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5E2D2286DB for ; Thu, 12 Jan 2017 19:08:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 52DA128707; Thu, 12 Jan 2017 19:08:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B68F6286DB for ; Thu, 12 Jan 2017 19:08:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750923AbdALTIM (ORCPT ); Thu, 12 Jan 2017 14:08:12 -0500 Received: from mail-by2nam01on0075.outbound.protection.outlook.com ([104.47.34.75]:35223 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750772AbdALTIH (ORCPT ); Thu, 12 Jan 2017 14:08:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sandiskcorp.onmicrosoft.com; s=selector1-sandisk-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=VXFw4oHQQnvn6PkrkKQbbpvSO8kNzpeWkZcansdCAHI=; b=ofO2lrXjOzDJKv/EnagZv6M0JdzDUMv7QUzp7cGKYyJHwIxi5C3s802i7/XqDtSKknP0Ql/LE1AUEgEhV/5aK3B3uqRRhWBTUK0QUIZzn/iyt3hP6NYvIBFA+Dn/ZSTaiDegBiRj+WWhzBcDVqXGwzQWQDjANsnolA0TxVPM5Ac= Received: from DM5PR02CA0059.namprd02.prod.outlook.com (10.168.192.21) by CY1PR02MB1415.namprd02.prod.outlook.com (10.161.171.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.829.7; Thu, 12 Jan 2017 19:08:04 +0000 Received: from BN1AFFO11FD029.protection.gbl (2a01:111:f400:7c10::169) by DM5PR02CA0059.outlook.office365.com (2603:10b6:3:39::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.845.12 via Frontend Transport; Thu, 12 Jan 2017 19:08:04 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.21 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.21; helo=milsmgep15.sandisk.com; Received: from milsmgep15.sandisk.com (63.163.107.21) by BN1AFFO11FD029.mail.protection.outlook.com (10.58.52.184) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.803.8 via Frontend Transport; Thu, 12 Jan 2017 19:08:01 +0000 Received: from MILHUBIP04.sdcorp.global.sandisk.com (Unknown_Domain [10.201.67.162]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id CC.90.65426.761D7785; Thu, 12 Jan 2017 10:56:39 -0800 (PST) Received: from milsmgip12.sandisk.com (10.177.9.6) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.319.2; Thu, 12 Jan 2017 11:07:58 -0800 X-AuditID: 0ac94369-b62949800001ff92-e2-5877d1676bc1 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 65.DF.09762.E04D7785; Thu, 12 Jan 2017 11:07:58 -0800 (PST) From: Bart Van Assche To: Doug Ledford CC: , , "Greg Kroah-Hartman" , Bart Van Assche , Benjamin Herrenschmidt , Chris Metcalf , "David Woodhouse" , , , , Paul Mackerras , Russell King Subject: [PATCH v2 03/26] treewide: Consolidate set_dma_ops() implementations Date: Thu, 12 Jan 2017 11:06:55 -0800 Message-ID: <20170112190718.6728-4-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170112190718.6728-1-bart.vanassche@sandisk.com> References: <20170112190718.6728-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprFIsWRmVeSWpSXmKPExsXCddJ5kW76xfIIg54LFhYfmlqZLd7161m8 PP+B1WLiysnMFs2L17NZdOz6ymKx6fE1VovLu+awWTw71MticWjqXkaL39//sVqsObKY3YHH 4/K1i8wem1doefS8aWH12D93DbvH5iX1HudnLGT0eDb9MJPH+31X2Tzm7upj9Pi8SS6AK4rL JiU1J7MstUjfLoErY1PXGZaC7RIVt7q/szcwvhTpYuTgkBAwkfj+u7qLkYtDSGApk8TKrV1M EM42RomertOMXYycYEXLFv5hhkhsZJTo/HmLCSTBJmAk8e39TBYQW0RATWLTq0XsIEXMAneY Jb69WssOkhAW8JW4M/sSWBGLgKpE6409YM28AnYSez89ZoPYIC+xq+0iK4jNKWAv8e3/JbDN QkA1uw78ZwEZKiHwklXiyc2f7BDNghInZz4BG8osICFx8MULZogGdYmTS+YzTWAUmoWkbBaS sgWMTKsYxXIzc4pz01MLDE31ihPzUjKLs/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365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(39410400002)(39450400003)(39850400002)(39860400002)(39840400002)(2980300002)(438002)(199003)(189002)(8936002)(81166006)(92566002)(1076002)(305945005)(50986999)(76176999)(81156014)(48376002)(68736007)(47776003)(50466002)(7416002)(356003)(38730400001)(5660300001)(4326007)(69596002)(77096006)(8676002)(6916009)(626004)(54906002)(2950100002)(2906002)(36756003)(86362001)(6666003)(110136003)(50226002)(189998001)(97736004)(5003940100001)(106466001)(2270400002)(33646002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR02MB1415; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD029; 1:HNl2qW0/Wk2BmDU3ATq4ihds17xveKepe61oKKQGlSWsXVTjxnVSAJeElNUVyn7P9T+TR98pYjFCWkyOBLl/8t8XVWVoG6r7BuAmSIV/KMhTSVHFq3knGPjAwbkJisk6M5CRfNFlRo9ipG7fVXSy7wBY1N94lLaFsyqO82CPphRa7F0YTYitQvbnFBF5sR+pEqV69xnEMuemEbzVz70p/58S3YHSd82ltml3IZTRY8ynfagIpi42ldsuW+jGw8S4KnSmGMW6EBmeF1+gw3MFxzx12hQ2H9lSZcATXEGS5ziruySPCIL2IUoAwBIFxTNPEN0c8crmMNtDDyfzwRvGls5W3vvQWJaQhUZzYClqJCIXMh/u+6P3SS42r7Sd+JMkXDF6/5V0p+rNF/K9t6MiUn4+a23QG8pAutvFLV1aDCAtS4lywBjJZ0Em1RuoHMInaVFeGGY9JHT7wvzwSKEw1HMJSX5h4UZWfFbddV4AlYc= X-MS-Office365-Filtering-Correlation-Id: 8af39984-c467-4f62-8d31-08d43b1e5564 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:CY1P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QX2W9LBUpnGNn2PrRoUkKG9fFBg077LfeCK4Qg9x4RNIkuT+hcirsKPk8SbUWE7QRLjFBzGbzi87zf+DJQaxSxyQvba0/WzCWUldA/4xstWxy7DGsVjSAv8DEvz3s+ewYARMs4CiSTF+v+4usSh0l87WCCzmCXdhRRqBvlXC4Dw==; 20:zG3ukDSEB9c/dpOpH9Mfse+VjfShghVx2srKw6RbKYTSRQr2b2I48iapYUefQYYrJaRebRKczYPeSCNOU+thUSBLJc4ucPxm+8pyohquubDqDHFiO4UqEBgsaD3bDepRfBwapupzyrZ1GHKFujn6OKLXY7aAyc+9NUZnfED10K+VbaCsG34tIfgcYTzMkU6H0AuL1KpZxDLOLU0/M9PhyqyeA0jDH0IaguptVCBtzlewP1rS0DiFM2aF8COBcEx+RMvXT0TwlOhlg3pxQZZE8LXEM8X1nKq8FJvv+1agm/m/KI/aQt2lBBf+AWeLg+sQHHlhUjUqyjQYCG9Ax0z2/IPKQz7pwpJh3okegFIw+tZq6nZQELRNlqg5SPnN5a2rWr3ZKhJzL4ZDQk+F1SgEmsGcZ6Oqjm01ibwci0NeFMglmSodKye8465+aMDCoUWnKLATzUlg4prCQkE10pOc3lbbFc9enYWjvrobD6ExEvbvIIn/I0C2JDpdlf8VSy09 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(9452136761055)(65623756079841)(258649278758335)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(13016025)(13018025)(10201501046)(3002001)(6055026)(6041248)(20161123564025)(20161123562025)(20161123560025)(20161123555025)(20161123558021)(6072148); SRVR:CY1PR02MB1415; BCL:0; PCL:0; RULEID:; SRVR:CY1PR02MB1415; X-Microsoft-Exchange-Diagnostics: 1; CY1PR02MB1415; 4:OoaT2PKiVtLA5IDReoJKr/6xLHqQbZFiipIc2dDRVzHL/AmVQAIA5Hr6PHRVA1cFZcQeeBzNBQWXvS3gXW+DLrb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83zU1iVTPzgttbfaPs/sCEj2/07L?= =?us-ascii?Q?pNJ7moEK+3YfcxubdvxRqnM3Gcd7+Tbs3lOmnANKi1ZEqGLXYm1qQ=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR02MB1415; 6:4yl0MxZ5Bkn3hlZeEBc6/PeOu2BqeiGMdsiYAzhnXetcBQJwapLHFy7uSnfGLxRhpeajfANhU/hRJv9Wptywho1I7JQ6YklkhGl1YaOsuWU7I17ICfEpGeIHsYyANYuID7YlTKtnqshEJhXLUAcfDLfSP4jED/+p7bPzXShOyt3ncgv2SYzvE36VFIdk1D0p7r4iHEy/Yg+zcDpr9YAL1gItDAvA56Few6FIJyW8zkdP4k2vDHke0CemOwjId+r+85AmZxe5A+YAGmOVOYvuLsF0h/iqYykQcKzplBdzUIWVKtSu8OXRUY6JMrF1uHRtBGVNhVIXVBgXlmK3S/thcPYVjFzsEITUU+cNDoj2msABV3abYkXtBlGyeP/enHeP036TBwHCx8iJpSTiL5iSBMvSOUQVu+EfDfJJfRh3Pc+aJAXWyHopu1Vz0FrD2sJKIOrm7eqBGRSTvs15w17Kaw==; 5:pe6FwdsgKYXMpYHuSnaMuJJnPsID/vzszR5AElYF+Dosd27z32ehIe876IbbCudzyTRsRJUeQ67tL2Df1ersTL5lIlRxHQJFlfxBMPPf86Bc3ijqxcHlYbwtQC1XZ1grKfQ1J0WYoB81U4uDH2zjgw==; 24:NOxM4rttSawUMa+XNKZ8/zqsYQBf3RpYyZAEvNpl1YiSdzkVrBP1boOnqC/AfCh3HBoKztHSeIuoiCLwwGsFGTnIo8ThZFnXRBoHmDimBzM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR02MB1415; 7:VEDSaQu+ERyiPSdrrfCIP+kuv8peUwx2beXKDwZtlWqf9zoqReANqeGR18W+J/jVyZ/fePz4ENNQRldxqSeACcawROihobbkFtywk3e1jOhdPo6SdfosEfBpeBTsA0WtuNEf2MjgmM8tYwb0hQiqwpPKakmUkxcg7/2nfM7otZ4SihQiU5NGrwqsKBjdYmnUEhuzVtZQemyLa96MPxDHwiiH3M8hLS4cB5obKOOzpCJUHEPVsTZ5qSqinURETEr/YVlWHGq7nA9z5cYKVWJ+PC+DQ6gaYddaa6X4SKAXM6fCSYZ8+UJQtCPFVWI+jklKHgPAblsU5AXFxhslKtbJbfw1A0QVaOWoNqShVoSVwgJ1LS54+qO5LTn10gF/0MiX78PIb8TDnhEZmdJu4MMIV8KFPC4jYnAJTMgRGyByIKmFxDvP8P10h9skVPqvRkPY5w3S44fbCF+2JBdh2SfxGA== X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jan 2017 19:08:01.9285 (UTC) X-MS-Exchange-CrossTenant-Id: fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d; Ip=[63.163.107.21]; Helo=[milsmgep15.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR02MB1415 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Now that all set_dma_ops() implementations are identical (ignoring BUG_ON() statements), remove the architecture specific definitions and add a definition in . Signed-off-by: Bart Van Assche Cc: Benjamin Herrenschmidt Cc: Chris Metcalf Cc: David Woodhouse Cc: linux-arch@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Cc: linuxppc-dev@lists.ozlabs.org Cc: Paul Mackerras Cc: Russell King --- arch/arm/include/asm/dma-mapping.h | 6 ------ arch/powerpc/include/asm/dma-mapping.h | 5 ----- arch/tile/include/asm/dma-mapping.h | 5 ----- include/linux/dma-mapping.h | 5 +++++ 4 files changed, 5 insertions(+), 16 deletions(-) diff --git a/arch/arm/include/asm/dma-mapping.h b/arch/arm/include/asm/dma-mapping.h index 312f4d0564d6..c7432d647e53 100644 --- a/arch/arm/include/asm/dma-mapping.h +++ b/arch/arm/include/asm/dma-mapping.h @@ -31,12 +31,6 @@ static inline const struct dma_map_ops *get_dma_ops(struct device *dev) return __generic_dma_ops(dev); } -static inline void set_dma_ops(struct device *dev, const struct dma_map_ops *ops) -{ - BUG_ON(!dev); - dev->dma_ops = ops; -} - #define HAVE_ARCH_DMA_SUPPORTED 1 extern int dma_supported(struct device *dev, u64 mask); diff --git a/arch/powerpc/include/asm/dma-mapping.h b/arch/powerpc/include/asm/dma-mapping.h index 59fbd4abcbf8..8275603ba4d5 100644 --- a/arch/powerpc/include/asm/dma-mapping.h +++ b/arch/powerpc/include/asm/dma-mapping.h @@ -91,11 +91,6 @@ static inline const struct dma_map_ops *get_dma_ops(struct device *dev) return dev->dma_ops; } -static inline void set_dma_ops(struct device *dev, const struct dma_map_ops *ops) -{ - dev->dma_ops = ops; -} - /* * get_dma_offset() * diff --git a/arch/tile/include/asm/dma-mapping.h b/arch/tile/include/asm/dma-mapping.h index c0620697eaad..2562995a6ac9 100644 --- a/arch/tile/include/asm/dma-mapping.h +++ b/arch/tile/include/asm/dma-mapping.h @@ -59,11 +59,6 @@ static inline phys_addr_t dma_to_phys(struct device *dev, dma_addr_t daddr) static inline void dma_mark_clean(void *addr, size_t size) {} -static inline void set_dma_ops(struct device *dev, const struct dma_map_ops *ops) -{ - dev->dma_ops = ops; -} - static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size) { if (!dev->dma_mask) diff --git a/include/linux/dma-mapping.h b/include/linux/dma-mapping.h index f1da68b82c63..e97f23e8b2d9 100644 --- a/include/linux/dma-mapping.h +++ b/include/linux/dma-mapping.h @@ -164,6 +164,11 @@ int dma_mmap_from_coherent(struct device *dev, struct vm_area_struct *vma, #ifdef CONFIG_HAS_DMA #include +static inline void set_dma_ops(struct device *dev, + const struct dma_map_ops *dma_ops) +{ + dev->dma_ops = dma_ops; +} #else /* * Define the dma api to allow compilation but not linking of