[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230703085128.3d8cbf0e@canb.auug.org.au>
Date: Mon, 3 Jul 2023 08:51:28 +1000
From: Stephen Rothwell <sfr@...b.auug.org.au>
To: Rob Herring <robherring2@...il.com>
Cc: Randy Dunlap <rdunlap@...radead.org>,
Frank Rowand <frowand.list@...il.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Linux Next Mailing List <linux-next@...r.kernel.org>
Subject: Re: [PATCH] of: fix htmldocs build warnings
Hi Rob,
On Wed, 22 Mar 2023 11:50:53 -0700 Randy Dunlap <rdunlap@...radead.org> wrote:
>
> On 3/22/23 00:00, Stephen Rothwell wrote:
> > Fix these htmldoc build warnings:
> >
> > include/linux/of.h:115: warning: cannot understand function prototype: 'const struct kobj_type of_node_ktype; '
> > include/linux/of.h:118: warning: Excess function parameter 'phandle_name' description in 'of_node_init'
> >
> > Reported by: Stephen Rothwell <sfr@...b.auug.org.au>
> > Reported by: Randy Dunlap <rdunlap@...radead.org>
> > Fixes: 39459ce717b8 ("of: dynamic: add lifecycle docbook info to node creation functions")
> > Signed-off-by: Stephen Rothwell <sfr@...b.auug.org.au>
>
>
> Reviewed-by: Randy Dunlap <rdunlap@...radead.org>
>
> Thanks.
>
> > ---
> > include/linux/of.h | 7 +++----
> > 1 file changed, 3 insertions(+), 4 deletions(-)
> >
> > Replaces "[PATCH] of: fix htmldocs build warning" and additionally
> > fixes the new warning about phandle that Randy reported.
> >
> > diff --git a/include/linux/of.h b/include/linux/of.h
> > index 9b7a99499ef3..d55dab9ad728 100644
> > --- a/include/linux/of.h
> > +++ b/include/linux/of.h
> > @@ -100,10 +100,12 @@ struct of_reconfig_data {
> > struct property *old_prop;
> > };
> >
> > +extern const struct kobj_type of_node_ktype;
> > +extern const struct fwnode_operations of_fwnode_ops;
> > +
> > /**
> > * of_node_init - initialize a devicetree node
> > * @node: Pointer to device node that has been created by kzalloc()
> > - * @phandle_name: Name of property holding a phandle value
> > *
> > * On return the device_node refcount is set to one. Use of_node_put()
> > * on @node when done to free the memory allocated for it. If the node
> > @@ -111,9 +113,6 @@ struct of_reconfig_data {
> > * whether to free the memory will be done by node->release(), which is
> > * of_node_release().
> > */
> > -/* initialize a node */
> > -extern const struct kobj_type of_node_ktype;
> > -extern const struct fwnode_operations of_fwnode_ops;
> > static inline void of_node_init(struct device_node *node)
> > {
> > #if defined(CONFIG_OF_KOBJ)
I am still getting the above warnings :-(
--
Cheers,
Stephen Rothwell
Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists