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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B4B60C433EF for ; Tue, 9 Nov 2021 19:33:50 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 745E360184 for ; Tue, 9 Nov 2021 19:33:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 745E360184 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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=LAA+EcY4uBVNbNNTdDIp2PDdKB6rHn4295vJiqcINKY=; b=c2unKEt8FrSQQA EKYTyaxvAwpy1lAzVbJ36aubrhEtNFR6BBr9XtvsOV+w4w8j5cIMmOTd402NUyJ8pWf4DjYk8AD4u zrHWKeXANsGCuVdBKuK4WgOjQji7bvm414TpNXNcmhxlOhnmaVsGgyV/8yzjdZIvUsvibiR78vWP4 +lQ06NG4zpQ5D19cSCdWXoH+ZP/2EyJynOBEqi9ty0VAUayP6Nj8ASAdXjPyuAYg17JpDE2gahaz/ ydmWytwOX3K7qCzVA23eSdJa1XPdrOVEe1NO6moL9Lr8arUr9DFH5B86zdAxP1FXAuc1ASqLRfoGz UFUiYrybJdlHNXFgOd5w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mkWrI-0036n6-18; Tue, 09 Nov 2021 19:32:40 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mkWrG-0036mf-BG for linux-arm-kernel@bombadil.infradead.org; Tue, 09 Nov 2021 19:32:38 +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=6q8o/4Pkkcqnzs9b9O2zsqdgubB0fcTVKR8hrr53nDc=; b=kk3EVhy9UUxRRrN11k4L21uxpj UVHGtyDqnm5clQjHGudLAhYcuwUsgUkYFAAVAWXGWYiL6CU79Y+K/qKTrzhDoP6tZA6JeqBiuq3uZ 2CBABtVWk0FCq520AbJydDEJ6XEoX/3H0L2wAEFqwLRFMPhO4IPdJ/C5qU6mOe4ZeQPFad7Kjl26Z uqslipsFl8/XZYKVgaT6KMqZ7++/rjsdgykqcNIo7JHrdTHJ/FmA/WmCoIzGI+OxodxK0UhEWfX/u 5te8+sda545OXivI+FBlGHiuOMmt6Tj6303R9JNIyGVVRt/UFvoDuPxS2dwPoQfRuUdGLJGM/+mgX l7zL0uDw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mkWrB-00F7LI-A8; Tue, 09 Nov 2021 19:32:33 +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 (2048 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id A5D4A3001C7; Tue, 9 Nov 2021 20:32:32 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 893D02C525D31; Tue, 9 Nov 2021 20:32:32 +0100 (CET) Date: Tue, 9 Nov 2021 20:32:32 +0100 From: Peter Zijlstra To: Ard Biesheuvel Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Josh Poimboeuf , Jason Baron , Steven Rostedt , Mark Rutland , Kees Cook Subject: Re: [RFC PATCH 1/7] static_call: get rid of static_call_cond() Message-ID: References: <20211109164549.1724710-1-ardb@kernel.org> <20211109164549.1724710-2-ardb@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20211109164549.1724710-2-ardb@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, Nov 09, 2021 at 05:45:43PM +0100, Ard Biesheuvel wrote: > static inline > void __static_call_update(struct static_call_key *key, void *tramp, void *func) > { > + WRITE_ONCE(key->func, func ?: (void *)&__static_call_nop); > } Ha, yes, I suppose that ought to work. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel