From patchwork Sat Oct 22 03:05:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Li, Xin3" X-Patchwork-Id: 522 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp1024379wrr; Fri, 21 Oct 2022 20:37:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6HCNu2N6Lwme1mhYkAe5ibvzJfvFMLQp3fp/qAWi3/X5/Pv8ZmPesXIUoBfNyAbS1byU8D X-Received: by 2002:a17:90b:1e46:b0:20a:f9d8:1ff7 with SMTP id pi6-20020a17090b1e4600b0020af9d81ff7mr62978011pjb.34.1666409862381; Fri, 21 Oct 2022 20:37:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666409862; cv=none; d=google.com; s=arc-20160816; b=obW2QS+Itdp3cHX3f7d/y8+rPfaAd2T+ztgxa6a+Yr3brzP21fNma+xv+7Nm6FV1yn 75YSJS04tSYSsAJWZAM+R2PA8FWE39KU5rlu5DvyjyC25WKPIEFanwgNSXifuXdjj2Qm FOe4/oBOMOEOMRuurydNvAhaFMTHgAydRbjnunPrlXbptPl8hFxYDLnbtVbSZdwDBSHf I76iaigHJTSJGzTbrOwfs2G/R/1qXMTr5tjJOkG2ZfKRsbsiITQOvD3+Z9BUTxVs/o99 dBNmd4iD84bSRrJFyN07lmQICbBArqZ8IJFdNAJDndWgs50p1BRwxhL5kjNYoXvPWLVL texA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=PD0ZgRjY9JN0ul3/2i9T6qe/kFrLm4tGSr1afetpPJI=; b=U19BveASL+57ED5pkp5XcUAW8eE+B393tB27tlRJtxbVORlG1ue2t0oNbWN524HR+Q jXRvZpgLTwtpG9hjtr2m3X+QaRqK5Mrc2DpKVpWaig2JkPrt1RPlpeDGvfJVaswXCDCp pfvoVOXEnXqAqhbS5lTrWNRhDQHJPxZvB9wV/3qJCaQ82nm2WdiKKNOMXd3dYS117wTa OYtxBe8P3cQD/Ka4K7JwdrLk8MTTr4x+5DprHGzv41GcdApvOdjm5Pqub6oO+H08pHgO 6qkha7TgzpVoxc4ADfth6KPVqvktsbTMdiqfFuTqqMSm9KXlPlnZZdZbG/zaghRVKlVs 9/0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="n/CXCyWk"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d18-20020a170902ced200b001865dfb6774si10761248plg.458.2022.10.21.20.37.29; Fri, 21 Oct 2022 20:37:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="n/CXCyWk"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229913AbiJVD2o (ORCPT + 99 others); Fri, 21 Oct 2022 23:28:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229894AbiJVD2b (ORCPT ); Fri, 21 Oct 2022 23:28:31 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C9892906AA; Fri, 21 Oct 2022 20:28:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666409307; x=1697945307; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=S5WdQ+X2Dl9VyjKh6IQ4k1l6UBlilbtoCi4Mqd21SG4=; b=n/CXCyWk3gaie2WMXbgnrBHTMplFRbHvCYQ1hDJnT6OFD1Oh7sT+joq0 akKS9yb/5ANg09i2EoVPD9TuWM3FcBREE7wA1UV7nSeCg/AmtFOGXfKU7 qQQ1cIlX3bquVq4xlL57LwE8xjfR1G3jclKLuFmED5QGEsuVdBxvpdfFO 4JdW0VozJr7LEhrs5BOMNzJ1XRwj6TwzgYmWy43BS4TTfIKvWRYkTIut0 /3S8CuOmdB8zZo8aTBY1Gmm66dxICViPimwslugg86OdsZ0292XGb7E/E fm612KrC6jZX12XbXpEBGKRWXfcgraYZ8tx6wIik43VIoznMvt8ZyUsj5 A==; X-IronPort-AV: E=McAfee;i="6500,9779,10507"; a="286869120" X-IronPort-AV: E=Sophos;i="5.95,204,1661842800"; d="scan'208";a="286869120" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Oct 2022 20:28:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10507"; a="693955256" X-IronPort-AV: E=Sophos;i="5.95,203,1661842800"; d="scan'208";a="693955256" Received: from unknown (HELO fred..) ([172.25.112.68]) by fmsmga008.fm.intel.com with ESMTP; 21 Oct 2022 20:28:26 -0700 From: Xin Li To: linux-kernel@vger.kernel.org, llvm@lists.linux.dev, linux-kbuild@vger.kernel.org, x86@kernel.org Cc: nathan@kernel.org, keescook@chromium.org, andrew.cooper3@citrix.com, hpa@zytor.com, peterz@infradead.org Subject: [PATCH 0/1] kbuild: upgrade the orphan section warning to an error if CONFIG_WERROR is set Date: Fri, 21 Oct 2022 20:05:18 -0700 Message-Id: <20221022030519.9505-1-xin3.li@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747357174881122453?= X-GMAIL-MSGID: =?utf-8?q?1747357388094718318?= Andrew Cooper suggested upgrading the orphan section warning to a hard link error. However Nathan Chancellor said outright turning the warning into an error with no escape hatch might be too aggressive, as we have had these warnings triggered by new compiler generated sections, and suggested turning orphan sections into an error only if CONFIG_WERROR is set. Kees Cook echoed and emphasized that the mandate from Linus is that we should avoid breaking builds. It wrecks bisection, it causes problems across compiler versions, etc. Xin Li (1): kbuild: upgrade the orphan section warning to an error if CONFIG_WERROR is set Makefile | 2 +- arch/arm/boot/compressed/Makefile | 2 +- arch/arm64/kernel/vdso/Makefile | 2 +- arch/arm64/kernel/vdso32/Makefile | 2 +- arch/x86/boot/compressed/Makefile | 2 +- init/Kconfig | 9 ++++++--- 6 files changed, 11 insertions(+), 8 deletions(-)