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 4B7EDC433F5 for ; Mon, 13 Dec 2021 19:23:59 +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-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=VYkKSNkDhVrC6CfAfNiQGnwYlZ0zi3tYtQhb58slfbU=; b=D/mh/OwIiNma7fSCqi0YW/VEOt Bke1wnvi5J85OBPo58dqKjDa2KA1+6z85Ta+hzJC3H238vAxtB+ykqViqW+pYGmJGHd5PifovtCnH RIjVTJRc4DG46bi84HqI/UBtjIkZObTTVpvncUG1mjrSKt1x0nIoPEpnsW638o8VTQb7ASQ9Tze0V mhAfeUw3uHenMsyvc673cKHTniVoXGgWkiQkbJDgHjpDefcxI1rWiHGoQJ5XB7XeFHWBf68ze194x 7dvjKpYamozlXjX22RiL0OdEzKjSBwFjt52uepOOzK2lJchpUvLXziJRzzvbQ7GLnOXV/dkkZByKD VdPdrv6Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwqtC-00B80e-9r; Mon, 13 Dec 2021 19:21:34 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwqt8-00B7zn-Lc for linux-arm-kernel@lists.infradead.org; Mon, 13 Dec 2021 19:21:31 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3B714611D7; Mon, 13 Dec 2021 19:21:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3B27CC34604; Mon, 13 Dec 2021 19:21:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1639423289; bh=CU8IocvIG49eizmAMhBMYuvUMqBGGuDcfPqT19PiiEI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UfSzEXjTlGfwUi3YHAm6el9Pl6OUcMNm6Y9vwHkDFm8HA7WTqJsjwiaoEP2vy8Xny PpYyw9lsV1+Cr89yelpUcEZ+2LViOsSdsXy3q2m/9o54dh8UIq9fEF7817fYJStaiD L6RuXsGPRwLX7u62ZsC1u/o3UOXKaUJlsJWS7AQxeAuZFkClg4ieMFVAKDBPsAgVMI fuj3wkqnLwNotRYRPDbUvgAVRzB/OB9HD8/dll5oyr4g9WY+rFunIGrZtlOzMc9wUc L2Jer7ANaMRnXvMNdVdTadPPhDoMDUy9o/qpXxrt9skVdNaYlsMB1KgfoCMT51Y+bf NA80LxpYBw35g== Date: Mon, 13 Dec 2021 19:21:25 +0000 From: Mark Brown To: Will Deacon Cc: Catalin Marinas , Mark Rutland , Ard Biesheuvel , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v3 2/2] arm64: Unconditionally override SYM_FUNC macros Message-ID: References: <20211208160819.3515958-1-broonie@kernel.org> <20211208160819.3515958-3-broonie@kernel.org> <20211213184654.GG12405@willie-the-truck> MIME-Version: 1.0 In-Reply-To: <20211213184654.GG12405@willie-the-truck> X-Cookie: No solicitors. X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211213_112130_779923_3546EC5B X-CRM114-Status: GOOD ( 17.36 ) 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: multipart/mixed; boundary="===============7342083432804021898==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============7342083432804021898== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="VRk6zuXN8bsfdhej" Content-Disposition: inline --VRk6zuXN8bsfdhej Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Dec 13, 2021 at 06:46:54PM +0000, Will Deacon wrote: > On Wed, Dec 08, 2021 at 04:08:19PM +0000, Mark Brown wrote: > > --- a/arch/arm64/include/asm/linkage.h > > +++ b/arch/arm64/include/asm/linkage.h > > @@ -8,10 +8,18 @@ > > =20 > > #define BTI_C bti c ; > > =20 > > +#else > > + > > +#define BTI_C > > + > > +#endif > Why do we need this hunk? Having the hint instruction should be fine, no? We could unconditionally insert the hint but that would be a step back =66rom what we currently have and would mean that hand written assembly would be that little bit worse than what the compiler outputs. If this had been causing us issues I could see simplifying but I'm not aware of any - the issues I'm aware of have been due to not adding the landing pads in SYM_CODE, not SYM_FUNC. --VRk6zuXN8bsfdhej Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmG3nTQACgkQJNaLcl1U h9DVTAf/e33D5801usdsKTeFnqwyH6UZBuPH4xKayKnQokgLGHT8P1YyBr0lBiWW ls2fqrDxZqoRTyQUPpWsqbqDkaURLSUfQgJutCpQQaTyEWOljOhPdqt4IeVJTKxQ LOzgcW17V790HRqg9wuNoZmdTkVNKU38lpOraPyMb0ZitERxjdzmR3ZkroEjk+CP 9TqUoYtXRVunESp2Aagg0jTid6bxcX4G+mAx55n0lOK+EhMEAxCkmyO/oBqr00Df GrCXIfoufpRlIeI2ofgqp1uHlE0gFxbg0ltN/OOjF5rs1Qw2XbRZBKhO7bC6htEI cmLno78uh86B9t+pnHrWq0+YOvXaNA== =BGhx -----END PGP SIGNATURE----- --VRk6zuXN8bsfdhej-- --===============7342083432804021898== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============7342083432804021898==--