Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp192368iof; Mon, 6 Jun 2022 01:09:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqiKUVELBWeJM8Tmi5EEvmDOf2BseyV8vlICqsRRKVgMXAoUABCTsEyjHKKb9I5/LMvQAp X-Received: by 2002:a17:903:40c4:b0:163:df09:904e with SMTP id t4-20020a17090340c400b00163df09904emr22834217pld.155.1654502954731; Mon, 06 Jun 2022 01:09:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654502954; cv=none; d=google.com; s=arc-20160816; b=lWiMwgqsINTqj7Al9mg4ZMeBjngbVLib6Xq8XeKh+SrCbhXx9dzYJzSCqE5QlulhUX LnsAMF1PjS6ytGMuFpi63X50CJHDyUIgY5T84M7T3ApNjUkH8eBzEBeAMQmLlLzdseTk DYRTGPwNKQ6tn0HhS2i09yNcrfSBI0yEMfoIW5jGV8qzN2MLc5ts6XfiOGSaEfOH1L1w pmGp0ma86ncZzajeOFXstVSB3WKwjJWCFA45ZF9ux9+GR9jWIxRndFT2vdxlbIs+o9MN /svMIYlWqthZEdmM7wH16LF9HCyPpXLnr2mxsHz7IymZYfpww+E7f5aT0gniSbIfDhrj n+nA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=RLefQGyr8gMxnBA1J/XvGNQyZK29NUmjGfLOQnIUGlc=; b=V9YIryH52IJvN5dD0LwOyqsquoTQQiSaq6bq7zwtP9hqmYybeVxAmWmhNHBF5UUWsZ phzLoKUQpCFJ+oxYfuDszilMebcub87stmwrTAXhGtH9SQkavkuU6+3MRVqel5fKLJfb OhOnVH1stqWPhe9nDq44RvH8K+XCtpquksO3kGamCRAH2CbIFUQFtZjFSUtx1PUCaDBB h+XtXXZl7PAxV53bASuq98/tPA6f/Cf3Xwaxua5HRAt8yMvoKEAXWWtSymEZjddh9eqB jm5miWaJgFRu679OdiJRD4Kq6dZwhmVqjFF/n9VP5i8nFJ75A4ntoLFUHumDYfq+89Y3 tbIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pwhUPAga; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id a10-20020a17090a480a00b001e0a4370e78si23278315pjh.110.2022.06.06.01.09.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jun 2022 01:09:14 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pwhUPAga; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 71941B5248; Mon, 6 Jun 2022 00:50:21 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231231AbiFFHuO (ORCPT + 99 others); Mon, 6 Jun 2022 03:50:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231494AbiFFHuL (ORCPT ); Mon, 6 Jun 2022 03:50:11 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 180A52ED7E; Mon, 6 Jun 2022 00:50:10 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A7D4B611B8; Mon, 6 Jun 2022 07:50:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8F406C3411C; Mon, 6 Jun 2022 07:50:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654501809; bh=+PxN/7lvs+ASkg1d8jxQyQDR3Lobei2q0DKdDD97ktw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=pwhUPAgaA9QhCiYGxDCk9eaj+IbeH14pxMoRfl/UTuwE4GXzoYOBl4rA6IAUn3UFj Lwqs+cP1bZszz57GB4GEvJ0hK3haysGkh1X7amUqlumPRQGwOC8DCOiDVNJa3ll4sy IRy0KfTytHS1YUq5kNx42jRzpmuSgsGn3/1mua3vv2pwYM/6XmbMBc1VOYjMc2EYPw LQhRzq4eChFBoN8NeV37mnWAWY8evcKp2k9uEzD3+AIKugyzMS8gm4KxRxhbQVPnFQ ASj/eKEU1SvqU9NfY6FNot0pOndtpCe2iN7Dz/J/Wv8ojapA5qChLQo92lcvhwP+/G YzmIL0X/RVLOw== Date: Mon, 6 Jun 2022 08:50:02 +0100 From: Mauro Carvalho Chehab To: Akira Yokosawa Cc: Linus Walleij , Bartosz Golaszewski , linux-gpio@vger.kernel.org, Joey Gouly , Marc Zyngier , Stephen Rothwell , Jonathan Corbet , linux-kernel@vger.kernel.org, linux-next@vger.kernel.org Subject: Re: [PATCH] gpio: Fix kernel-doc comments to nested union Message-ID: <20220606085002.714b7e98@sal.lan> In-Reply-To: <27612e81-d843-d161-ecd2-c653c7d5bae9@gmail.com> References: <27612e81-d843-d161-ecd2-c653c7d5bae9@gmail.com> X-Mailer: Claws Mail 4.1.0 (GTK 3.24.34; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Em Mon, 6 Jun 2022 13:44:24 +0900 Akira Yokosawa escreveu: > Commit 48ec13d36d3f ("gpio: Properly document parent data union") > is supposed to have fixed a warning from "make htmldocs" regarding > kernel-doc comments to union members. However, the same warning > still remains [1]. > > Fix the issue by following the example found in section "Nested > structs/unions" of Documentation/doc-guide/kernel-doc.rst. > > Signed-off-by: Akira Yokosawa > Reported-by: Stephen Rothwell > Fixes: 48ec13d36d3f ("gpio: Properly document parent data union") > Link: https://lore.kernel.org/r/20220606093302.21febee3@canb.auug.org.au/ [1] > Cc: Linus Walleij > Cc: Bartosz Golaszewski > Cc: Joey Gouly > Cc: Marc Zyngier > --- > include/linux/gpio/driver.h | 29 ++++++++++++++++------------- > 1 file changed, 16 insertions(+), 13 deletions(-) > > diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h > index b1e0f1f8ee2e..54c3c6506503 100644 > --- a/include/linux/gpio/driver.h > +++ b/include/linux/gpio/driver.h > @@ -167,21 +167,24 @@ struct gpio_irq_chip { > */ > irq_flow_handler_t parent_handler; > > - /** > - * @parent_handler_data: > - * > - * If @per_parent_data is false, @parent_handler_data is a single > - * pointer used as the data associated with every parent interrupt. > - * > - * @parent_handler_data_array: > - * > - * If @per_parent_data is true, @parent_handler_data_array is > - * an array of @num_parents pointers, and is used to associate > - * different data for each parent. This cannot be NULL if > - * @per_parent_data is true. > - */ > union { > + /** > + * @parent_handler_data: > + * > + * If @per_parent_data is false, @parent_handler_data is a > + * single pointer used as the data associated with every > + * parent interrupt. > + */ > void *parent_handler_data; > + > + /** > + * @parent_handler_data_array: > + * > + * If @per_parent_data is true, @parent_handler_data_array is > + * an array of @num_parents pointers, and is used to associate > + * different data for each parent. This cannot be NULL if > + * @per_parent_data is true. > + */ > void **parent_handler_data_array; > }; Yeah, kernel-doc expects inlined comments to be just before each declaration like the above. Reviewed-by: Mauro Carvalho Chehab Regards, Mauro