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 62151C5475B for ; Mon, 11 Mar 2024 09:39:39 +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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=5AQNyg4wqaGYGyZDsILI4mhUPpq2a3KBK+DkkAaGZ2Q=; b=ZixbM145MysDCi zWJgsT/dUI3SYElozEB98FbZWp3GCr+VTZhDcbkpMsh8koUljpQbp9tbA8t/icRI89HBeuaodETGR hM4S4eK8g38mGiadnBMr6qd/Sif0M4KMGBL4KvUuh0NNf5GzmF5aKIAtnqjvgRYuvxpQJtlCF80vX snFsATIx/BB6Y2kr8A9XJQI686JtvAH8Rhq8XbzHmEwjuqvE/J4uNslZyV4yZYE77olv0D+iIYoh1 +XTbbaZy20gLiAD2NDEWUjGurQfux6CclXgcAcYUi4ZHFh5Ve6PtUpRWmEPxeSgd+ziRezrvCO7Vd 4XrNEM+pbzmEHHju7RKg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rjc7y-00000000uaP-1ePS; Mon, 11 Mar 2024 09:39:26 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rjc7u-00000000uTI-0Hr6 for linux-arm-kernel@lists.infradead.org; Mon, 11 Mar 2024 09:39:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: 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-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=uleLxUZP0z3JKB/D6daaot+Oq/NjX/J1iFMN0XKrvo4=; b=UZ0P4Az1JYP/RhKZLlC2Jryd5p BvQroATEPiXsbGQkVFqe0anDGTp4rF7Z8eivjjwM7cFehVaei7/Zx/HDTWBMi4BGMPL7RyHNzsIIv euLDiDdPM6k2UjRu81TZUZ2ZxcJQmVQ38fxNdsa12ILSYYEXvq8CNmLuM/jyxGJf5XoYcQ148hndG fJHOcnB9zlsz9WUo1Iy++oieL+PKpxR8Wi//bt27FyFVjiQ384fCjR4Kotd+T7AtIwrQj5JrvBtYg RAwu969jqrWIpECJStQI25AEv5FXDjdggePaRCpYiwVbTwF1F1sfR6IKqCqNo9WWIOv0s/nEotihd Nyw2DKKg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:54866) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rjc7b-00053s-1v; Mon, 11 Mar 2024 09:39:03 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1rjc7Z-0002Vd-HD; Mon, 11 Mar 2024 09:39:01 +0000 Date: Mon, 11 Mar 2024 09:39:01 +0000 From: "Russell King (Oracle)" To: Linus Walleij Cc: Sami Tolvanen , Kees Cook , Nathan Chancellor , Nick Desaulniers , Ard Biesheuvel , Arnd Bergmann , linux-arm-kernel@lists.infradead.org, llvm@lists.linux.dev Subject: Re: [PATCH v3 2/9] ARM: tlbflush: Make TLB flushes into static inlines Message-ID: References: <20240311-arm32-cfi-v3-0-224a0f0a45c2@linaro.org> <20240311-arm32-cfi-v3-2-224a0f0a45c2@linaro.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240311-arm32-cfi-v3-2-224a0f0a45c2@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240311_023922_424319_B13BA1CA X-CRM114-Status: GOOD ( 11.16 ) 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 Mon, Mar 11, 2024 at 10:15:39AM +0100, Linus Walleij wrote: > Instead of just using defines to define the TLB flush functions, > use static inlines. > > This has the upside that we can tag those as __nocfi so we can > execute a CFI-enabled kernel. Why? This seems to be brain dead. Why can't CLANG cope with directly calling e.g. cpu_tlb.flush_user_range? Why does it need a static function to do exactly the same as the macro does? -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel