Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2007954pxb; Thu, 16 Sep 2021 23:13:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBeQYk008jRUCugpcmHsRV7MW1v6xjuRd5y43Gsieg68HpiVffhbt3RNMXnY5dwhut7wQv X-Received: by 2002:a05:6e02:1546:: with SMTP id j6mr6676900ilu.154.1631859208247; Thu, 16 Sep 2021 23:13:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631859208; cv=none; d=google.com; s=arc-20160816; b=vGepVOp092MARHDLOtyBToJy1cq8VbDPh2uAqmrpeHMIRw1WBgzrlgQZuYyTfkk6fq 67Rr8iUP3S24eTS9LhCiQylYD6HyePbTv+BSyd6nhZTnjoViPht8VyANFnWnDsAEjUiS HaoG/oPsMBEFa1ckUhRBjAnjNO6m4rHuw9uOgY5P5gYX3LEK8KwAyxkBWzYBfaJvbIp8 OGnANOY7olbZfSE8BCoD3nxKHhnP8jHOsKqHbt2OTKc6ACunb6M2G2v3Cm3GwjhjZtJw 0PuKzmS6hyr/tSQtsvQIsBUdlHv8cLZobveqCbojszmmRpH5UXzRmxtVthE5FlZ36PXc gsFA== 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=WGTaW9wzVo3mRbffUBHb/Jh9Yaw6al5FEDE3OWWucQM=; b=rF+ZpmBTvUbQBmgZ/xI1vWi1fNrzNx09t3JZPItLVU9GHICNCMybNnzDRUbAGu5V4y Rngb9GqzJ64wPdl5VzsYLeQWsgRGWR6O1UIDuP9oVamx6l0atAyXNV6WS6F8A1qlN8UN AKRYsaUReVvCRf2jUii07IQ8UMZ5RSUDxP/DpqqXHR5j1fWxxMYIb7/3TR6c4uleQf+Z 5jxzYqBrVRz85pvOhaUkdNYmTn5H7UW+uX+vfud1/2YJLmtsoygPgjcwksmBbmlYGUss gxTmjl4v+bLqRr4KFQGk069P53frlNY0NGYLo1oDxtJmnyhmByDQyfHRLEYpnTS9A+NY WPiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=TnBBOysn; 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=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c11si4228524ild.118.2021.09.16.23.13.17; Thu, 16 Sep 2021 23:13:28 -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=@alien8.de header.s=dkim header.b=TnBBOysn; 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=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242609AbhIPSqe (ORCPT + 99 others); Thu, 16 Sep 2021 14:46:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243072AbhIPSq1 (ORCPT ); Thu, 16 Sep 2021 14:46:27 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D27D8C08E816; Thu, 16 Sep 2021 10:18:54 -0700 (PDT) Received: from zn.tnic (p200300ec2f11c6001e49ea6afe1054f5.dip0.t-ipconnect.de [IPv6:2003:ec:2f11:c600:1e49:ea6a:fe10:54f5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id A90881EC01A9; Thu, 16 Sep 2021 19:18:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1631812728; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=WGTaW9wzVo3mRbffUBHb/Jh9Yaw6al5FEDE3OWWucQM=; b=TnBBOysnTsIzYE72gUTor3/nH+wDVKctXHOhtc/8tJvJ/j4eB02Ry7TqHKbpKUvOhck0jO LUYPHx+QKc4wmuqnumvPn0qgaPqqDIo1/fPS99C0176oEdidy4Pb1TTVl3PKukfvPLakHP +F87tFSB+VUB5+uOz23N1vbudCUuSck= Date: Thu, 16 Sep 2021 19:18:42 +0200 From: Borislav Petkov To: Nathan Chancellor 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 Subject: Re: [PATCH 1/2] x86: Do not add -falign flags unconditionally for clang Message-ID: References: <20210824022640.2170859-1-nathan@kernel.org> <20210824022640.2170859-2-nathan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210824022640.2170859-2-nathan@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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: " > 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 > 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 Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette