Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp231892pxb; Mon, 13 Sep 2021 17:51:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpNtIF3RYVoQuVeUiSHigL3tNhpqj+EjkIGPWNcnq8swv2V8p2g5bRQKMoEoM4huCbeQsi X-Received: by 2002:a17:906:16cd:: with SMTP id t13mr10363655ejd.140.1631580684250; Mon, 13 Sep 2021 17:51:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631580684; cv=none; d=google.com; s=arc-20160816; b=yogGwdege4Epklel7V7v3V4VKjuNL4Ah6C9oD0fop2+l+C64npAu6bh3P81tZL4Pji QYLKLmX4+gXyJ/KzqTtZGfwVXIyEtZlkJ2yeQ9ocqsezaoqgVGAcLbqIfO0JMmtGUMkI 11cnLTkO/KElMLQ6Vn2alF1XRKTRZQPI4zGlj0Yp3VhoyYDGnKOB+F5LulTxNEYVyuzA DToXIceDvkaBVpAtc5TEMqQBjsp7kxtMEfPlP+vG206CD0k7M8y89ChXoqbrPIgGPoXr lGlnVMh3aCjQ1a27fFufqnWqeF+i6Jb+xosvoY+1JybKd5kT1kRHNqnFcrz9EtaSFr6u eMJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=yZb+6jHpLXgDS+RjlYVLfFk/TtsBuHsSO+ulaD2ZrcM=; b=lpL28zLjuJ39o7H4jr6kIYntW/hbHyvq6r0O9lg/voiYARj3YyTxBCkH74whw43WKk iNoH6RoC9Trf1kLXFUXFklduMpN1McA1cgOzZJXNrwE3BYw9+Qwydq+4Tt0Ztp55Hxbu pQFWFkWDSNVOrEV2rnNw0b/WfSIOLegvayoKTLeOQI2EqPcXusIfUTSEm/gUm7q6qSVC vtglIZGM1+JepzQmbu6nvt677KKz7T8Xlay9p6uugzSuX76jxOPHjXN1e3d7Xl29bBmC gDHYimLxhvg2KNVNWpECDidk6IwQw0SQuKauwhOdYn0Ik3Ca6Xraag1MDOG/Vze+DkM9 OrVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ebY5qZQg; 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 kq18si3964439ejb.533.2021.09.13.17.51.01; Mon, 13 Sep 2021 17:51:24 -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=ebY5qZQg; 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 S1346454AbhIMSJy (ORCPT + 99 others); Mon, 13 Sep 2021 14:09:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:51804 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235056AbhIMSJu (ORCPT ); Mon, 13 Sep 2021 14:09:50 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1037560EE9; Mon, 13 Sep 2021 18:08:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631556514; bh=ywiRedTR5zeyIz8MBcSAEfY/rfpHmNISjeocjDRzgzI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ebY5qZQgF1O3prH+NZwpoV4lCtWt2UxvQ5jFaOgo7IXSYrbpjzXRtH922oEnxs3it 2XhK0/vgQSpcYzsJIOVPFWyCbS/ttldHMSOu+uVg3mlpRyEWZeri9nIfEmJhWM0sEZ agYIhsPLnOMEyop3PBPTR0/s2/ZA4Di+8wwGXLOl7v7w1WH8o2dRxLSKGnZjK0h20+ OBdlyinH0cCnqG9pciu2ac1mdkMsInmDRZk9doY+Oo7Tx6bhpfO9z2s0aUQbhUKiCn tY0t5TGXo4XRHyAjIN5N+YSZeNIwOHiWxPAAqAeFftQkYILXS3EAVuIjuBe6FPYBrW ro0TK5fH2UK/g== Date: Mon, 13 Sep 2021 11:08:19 -0700 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 Subject: Re: [PATCH 0/2] Harden clang against unknown flag options Message-ID: References: <20210824022640.2170859-1-nathan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210824022640.2170859-1-nathan@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 23, 2021 at 07:26:38PM -0700, Nathan Chancellor wrote: > 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 > > Hello x86 folks, Would you guys be able to give me feedback on this series or accept it? We are continuously getting false positive warning reports from i386 randconfigs. https://lore.kernel.org/r/ece61908-f8eb-4c45-5d5f-bfc52f3b8f45@kernel.org/ https://lore.kernel.org/r/YT+RqrkQAOVhbkWu@archlinux-ax161/ Cheers, Nathan