Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2360782pxb; Mon, 23 Aug 2021 19:29:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzt5H3H0dLLS6ERQaQ+88oX4YCm54wUV06MkDNvGwRoybIC/dZSTMK36To5vxE/dUZtHS/w X-Received: by 2002:aa7:c2da:: with SMTP id m26mr21766112edp.351.1629772155764; Mon, 23 Aug 2021 19:29:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629772155; cv=none; d=google.com; s=arc-20160816; b=EMSZL7VVsEf+8l0eNHNC0jHmR4rIKCjo7u8xItodGNt66Qlow9+kjK2sP6HYdTuLAn D18//eAvyKexcfiF1grkMVRlgzdgywNfUS/6gL0IedLxpghk7bWIi9FLYnSej3A0UBW4 7br77zciHHf7R3me99DSOQt9lGrMjdHKloaqQUxj/KI+3Ws4wpPZskoJeuH7gx3+ZXKU 37fWQlpht/EdEOU2EhRhnT23x5Ya7qNiWNmo6R8aCD+ZNVQk5q8Q/ew6+RteXMfn7+Vj f2jTEzxfpYvYZkdXPH22lbk8GHtL1nBGI6NG95t7t6dqWNS0JonN8ZalWEpO5gJ/7UPO ciWw== 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=BCeAz8vEk3b2rF9cH5mpgNw1RS8ZjDcyx8NQRidV/nw=; b=TCi/HNU8iroikagEfFvGi1H/3pzseIUbDohl4rfBAV3NEP8DH1l4x1WMJE+5M+QXE1 0KI4G+OyfZNcBgGha69p5AF8vuUpnvWjxaYPizak/Xo9l3xudTiET0vMBd5QVJQum/Vq MF4yp5VdAyrCM3c2zLCftf7QITPnmvGxqYFoV3/XQejFxQGssia1TqheLMyl8Ptb8ARJ i/H+ldCnaBBANlPK1G+hiiXzwwiAL6zJyqcBKyled1/57sGKd+6Vvln2ZDWb5WBAnNCa +zkgBgnukxH0AdB6jQZ/ZYwPi1dF/CWo4GU5m2p2qSFP5+pozfwG5fH/3DrEjcYmo+yE KCjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="kkx5au/F"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id gk1si15225758ejc.31.2021.08.23.19.28.52; Mon, 23 Aug 2021 19:29:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="kkx5au/F"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S233655AbhHXC2T (ORCPT + 99 others); Mon, 23 Aug 2021 22:28:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:36882 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233170AbhHXC2S (ORCPT ); Mon, 23 Aug 2021 22:28:18 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8100F61373; Tue, 24 Aug 2021 02:27:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629772044; bh=FhBLzlnoS/C4efg4LBoQL/1xcceeOT2Nci0FeHlY0KY=; h=From:To:Cc:Subject:Date:From; b=kkx5au/F1QQInf2xhWZfLqu3vw4zyEnICeKZB/AZM6RhF4MYKRsy/1tsWA25Hs235 wDUlQNbjpTcPfBnmEmMtYmOrz5rkfzROaQwL+XNFaPXnOh18dAXLyqX7gszOiDzeNm y5wVVPwlaCiNC9eandJcAAPDudr5w3BqckTatwkEeUtPzP0/k4DZ+sSbSXFURryKZH gB6py4/lbjNLM+VaMvNpUSoOKc8HI4oinSPij+ZalbAsEZPasrZVWBzI5+x8yP1wzr ZU5WlAeYcIzNK6mOiCCjv0NckXk+6XyMe1j7WQYQu6TtJLa0aBdomF8DlUyyJ9bj75 b4Z37ZCFccKyg== From: Nathan Chancellor To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, Masahiro Yamada Cc: "H. Peter Anvin" , Nick Desaulniers , linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, clang-built-linux@googlegroups.com, llvm@lists.linux.dev, Nathan Chancellor Subject: [PATCH 0/2] Harden clang against unknown flag options Date: Mon, 23 Aug 2021 19:26:38 -0700 Message-Id: <20210824022640.2170859-1-nathan@kernel.org> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 X-Patchwork-Bot: notify Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, This series cleans up an issue that was noticed by the kernel test robot where flags that clang does not implement support for are unconditionally added to the command line, which causes all subsequent calls to cc-{disable-warning,option} to fail, meaning developers are flooded with unnecessary and pointless warnings. I hope the patches in and of themselves are reasonable and non-controversial. This is based on Masahiro's kbuild tree as there was a fairly large refactor around where clang's flags were added so I figured it would be best to go there with an x86 ack since the first patch does not depend on anything in -tip. Cheers, Nathan Nathan Chancellor (2): x86: Do not add -falign flags unconditionally for clang kbuild: Add -Werror=ignored-optimization-argument to CLANG_FLAGS arch/x86/Makefile_32.cpu | 12 +++++++++--- scripts/Makefile.clang | 4 ++++ 2 files changed, 13 insertions(+), 3 deletions(-) base-commit: fb3fdea450305d932d933d7e75eead0477249d8e -- 2.33.0