Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp6025324ybn; Sun, 29 Sep 2019 10:42:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqy7MTxuVb+wLrdyeLqvqBCy8paliG8A56w+ZFpfH6aZZFWZHrOCdsBR6epIoZADAAFDeAlB X-Received: by 2002:aa7:d988:: with SMTP id u8mr15468669eds.116.1569778958193; Sun, 29 Sep 2019 10:42:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569778958; cv=none; d=google.com; s=arc-20160816; b=MZRN3GHsv5E2dLGtca5eAfti+Ve7MAw//G0ChzajZG/ZkzvidRqsLyZnTJZxyrnTNz aX4qenaOvJh739Kz5JnkWs3NXChmnzFIsVcaYzN4+yVBd7aI4lIv5lruZIVNv2++22oo qXv6LU07kXWPF6NbB8UPm+zszin+GuorP959E8Kn3HspbwCp6GFaXqLdZRLOemQsIT2G eUl+CQMNduKdnTvjPhym/9Sz25r3WFNnpgVNXiKIIEsESRbDshXO8dIAJwm7sd0GX4sd loLPDwufy0MPk5e09vjUp1wKC7yiV4v1r3/jhtuwn/0OR9aihTSgRFi7TLAVWslfdLIb 6Ywg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=kjfhxqC/dT0l6TqRCFJyDtDMrACA8UIZnr/wjEwhfpo=; b=E54eIOzulOZVm9Awl+rnHd5wWbF6ZvLW951/AQHkO8wS/boJLMXZ1eQGevNQbpRFBo FHoXWGDZCMW9Y9w9Mar774uZ4KcRzS7yvOzveRltF2FHnUVzrPwDnBAFzvJ62bsTfv4L DIsD5nL1cTyKWhW6l8GhgQxhotavkkxWdI6YfT9PH+5ah7ZkKocTNDbK9j46mLfJdA8M Y724pi/ElZkUmCJdtBbwwYBLh+gEHwznxAE0QA8OtJtIlddyvu1TGsuqSENXJsW4n4nW vWnTZ3vUNwhnbeU9dg4Maotguga/dNoHyfQ+xDjiEjkDf2caG7SM8qUBP/kmngrSQA7E b8bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Du8iy/6G"; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l22si5824518ejz.239.2019.09.29.10.42.14; Sun, 29 Sep 2019 10:42:38 -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=@kernel.org header.s=default header.b="Du8iy/6G"; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729310AbfI2Re4 (ORCPT + 99 others); Sun, 29 Sep 2019 13:34:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:46842 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730403AbfI2Rer (ORCPT ); Sun, 29 Sep 2019 13:34:47 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 28D2F21906; Sun, 29 Sep 2019 17:34:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1569778487; bh=hfNg8Nm40zRI8TDF/Icp+MSffb6Vg+BWyaWKFeR4cw4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Du8iy/6GEEtRWtci+gq2PvK9oHbQDKivOlbOh7hbHXFvSdD34eGufx12vxD1GdGLI XxNxhqX8tIRhgiUIILaoQSdIc+LA5H9rP5wNn2X7TPlcDFKU/vvny3fLuLj6hTLJwH AEGCogaAWzA1GrW+kYVCI1uflBUZfR9jKGmz3ci8= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Nick Desaulniers , Arnd Bergmann , Linus Walleij , Russell King , Sasha Levin , clang-built-linux@googlegroups.com Subject: [PATCH AUTOSEL 4.19 11/33] ARM: 8875/1: Kconfig: default to AEABI w/ Clang Date: Sun, 29 Sep 2019 13:33:59 -0400 Message-Id: <20190929173424.9361-11-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190929173424.9361-1-sashal@kernel.org> References: <20190929173424.9361-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 51794c7fa6d5b..185e552f14610 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1586,8 +1586,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 -- 2.20.1