From patchwork Sun Oct 6 17:21:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 175297 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp3308090ill; Sun, 6 Oct 2019 10:43:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqwRGIWTnokem1vdeLISFSVUoyGK0wFicUTqquSuv2uFxi4o0LNkCWN3MGh8eR3gZ8p911D7 X-Received: by 2002:a50:eb8b:: with SMTP id y11mr24848482edr.200.1570383794315; Sun, 06 Oct 2019 10:43:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570383794; cv=none; d=google.com; s=arc-20160816; b=d6Yec30KhduMGOHCfN2WEN1PbVkZgISuTN4wfmJ5RlmTDZto51+PNqGBBZVCT5j+2j w2CeLOuS2Sa+2QZeB1cX1cvzW7LYKRdZVd7WX+Y7W++smfgqCIc+AB5VmtTF0mhHCxdr D0SpAt/MJR5k89r9zzI5YEXSxia6uWrQAgPAAj3brdDC3pSvHnDk5LQE79Q7d8Uft0po QXPVwoA4fBtoQFA+W4STVNTHx8T6MhdQ+3Ys7ABVmag/l+NHJVwbvRFc9jOVaI9qikLQ S8JW8WUFc1Uf454ty3vqboI59jnBFRWtkUXctSMuD2CohUfOtryQenB1XfR2MtOhq0iF NLmQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ihzXLtpjhluH503WCuGQwklxBgAd/Mo4z1vEjb3wppI=; b=WIsB8rq/rFIRigVSWFTXWDvXXRgT0gRjO7OBFO37yoLNktvbcLrFUeVS3wYXh5DeYQ 1yp2zRV9x0n7eSVoWKjeXxxgFVns7hrnRzanvFDS1NQg/mkkHDow9Drknpio6WLT74Jw PS3M6xHEIvpiWlqyLzCTwSKOIfrMGfdR3bKaiDwr8gaAU97Rt9GVCdEWJK4TaZy7cMYr Ei41A+AWy/jLzZFIKRP2dv5Q94sU1tlmzuO2zU9nXKrpAd6eBQavUPz+scRTUfpPSs/3 IyAtLJOOdx7Mq+VkWZykrqOGH5Dwf/5RukHA6fvOOrzE8cIIYcOaKEEy1JkO4dt825Aq OQeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KgVLSmM5; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-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 oc20si5788022ejb.260.2019.10.06.10.43.14; Sun, 06 Oct 2019 10:43:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of stable-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=@kernel.org header.s=default header.b=KgVLSmM5; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731481AbfJFRnN (ORCPT + 14 others); Sun, 6 Oct 2019 13:43:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:43120 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731477AbfJFRnN (ORCPT ); Sun, 6 Oct 2019 13:43:13 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F1BD62087E; Sun, 6 Oct 2019 17:43:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570383792; bh=C8GGBJVGuQevLu0Z6ggEvyEinRf5njOQ0297fhKdxTA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KgVLSmM58kCLrNeptIG4SFadhrFAEj2q8JWG0IPck0ZK7dhvm2q1IwQLLGNcuTliz flB779o+JzvkmB0pBlJNzmycCDxekb7sq0RyzQvpy/aMs4UtNNlQcCw0iLYoD9cLAp EZB8KrZf1PmKZe1GmSJShFCkfvnGP62KH9jKgPpA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Nick Desaulniers , Linus Walleij , Russell King , Sasha Levin Subject: [PATCH 5.3 098/166] ARM: 8875/1: Kconfig: default to AEABI w/ Clang Date: Sun, 6 Oct 2019 19:21:04 +0200 Message-Id: <20191006171221.817844263@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191006171212.850660298@linuxfoundation.org> References: <20191006171212.850660298@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Nick Desaulniers [ Upstream commit a05b9608456e0d4464c6f7ca8572324ace57a3f4 ] 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 Reviewed-by: Arnd Bergmann Reviewed-by: Linus Walleij Signed-off-by: Russell King Signed-off-by: Sasha Levin --- arch/arm/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) -- 2.20.1 diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 24360211534ab..5e2c68e9dd6e2 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1572,8 +1572,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