Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4831664pxb; Mon, 15 Feb 2021 02:22:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJwXErmP9HfD5ud5hmtscIjK0tA8yWJ2qDES0NnaOnmNcJSf8vlv2VfB4xhZpgOz+S7/jOsp X-Received: by 2002:a05:6402:94f:: with SMTP id h15mr15175610edz.199.1613384541513; Mon, 15 Feb 2021 02:22:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613384541; cv=none; d=google.com; s=arc-20160816; b=m7pXZlKRxwrzLDBn32c7SEBEko9/ZDdb5+2Exe42BVG9hvR7qnYgsermGJdN4M9ukg bDKgi3irjKYMWYcZtX8yS1iMwJ6r7RJPVnCkA2WK6ds+ne/BbynqW4I0jaOIwFrBj3RZ cVijT3TcEMZUFH4tb8zAf+5mIP/b/Zqh7KOJTOmJP7lI7D1/rAZ7yzIhVe0JWjcNr+HI 4tzgdBfJQtbDNR33p+otnBGuVUX4KJFajM1dynN1uVRhNeH68/guhZsXbK8asBTYfqKJ MNykDhlIEZtf9SvV0W9MydlBu65OPEME/BTXtYRGBft7/D15+qcjoyDruRCnju9wX7KS ndkg== 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=JW770Y6lPwX8WFUyGNq0+qXR2fxR0V3Ru0r3wIAdULI=; b=m8/kDu8rga1q6Ucg+My32TIEsDSPC/S/PtwLKTM7qo83oKNJ4el+SPoEtbrPNvFxvo aL27aJ4jvrx4hFrCmhyu3l9DTw8rMzHRl3HEvUGmRrHI990QFiNJIkFLOO5PeZceRH3C Xffo6tc1OQ5LaOiFwdqjhgW4AJozcceQf04nf/DArXCGPs8dLbyn5JfLL65DI7fCJ4F9 TGzpPbgLZRzhEPdsXrpZm0h1irDl0P9BvUA6ldCnyxTHnsCjqR2LWSortvzeCiUTBctj KkwUU9ui2uEihOgsmB5LS7EArY4uxzNFuX1Vgk+cBDOC5MZIor72/2ZfZ8deEgu3FTp4 j7Wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=k0C1KAAu; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t6si11935475edy.373.2021.02.15.02.21.58; Mon, 15 Feb 2021 02:22:21 -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=@kernel.org header.s=k20201202 header.b=k0C1KAAu; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229916AbhBOKVP (ORCPT + 99 others); Mon, 15 Feb 2021 05:21:15 -0500 Received: from mail.kernel.org ([198.145.29.99]:32978 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229652AbhBOKVJ (ORCPT ); Mon, 15 Feb 2021 05:21:09 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5866364E04; Mon, 15 Feb 2021 10:20:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1613384428; bh=8fmGuYCepzo057o2HdF+G6HtxzzEWteZ/F4yOiJ1bQo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=k0C1KAAuD9r1Zs0Skc5I5IrIudzGnot1vVC0dt47Jj1nI+19TfeB2qntrmaGWviGy 1/fyqa+ZqYq4RU5N3+N/IMvUu/4CuaYyedNJx3gaVFEtZTKbhp9+Ez+ohFD6c9CXUX 2b3NnTJXyQvXKCiA+eAeb98ZhTtI101keQTbtUn4m7kPvvLpT3Nbfd92IIf+f8AFI1 cQbCw/Rh2rOeJ60K0CjCrZahpfG2GuXNmPdnj6I03WWuzSWiMxj5vAgooLgTX2HelQ Lp1KmvQsDPK9ihWiWcpPrF2gGhoHKaOa8BQIqtSv7mvgT2tcd5YtQMKfAomqGZzh/8 6vj7+oEbIl7NA== Date: Mon, 15 Feb 2021 11:20:24 +0100 From: Mauro Carvalho Chehab To: Ezequiel Garcia Cc: Sakari Ailus , Stephen Rothwell , Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: build warning after merge of the v4l-dvb tree Message-ID: <20210215112024.22ebdd4c@coco.lan> In-Reply-To: References: <20210208233716.16d962ad@canb.auug.org.au> <56cd99bbf526b43507579b5775bac5f885319866.camel@collabora.com> <20210208164618.GY32460@paasikivi.fi.intel.com> <4af499f5931d6b04a42787ae17525c63247573e6.camel@collabora.com> <20210208184014.55128fb5@coco.lan> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Mon, 08 Feb 2021 15:53:00 -0300 Ezequiel Garcia escreveu: > On Mon, 2021-02-08 at 18:40 +0100, Mauro Carvalho Chehab wrote: > > Em Mon, 08 Feb 2021 13:57:56 -0300 > > Ezequiel Garcia escreveu: > > =20 > > > On Mon, 2021-02-08 at 18:46 +0200, Sakari Ailus wrote: =20 > > > > Hi Ezequiel, > > > >=20 > > > > Thanks for addressing this. > > > >=20 > > > > On Mon, Feb 08, 2021 at 01:42:21PM -0300, Ezequiel Garcia wrote:=C2= =A0 =20 > > > > > Hi Stephen, > > > > >=20 > > > > > On Mon, 2021-02-08 at 23:37 +1100, Stephen Rothwell wrote:=C2=A0 = =20 > > > > > > Hi all, > > > > > >=20 > > > > > > After merging the v4l-dvb tree, today's linux-next build (htmld= ocs) > > > > > > produced this warning: > > > > > >=20 > > > > > > include/media/v4l2-async.h:178: warning: expecting prototype fo= r v4l2_async_notifier_add_fwnode_subdev(). Prototype was for > > > > > > __v4l2_async_notifier_add_fwnode_subdev() instead > > > > > > include/media/v4l2-async.h:207: warning: expecting prototype fo= r v4l2_async_notifier_add_fwnode_remote_subdev(). Prototype was for > > > > > > __v4l2_async_notifier_add_fwnode_remote_subdev() instead > > > > > > include/media/v4l2-async.h:230: warning: expecting prototype fo= r v4l2_async_notifier_add_i2c_subdev(). Prototype was for > > > > > > __v4l2_async_notifier_add_i2c_subdev() instead > > > > > >=20 > > > > > > Maybe introduced by commit > > > > > >=20 > > > > > > =C2=A0 c1cc23625062 ("media: v4l2-async: Discourage use of v4l2= _async_notifier_add_subdev") > > > > > > =C2=A0 =20 > > > > >=20 > > > > > Thanks for spotting this. Should be fixed by: > > > > >=20 > > > > > diff --git a/include/media/v4l2-async.h b/include/media/v4l2-asyn= c.h > > > > > index 6f22daa6f067..3785445282fc 100644 > > > > > --- a/include/media/v4l2-async.h > > > > > +++ b/include/media/v4l2-async.h > > > > > @@ -157,7 +157,7 @@ int __v4l2_async_notifier_add_subdev(struct v= 4l2_async_notifier *notifier, > > > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 struct v= 4l2_async_subdev *asd); > > > > > =C2=A0 > > > > > =C2=A0/** > > > > > - * v4l2_async_notifier_add_fwnode_subdev - Allocate and add a fw= node async > > > > > + * __v4l2_async_notifier_add_fwnode_subdev - Allocate and add a = fwnode async=C2=A0 =20 > > > >=20 > > > > The problem with the approach is that this no longer documents the = API that > > > > drivers are intended to use, but the intermediate one. =20 > >=20 > > Yep. the better would be to keep documenting what will be used. > > =20 >=20 > Is there a way to silence/ignore the warning for a specific function(s)? No. The warning is there for a very good reason: if you do something like: /** * delete - delete some file * * This function deletes something. */ void insert() {} /** * insert - creates a new file * * This function creates a file and inserts something. */ void delete() {} the output of it will be: $ ./scripts/kernel-doc -sphinx-version 3.0.0 silly.c .. c:function:: void insert () =09 delete some file =09 **Parameters** =09 **Description** =09 =09 This function deletes something. =09 =09 .. c:function:: void delete () =09 creates a new file =09 **Parameters** =09 **Description** =09 =09 This function creates a file and inserts something. Which is completely wrong. If someone tries to write a code using the above, the result will be just the opposite than what it was documented. Btw, I noticed several places where things like that happened, because some code were added between a Kernel-doc markup and some function. Thanks, Mauro