Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp124866iof; Sun, 5 Jun 2022 23:06:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCMfgSiXV9bPx2adT+UyvVTAEolm9ba6YaVgkhV6F4Wkl6woBjOgmqX/bhssS89KwIAvUr X-Received: by 2002:a05:6a00:1901:b0:518:916e:4a85 with SMTP id y1-20020a056a00190100b00518916e4a85mr22669404pfi.65.1654495591072; Sun, 05 Jun 2022 23:06:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654495591; cv=none; d=google.com; s=arc-20160816; b=ez4Mzb7+CQoYsBLoe1bcvSvpYf8NPFPmtq9j5BbIBDvpTh6vdHpBfvg1IgElvh+yDF H3MYPpqNfGdPTCeb85YSTqm072+9si7+cBj3hH0bEszQ9HD2Xi2VnTu1kx3jVuLfP+7Q yttjG4BuKlh3zcN3KWlZWdBnAQeEQub3cyKe/brNDTTKNwA00JIbV7byZZ8I0mI5y1UO JIPnUf0x448yhKzG/FMohenF2bScslXPg9ErSchtix+d8UwYgnuiyJOThP+rXqaASSx8 X9X1wzI+3hTwivJiB2veoZFbDurEmGpoofQIOk48O+7NV52nDqA57Z20u+Gg379YqC1g FjYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=JPHMTeH21eKoR6W4I7iPxQFNUAWKvjAR0yL1d7vOOzE=; b=Ub+lU7kb7GqIaeCPkftg8gfyS7G7U6yC9v3ABbDQT3aytXRvVsP/tKOYebLQBQ781+ uki5Eqb9Q4Dv6uUkdfa7a4kr5+6lqGa855J5G8OsD7y/sxe6iKu8La1iWQPIQTCGgPVK FsxdYLPBHVE07TErJx3ML7kwJKJJLIIR9nP/Ja0PgyvIU+SAebO3FepovBMNjEZPMVgE ZmnD3BwgXDwotiPUyfhK2JVKMGid6JSIXxmzgWRmwDnHtbZWOLMW0t86vu1FAn8b5wCI qQMhPbHX/kg+f3rSHmFbj/OY+upNoTXGyc+SNz3uaDr8KHIoWwRGXKs7ApsjIMnN/h2j U5Bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=BLYut8s6; 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 Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id d2-20020a63fd02000000b003fc9b97ef1esi18873462pgh.209.2022.06.05.23.06.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 23:06:31 -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=@canb.auug.org.au header.s=201702 header.b=BLYut8s6; 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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id F2BC1C2EE9; Sun, 5 Jun 2022 21:56:05 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351772AbiFEXdP (ORCPT + 99 others); Sun, 5 Jun 2022 19:33:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242272AbiFEXdN (ORCPT ); Sun, 5 Jun 2022 19:33:13 -0400 Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A191A26AD9; Sun, 5 Jun 2022 16:33:10 -0700 (PDT) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4LGXwv5WLRz4xD8; Mon, 6 Jun 2022 09:33:03 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1654471984; bh=JPHMTeH21eKoR6W4I7iPxQFNUAWKvjAR0yL1d7vOOzE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=BLYut8s6Ay2afK9HjI3jMOJoi8G7H6A/e4GZLwnFwJ10qGpchdtkW2PTUmdld6tv2 jpDlZrCvHR5VIUuFiBCMhDi/NERnXPZxdxlOsIrwUFLaqGsy8nwriO3iSMaLMmozCI +uQpZcsUD+1YlC9Sni8S+A9y43OZI+VoRlNG3QF+sgUWb0D/5MvETPml1PHqqha38V NaIPUmqgE5hXtbg4WlGKE10Usy4wwMKv8yDPAAto8yzEwlr/sECt0+AoIINupN7zJC qqVLYn3KZRrn84Kl9CxU347+VlsFjAlt19ZY+MxCCZEtBPhtoJnUeCPfyHBD6WRw/3 dHvsW+9Y5DTEg== Date: Mon, 6 Jun 2022 09:33:02 +1000 From: Stephen Rothwell To: Marc Zyngier Cc: Mauro Carvalho Chehab , Linus Walleij , Jonathan Corbet , Joey Gouly , Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: build warning after merge of the pinctrl tree Message-ID: <20220606093302.21febee3@canb.auug.org.au> In-Reply-To: <20220318183101.16b8d056@canb.auug.org.au> References: <20211027220118.71a229ab@canb.auug.org.au> <874k92bu4q.wl-maz@kernel.org> <20211028080331.6d199082@sal.lan> <20220120142539.6d1fac12@canb.auug.org.au> <20220318183101.16b8d056@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/j/Z+F3kNQCDQiZbzMTn7/sf"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 --Sig_/j/Z+F3kNQCDQiZbzMTn7/sf Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, On Fri, 18 Mar 2022 18:31:01 +1100 Stephen Rothwell = wrote: > > On Thu, 20 Jan 2022 14:25:39 +1100 Stephen Rothwell wrote: > > > > On Thu, 28 Oct 2021 08:03:31 +0100 Mauro Carvalho Chehab wrote: =20 > > > > > > Em Wed, 27 Oct 2021 12:10:45 +0100 > > > Marc Zyngier escreveu: > > > =20 > > > > On Wed, 27 Oct 2021 12:01:18 +0100, Stephen Rothwell wrote: =20 > > > > >=20 > > > > > After merging the pinctrl tree, today's linux-next build (htmldoc= s) > > > > > produced this warning: > > > > >=20 > > > > > include/linux/gpio/driver.h:284: warning: Function parameter or m= ember 'parent_handler_data_array' not described in 'gpio_irq_chip' > > > > >=20 > > > > > Introduced by commit > > > > >=20 > > > > > cfe6807d82e9 ("gpio: Allow per-parent interrupt data") > > > > >=20 > > > > > But may actually be a problem with the tool :-( =20 > > > >=20 > > > > I guess the tool doesn't like having two fields that are part of a > > > > union documented together... Happy to tweak it if someone tells me = how > > > > this should be written. =20 > > >=20 > > > Yes, that's the case. See, when you do: > > >=20 > > > /** > > > * @parent_handler_data: > > > * @parent_handler_data_array: > > > * > > > * Data associated, and passed to, the handler for the parent > > > * interrupt. Can either be a single pointer if @per_parent_data > > > * is false, or an array of @num_parents pointers otherwise. If > > > * @per_parent_data is true, @parent_handler_data_array cannot be > > > * NULL. > > > */ > > > union { > > > void *parent_handler_data; > > > void **parent_handler_data_array; > > > }; > > >=20 > > > The tool will understand it as an undocumented "parent_handler_data" = and > > > a documented "parent_handler_data_array". > > >=20 > > > It has to do that, as otherwise it won't get cases where people just = adds a > > > @foo: as a template but actually forgets to fill it. > > >=20 > > > The solution would be to add a description for both, e. g. something > > > similar to: > > >=20 > > > /** > > > * @parent_handler_data: > > > * > > > * If @per_parent_data is false, contains a single pointer=20 > > > * with the data associated, and passed to, the handler for the=20 > > > * parent interrupt. > > > * > > > * @parent_handler_data_array: > > > * > > > * If @per_parent_data is true, it should contain an array of=20 > > > * @num_parents pointers with the data associated, and passed to, > > > * the handler for the parent interrupt. Cannot be NULL. > > > */ =20 > >=20 > > I am still getting this warning. =20 >=20 > I am still getting this warning. I am still getting this warning. --=20 Cheers, Stephen Rothwell --Sig_/j/Z+F3kNQCDQiZbzMTn7/sf Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmKdPS4ACgkQAVBC80lX 0GwGjQf/Wpxw16OGellQTN1Pi7+LZv4dT0ZGhL2c5FwQJxKYcGMyrljxCvU5pWot xzunVUcaed1twyrAZw6hEmWPobS1tBuXcSwGUZAKQmH/zS5obZZ9B534qHTXkSDg mIvx/xi9EW//ZG51tzbE214iSnD9S01ZJQw5PRm5s621/QAfPGFyHmEskAAx5S0p xohvRT3l1Q35PJLeFHovPFIQSmbTCV6SObtUWxAJNpnh+x94uI2nCq1z2CXWtB2p 2rUmyCB7XLSsr5LI9pLu8dVpeCGfrnaakKploIhymAsQ07ZDSv7ZwoWu/Ig8/NHa d6UKuIDmpHzxowhNHlBP+GfOs1xu/g== =9smW -----END PGP SIGNATURE----- --Sig_/j/Z+F3kNQCDQiZbzMTn7/sf--