From patchwork Fri Jan 20 21:04:03 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: 9529483 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 6004860113 for ; Fri, 20 Jan 2017 21:21:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 527F8286D5 for ; Fri, 20 Jan 2017 21:21:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 45296286DF; Fri, 20 Jan 2017 21:21:49 +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 6F19F286D6 for ; Fri, 20 Jan 2017 21:21:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752448AbdATVVm (ORCPT ); Fri, 20 Jan 2017 16:21:42 -0500 Received: from mail-sn1nam02on0045.outbound.protection.outlook.com ([104.47.36.45]:24897 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752292AbdATVVM (ORCPT ); Fri, 20 Jan 2017 16:21:12 -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=QljSGgsCCt6qlgOTMCLCJBOw3ZXDLODM0hnKB6NaNXWkaxZrLYhFGT+4QJXBSViEZUH2rrAXuNBS9jDy9e0nKlUET6k5a/1s+iwYI1LW9faQqFvXiWXrtErva4UUihur/IJcooZVQMWSwtVQ8tkIatp5JB73Puf1czsvj1kUTEg= Received: from BY2PR02CA0062.namprd02.prod.outlook.com (10.141.216.52) by CY1PR02MB1287.namprd02.prod.outlook.com (10.161.170.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.845.12; Fri, 20 Jan 2017 21:04:44 +0000 Received: from BY2FFO11FD045.protection.gbl (2a01:111:f400:7c0c::143) by BY2PR02CA0062.outlook.office365.com (2a01:111:e400:2c40::52) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13 via Frontend Transport; Fri, 20 Jan 2017 21:04:44 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; samba.org; dkim=none (message not signed) header.d=none;samba.org; 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 BY2FFO11FD045.mail.protection.outlook.com (10.1.15.177) 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; Fri, 20 Jan 2017 21:04:43 +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 A3.B8.65426.BA872885; Fri, 20 Jan 2017 12:52:59 -0800 (PST) Received: from milsmgip11.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; Fri, 20 Jan 2017 13:04:40 -0800 X-AuditID: 0ac94369-b62949800001ff92-1f-588278abde38 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 16.33.16817.86B72885; Fri, 20 Jan 2017 13:04:40 -0800 (PST) From: Bart Van Assche To: Doug Ledford CC: , Bart Van Assche , Benjamin Herrenschmidt , Chris Metcalf , "David Woodhouse" , , , , , Paul Mackerras , "Russell King" Subject: [PATCH v3 03/37] treewide: Consolidate set_dma_ops() implementations Date: Fri, 20 Jan 2017 13:04:03 -0800 Message-ID: <20170120210437.26389-4-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170120210437.26389-1-bart.vanassche@sandisk.com> References: <20170120210437.26389-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAIsWRmVeSWpSXmKPExsXCddJ5ke7qiqYIg8ZtwhYfmlqZLd7161m8 PP+B1WLiysnMFh27vrJYbHp8jdXi8q45bBbPDvWyWByaupfR4vf3f6wWa44sZnfg9rh87SKz x+YVWh49b1pYPTYvqfc4P2Mho8ez6YeZPN7vu8rmMXdXH6PH501yAZxRXDYpqTmZZalF+nYJ XBmbus6wFGyXqLjV/Z29gfGlSBcjJ4eEgIlE1+I1rCC2kMBSJok7q227GLmA7G2MEv/nzmWE KVq4fzETRGIzo8Tc/a/ZQRJsAkYS397PZAGxRQTUJDa9WsQOUsQssJpZ4s65u2wgCWEBX4mj h+czgdgsAqoSe15cA5vKK2AvsWjpcmaIDfISu9ougp3BKeAg8elyHyPESfYSxy8/BRsqIXCX VeLBPogGXgFBiZMzn4BtZhaQkDj44gUzRIO6xMkl85kmMArNQlI2C0nZAkamVYxiuZk5xbnp qQWGpnrFiXkpmcXZesn5uZsYIfGUuYPx7hPvQ4wCHIxKPLwKAU0RQqyJZcWVuYcYJTiYlUR4 X1cChXhTEiurUovy44tKc1KLDzFKc7AoifO63fsSJiSQnliSmp2aWpBaBJNl4uCUamBM+DDv IOOvyTFPA5lVNjipCcbeO9YYKaZ7xmX36gyRgNQ96dYf9hleChMOeB9wwlHkhkhQmugk0xZ/ V+VHTvu4jors1Dxiz3rKgWGxYg2f8s4bqk0Hw5qOTdrElH5Q4ETU6Q93rRh409qt55o7XFSO 9gvUnvPw4yLniU2uQcW+Vb7bdzza9kuJpTgj0VCLuag4EQBaU7QxowIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrAJMWRmVeSWpSXmKPExsXCtZEjRTejuinC4MYFcYuDP9sYLT40tTJb vOvXs3h5/gOrxcSVk5ktOnZ9ZbHY9Pgaq8XlXXPYLJ4d6mWxODR1L6PF7+//WC3WHFnM7sDj cfnaRWaPzSu0PHretLB6bF5S73F+xkJGj2fTDzN5vN93lc1j7q4+Ro9pa84zeXzeJBfAFcVl k5Kak1mWWqRvl8CVsanrDEvBdomKW93f2RsYX4p0MXJySAiYSCzcv5ipi5GLQ0hgI6NEx74u RpAEm4CRxLf3M1lAbBEBNYlNrxaxgxQxC6xklujatJ4NJCEs4Ctx9PB8JhCbRUBVYs+La2DN vAL2ErPermOD2CAvsavtIiuIzSngIPHpch9YjRBQzfHLT9knMHIvYGRYxSiWm5lTnJueWWBo qFecmJeSWZytl5yfu4kRHIackTsYn040P8TIxMEp1cDItcPCK3176kaZvSU6c+e975gTx1qT mi7Zrq/KKZApLPD21J7LXgWy75hlSoqnCJzlC9u0d8PUu/53im2FkgNafhqfPfl1isW1oKU3 OC4uZN3c0rl5CvPPNaw21zxOm0otVHvh/Sxwu5yU94tNX+8trl4jGbInyarvF09aSOSOn+bH /7+6sfSkEktxRqKhFnNRcSIAwAZf2fMBAAA= MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(39450400003)(39860400002)(39410400002)(39840400002)(39850400002)(2980300002)(438002)(199003)(189002)(50986999)(92566002)(6916009)(305945005)(50466002)(76176999)(48376002)(106466001)(4326007)(626004)(69596002)(77096006)(6666003)(36756003)(38730400001)(1076002)(53936002)(33646002)(356003)(7416002)(68736007)(47776003)(8936002)(54906002)(189998001)(81156014)(5660300001)(2270400002)(2906002)(5003940100001)(2950100002)(97736004)(86362001)(81166006)(8676002)(110136003)(50226002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR02MB1287; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD045; 1:tNGlgSRf5nCOTP5TVfRwScY6Pr4q662sMv6YlK2gMyHcG+Nyz0NDu0qnsqkiWTS2xK9NgE7jilffhLaxZi1t6h/1ctKCU58tuieTq6tfZ0NsjxGmdn/f6S9coxBI2kRB3AsLIMnsR2L7p0xsXWNVOaCDHfEYyRWOo+43v0QdOX/HzZ+S9lD90DHkw0sF5XQmwhEsJrPXvwZr0fFz3OalxK4YenNwCSPN7FYZV+iJWxZsR64ycoZJMUucvji7A8Z83iO5RvWPQQPprvq33cwNELaqGQyH8QZvNNgpJaAIcBXf2ncLSMsGjtMrGkd5JV2zMceSIhLru/oDFktNzUwFs8h7QmrjdEKk8jm9UhzOyfalHBHmENnA/+yOBR5qJH7e8jkTMKlpZrsHWuZudeUMSoBZB1E6cRdEYkc86LSmmgwK7ji9n69J2azF2M6sh7cRi3SMNjgeWnRVPcaWOIXi3z493sFB2WOTH8j+VSCl1jPb1NfP3fJyoHEjb/L/cCg8L1BaQE/D9eVZjIRM/iNORw== X-MS-Office365-Filtering-Correlation-Id: 25584d65-e391-4d2d-aabd-08d44177f56f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:CY1PR02MB1287; X-Microsoft-Exchange-Diagnostics: 1; CY1PR02MB1287; 3:ISxkX4ZNnj5GIlsXCG6BRg6jP5+V1Pn8JoYKP0AjLrSQwVrkbSNTSmGdHAPG2JUHk6tCf731g77+qUiNS8b/EpklfyUW5Wq4T5xga4NH1P0hrfg7FLyeuzuYSTBKF1RSMCBaELO9YshL5ma60c27JaOwWKx2+NioH07A4Bzjpcj5YI+HFduouTsZ8TY4tDpw8UX5broCy77nPapMVKOwFQnq8gjH+DNELaWJCFAT8bInmjYvWQDT1m1IOsId7BmQbuCAt9Z2kl5ZUWpY92QtvP1SXpybfeS3otf7P/gTz47rfTpJMb3/Mege/tTExaAQaDNdm9moQMhVpWIOpP/aVF+QX8HQJMEthlEW2MM7Bax4kMjQaUVxamX3CN8KMXRLo6Dcvo2XQDEyLe8Ol2ukDQ== X-Microsoft-Exchange-Diagnostics: 1; CY1PR02MB1287; 25:A7un1dhBUXdAcp3KH663Q0+ubzcUan1Jm30riJaNb35u5b54Y/fc9svB6XtlWklBNmKU9rPO9dsV7ntyw4tWPb5NnAxSh1GyrjbLoj2euqAkAzDHuBv/B9DRHe1UtOyevLlTnPQ01nQWyAVJKz3BBrz1419rX6vkQ94fNtIPFfg8g44aeGVzpGVJtudk3EznG7YN50aGNjJuC3EQBHeXe405yQE39dZe91nSHc1bzx2C7/CPmfhtDBklflEiZ8S87+XNZQLsqOeXnRLOQUwVs7CW/JydbyhxuO5ZeBlriMwM/kX9rn1jsuV1gsMWi7wknGM3Uvug9ipCafiJErPx+NrAE9Zo0IAG7QMiHFPV7K+ePhGfIsUp3caaeKQWM2BLG8+sWBl4raC062sF7RMvpdyt68odJJBP79InV0NsWKoNtRqvq3jLIqjk35XDvUALc5tvj3AG2zKGtDArftAcY2JNxax+BMKrqKGHrTsGSRGJvMh6fi36XCftWuEquCWBBhtKH8zfaf0bRlkW8fpbm8ORz4lEiVk64xLDmW9fzplPu4dGEiEGR5RIiwrsUW7JXemQFK4u3XbsWzCXy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a96g6M/SeDs0jxTtdR2qwruhhD7EN4hoPz5XiS 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)(20161123555025)(20161123560025)(20161123564025)(20161123562025)(6072148); SRVR:CY1PR02MB1287; BCL:0; PCL:0; RULEID:; SRVR:CY1PR02MB1287; X-Microsoft-Exchange-Diagnostics: 1; CY1PR02MB1287; 4:qsMPkb3o2hjud5oCdygv+tDaFneSQ8Bnl/X7lO/JIcaA22sEH+6fKl6BU+0xMhZyHBHv0+OAyNxGJryGa6Z15p1xaQl7ughaO8Z7ifqr7ZKDJQ+9LCQQTxmlC5gwAvfoLQNOb1GB3cp6xq5ZOjJyON8EygsAW6aD80LBS0lgZvL53FpqX2jsyIXEzgemspBnVyUseJ4cCk+zj0pL08LOEy4GMB/7Jdu9CVQHZF7hOzUcYhHafhFC6PkQvjKdu4L543Fmy5B5rcLsYX2F66g4aCy7RW+QGZS9Sad/7+elwoYKELceNpyBsjE7FnArw07gvegiOUeZs5ywIujVZluwHQmKOwwPUJw6JibwGs8vg7qSRK4NwZ9ILmzdbS9HD316mLPNIeplr8KzKnbimXSbf7WDGbMiFlt+komn+OSCSh17pMGIuPBIv0AVy9yd+ILBkVj2ULGPFGbf3utFnv8YOURlSxIy5WcqloieQ5sQ0D3dxSqlMxYbmT87F7mgjDAlxZ1NDMQ7IyIwvpheKeAP6g90HzZiUxDa/jbVoIbXqpATfe/HA+RfAJIekpPrkX7ZnbBvsvCCU0vWYVzswfRv7P/fCZOcdG1Le2PG24yGfk+J+YXUoVIHXbimEv0qFJgvGG+MGKMBHoJentid+Dr08FrJOZfue0EEs6vCyYVP78XDduIzFcXpoghz6oxzBMmduAtnwHQ/O4xjuq6AKQkCrHzyljho1xPrLUhmRDFidQXzeW1bbuA7/00qHjlpLlJhTFJlA5jo09b0O3bBBRKXFg== X-Forefront-PRVS: 01930B2BA8 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR02MB1287; 23:eTewuRf5StR8kXKavTFLvdBlOwMCQTfRUVnQbWDRJ?= =?us-ascii?Q?m1bdos/3B/Wdtpw5PC0zp9j7JHj9SzXIJJ+yWLoNvi48MeifwHp296dUmBRj?= =?us-ascii?Q?aq2c/7MgEXpeQe3NmzpimoTzD+/qNEhPbr8WBAULqZpOg3hD4auiYrIrJARS?= =?us-ascii?Q?2ZZ5rCA4cpUne6H5HisWnIwbGrg3Ns/GLT3Ea8G8vtyENId6caP/9T5msfM6?= =?us-ascii?Q?qB8eHTHjMDckPdJH/WtN9gfjMkRi7BX4nV3bvg/6FzULh+aVfHih3bPiQl3R?= =?us-ascii?Q?UvQV4btiMy7IRirkIxyVAqkjgGC9nTXQQJpAOydJu3PBtB4tbnr9joYDHNik?= =?us-ascii?Q?nw2WfJbuecX3FEV5YQhrXCyzQJCEJHAtkqPOXi66jGPWMCRSAbqQ4bavs/nX?= =?us-ascii?Q?XpaaaFnrneJ7XB3f0t8japwqUvEwLFICL2ivs7y7+Blbrc/HB+2eSn6Zz0jX?= =?us-ascii?Q?vv3rYJShzjnwrbVyhRP6sXsLjZO3pQAf6HOphj4gcAHhgGFpMDyq6JC2ioYV?= =?us-ascii?Q?TaPk+tRJsPNB0RROWfnvWfZkxEySzvHhNXpveZ4OIr4ytKeQuMEUkavELTGs?= =?us-ascii?Q?9YPOd2hy90LNMLjGYz65ztnh0LaMv8KSt/Z1siNQPXVi64xKrGpdUojDO7nl?= =?us-ascii?Q?C/IdhZQP8tEDgv/T/nL5IP+rqyCursIuFdh9JkDCTDShyylmHm3bybuB5wOU?= =?us-ascii?Q?Fy/duCwvF+RrEjFJhoLsYhClh43V6iKt7y6Ln8Nqc6HCfgHg8nQ+h5lx3MXL?= =?us-ascii?Q?FlgzGtMIHSHPU446z9YNb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l2oOF4P983HUDXXF+08wTVjhbuOfVamSzACQ7QM+ICfo/c+neAKuTi+Kr4zshENcoTwEKzIS/tCkUORewuE1+wD+OuRY4iK0ULgw==; 24:3PUtYEmvFGbx6QBZD7r2uPKmP+TNbutQ+DXSQfLCyvPTizT0Q0t2i4m4Kx6KLzxZciBspY3sI9fkYoxcz+zHFYC9ZgewVDBHYuW6Q4hslLM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR02MB1287; 7:k6BzQ5l7Wq2wLzMgfiiuzwzbSIufkp5lH1cS5+40acIyTjIEpTpJnhCu/t8jWMlzT3zOo5x/UXeavMznmvs73rXFYlN1xyoGI9S7gdLETUt0F/JCUfM4v+Pm02NaqrvCyeUoOPkj0Xj84SQcunK6Xmno8QwB6M41vPIOWIO2+/HkF8oVTqfoLEbIkmlCuALQ4xR/1NYgE9CYak8Ht7Lqs3S7e/2NrIlH94a2nibh5DebiPOnl4Ntq9xfWO72pQBUE+WP0vIfmTJfVotnepTKzHS0V5sNb2TqKm8blnoavEXiKOdxpiaKTmiiWX5cLZBrds3esq+J/X6R5gHyNSZ0nyEbg4TY9hAedfuu51GVYuGvAw3NCzuJawYFo/XxkO06R3mWBdQktV6xMj7uU/1/J1B9d6oGb13ej0cfzTLE4tArOpIGvt/pgsFpnp49wtlVv027EA+iTfHc2OPUzEhILw== X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jan 2017 21:04:43.9640 (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: CY1PR02MB1287 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 Acked-by: 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