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 CEA36C6FD1F for ; Wed, 22 Mar 2023 14:46:42 +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=FR5OP3z1Ayp90t1sFlMGZ+QiZG8SsAW8IiEClsICo5Q=; b=yPbMxZQGEtEq3c Sp61qn3a/1BEh9nj1f9LZCfb1P1BVGlpjeI7TBQATKcBI/hsRfB9I3iRqjPohV1urbfUokXePmQr0 w3THGsQsMJ+rEfPQmI2n6doapDjFJPamnhfIOqzwjo92zIAR6/l0wi6r55NkGLJqTy4nQPTv1t3sf SFr+XuJg1EoY1BVxw8tXbx7EYO4DA/lPE/bjr5LOd5+OScpYbjxE+nMHEIaOkAir8OcXg4Z44KI2k xSqCqn5Rs97cvPsl+Pvbd0zMIXt0wUFrSGNY8WV9cgy+VpMs08Be2g+MK6COEn6P5sYoHNbfXXnDW qOnTzIoeTLxmMLSuu5kA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pezir-00GMG1-0c; Wed, 22 Mar 2023 14:45:53 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pezip-00GMF5-0O for linux-arm-kernel@bombadil.infradead.org; Wed, 22 Mar 2023 14:45:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Jo4szZ4FZcTQ+zI+smakOHqo+Q6smmJ4l5cIPdumn/Y=; b=f0L1C07DEYVBTLW160fPMk8G3J BscFktQ/PN0rta7oVdlKWTvsbPvyADPog47HHmCz5br5qSSjPh6n/VN2BL5zolOUBlNGj2Ak/XxLo 74WMK6Kb0hITbNi2MRngKfnW0ni6Fz0vrlPBfDZWK/fBY+yo3nGDjYpoL5j4xK05ukpzvxcKYogdj 69wcpfBRTPJfkKZZbxN7HvvwqRYK0s/56cvOB0gKRGDzAVNGhaKkCr+UUZWx+rB1kuCahB9UtaNaX 0+2HAxtoHCH265pS9xFh3mbKWE2RmGLGEqOL4U7l9FpGiuYg8INnSD/PpRA6o7+plf6ridGBgno3W EunR2Kkw==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1pezik-004ZrU-2H; Wed, 22 Mar 2023 14:45:46 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 7207430035F; Wed, 22 Mar 2023 15:45:45 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 4E0F3201FFA49; Wed, 22 Mar 2023 15:45:45 +0100 (CET) Date: Wed, 22 Mar 2023 15:45:45 +0100 From: Peter Zijlstra To: Josh Poimboeuf Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Mark Rutland , Jason Baron , Steven Rostedt , Ard Biesheuvel , Christophe Leroy , Paolo Bonzini , Sean Christopherson , Sami Tolvanen , Nick Desaulniers , Will McVicker , Kees Cook , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 09/11] static_call: Make NULL static calls consistent Message-ID: <20230322144545.GE2357380@hirez.programming.kicks-ass.net> References: <7638861ae89606b1277ad4235654bba2b880f313.1679456900.git.jpoimboe@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <7638861ae89606b1277ad4235654bba2b880f313.1679456900.git.jpoimboe@kernel.org> 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 Tue, Mar 21, 2023 at 09:00:15PM -0700, Josh Poimboeuf wrote: > + * or using static_call_update() with a NULL function pointer. In both cases > + * the HAVE_STATIC_CALL implementation will patch the trampoline with a RET > +* instruction, instead of an immediate tail-call JMP. HAVE_STATIC_CALL_INLINE > +* architectures can patch the trampoline call to a NOP. > * > * In all cases, any argument evaluation is unconditional. Unlike a regular > * conditional function pointer call: you wrecked the indent there ;-) _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel