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: 166982 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp2690499ilk; Mon, 17 Jun 2019 03:42:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqytyJ3wVjFNFu7ZTA1OwqRyigSUKCztcuYX/0NQLVhRBEMPzAjtL63KxU3GJT3hIgvBPWOm X-Received: by 2002:a17:90a:21cc:: with SMTP id q70mr26256890pjc.56.1560768176022; Mon, 17 Jun 2019 03:42:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560768176; cv=none; d=google.com; s=arc-20160816; b=HphZ+4/4YUBrWdVpxAoypyiP2mfldcPLya99tz5hAS6S8aGk41mK6gvUIbzdZh33j6 bwTZgE1tFMPMWi0TCgs55aJ4cF/eq+yU5GoKYyO9ORQFwmOnLpJOV27PZEyR2envLRRs d9JnOwBjWnP4wjfvcmy/kOqL9ktqCv0DwWycyVY9ICgjYMmElQtYxoXPP5U5UEVD/KbJ fnCXyfPRujdwfzoVUEjX3OMRjPbDEPSBA9hV2HYewHL5M0Qzm2W+jY7CdZoBV7m+8o3f iOXXhb6fBa0n8X0GsrCcfAEypNyBXYls+DRJv6glGypIfXkYbNj03JH+pLG+sZ2IZGHl qkZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=ut7wKCNslAm/ysDh1Znccu8BZJzDAee38y4zAROSkRk=; b=YJSI3YvC9T+egDSsr3sYHvCLnge4/qmTn/Ec20/1V4+ydqra+ILhFd0NV5F9ipr4/h XdVtBWOac/bZa60faQxOKjX7t/NIigi55JYxTMkF1aCBfYfFCy6S31m3wAihZBCF3R8F awMSFUeMCHyZJvwzLKr5LXYflmanHkVwxC2xkAC2DTUpMScnhL+d21sjd+8cmtU11NAb oGh9iKwWH24qfPKReeUlSlyaqn4sl3lGpbz+8zHj8wAvf9rhiMSK0xYjs+rtYcqOn8Aa ZFs+r5VoNrRzm+QXDP7nHo/Dz9ETdRXMF06Jsnw/z2V8ReoxmMYZiSllpQq5KwbjPF5M CQjw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ch14si10310304plb.44.2019.06.17.03.42.55; Mon, 17 Jun 2019 03:42:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727482AbfFQKmy (ORCPT + 26 others); Mon, 17 Jun 2019 06:42:54 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:55387 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726427AbfFQKmy (ORCPT ); Mon, 17 Jun 2019 06:42:54 -0400 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 Cc: Ard Biesheuvel , Arnd Bergmann , =?utf-8?q?Alex_Benn=C3=A9e?= , Peter Maydell , Alan Hayward , Julien Grall , Marc Zyngier , Mark Rutland , Andrew Murray , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org 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-Spam-Flag: NO 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== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- arch/arm64/kernel/fpsimd.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.20.0 Reported-by: Arnd Bergmann Signed-off-by: Will Deacon Acked-by: Arnd Bergmann 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) {