From patchwork Wed Mar 23 23:05:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Morton X-Patchwork-Id: 12790211 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id F37C5C433FE for ; Wed, 23 Mar 2022 23:05:54 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 761768D0007; Wed, 23 Mar 2022 19:05:54 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 710A28D0003; Wed, 23 Mar 2022 19:05:54 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5D9F38D0007; Wed, 23 Mar 2022 19:05:54 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.26]) by kanga.kvack.org (Postfix) with ESMTP id 4F71C8D0003 for ; Wed, 23 Mar 2022 19:05:54 -0400 (EDT) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 2607020A3C for ; Wed, 23 Mar 2022 23:05:54 +0000 (UTC) X-FDA: 79277185428.07.F91FE8C Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf29.hostedemail.com (Postfix) with ESMTP id 8050D12002A for ; Wed, 23 Mar 2022 23:05:53 +0000 (UTC) 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 ams.source.kernel.org (Postfix) with ESMTPS id 71D40B82182; Wed, 23 Mar 2022 23:05:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 290F3C340EE; Wed, 23 Mar 2022 23:05:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1648076751; bh=Pj0a7BRdod/muY3okTMb5ef8U41UF/RI8dDG9p0DTKY=; h=Date:To:From:In-Reply-To:Subject:From; b=ho3w+/rVgmW/GSz7YCT3rCmHg6iHZEaqqyx/hjffSkEjPEK9kG2xWJ0f+KQN7A+h+ m9gesD6og3mSb2gM4CM01sHKkQs9EAGWTMr8/mTXZ7Pq3qHnsLHsOevW0HJpPz+M94 NIEKDBef4VeclptRKJFPTf9GMRxqNULNVIXzO+9I= Date: Wed, 23 Mar 2022 16:05:50 -0700 To: lkp@intel.com,guoren@kernel.org,feng.tang@intel.com,akpm@linux-foundation.org,patches@lists.linux.dev,linux-mm@kvack.org,mm-commits@vger.kernel.org,torvalds@linux-foundation.org,akpm@linux-foundation.org From: Andrew Morton In-Reply-To: <20220323160453.65922ced539cbf445b191555@linux-foundation.org> Subject: [patch 11/41] lib/Kconfig.debug: add ARCH dependency for FUNCTION_ALIGN option Message-Id: <20220323230551.290F3C340EE@smtp.kernel.org> X-Stat-Signature: o9iw5win5e1waorxxwkwb6rr4tegbpcc Authentication-Results: imf29.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b="ho3w+/rV"; spf=pass (imf29.hostedemail.com: domain of akpm@linux-foundation.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org; dmarc=none X-Rspam-User: X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 8050D12002A X-HE-Tag: 1648076753-170951 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: Feng Tang Subject: lib/Kconfig.debug: add ARCH dependency for FUNCTION_ALIGN option 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 --- lib/Kconfig.debug | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/lib/Kconfig.debug~lib-kconfigdebug-add-arch-dependency-for-function_align-option +++ a/lib/Kconfig.debug @@ -439,7 +439,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