Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1238834pxb; Fri, 21 Jan 2022 13:05:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJzHTwqbxXNQjLnQmyJZM4kJnWxAJqUeSmNYTH5H7PvGiwrN0SO38VH2MRySqMU57CBAanho X-Received: by 2002:a62:3893:0:b0:4ba:7246:4830 with SMTP id f141-20020a623893000000b004ba72464830mr5070608pfa.30.1642799142919; Fri, 21 Jan 2022 13:05:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642799142; cv=none; d=google.com; s=arc-20160816; b=Hg1feE2sntJ8BG+WxlZQlWnCI+Mx2F9khnb+f1KwPnOvr32xp9Cib8hhMqcz64570v VLSn36kU1b8pXv2Fu4Mp0KJGka4lsBwgeimw7oaexYjo15EKkPEg4zV3mB5F1xZKCg7R eSPiQgfYUeH/NUyOpEDSQMIFoTjhjs8nEMocJdiv6Jm15VlaDBUP410ykisQA+b3wC5f hHb3Iia2RcQdf+uc9C+5DpypwfNs6wRbM01HjmFbonaIHwm/bh53sXBVEazlc0E1z+yi aS/mXLnuZd3FmdWCIOoFeuklH8PnM8v45SeyHotdAAlOfk+5WRPuvl0kz1BgsEObTwd4 xgMg== 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=BSJaYZtaWNqvMmQ161KljdzjK3UMjtU9hJ54yKVDuaQ=; b=lONbYDM8DaNfENDnBLqM6rYZtPB4JqoFzu0VyWV8Rk0yHmDlStws1AZSb49cbAwnXi +A4Z/zAu5mJkcFibTePDQuuZ3yCWYxW381SoU0SWFv15xvua8Iz2ABplGOS61T2H93tC tH/wGmc0v4Ii6JFNaqzU7pHizD5yLqkLta2VGuECz7FJtM3WAA7v/nnqbV5P14CNxsKr //Ds5T+ijtdpYd4NlsCBk2NgVl/4svGT9Q0GA6O0SmggNOPnCaq405hAQm6+hWIEEaS6 p8rUkamsOxnkznYdyF5T6yxjWjHvlb9mnX3m9IRMfRF1oVLIucBqoKVSxe/IiJFx4i3k cAhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=gt5J4iAV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id na15si9535250pjb.46.2022.01.21.13.05.31; Fri, 21 Jan 2022 13:05:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=gt5J4iAV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358331AbiATDZn (ORCPT + 99 others); Wed, 19 Jan 2022 22:25:43 -0500 Received: from gandalf.ozlabs.org ([150.107.74.76]:35739 "EHLO gandalf.ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358325AbiATDZm (ORCPT ); Wed, 19 Jan 2022 22:25:42 -0500 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 4JfSZX2MRSz4y3h; Thu, 20 Jan 2022 14:25:40 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1642649141; bh=BSJaYZtaWNqvMmQ161KljdzjK3UMjtU9hJ54yKVDuaQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=gt5J4iAV9LgfRW72OSXoK+e0sTaCnzaQblxmzPE9rmuF8hv+KCsf/pGqYBfssmWbo kKSU8jEBZCFF5exfr6WM57KcKqVJ+K9PT0uxGTL7EJ5VqxpB44rrJ68tU9DNEHw9WD Mvdj4fXwAUUNaaTe5+j83539YAactYtdbjlJke6izKefJjmaEnoa7YbGCMlsLQ38qi SvsqoT/jST0EAgS4J1EPV1AVuNzwSYbHLX1lG8+XrX7qK/qUkxXxMikCQDFeAZkRik mGQfZFFTu5QOpwsgrIZ6GyTApc08JoGixoVqiPm5jE0NjZCbWfF2LeGVCCGRPYqv1v zFw49fPEHfGkQ== Date: Thu, 20 Jan 2022 14:25:39 +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: <20220120142539.6d1fac12@canb.auug.org.au> In-Reply-To: <20211028080331.6d199082@sal.lan> References: <20211027220118.71a229ab@canb.auug.org.au> <874k92bu4q.wl-maz@kernel.org> <20211028080331.6d199082@sal.lan> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/k0TcC6Wp9bi=4NpQQykgMOj"; protocol="application/pgp-signature"; micalg=pgp-sha256 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/k0TcC6Wp9bi=4NpQQykgMOj Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, 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 membe= r '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. > */ I am still getting this warning. --=20 Cheers, Stephen Rothwell --Sig_/k0TcC6Wp9bi=4NpQQykgMOj Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmHo1jMACgkQAVBC80lX 0GwOngf/QdrATg8xG8CNo0+qRiR+8Sr2oTKU/tmpN/tF+grDOhv9EnHLKTa4UnBy ZWrZCuslIRIaP5MlMOYj2CIBNp8T0jQzLt3hrKTvFP3z12yvJLYF859RDCDT7ggV sga4gy+YMF18ksHbFTy5ikmN+mW40RIolbFsmsJ9Wr+8DYqS2LVlBNkN2aWL/JbO hTX1m3e8f8379shn8vYaNYDE786Bt7n1d8Be5xOqmlTP4s8swOd6ywjcJE9IBjw0 3vLqAGXgDkTb3TZ7zroiptu1VpjjxAWF4wOnJjC0SW6OAtJLwDOtanWMCuTaDjMN Zeim4r5l8p5+ZwtrvgL+wy5y3HdfJQ== =ucEL -----END PGP SIGNATURE----- --Sig_/k0TcC6Wp9bi=4NpQQykgMOj--