Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2007883pxb; Thu, 16 Sep 2021 23:13:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkhDjraMMkMEO4HjKHTXEZAdc4Z63H+e5kNbTZAyMBxdUTpwPfJw3KH+eaFBV1YnphSLbO X-Received: by 2002:a02:7117:: with SMTP id n23mr7267421jac.143.1631859200839; Thu, 16 Sep 2021 23:13:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631859200; cv=none; d=google.com; s=arc-20160816; b=TE0UPVeD4IKSdAAQdjKFL7VRUYr5SubyRbs74tiXhrklSv4ALp2zqZ+BHoMR4PElzU 3IywWArBssgDemKZ//l3YY1yu8XLAVI/UjJO6GRNMtT1uis/rRwp/WwOEmjhwv8VDTF2 zzXjEoTv9nQgbawHVrmjVWKobbOjXe4jKhUY7pxH9ip+QFhOKiHwIOZtCRWXsNf5O8Qr hjnjugKE1G/gQfgc3dm9tacaieDMFKWzh82TnQFbaAeej4blBKT6OIRLld+rG0/DWg0f v+KXJ5Oe0t3rSvgVoHevlyX/4HDtF/UvnAxnQIv9l2GbEDZV+QkHc6dJwaSezcL57o58 pc6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=Z0OLSBv0L+LTNlkYjToYN1toAmeMYGDPf72YF0M48hc=; b=ZPZ+4HUqBhMPBCfjz4edKmTokLjKAadKP6sCFrpge/meLP8w19WjxkBkjgpOWzLSil TCyuMO6nTpvbok2kiEYqu5gUs1iP2HSio4acQg/ACYejRndRiY5TnWqbZrg5Kk5WkpOf GNHpAIepft+YlAt0FQ180JHuD2FdycH8v6UzbHv0QyF/FPn0Zl/GECzxjfzINMU7HMI5 xBUKtSSI5F4wZznwK5gb0Hc70P+KyWXBlRSDd+9Tm8GCpYSxAZOwao0Twe6NA5O0yQz8 02oBn/EL6A92xZIBY5LIflAad5Vuq254cMZubio//6bV9bXVGVmLrU5ajuJqn8JFeErX 1PDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=naUyEq4E; 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 v18si5254451ilc.7.2021.09.16.23.13.09; Thu, 16 Sep 2021 23:13:20 -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=naUyEq4E; 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 S1350367AbhIPSn4 (ORCPT + 99 others); Thu, 16 Sep 2021 14:43:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:44938 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349179AbhIPSnn (ORCPT ); Thu, 16 Sep 2021 14:43:43 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9E065610A6; Thu, 16 Sep 2021 18:42:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631817742; bh=W8lmbPG+Y7dzqY16kJIWhu7Hte7q4CpDtoM8X9UOKiM=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=naUyEq4E5gf3apJKSzndPpK7/aIAe+JSS11lI1ZBRDlVSeotuOczaxJ43zzK02LCa rD3zGSc2Lt9KEmwk6RQu+UkOMlTQV3sRshuH5PhUWy/lrT2A2CpGegUCx7um3fzi38 RF9IbCMzODaL9mRzNiW3jG90gQL3l4SZqKVnvSR0weYqu50gEIHWshudMnbxMbpm8y hiwGHnyfCFhuudQvDt5AxlfqDL4syXomLcCqritQb7WuhdDR/9rTsJwMC9D5jPaXsY MmJOhQdSp3koJVBFRx6b4cgp3fbUnfXHUsvqtRXwk2HYpWwpMNt+8B9lW1qzbdXT2I WDdzk2HDk0KVw== Subject: Re: [PATCH 1/2] x86: Do not add -falign flags unconditionally for clang To: Borislav Petkov Cc: Thomas Gleixner , Ingo Molnar , x86@kernel.org, Masahiro Yamada , "H. Peter Anvin" , Nick Desaulniers , linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, clang-built-linux@googlegroups.com, llvm@lists.linux.dev, kernel test robot References: <20210824022640.2170859-1-nathan@kernel.org> <20210824022640.2170859-2-nathan@kernel.org> From: Nathan Chancellor Message-ID: <4d88e0ed-422d-447a-ea8f-36e54b38fac1@kernel.org> Date: Thu, 16 Sep 2021 11:42:19 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/16/2021 10:18 AM, Borislav Petkov wrote: > On Mon, Aug 23, 2021 at 07:26:39PM -0700, Nathan Chancellor wrote: > > A couple of nitpicks: > >> Subject: [PATCH 1/2] x86: Do not add -falign flags unconditionally for clang > > Make that prefix into "x86/build: " Done, I'll be sure to keep that prefix in mind for future flag-based changes. >> clang does not support -falign-jumps and only recently gained support >> for -falign-loops. When one of the configuration options that adds these >> flags is enabled, clang warns and all cc-{disable-warning,option} that >> follow fail because -Werror gets added to test for the presence of this >> warning: >> >> clang-14: warning: optimization flag '-falign-jumps=0' is not supported >> [-Wignored-optimization-argument] >> >> To resolve this, add a couple of cc-option calls when building with >> clang; gcc has supported these options since 3.2 so there is no point in >> testing for their support. -falign-functions was implemented in clang-7, >> -falign-loops was implemented in clang-14, and -falign-jumps has not >> been implemented yet. >> >> Link: https://lore.kernel.org/r/YSQE2f5teuvKLkON@Ryzen-9-3900X.localdomain/ > > Also, there should be a second Link: tag which points to this mail > thread so that we can find it later, when we dig for the "why we did > that" question :) > > I.e., > > Link: 20210824022640.2170859-2-nathan@kernel.org Sure thing, kind of hard to do that on the initial submission but I will do it for the v2 shortly :) >> Reported-by: kernel test robot >> Signed-off-by: Nathan Chancellor >> --- >> arch/x86/Makefile_32.cpu | 12 +++++++++--- >> 1 file changed, 9 insertions(+), 3 deletions(-) > > with that: > > Acked-by: Borislav Petkov Thank you for the ack. The conflicting changes that I mentioned in the cover letter have been merged in 5.15-rc1 so if you guys want to take these changes via -tip, just holler for an ack from Masahiro on the second patch on v2 (but I am going with the assumption this will be merged via the kbuild tree). Cheers, Nathan