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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2A115C77B73 for ; Tue, 30 May 2023 12:44:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230354AbjE3MoP (ORCPT ); Tue, 30 May 2023 08:44:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229821AbjE3MoO (ORCPT ); Tue, 30 May 2023 08:44:14 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4DF60116; Tue, 30 May 2023 05:43:46 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6470EC14; Tue, 30 May 2023 05:43:45 -0700 (PDT) Received: from FVFF77S0Q05N (unknown [10.57.25.100]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 310F33F67D; Tue, 30 May 2023 05:42:58 -0700 (PDT) Date: Tue, 30 May 2023 13:42:55 +0100 From: Mark Rutland To: Akira Yokosawa Cc: Randy Dunlap , linux-kernel@vger.kernel.org, boqun.feng@gmail.com, corbet@lwn.net, keescook@chromium.org, linux-arch@vger.kernel.org, linux@armlinux.org.uk, linux-doc@vger.kernel.org, paulmck@kernel.org, sstabellini@kernel.org, will@kernel.org, Peter Zijlstra Subject: Re: [PATCH 24/26] locking/atomic: scripts: generate kerneldoc comments Message-ID: References: <20230522122429.1915021-1-mark.rutland@arm.com> <20230522122429.1915021-25-mark.rutland@arm.com> <96d6930b-78b1-4b4c-63e3-c385a764d6e3@gmail.com> <20230524141152.GL4253@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-doc@vger.kernel.org Hi Akira, On Fri, May 26, 2023 at 07:27:56PM +0900, Akira Yokosawa wrote: > I think adding "~" to the substitution pattern added in [1] as follows > should do the trick (not well tested): > > diff --git a/scripts/kernel-doc b/scripts/kernel-doc > index 2486689ffc7b..eb70c1fd4e86 100755 > --- a/scripts/kernel-doc > +++ b/scripts/kernel-doc > @@ -64,7 +64,7 @@ my $type_constant = '\b``([^\`]+)``\b'; > my $type_constant2 = '\%([-_\w]+)'; > my $type_func = '(\w+)\(\)'; > my $type_param = '\@(\w*((\.\w+)|(->\w+))*(\.\.\.)?)'; > -my $type_param_ref = '([\!]?)\@(\w*((\.\w+)|(->\w+))*(\.\.\.)?)'; > +my $type_param_ref = '([\!~]?)\@(\w*((\.\w+)|(->\w+))*(\.\.\.)?)'; > my $type_fp_param = '\@(\w+)\(\)'; # Special RST handling for func ptr params > my $type_fp_param2 = '\@(\w+->\S+)\(\)'; # Special RST handling for structs with func ptr params > my $type_env = '(\$\w+)'; Are you happy to send this as a patch? I'd like to pick it into this series, so if you're happy to provide your Signed-off-by tag here, I'm happy to go write the commit message and so on. Thanks, Mark. > > Thoughts? > > Thanks, Akira > > > > > > >> [1]: ee2aa7590398 ("scripts: kernel-doc: accept negation like !@var") > > > > thanks.