From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3FB12C48BCF for ; Fri, 1 Apr 2022 15:13:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355465AbiDAPPE (ORCPT ); Fri, 1 Apr 2022 11:15:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352586AbiDAOvA (ORCPT ); Fri, 1 Apr 2022 10:51:00 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A26E62B4482; Fri, 1 Apr 2022 07:42:06 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B3A36612AC; Fri, 1 Apr 2022 14:41:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 88701C2BBE4; Fri, 1 Apr 2022 14:41:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648824118; bh=qgFdeG3Vq5khwU4VSpWjW9nkT+Svh4lCeUnEgtUgcHM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mP2UzSpyrjdwvzQdnq/tlOew6sFirJuosoV7w94VP7R4LB5ho1/l+PE1NSkWBU0Ln ZjLfOQ/D/8LZTUjs/ISCo3hKOcbbUy4mpiaVPVTRGqLkXvn3a/ygmv+tJxRb+hjBh1 zEJi0OXPZfXBAks/yQKXTeNM9BSTFRzIQEoN6GbtNKDMkpitfncb+7K58qZ7FWwVmQ VlSJy6Q3PBs/pu3wDGvpEfK7mpL0dFlblXHWxusJruWawcX3G2pc7+Hm925gkS69LG nP5jWty8EsyGhJ/YRdmwWGkoQOj34cCPwcKiulDwlbA049nPjFm0D95Ce/u3T4wwZb yZJrRPGk9XoRg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Feng Tang , kernel test robot , Guo Ren , Andrew Morton , Linus Torvalds , Sasha Levin , nathan@kernel.org, peterz@infradead.org, ndesaulniers@google.com, keescook@chromium.org, penguin-kernel@I-love.SAKURA.ne.jp, isabbasso@riseup.net, dan.j.williams@intel.com, linux-csky@vger.kernel.org Subject: [PATCH AUTOSEL 5.15 96/98] lib/Kconfig.debug: add ARCH dependency for FUNCTION_ALIGN option Date: Fri, 1 Apr 2022 10:37:40 -0400 Message-Id: <20220401143742.1952163-96-sashal@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220401143742.1952163-1-sashal@kernel.org> References: <20220401143742.1952163-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-csky@vger.kernel.org From: Feng Tang [ Upstream commit 1bf18da62106225dbc47aab41efee2aeb99caccd ] 0Day robots reported there is compiling issue for 'csky' ARCH when CONFIG_DEBUG_FORCE_DATA_SECTION_ALIGNED is enabled [1]: All errors (new ones prefixed by >>): {standard input}: Assembler messages: >> {standard input}:2277: Error: pcrel offset for branch to .LS000B too far (0x3c) Which was discussed in [2]. And as there is no solution for csky yet, add some dependency for this config to limit it to several ARCHs which have no compiling issue so far. [1]. https://lore.kernel.org/lkml/202202271612.W32UJAj2-lkp@intel.com/ [2]. https://www.spinics.net/lists/linux-kbuild/msg30298.html Link: https://lkml.kernel.org/r/20220304021100.GN4548@shbuild999.sh.intel.com Reported-by: kernel test robot Signed-off-by: Feng Tang Cc: Guo Ren Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Sasha Levin --- lib/Kconfig.debug | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 2a9b6dcdac4f..55e89b237b6f 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -414,7 +414,8 @@ config SECTION_MISMATCH_WARN_ONLY If unsure, say Y. config DEBUG_FORCE_FUNCTION_ALIGN_64B - bool "Force all function address 64B aligned" if EXPERT + bool "Force all function address 64B aligned" + depends on EXPERT && (X86_64 || ARM64 || PPC32 || PPC64 || ARC) help There are cases that a commit from one domain changes the function address alignment of other domains, and cause magic performance -- 2.34.1