Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2370509ybi; Mon, 17 Jun 2019 03:44:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqxj4efoSsknUTeaO4h3xTvNkpuNTaa/I4pMaUH8U+OkrvhM70oBwzRbWb/Bds9CKtEZFXHZ X-Received: by 2002:a17:90a:20e7:: with SMTP id f94mr24836186pjg.68.1560768287114; Mon, 17 Jun 2019 03:44:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560768287; cv=none; d=google.com; s=arc-20160816; b=vw9rFLAadm7akNqmnuXkMc/dXgiX2NeXtNoJbpUhNsbFAFZYxxjSFEko6yecV6cCbs 1UFkmrKCy98sbVFHcJTQ9+yKrvYvONhHQ6JFMkhI8DDVtvxu7aEU3ewj9//JXXQXi7ga BVyRIuAjzmSv7vl4YSC7NB0bMRPOoJ4O/ogC1W6NymlYeIjDitjwlw7COcLTd1zk4jpl lwbpHfw1agAHRDQYr5Wx8F33+eHOrj3cSlxgOR+8PSHK/fKBaBQND2NjBxqOLXV6rKSV R0ridYxZKrlb2KxVYA52MnXEslA4xc+L+T8RbQIrpz581p4Z1C29nVNo0usnBCYp1D4C 0OdA== 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 e11si9986618plb.407.2019.06.17.03.44.31; Mon, 17 Jun 2019 03:44:47 -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 S1727432AbfFQKmy (ORCPT + 99 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=20Benn=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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E318qxNba/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(+) 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) { -- 2.20.0