From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6BC70C5478C for ; Wed, 28 Feb 2024 18:58:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=GmSMM1kouvrwdTWprbOQ99/ruwDopo72oa5BiqaY+U4=; b=w7pkrhAIILvbIs Db9SPX96A+/mVaJuOnWPWIG+9NiFJYbwCx0wdIfIv9qf8SUkgB8F4WsbO1g+2Sjz5aIxxIHLEi9YT YEC1XQ4i/vhGzFiJtlGF/nnHwrM7rPKLxKauerJR/rLV+Fu1BCT+7UJAFX8ETDIpryJiEUdW6PyGK CZPlP8zwmv2OVC9L9Tsumli1EHMC5RzHIwH0yuG16uaVhXxyKF6dJXnN0r0QuPXT3fl0DBULgCKK4 NN4IrtsKmaWfQ9jI16sbUC8cmLzk08rteQ4Cjdb2MBquNpfsbuCkLGvGHntXe/yerUxz9AHKX/u26 t7w0vrqx0hps7HYYxkRQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rfP8g-0000000Aaar-23nQ; Wed, 28 Feb 2024 18:58:46 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rfP8d-0000000AaZy-1gJS for linux-arm-kernel@lists.infradead.org; Wed, 28 Feb 2024 18:58:44 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 1C29CCE22B3; Wed, 28 Feb 2024 18:58:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C7225C433F1; Wed, 28 Feb 2024 18:58:37 +0000 (UTC) From: Catalin Marinas To: Will Deacon , Stephen Boyd Cc: linux-kernel@vger.kernel.org, patches@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Jason Ling , Florian Fainelli , Mark Rutland , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , llvm@lists.linux.dev Subject: Re: [PATCH] arm64: ftrace: Don't forbid CALL_OPS+CC_OPTIMIZE_FOR_SIZE with Clang Date: Wed, 28 Feb 2024 18:58:34 +0000 Message-Id: <170914663626.3370652.5443900457103339584.b4-ty@arm.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240223064032.3463229-1-swboyd@chromium.org> References: <20240223064032.3463229-1-swboyd@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240228_105843_631421_2636EA5D X-CRM114-Status: UNSURE ( 9.60 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, 22 Feb 2024 22:40:29 -0800, Stephen Boyd wrote: > Per commit b3f11af9b2ce ("arm64: ftrace: forbid CALL_OPS with > CC_OPTIMIZE_FOR_SIZE"), GCC is silently ignoring `-falign-functions=N` > when passed `-Os`, causing functions to be improperly aligned. This > doesn't seem to be a problem with Clang though, where enabling CALL_OPS > with CC_OPTIMIZE_FOR_SIZE doesn't spit out any warnings at boot about > misaligned patch-sites. Only forbid CALL_OPS if GCC is used and we're > optimizing for size so that CALL_OPS can be used with clang optimizing > for size. > > [...] Applied to arm64 (for-next/misc), thanks! [1/1] arm64: ftrace: Don't forbid CALL_OPS+CC_OPTIMIZE_FOR_SIZE with Clang https://git.kernel.org/arm64/c/a743f26d03a9 -- Catalin _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel