From patchwork Mon Jun 17 10:42:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10998731 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 275BD924 for ; Mon, 17 Jun 2019 10:42:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 15BD82885F for ; Mon, 17 Jun 2019 10:42:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0A1CB28899; Mon, 17 Jun 2019 10:42:57 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 88B462885F for ; Mon, 17 Jun 2019 10:42:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=58vOsYeWD+waiglVnezasbguX+zFUDhX1/aSvw3acgI=; b=NUpvy9oegFYheq rnV/dOySSlSbJFlvFoLQqzmRZyfuQCuJoQTwQ41Nwyywim8dB+gvH9J7PnnbnKHbbfBxY6iu9YGAQ Xw3ltrcm4pUawlK9j8wJRR0ICjxKOk7FMCuUEBXapW2wZXPOop9xDUHQU6wovDgI8pzlb80m8892K E1bU+U1bGW2eSzMEROeLFsFfeA5AgkmBgBvE8l2roUy8tCAKaxrNy6KLd6mdIYcXhDNyNQpXTKKqe oypXefKYrNZM841VYyedLMLOv4dzuYyDyqa3yWivA3gJC5iLCvt9PKOaeiwOZEZxoI3TsLhBkhgYt W6Vj5AVYf8QDHXmqLWGA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hcp6F-0007Ly-5Z; Mon, 17 Jun 2019 10:42:55 +0000 Received: from mout.kundenserver.de ([212.227.17.24]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hcp6A-0007Df-Ec for linux-arm-kernel@lists.infradead.org; Mon, 17 Jun 2019 10:42:52 +0000 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.145]) with ESMTPA (Nemesis) id 1M1qfu-1hf0xP2jpA-002IOT; Mon, 17 Jun 2019 12:42:43 +0200 From: Arnd Bergmann To: Catalin Marinas , Will Deacon , Dave Martin Subject: [PATCH] arm64/sve: fix genksyms generation Date: Mon, 17 Jun 2019 12:42:11 +0200 Message-Id: <20190617104237.2082388-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:GHkVA1Dy87IfWvGaT0UvEAty23wZsSPrrw8mvVuU4V2xwnZ0ZPo 9ZiXJCiqGGqG/xdGF30QoA7sBAKCqe0Pwd3K3a5OjVyy6rre9s+3p8O7VYXYstPxVnPUnsH iSVy5mih+qkefBykZt4Z0kc2qMoapAtTT7xZAbCSpw1L/zn0QKkkFGcRSU73n9KD5aE2AO1 hSg0ljYQEjCHA0J5TsSYw== X-UI-Out-Filterresults: notjunk:1;V03:K0:lKeDETOU9i8=:UKR4EOC8S7Ji6Nbp3eTSLo TjYZ2W/CoFLoPLgh1VF7zGGB6JL0jnXjtT38e4nUexrjXcHeNe7UadgYwjdp0Gt/4IRYNqJkw +3hyOV8HReErfhFrpThfoUp4RZzFgRifngEBsMsVDd+VaQL1pQ4ucnDlw6GWXMAb2WYbFzf2K yh5y/Oh/IYD7QjqJO6nEsvebSte7CA3yzNd/AebLy4XnzqJoi1wpGWmBmWSo9QhPF1U5V7ycz VXjAQrKgA4Fv2pA3ta0vfSLXUQ9jYSiJvNwqQ5aDlaoUc+2XmMDx2reiZKSbIdc9qJ8TyG18D 8Q4CrPqjcceEYxfrKfZRSKlUZs5Bjtv4kjcGo2aGA71Vdd0UiVROH3DgLy0VtoAi+1LjBMx8x xpPvkM+GshK8z322rH7gcKdSkKrCsYsGXcpFAvQEikZg/yHeZGS+ijejuVG9XMeDerfZXB/IX tKxhiA73pv4rX7s7jbWZAR7/f8mIZ8eWXH9QjVJiRaC9BfpUnlYWBr+G2xOCx3z9eGhrrbxuf 2oUh6m3hZq4SHf4EWt/gXOKjxVau2WhM0gsBNpV0HhwhSN6avxd3NbZcP/GeS1NvSO/g1oy7f B8mob4b1LzoqMXXRqcsbsE4ERRvYlRpJHNy79n3HiqzEA8QiUl9TXjCSix6O7pwzDyxQ/+VM+ k44uIm6jupiwYmbXI96yFVKLn//KijI1hk9wcu8pDNIXGQ54MvkgE318qxNba/IEkDluAkOJQ W+6rqShXIQwyNmzTrbQs/fz4NdOUi/WmWpChVA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190617_034250_802977_F35479FD X-CRM114-Status: GOOD ( 12.42 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Peter Maydell , Arnd Bergmann , Ard Biesheuvel , Marc Zyngier , linux-kernel@vger.kernel.org, Julien Grall , Alan Hayward , Andrew Murray , =?utf-8?q?Alex_Benn=C3=A9e?= , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP genksyms does not understand __uint128_t, so we get a build failure in the fpsimd module when it cannot export a symbol right: WARNING: EXPORT symbol "kernel_neon_begin" [vmlinux] version generation failed, symbol will not be versioned. /home/arnd/cross/x86_64/gcc-8.1.0-nolibc/aarch64-linux/bin/aarch64-linux-ld: arch/arm64/kernel/fpsimd.o: relocation R_AARCH64_ABS32 against `__crc_kernel_neon_begin' can not be used when making a shared object arch/arm64/kernel/fpsimd.o:(.data+0x0): dangerous relocation: unsupported relocation arch/arm64/kernel/fpsimd.o:(".discard.addressable"+0x0): dangerous relocation: unsupported relocation arch/arm64/kernel/fpsimd.o:(".discard.addressable"+0x8): dangerous relocation: unsupported relocation We could teach genksyms about the type, but it's easier to just work around it by defining that type locally in a way that genksyms understands. Fixes: 41040cf7c5f0 ("arm64/sve: Fix missing SVE/FPSIMD endianness conversions") Signed-off-by: Arnd Bergmann Reported-by: Arnd Bergmann Signed-off-by: Will Deacon Acked-by: Arnd Bergmann --- arch/arm64/kernel/fpsimd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/kernel/fpsimd.c b/arch/arm64/kernel/fpsimd.c index 07f238ef47ae..2aba07cccf50 100644 --- a/arch/arm64/kernel/fpsimd.c +++ b/arch/arm64/kernel/fpsimd.c @@ -400,6 +400,9 @@ static int __init sve_sysctl_init(void) { return 0; } #define ZREG(sve_state, vq, n) ((char *)(sve_state) + \ (SVE_SIG_ZREG_OFFSET(vq, n) - SVE_SIG_REGS_OFFSET)) +#ifdef __GENKSYMS__ +typedef __u64 __uint128_t[2]; +#endif #ifdef CONFIG_CPU_BIG_ENDIAN static __uint128_t arm64_cpu_to_le128(__uint128_t x) {