Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4462030rwd; Tue, 30 May 2023 05:55:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Fyz4+ek51gPrZRp4trpCgVCdjKvcnvVNZkz2M44XoIsoYNJebDpqZomeKZjnPIIsn+i9g X-Received: by 2002:a17:902:e542:b0:1ac:6fc3:6beb with SMTP id n2-20020a170902e54200b001ac6fc36bebmr2803536plf.9.1685451317997; Tue, 30 May 2023 05:55:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685451317; cv=none; d=google.com; s=arc-20160816; b=AVEkjKcqnpfFXYR2xie7kzXjiH6r2bal0qVsDetzCcSplN8srBet+b33LM4kyadXd3 +jUYzPJHhyjzNVzz9brewPMbUobBF2pb44FkfKa1ttX0rxzYH3Q14YZgE7be1cD9G6hd VZSTMfktkbdxuDW3s9tipTgwhdZmqsePAw+wEGhygdgT2tn+u2Y7apQXt25X2++A/bgV ZBKmXmKqoAot3rX6T7O/OanoIStfJfLSxkm1o7gJ+A+hGC1wZ93HlT6WW3KZIxxEITBx hPe8m1ncoRqwKCEfRWuazy4wfw6yDvNdFlgph7MziNMOE6J9ja62MIplv6HhKln/t+Ao yadw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=GYXWV4/k+l93Q7BBhJJ1hjQVseEW3X/tEMhyowNy1j0=; b=TYmeVxMf1bYLLGcmHc9+BJNfTH/HlktQ/BssrqCaRwtHebHzrf5ryRw5eQHuqJNNYX zUCH58lhmo6m1HLTK8KBuhzpZFWttCmbk4JF4dSQUAc3b6Bh8FXTprjGMOQTeiGi4iBy JkPjQjei+v0neObyCxiSaAfijUXPqNN7EdEhdTsJ0qLZq9w/9T142loypPHh21Sv3oBl 7EbUrfotQLYnzhuSKTMNnCem7eLgV127vu37vIHDEQdIEG3n6pBq4/Nrconcln3+YM3V GJvxiTucMsUNnbA6eXodE0u7MhB5UatVgHsx9j5HhfecFAJiuvaKs5O/bWzcVz4SJ1e2 Ucdw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l11-20020a170902f68b00b001b000b3f132si3925867plg.298.2023.05.30.05.55.05; Tue, 30 May 2023 05:55:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232123AbjE3MoQ (ORCPT + 99 others); Tue, 30 May 2023 08:44:16 -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: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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.