Received: by 2002:a05:7208:13ce:b0:7f:395a:35b6 with SMTP id r14csp27377rbe; Wed, 28 Feb 2024 10:58:46 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX+6iH4NhofPgCldBAa4IbEl3coHrN/48+d51274iwTvpHrf6D15uzg5pBeqwDfsohq2WNvrPtrPJQOnk9+tvtkFDtkOSH0ZMf0NOoj8w== X-Google-Smtp-Source: AGHT+IE1QJTekEQsbWU1D3ahWa4Q6udCQVr0hUVhKRByTqg7ZiLqnKrO5e9N57gzhlzZ6yWtPqw5 X-Received: by 2002:ac8:4c9c:0:b0:42e:8523:5b82 with SMTP id j28-20020ac84c9c000000b0042e85235b82mr8116649qtv.14.1709146726702; Wed, 28 Feb 2024 10:58:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709146726; cv=pass; d=google.com; s=arc-20160816; b=rpO4ObMTP2AcgJYxhcABV7+LZQWCN6DOsH1JfvpJykNvGrnV37MuWp6ir3LldqlFi5 RawZ+1NVBkdz29DabxaXLRbSpzonF4vtUvu3upyDB7q0qO/mu4Tt7p5f8K7w7Mwunkb4 s3pQrIAfmGRn2nS8UXg+QhZXC6WhixXCwkvuf4rNYumoAH0OtVmTHOPcmC/Dgzj1oynA 5Q31v2Fg3zrQTvusE6mrDdu55Hf9TCC0FXHKrznjOezltMMItYTE0b8drDxF4mkq+QSF 8HRR38v8pDjkdQE8ApN2IUjVbqPd5I8OYJzQSazZaI8fqathSFvJ9E35JIJqSl6p18up l6wQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=G5dSaMXA+5jA4QEIpD5AfLeux1X4tLLXKTqHpJFFqOA=; fh=bLOQsBzMj2dqApaZyWr8g5PGvk6SIFSRgdiA7OAx/pI=; b=pUZ4mCtAj73NJvU6E1OV0NsZh2TrqsVRYFjwqDbbwjE23i2LHpoQJhrxdN6loRG147 4T+cM9j8Ij18VsZ0BjQN52Ib5UCe7tW0h7InlxEIMa3B3e+cA4sJsPm69Gg8NzMDDnTx w3LskL4Saf7dL7WxGOfth9gFuLJSrB10hOk5FA6RM/oVvr9rEjlOKA95eoYddSxdOEe1 U9EsMfjGif8Emu2pYg2XS4FjfVJv7vklgja/Wa5x53Qj82DL/YaVDAtFdIUplgPKGIid saLjijw1LGrNYXoA5HUPuhbVIh7iszqtP132E5ZoynS1W7glXlboQmkhs9TlTs3RjFAS BsTA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-85564-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85564-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id e1-20020ac84e41000000b0042e7f4d90absi61788qtw.429.2024.02.28.10.58.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 10:58:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85564-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-85564-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85564-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 76A211C21B58 for ; Wed, 28 Feb 2024 18:58:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 07A5874400; Wed, 28 Feb 2024 18:58:41 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7CDFA40869; Wed, 28 Feb 2024 18:58:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709146720; cv=none; b=cUAPxTPmjxfYznIC+3bGEtIPbvxihUxI9PikZNnHCY0e/ZdNTOUT1s19ayxbJ1OgedmzmlTkIPfeiEG2pYMKLPP4fHCqURvlgZbeS56MvNH6XO0v8MezhS0WWFiI9ettAQuWU2Jr6V7glOQRh0e9en3+VkmiY8e2+7bvGL4SkIA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709146720; c=relaxed/simple; bh=N9PlxSvglwl6DPxclJkiWxytKFHxELBDz+lSk8O0zwY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=myDTEuFsBpyNUxDiJSiSubeOV4LM22CIo1CFLBJ7WVqC5iiGJBKejKq+VYwhO5cDsn9x/0NzAhWGgcvkr251Ch2Z3jzoa2W1YZcURrRODhLzQuuUr0d1WiXR+FHbohvjYNPdDiQkZNl5je84WCEh4QL303iYwro2DOlQS6Tc9t4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit 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