diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2023-03-22 10:00:32 +0300 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2023-07-27 04:31:20 +0300 |
commit | 2582c531203d224f3d18cf582deb65383a05c038 (patch) | |
tree | 0b97008e672ad51e39884997d5ebbf4e070083d1 /include | |
parent | 0e17ac57bdb57944f5afdc506e65f1674c0f887b (diff) | |
download | linux-2582c531203d224f3d18cf582deb65383a05c038.tar.xz |
of: fix htmldocs build warnings
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@canb.auug.org.au>
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Fixes: d9194e009efe ("of: dynamic: add lifecycle docbook info to node creation functions")
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Link: https://lore.kernel.org/r/20230322180032.1badd132@canb.auug.org.au
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/of.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/linux/of.h b/include/linux/of.h index 6ecde0515677..7656cc637746 100644 --- a/include/linux/of.h +++ b/include/linux/of.h @@ -96,10 +96,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 @@ -107,9 +109,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) |