From patchwork Tue Jun 25 21:04:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Desaulniers X-Patchwork-Id: 167754 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp29460ilk; Tue, 25 Jun 2019 14:05:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqy3UzTZMTu96gkrlkKROCVxWjAOKwHtquX1jylwr2IrBS4s5lOHzxQg6EB6T3ZoHM5fSLJU X-Received: by 2002:a17:902:bd0a:: with SMTP id p10mr816253pls.134.1561496702418; Tue, 25 Jun 2019 14:05:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561496702; cv=none; d=google.com; s=arc-20160816; b=SQ65PHckZjhiye0zmrcXVVuAR3sWqchW5D2oOEux6XhVgVNUe29GNd4xlvs5bZPzu1 4VaIOMbmsZQ2Qe86frG3W5xI3D5Duax+bEYlsyovUBXxRz+g/5Dv/7MVdJVRqiGBlq84 wvzvObh4vvsMsa/SvBHndibMUyFQJffDKtiqrCOYz6RXMVwHK5NznY9GmiKorF5AUpdA c/W3DI7CmiD7ME3W/9bjxgeDshboCGfz4hJPJjcxKsTSu7aePYsdpB7vRBKYTCXg2qxJ JLZpbcc4aclhHB2KSSLwAoyiFkT3kGiHgV+rzzSCHmST7THfp0DAl1OZ+Dm+3J/EowV8 wXxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:mime-version :message-id:date:dkim-signature; bh=HoLOG72+3lkaAV6Y6OdGRg3DmNGZd9sNYaOXLu26Ri4=; b=qBbOsFTgpgfWUiY4HDnl+fOri44HolGZ9mrPuvnZ8vstZkiFiHec3dwbhkBT6rjxRF bWdmnWcsG9sBqV79hEYLQgruBb52P42vOpUJmo5kMUhsTNef95aM2SYYKT8S/0p+Nt/T jDzUCzgTdAHG8lw8ajEfa0lVcq6gLcNW+O9kVd5RjSRFSg7wEVM9Ya9fw7igeaEPx1G2 bBpgy2fsGFYMyFyaAm7RyWOJMxKYyMeojYh/XJpn6FiUe+O1Fpt9IIDW2F9raN5z3UIu ouvucBf44xMLTREl30qaDU1zggweaanHN37rYgf5od8oDTAKY24plCOabICgVpSYYtNw f0cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=iXxC3b2p; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o8si1187624pll.64.2019.06.25.14.04.59; Tue, 25 Jun 2019 14:05:02 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=iXxC3b2p; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726339AbfFYVE6 (ORCPT + 30 others); Tue, 25 Jun 2019 17:04:58 -0400 Received: from mail-pl1-f202.google.com ([209.85.214.202]:57050 "EHLO mail-pl1-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725290AbfFYVE5 (ORCPT ); Tue, 25 Jun 2019 17:04:57 -0400 Received: by mail-pl1-f202.google.com with SMTP id o6so9858064plk.23 for ; Tue, 25 Jun 2019 14:04:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=HoLOG72+3lkaAV6Y6OdGRg3DmNGZd9sNYaOXLu26Ri4=; b=iXxC3b2pI79w4JiYlTG7X6Y1lI3tTwIpbI+mFRBtcxsy+TDbY24OTyx8XqsdXKcFai dP0ls6p4D60qx4UuVrDtqsByvQmeveUXtNtf6fuD3cIXfIp2Qhd94RYDgy+YH6utmfKb gWoPN6IIsSpDWPiLZI3gNr8v8CfOpqv62mEi47Jpht1mouKA+GY25mDNvy3UsAijKIZd CwlwVxbUvyN6nwNAjFVuVMLQkUNP3EsoHuvtUovY8usGc5BJGmWHq2V+jM4yW3ZMNOxF 0a7nhNwTbogb+WA/G460UjKNDg/pYXd+kV74ofbAqv0xzFgKMVWGNwzeCckNBu/jKXRL obPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=HoLOG72+3lkaAV6Y6OdGRg3DmNGZd9sNYaOXLu26Ri4=; b=RaI/+LOAFvz0UTk+TGTpeyh0rYu10FDIAeyxyfmYGCRUUovqauYUzEwftHURArQoxk lrYrLE3rwMDDiJOaBG45NT4Uz3UTptMEOarhAfdpatLuu1QjKf59Spdq+dXosuw00tfd 0kawZ4lE0IB/ulPdxEy2sTsnMVxTVkHPEO+UXqyNjl0c1LHyeJQHC03019r4Z8rygB2Z Ar8JGhAoOXblNa02cVk5QGvoe+5hWZRRWYGZcxDubjh1sMcOx4wtJJt25ljmFDz3KAjA sASavJebOx15urHymYmZ1gxV/ZUuHB/GAFIqmyMckzlynj8dnPlY2kkVFM2JODhOmO2L K6Sw== X-Gm-Message-State: APjAAAVviuCxAj3R0nGBUSQ5akonbgrMByMUJIrvh1U7tVvfsrS9ClTl tOt/m2d9nZt8OC1OTsckWjutZv7EDzZqwfjcASk= X-Received: by 2002:a63:f342:: with SMTP id t2mr38294443pgj.83.1561496696611; Tue, 25 Jun 2019 14:04:56 -0700 (PDT) Date: Tue, 25 Jun 2019 14:04:39 -0700 Message-Id: <20190625210441.199514-1-ndesaulniers@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.22.0.410.gd8fdbe21b5-goog Subject: [PATCH] ARM: Kconfig: default to AEABI w/ Clang From: Nick Desaulniers To: linux@armlinux.org.uk Cc: clang-built-linux@googlegroups.com, broonie@kernel.org, Nick Desaulniers , Arnd Bergmann , Masahiro Yamada , Linus Walleij , Paul Burton , Mike Rapoport , Ard Biesheuvel , Lorenzo Pieralisi , Palmer Dabbelt , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Clang produces references to __aeabi_uidivmod and __aeabi_idivmod for arm-linux-gnueabi and arm-linux-gnueabihf targets incorrectly when AEABI is not selected (such as when OABI_COMPAT is selected). While this means that OABI userspaces wont be able to upgraded to kernels built with Clang, it means that boards that don't enable AEABI like s3c2410_defconfig will stop failing to link in KernelCI when built with Clang. Link: https://github.com/ClangBuiltLinux/linux/issues/482 Link: https://groups.google.com/forum/#!msg/clang-built-linux/yydsAAux5hk/GxjqJSW-AQAJ Suggested-by: Arnd Bergmann Signed-off-by: Nick Desaulniers --- arch/arm/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) -- 2.22.0.410.gd8fdbe21b5-goog Reviewed-by: Arnd Bergmann Reviewed-by: Linus Walleij diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 8869742a85df..3539be870055 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1545,8 +1545,9 @@ config ARM_PATCH_IDIV code to do integer division. config AEABI - bool "Use the ARM EABI to compile the kernel" if !CPU_V7 && !CPU_V7M && !CPU_V6 && !CPU_V6K - default CPU_V7 || CPU_V7M || CPU_V6 || CPU_V6K + bool "Use the ARM EABI to compile the kernel" if !CPU_V7 && \ + !CPU_V7M && !CPU_V6 && !CPU_V6K && !CC_IS_CLANG + default CPU_V7 || CPU_V7M || CPU_V6 || CPU_V6K || CC_IS_CLANG help This option allows for the kernel to be compiled using the latest ARM ABI (aka EABI). This is only useful if you are using a user