Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2095303pxp; Fri, 18 Mar 2022 03:10:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNcR81bNc764kN3Szgvf9EQbZeAkX6gEaPJtonQweVgaO+4+iEclFYeKYNHdE2tZAFC5vB X-Received: by 2002:a17:906:32d0:b0:6ce:e1cf:3f2e with SMTP id k16-20020a17090632d000b006cee1cf3f2emr8012151ejk.214.1647598224040; Fri, 18 Mar 2022 03:10:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647598224; cv=none; d=google.com; s=arc-20160816; b=LflMQs+WqPwQgF1kZdzUWfEV/A9DkJMC1V+U5k1hXuy4sBhCkcVXCzHCkmKN0EZHhi epU/hWEWGq9dbxR4dLQvi4bKeY/7mpyZi984P5oCwFxFH25Sm2JrkhZZZn3f2HT9PBPL Gv+WEfzRg0KJOZ73NvydKM+84CF4MiN1WpBQTwxlCERJ1N6VsB/G2cDwD1Yo70Fn4vmx lpabRfmdJjP8+oRLT0jU8J7tFhZ0Om9brfPenjmHJYxycL6rMYRli88ru8x67F9FL+PC l2T5SNO350GCw4lLIvOwy+NNwxSQP+qSDoo+O+9/65Ygc1qkZXak81fGVoDzJ+bSoO9G 6VHg== 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=R46NlN+rYs6doRFo+GJBndwKot6DC5GziYeiRObNQ4U=; b=WeJ4vO4YwjZIwba/I0KJelLZsFW+VopDQ70f6fwYKjRf0nu4oM5xXbOojfTW3U2qBv CiQ148dUOdJp/SZ3M0+mz/f8fo3xTROgK0+o+Xan8qSSJOiXFMVyniP8mIQA7N/RsIey 64dX5ghJB43dheXoASXFaI3B4EAZgvz0kCBZ77T38pRRIJJxaKJ/Xo4lcroxSApWbLvK 7dvnA91fwbrD8WSmQjMQ5OXWjzKQ+bRfjgl94ira3pumvznEuRVIlBM3LURD6LkzVZrj 3PQ3T4bWADzrr8jZMbWTyqOh0KkVmilXsAGZnFCWh+BVoywkpmSv5kKNTTfuXhYXrLO2 1/Aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=h4NBXydz; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v4-20020a509544000000b00418c2b5bd74si3679879eda.86.2022.03.18.03.09.58; Fri, 18 Mar 2022 03:10:24 -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; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=h4NBXydz; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233096AbiCRHcY (ORCPT + 99 others); Fri, 18 Mar 2022 03:32:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231326AbiCRHcW (ORCPT ); Fri, 18 Mar 2022 03:32:22 -0400 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77FCE2409B; Fri, 18 Mar 2022 00:31:04 -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 4KKbKL1pPrz4xc1; Fri, 18 Mar 2022 18:31:02 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1647588663; bh=R46NlN+rYs6doRFo+GJBndwKot6DC5GziYeiRObNQ4U=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=h4NBXydz457IEgAXIQbv0VKGseeU5MXQExWtc8m627tChqBEUC6Ssgsa7Ali75icZ Mei/PNECQ96W7RjYFTt1cgtN4jbrbXTm+2iNy+jR6NH2MkuABS04UIr4DJF3pkRZha JQ09v8zVqzsqyl/Vq5bpJ6QjFHbn3Dd/+nDgtza5Sjv7YaznBKj4Q1og51WQoELBps 45aI9t2+esXErdmZt9Wnuc/XXNCe2Q+eYlNt1ejRJTegFa0zZutgWzZgUhSnVH4N40 a7UGKOl1WRZ96zAjrjpQf4YLj3fkpkrj7u85r8cBFKdmmbrv4ftJAhBBuocjpKjcnD 1HLPzwlVfBplQ== Date: Fri, 18 Mar 2022 18:31:01 +1100 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: <20220318183101.16b8d056@canb.auug.org.au> In-Reply-To: <20220120142539.6d1fac12@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> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/JdXxFheYXenaqAtzYWbWblL"; 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,SPF_HELO_PASS,SPF_PASS,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 --Sig_/JdXxFheYXenaqAtzYWbWblL Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, 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: > > > > 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 (htmldocs) > > > > produced this warning: > > > >=20 > > > > include/linux/gpio/driver.h:284: warning: Function parameter or mem= ber '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 ad= ds 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. I am still getting this warning. --=20 Cheers, Stephen Rothwell --Sig_/JdXxFheYXenaqAtzYWbWblL Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmI0NTUACgkQAVBC80lX 0GxkhQf/V09aUv7iiBT8ilAVTFUnmXb8qqoPUne7JZP/57vK9JvPYbzwWRFRHy3s HcbEwC+hi5R8pkbQwTNtZkSDYmpgucAdWBjCVJhj3FF51YpYqVVl6JyX9RlQgR8s tBA9M0SCMt9fhLAlRk8FFoNww04uG4Jifr++KMbrnLEmwaHIi5H0FrU9KJB8DgHR G+U2F6LDO2MSvqrMYkgrjeRJNtYq/jOG+G9D7xsFfMzQxUkJ59ZYepfAZ6scENYC TrKLLX7h9e/qAVW4Kn8CdXNOsoykgHWYYi5Ma+UXektZ9XKCKzie8KXtT9U2va5Z ROTpoA3tT2MWIl9HCmaOAW6igvtj5g== =bDUN -----END PGP SIGNATURE----- --Sig_/JdXxFheYXenaqAtzYWbWblL--