From patchwork Mon Oct 24 15:06:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9392295 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 04A9060762 for ; Mon, 24 Oct 2016 15:07:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EB52F2912E for ; Mon, 24 Oct 2016 15:07:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DEE0F2913C; Mon, 24 Oct 2016 15:07:44 +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.4 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM 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 BB86F2912E for ; Mon, 24 Oct 2016 15:07:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934887AbcJXPHg (ORCPT ); Mon, 24 Oct 2016 11:07:36 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:64621 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S941052AbcJXPHf (ORCPT ); Mon, 24 Oct 2016 11:07:35 -0400 Received: from wuerfel.localnet ([78.43.20.153]) by mrelayeu.kundenserver.de (mreue003) with ESMTPSA (Nemesis) id 0MWONS-1cQnOH25hC-00XZw1; Mon, 24 Oct 2016 17:06:23 +0200 From: Arnd Bergmann To: Nicholas Piggin Cc: Russell King - ARM Linux , Michal Marek , Adam Borowski , Omar Sandoval , Linus Torvalds , adobriyan@gmail.com, sfr@canb.auug.org.au, viro@zeniv.linux.org.uk, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org Subject: [PATCH 2/2, variant A] ARM: add hidden mmioset/mmiocpy prototypes Date: Mon, 24 Oct 2016 17:06:20 +0200 Message-ID: <3518814.5oq8zhvvpL@wuerfel> User-Agent: KMail/5.1.3 (Linux/4.4.0-34-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: <3446653.W8FbGAKSeQ@wuerfel> References: <20161017065131.GA27863@angband.pl> <20161020150814.42951f61@roar.ozlabs.ibm.com> <3446653.W8FbGAKSeQ@wuerfel> MIME-Version: 1.0 X-Provags-ID: V03:K0:Z/oCeQJSCWhkxVpCPcb8EmQfhMT8xv96p0TKIZ56Y4W06Z3Fs2y 3vSAIwFtCngcqSAZyhEY8juwn/6Q1iGwTH9cfAfZPiGhldrECLnnnTKAx5Ha4rEeMFq2Qvx jGL3hUR5kkvJNflCNEftj3uCxp00WqNHXHN0Y5uuiKj0yKNXsDwtfRoRHdgFFBENWo208YB wOpx6dut95+2HDYvvPCAQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:r7Jz92+CAQI=:+0uYEBQ3hpRHCK0O4ZZhWh I6J0SZAk3MFN+w43sMiUsDVW30KQpg7F1jtsVkaphOTmmcst1SVH5qq2FGBYnWX+LGpKncioS BXF0pM/qvcOqwrjRZZKVWbpp9Rvqn7Sq71royQpYtVz71zRqLdpjp8hezjMZrW8vb1MfwT9yQ LXLCeLtgZKBoOTEl/cw457ejbvIA69zdFtl4iKsWc1OaOvLQWcZdllz5xt7xxqzDney6G/1L4 5iP/i+T/ICdpV4ZeLln9iYzdvF9UlzYYQTlnwZGml2FBr/85w8FX1r1MRg3OoT5Sle3n0cn+X iLbYRbvBtK//CFzFfgY02HW4ubLB6fO9GnnS5FmJ4lWwvOx+A6eKIhIc496nnYO/dlEcGBc8X D2mc1fsjBpUgkji6tlTMQ7N5E7c0sG5qX09gvw0wLn/2D0x9HOWyyA04AesWLxK1upKmnbud2 y3Dj3/njhT3qra+7V/n8/1O7AiRAinvj2Ta1LgWaFPZmV9OWs5ETXniZcJ/5R9lqdDPqzmMQS TKH7WM0KUyvGmWPOhTPRu8WMtZJ8HpXPfus4H3vQKHCfg3UxY4jj8L8BVlLZyBalHkidBDcNO YKOEkVVIuWhr2cFEpt+VtEAfdrbek81JPUWkASR5nrVIlYZH+FgaufEssBf4LDsvL5taKJUCd +bsv57JqsHnPyZycHvvykUSCbu0KN+Tgee+HMGeLZJfMQ6ctY4lvr57bPPAzOEUrp/F6HU1Q4 c+wJJEyl/t0ovDaM Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The prototypes for mmioset/mmiocpy are intentionally hidden inside of inline functions, which breaks the EXPORT_SYMBOL statements when symbol versioning is enabled. This adds a prototype to asm/asm-prototypes.h but hides it in an #ifdef so normal drivers don't see it and won't be able to abuse the interface. Suggested-by: Nicholas Piggin Signed-off-by: Arnd Bergmann --- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" 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/arch/arm/include/asm/asm-prototypes.h b/arch/arm/include/asm/asm-prototypes.h index 04e5616a7b15..e46b09536b14 100644 --- a/arch/arm/include/asm/asm-prototypes.h +++ b/arch/arm/include/asm/asm-prototypes.h @@ -32,3 +32,8 @@ extern void __muldi3(void); extern void __ucmpdi2(void); extern void __udivsi3(void); extern void __umodsi3(void); + +#ifdef __GENKSYMS__ +extern void mmioset(void *, unsigned int, size_t); +extern void mmiocpy(void *, const void *, size_t); +#endif