From patchwork Thu Mar 3 08:20:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Feng Tang X-Patchwork-Id: 12767205 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 4FBA2C433EF for ; Thu, 3 Mar 2022 08:20:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230343AbiCCIVh (ORCPT ); Thu, 3 Mar 2022 03:21:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230102AbiCCIVh (ORCPT ); Thu, 3 Mar 2022 03:21:37 -0500 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74A6B171857; Thu, 3 Mar 2022 00:20:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646295652; x=1677831652; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Sk6+O6+y+LcuLAi9FL2+v3ef2pvnDvKpS+B2HESK5P4=; b=NNpa00Mt2Bqd9ff1xrzUpPxrJG0H0P0osYrX/z/paXC0B+pcayFEE1Tr CbdqWKLG27mD8z2+MVLl0CRxC0KfeCnXpCYY32vb6GjIwi1N1D6XV/tig lu+kv8QPh9+3jHrEFPh/iimCf1VsduNxXaxg+ZcBnNshC9EdeZzyM1tpY Fvg0wvlN3L/kpmhH2B73vBMJa4db/dQwvA/YkDyfmxqnITghm3KmzT4XA G3p8vDlwKpi5LuE9l03ecQIz578biG9QT1XWRhwHBkHo4zvn4hSFHgljM KQr5NA4zF3F24hHf9+vL7LzOYj0azZ4dD7nqlHgH9tWd73KiGVDvBlnQH w==; X-IronPort-AV: E=McAfee;i="6200,9189,10274"; a="253802431" X-IronPort-AV: E=Sophos;i="5.90,151,1643702400"; d="scan'208";a="253802431" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Mar 2022 00:20:51 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,151,1643702400"; d="scan'208";a="535732673" Received: from shbuild999.sh.intel.com ([10.239.146.189]) by orsmga007.jf.intel.com with ESMTP; 03 Mar 2022 00:20:49 -0800 From: Feng Tang To: Masahiro Yamada , Michal Marek , Andrew Morton , kernel test robot , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Feng Tang , Guo Ren Subject: [PATCH] lib/Kconfig.debug: add ARCH dependency for FUNCTION_ALIGN option Date: Thu, 3 Mar 2022 16:20:48 +0800 Message-Id: <20220303082048.16558-1-feng.tang@intel.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org 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 has been 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 Reported-by: kernel test robot Cc: Guo Ren Signed-off-by: Feng Tang Reported-by: kernel test robot Signed-off-by: Feng Tang --- lib/Kconfig.debug | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index d6b5c94df099..a270a64e4429 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -401,8 +401,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 - depends on PPC || ARM || X86 + 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