Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4225361pxb; Mon, 8 Feb 2021 10:49:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJyHvKa4nMGLSzWJb45BHri2ospBTyrZXNaFYCmidZUe9DqKZw03JBwn9oyUFzi4ZhT2xG9r X-Received: by 2002:a17:906:a147:: with SMTP id bu7mr18401076ejb.305.1612810142340; Mon, 08 Feb 2021 10:49:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612810142; cv=none; d=google.com; s=arc-20160816; b=NEZ14iuHg5tr6NjSG6Z55hlfmfbXDK5k5mJ+U7CnNQMOwxYTIOdY8GLjK5vAtb8qsf ln38LBgB/WraD70vKiNM3oI0137pfagkUCEKPQI3FZpQtUd8kP03IsEiSIEj0tvlqNq+ 9V9KZdg/EhYM+d0iz9Fteszry9ZODL9echbzkXMxPDXk7F75MEYU6qXQTphvIZphs3NC 4uAe6NImWUc5jjtZJ8RxLIAIGTKkPQFLJKQKA5HypMduAtPJTdSkownwOt4bBbFDTW+r nQ0Gighgyi6hlirlF8IRXEGNW+QBcv0QDpSs58OdBO3TQVSSMJg8yethrrnJB9JoxK9D qP8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=igTcitTyiuskkEvlinwJppdsPdcrPIEVQ9fjtGIeFxY=; b=kdW4Hmkhze/blc2AgXnR/13Jefy9gDvlEEhhqnfRqQgwu7GM6+VzIrM87F2XKKmz4D BkyMEJ1E3mLlzdUS+bdGB8nF6witcETw1tCBkgg7iV0ZZgZdNtG6EXV1AO9WKsGmtoOO 0sA7ecZZfh/yqhF0b2n7395Jf+fEBfmgHMevW2BBx9dOFwQjWAugfaHanyvPXwB78RAC q/dvXawsdax0sriKqc4iIl/fUw2YP5gobX7ErFOvWu4cKEIW0TmWTu6XLbWk4qa3Ao5K Ew0yVVqZA1aopkVte5bc3+buZfv2I17s4X0mc1Ry3/0AEAGWSHm8NkLaaqmfVm434Z/5 1A8Q== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h18si1902912eds.493.2021.02.08.10.48.38; Mon, 08 Feb 2021 10:49:02 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235812AbhBHSpx (ORCPT + 99 others); Mon, 8 Feb 2021 13:45:53 -0500 Received: from mga04.intel.com ([192.55.52.120]:11465 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234678AbhBHQsQ (ORCPT ); Mon, 8 Feb 2021 11:48:16 -0500 IronPort-SDR: qsdeONBKkLpGO9/dJeHGFeoK/qfvFWn58G21PHAE9OTHbWo2C7XnxCNNJ0wV8VjORcX/PuanO3 OD2mHDpW9oWA== X-IronPort-AV: E=McAfee;i="6000,8403,9889"; a="179181609" X-IronPort-AV: E=Sophos;i="5.81,162,1610438400"; d="scan'208";a="179181609" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2021 08:46:22 -0800 IronPort-SDR: B+Ir28btZSuTbBOqiRenJDSRItnbw/1bi4Wk6J9ruur0hyhbS9VCHB0mlMsKA4/7a+xYIjjnHs 8cZ70rZubCvA== X-IronPort-AV: E=Sophos;i="5.81,162,1610438400"; d="scan'208";a="509529035" Received: from paasikivi.fi.intel.com ([10.237.72.42]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2021 08:46:20 -0800 Received: by paasikivi.fi.intel.com (Postfix, from userid 1000) id 4C04C2082C; Mon, 8 Feb 2021 18:46:18 +0200 (EET) Date: Mon, 8 Feb 2021 18:46:18 +0200 From: Sakari Ailus To: Ezequiel Garcia Cc: Stephen Rothwell , Mauro Carvalho Chehab , Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: build warning after merge of the v4l-dvb tree Message-ID: <20210208164618.GY32460@paasikivi.fi.intel.com> References: <20210208233716.16d962ad@canb.auug.org.au> <56cd99bbf526b43507579b5775bac5f885319866.camel@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <56cd99bbf526b43507579b5775bac5f885319866.camel@collabora.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ezequiel, Thanks for addressing this. On Mon, Feb 08, 2021 at 01:42:21PM -0300, Ezequiel Garcia wrote: > Hi Stephen, > > On Mon, 2021-02-08 at 23:37 +1100, Stephen Rothwell wrote: > > Hi all, > > > > After merging the v4l-dvb tree, today's linux-next build (htmldocs) > > produced this warning: > > > > include/media/v4l2-async.h:178: warning: expecting prototype for 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 for 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 for v4l2_async_notifier_add_i2c_subdev(). Prototype was for > > __v4l2_async_notifier_add_i2c_subdev() instead > > > > Maybe introduced by commit > > > > ? c1cc23625062 ("media: v4l2-async: Discourage use of v4l2_async_notifier_add_subdev") > > > > Thanks for spotting this. Should be fixed by: > > diff --git a/include/media/v4l2-async.h b/include/media/v4l2-async.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 v4l2_async_notifier *notifier, > struct v4l2_async_subdev *asd); > > /** > - * v4l2_async_notifier_add_fwnode_subdev - Allocate and add a fwnode async > + * __v4l2_async_notifier_add_fwnode_subdev - Allocate and add a fwnode async The problem with the approach is that this no longer documents the API that drivers are intended to use, but the intermediate one. I guess fixing this properly could require changes to kerneldoc so I have no objections to the approach. > * subdev to the notifier's master asd_list. > * > * @notifier: pointer to &struct v4l2_async_notifier > @@ -181,7 +181,7 @@ __v4l2_async_notifier_add_fwnode_subdev(struct v4l2_async_notifier *notifier, > sizeof(__type))) > > /** > - * v4l2_async_notifier_add_fwnode_remote_subdev - Allocate and add a fwnode > + * __v4l2_async_notifier_add_fwnode_remote_subdev - Allocate and add a fwnode > * remote async subdev to the > * notifier's master asd_list. > * > @@ -210,7 +210,7 @@ __v4l2_async_notifier_add_fwnode_remote_subdev(struct v4l2_async_notifier *notif > sizeof(__type))) > > /** > - * v4l2_async_notifier_add_i2c_subdev - Allocate and add an i2c async > + * __v4l2_async_notifier_add_i2c_subdev - Allocate and add an i2c async > * subdev to the notifier's master asd_list. > * > * @notifier: pointer to &struct v4l2_async_notifier > @@ -228,7 +228,7 @@ struct v4l2_async_subdev * > __v4l2_async_notifier_add_i2c_subdev(struct v4l2_async_notifier *notifier, > int adapter_id, unsigned short address, > unsigned int asd_struct_size); > -#define v4l2_async_notifier_add_i2c_subdev(__notifier, __adap, __addr, __type) \ > +#define v4l2_async_notifier_i2c(__notifier, __adap, __addr, __type) \ I guess this change was not intentional? > ((__type *)__v4l2_async_notifier_add_i2c_subdev(__notifier, __adap, __addr, \ > sizeof(__type))) > > -- Kind regards, Sakari Ailus