Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp615494pxh; Tue, 9 Nov 2021 16:13:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJwn+imzT6/X8wpYCG/nfIIN/+0MgExvKQnLdNayNjBZdCDYqvxwnR2vJeCayWIqslFWu7pK X-Received: by 2002:a92:d64d:: with SMTP id x13mr7942955ilp.42.1636503218942; Tue, 09 Nov 2021 16:13:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636503218; cv=none; d=google.com; s=arc-20160816; b=mUXDJPVLUHLYjHMfMYMJ4WwDvVsFtmH0Kjg/PE+cbS4DGF8w68HPs947fPkXyqRvZE 4+hJgCG6xHX9ZcJ2LKL6ex375zBg0hvEu4zM9yyKakFJ6K0EF4csjbsWrqQXnmZRjuQ0 vktFyOIoux1iHmwMx0jFb0fky59C6YrPogKrRF8rklfdYgj8Tv02eHey96H9tGTJSMgH 8pX9IkmWv/ZgK+cCaGTPBwdK9iItyI1ANgcucXdUcIo7+iv9T8dgAbQOXFfcI3GHTwU5 h+cCamYcMdSgYmyFj4gHodToynBV276m+EuRCsW6VeEGzUOrrGete5oj6UwtRMLmfuk4 Orcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=phpmAGmp1UvzkCeEEe2mJ9M7G4Fy3XIbjnqnq1vM3o8=; b=HlEYZmbfST2Bg5lgg9Tq/QnX2CYFDfntnrMLvJj5kK0jEt+mk4SXY/QMhekXVeCeEL Ra4MgRsM+4J9GCJ5EaJ6OZ7NpS5K0rtTUh/wtH/4MsEl8InvD9vjZhzbHN1UYTRfJj0W Y+JQIUJY0JNp6R/7WBvGjI6DJ71cBqOVuw4C96Z6wsxmfj8eu+wIo7KiSptQ06wnCz2C QHQ3VArVY97Pv/JGr4M2kM3s9BsOThriKQNntT0sLd+PNzMnRmrIWudv2nxgleyTIlJX uzSJC4EZv+Nfr1cDcDGfkKJkfBOgEp+WBSGuFReCHlTb7Id+bQwmPaQOeZnmeFvCxRR9 2TkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WpwMKd44; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ay7si34685068iob.27.2021.11.09.16.13.26; Tue, 09 Nov 2021 16:13:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WpwMKd44; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237092AbhKITGv (ORCPT + 97 others); Tue, 9 Nov 2021 14:06:51 -0500 Received: from mail.kernel.org ([198.145.29.99]:36636 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230445AbhKITGu (ORCPT ); Tue, 9 Nov 2021 14:06:50 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7E5B6611C9 for ; Tue, 9 Nov 2021 19:04:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1636484644; bh=uazp6pX2elsGx6La1lQjbYJQaADfiPQ86aPoob7lx08=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=WpwMKd44GJgeXaSFwxIbEmw+tXkqqXMclold2q2Drb5NsTATXhQDNF76pfzYFgFHI QZSXblJhmepd1A60+2aOaspNxQyVQGw0iERIzBqJc1isnab0rlih1AhsHIp+nBtWdU 9g9uK565yzBQkW1X10ARnDJlOAsm7IqKitb92j51sECAYMV3CsO9hAIrRXqvKHB5Aw T5bktkgi3TWXYXW7xnO+5nrDX8WRunOXVgmx4oEpuJZWIBwHOdxXvZIAnlMRuAjotq Fpfi5wml9bCV5AjX9VLBnn8ftGdSyGP7FhrX3gLeViW2SWhP88E3bY+Y2ruB0899J4 smcCXAZFkKOXQ== Received: by mail-oi1-f172.google.com with SMTP id o83so490177oif.4 for ; Tue, 09 Nov 2021 11:04:04 -0800 (PST) X-Gm-Message-State: AOAM532bXUk1OoFfqrddFBsj4uDc8bVgbcWLIEyEzJWc9/WGkjBNcNSO PMoRvz4xChSIrp8GawaD8tTrZ3HgqagL7+ZbqnQ= X-Received: by 2002:a05:6808:12:: with SMTP id u18mr4059892oic.174.1636484643759; Tue, 09 Nov 2021 11:04:03 -0800 (PST) MIME-Version: 1.0 References: <20211109164549.1724710-1-ardb@kernel.org> <20211109164549.1724710-7-ardb@kernel.org> In-Reply-To: From: Ard Biesheuvel Date: Tue, 9 Nov 2021 20:03:52 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH 6/7] static_call: rename EXPORT_ macros to be more self-explanatory To: Peter Zijlstra Cc: Linux Kernel Mailing List , Linux ARM , Josh Poimboeuf , Jason Baron , Steven Rostedt , Mark Rutland , Kees Cook Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 9 Nov 2021 at 20:00, Peter Zijlstra wrote: > > On Tue, Nov 09, 2021 at 05:45:48PM +0100, Ard Biesheuvel wrote: > > So let's rename these macros to > > > > EXPORT_STATIC_CALL -> EXPORT_STATIC_CALL_FOR_UPDATE > > EXPORT_STATIC_CALL_TRAMP -> EXPORT_STATIC_CALL > > > > Ok, let's pain this shed a bit. > > How about: > > EXPORT_STATIC_CALL_RW > EXPORT_STATIC_CALL_RO > Works for me > respectively. OR.. alternatively, have both: > > EXPORT_STATIC_CALL_KEY > EXPORT_STATIC_CALL_TRAMP > > and those that want to export both get to use both. Yeah but whether a trampoline even exists is an implementation detail, which I would like to omit from the API.