Rid W=1 warnings from OF
Subsystems (3)
cover Rid W=1 warnings from OF
This set is part of a larger effort attempting to clean-up W=1 kernel builds, which are currently overwhelmingly riddled with niggly little warnings.
Lee Jones (10):
of: device: Fix function name in header and demote kernel-doc abuse
of: dynamic: Fix incorrect parameter name and demote kernel-doc abuse
of: platform: Demote kernel-doc abuse
of: base: Fix some formatting issues and demote non-conformant
kernel-doc headers
of: property: Provide missing member description and remove excess
param
of: address: Demote non-conformant kernel-doc header
of: fdt: Demote kernel-doc abuses
of: of_net: Demote non-conforming kernel-doc header
of: overlay: Fix function name disparity
of: of_reserved_mem: Demote kernel-doc abuses
drivers/of/address.c | 2 +- drivers/of/base.c | 16 ++++++++-------- drivers/of/device.c | 6 +++--- drivers/of/dynamic.c | 6 +++--- drivers/of/fdt.c | 19 ++++++++++--------- drivers/of/of_net.c | 2 +- drivers/of/of_reserved_mem.c | 6 +++--- drivers/of/overlay.c | 2 +- drivers/of/platform.c | 2 +- drivers/of/property.c | 2 +- 10 files changed, 32 insertions(+), 31 deletions(-)
Signature · 1 line
2.27.0
PATCH 1/10 of: device: Fix function name in header and demote kernel-doc abuse
Fixes the following W=1 kernel build warning(s):
drivers/of/device.c:72: warning: expecting prototype for of_dma_configure(). Prototype was for of_dma_configure_id() instead drivers/of/device.c:263: warning: Function parameter or member 'dev' not described in 'of_device_modalias' drivers/of/device.c:263: warning: Function parameter or member 'str' not described in 'of_device_modalias' drivers/of/device.c:263: warning: Function parameter or member 'len' not described in 'of_device_modalias' drivers/of/device.c:280: warning: Function parameter or member 'dev' not described in 'of_device_uevent' drivers/of/device.c:280: warning: Function parameter or member 'env' not described in 'of_device_uevent'
--- drivers/of/device.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/of/device.c +3 -3
@@ -53,7 +53,7 @@ int of_device_add(struct platform_device *ofdev) }/** -* of_dma_configure - Setup DMA configuration +* of_dma_configure_id - Setup DMA configuration * @dev: Device to apply DMA configuration * @np: Pointer to OF node having DMA configuration * @force_dma: Whether device is to be set up by of_dma_configure() even if
@@ -256,7 +256,7 @@ int of_device_request_module(struct device *dev) }EXPORT_SYMBOL_GPL (of_device_request_module); -/** +/* * of_device_modalias - Fill buffer with newline terminated modalias string */ ssize_t of_device_modalias (struct device *dev,char *str,ssize_t len)
@@ -273,7 +273,7 @@ ssize_t of_device_modalias(struct device *dev, char *str, ssize_t len) }EXPORT_SYMBOL_GPL (of_device_modalias); -/** +/* * of_device_uevent - Display OF related uevent information */ void of_device_uevent (struct device *dev,struct kobj_uevent_env *env)
Signature · 1 line
2.27.0
Re: [PATCH 01/10] of: device: Fix function name in header and demote kernel-doc abuse
Quoted 32 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/of/device.c:72: warning: expecting prototype forof_dma_configure(). Prototype was forof_dma_configure_id()insteaddrivers/of/device.c:263: warning: Function parameter or member 'dev' not described in 'of_device_modalias'drivers/of/device.c:263: warning: Function parameter or member 'str' not described in 'of_device_modalias'drivers/of/device.c:263: warning: Function parameter or member 'len' not described in 'of_device_modalias'drivers/of/device.c:280: warning: Function parameter or member 'dev' not described in 'of_device_uevent'drivers/of/device.c:280: warning: Function parameter or member 'env' not described in 'of_device_uevent'Cc Rob Herring <[email protected]>Cc Frank Rowand <[email protected]>Signed-off-by Lee Jones <[email protected]>--- drivers/of/device.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)drivers/of/device.c +1
-1@@ -53,7 +53,7 @@ int of_device_add(struct platform_device *ofdev) }/** -* of_dma_configure - Setup DMA configuration +* of_dma_configure_id - Setup DMA configuration * @dev: Device to apply DMA configuration * @np: Pointer to OF node having DMA configuration * @force_dma: Whether device is to be set up by of_dma_configure() even if
drivers/of/device.c int of_device_request_module(struct device *dev) · line 259
Quoted 5 lines
drivers/of/device.c +1
-1@@ -256,7 +256,7 @@ int of_device_request_module(struct device *dev) }EXPORT_SYMBOL_GPL (of_device_request_module); -/** +/*
We should fix the kerneldoc on public functions. Demoting is fine on static or internal to the DT code.
Quoted 15 lines
drivers/of/device.c +1
-2* of_device_modalias - Fill buffer with newline terminated modalias string */ ssize_t of_device_modalias (struct device *dev,char *str,ssize_t len)@@ -273,7 +273,7 @@ ssize_t of_device_modalias(struct device *dev, char *str, ssize_t len) }EXPORT_SYMBOL_GPL (of_device_modalias); -/** +/* * of_device_uevent - Display OF related uevent information */ void of_device_uevent (struct device *dev,struct kobj_uevent_env *env) --2.27.0
Re: [PATCH 01/10] of: device: Fix function name in header and demote kernel-doc abuse
Quoted 36 lines · Rob Herring
Quoted 35 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/of/device.c:72: warning: expecting prototype forof_dma_configure(). Prototype was forof_dma_configure_id()insteaddrivers/of/device.c:263: warning: Function parameter or member 'dev' not described in 'of_device_modalias'drivers/of/device.c:263: warning: Function parameter or member 'str' not described in 'of_device_modalias'drivers/of/device.c:263: warning: Function parameter or member 'len' not described in 'of_device_modalias'drivers/of/device.c:280: warning: Function parameter or member 'dev' not described in 'of_device_uevent'drivers/of/device.c:280: warning: Function parameter or member 'env' not described in 'of_device_uevent'Cc Rob Herring <[email protected]>Cc Frank Rowand <[email protected]>Signed-off-by Lee Jones <[email protected]>--- drivers/of/device.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)drivers/of/device.c +1
-1@@ -53,7 +53,7 @@ int of_device_add(struct platform_device *ofdev) }/** -* of_dma_configure - Setup DMA configuration +* of_dma_configure_id - Setup DMA configuration * @dev: Device to apply DMA configuration * @np: Pointer to OF node having DMA configuration * @force_dma: Whether device is to be set up by of_dma_configure() even if @@ -256,7 +256,7 @@ int of_device_request_module(struct device *dev) }EXPORT_SYMBOL_GPL (of_device_request_module);
Quoted 5 lines
drivers/of/device.c int of_device_request_module(struct device *dev) · line 259
Quoted 2 lines
drivers/of/device.c +1
-1-/** +/* We should fix the kerneldoc on public functions. Demoting is fine on static or internal to the DT code.
This file is not referenced by Kernel-Doc.
git grep kernel-doc:: | grep drivers/of
Quoted 13 lines
Quoted 13 lines
drivers/of/device.c +1
-1* of_device_modalias - Fill buffer with newline terminated modalias string */ ssize_t of_device_modalias (struct device *dev,char *str,ssize_t len)@@ -273,7 +273,7 @@ ssize_t of_device_modalias(struct device *dev, char *str, ssize_t len) }EXPORT_SYMBOL_GPL (of_device_modalias); -/** +/* * of_device_uevent - Display OF related uevent information */ void of_device_uevent (struct device *dev,struct kobj_uevent_env *env)
Signature · 4 lines
Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog
PATCH 2/10 of: dynamic: Fix incorrect parameter name and demote kernel-doc abuse
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/of/dynamic.c:234: warning: Function parameter or member 'np' not described in 'of_attach_node' drivers/of/dynamic.c:286: warning: Function parameter or member 'np' not described in 'of_detach_node' drivers/of/dynamic.c:326: warning: Function parameter or member 'kobj' not described in 'of_node_release' drivers/of/dynamic.c:326: warning: Excess function parameter 'kref' description in 'of_node_release'
--- drivers/of/dynamic.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/of/dynamic.c +3 -3
@@ -227,7 +227,7 @@ static void __of_attach_node(struct device_node *np)of_node_clear_flag (np,OF_DETACHED ); } -/** +/* * of_attach_node() - Plug a device node into the tree and global list. */ int of_attach_node (struct device_node *np)
@@ -279,7 +279,7 @@ void __of_detach_node(struct device_node *np)__of_phandle_cache_inv_entry (np->phandle); } -/** +/* * of_detach_node() - "Unplug" a node from the device tree. */ int of_detach_node (struct device_node *np)
@@ -318,7 +318,7 @@ static void property_list_free(struct property *prop_list)/** * of_node_release() - release a dynamically allocated node -* @kref: kref element of the node to be released +* @kobj: kernel object of the node to be released * * In of_node_put() this function is passed to kref_put() as the destructor. */
Signature · 1 line
2.27.0
PATCH 3/10 of: platform: Demote kernel-doc abuse
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/of/platform.c:298: warning: Function parameter or member 'lookup' not described in 'of_dev_lookup' drivers/of/platform.c:298: warning: Function parameter or member 'np' not described in 'of_dev_lookup'
--- drivers/of/platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/of/platform.c +1 -1
@@ -290,7 +290,7 @@ static struct amba_device *of_amba_device_create(struct device_node *node, }#endif /* CONFIG_ARM_AMBA */ -/** +/* * of_dev_lookup() - Given a device node, lookup the preferred Linux name */ static const struct of_dev_auxdata *of_dev_lookup(const struct of_dev_auxdata *lookup,
Signature · 1 line
2.27.0
PATCH 4/10 of: base: Fix some formatting issues and demote non-conformant kernel-doc headers
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/of/base.c:315: warning: Function parameter or member 'cpun' not described in '__of_find_n_match_cpu_property' drivers/of/base.c:315: warning: Function parameter or member 'prop_name' not described in '__of_find_n_match_cpu_property' drivers/of/base.c:315: warning: Function parameter or member 'cpu' not described in '__of_find_n_match_cpu_property' drivers/of/base.c:315: warning: Function parameter or member 'thread' not described in '__of_find_n_match_cpu_property' drivers/of/base.c:315: warning: expecting prototype for property holds the physical id of the(). Prototype was for __of_find_n_match_cpu_property() instead drivers/of/base.c:1139: warning: Function parameter or member 'match' not described in 'of_find_matching_node_and_match' drivers/of/base.c:1779: warning: Function parameter or member 'np' not described in '__of_add_property'
drivers/of/base.c:1779: warning: Function parameter or member 'prop' not described in '__of_add_property'
drivers/of/base.c:1800: warning: Function parameter or member 'np' not described in 'of_add_property'
drivers/of/base.c:1800: warning: Function parameter or member 'prop' not described in 'of_add_property'
drivers/of/base.c:1849: warning: Function parameter or member 'np' not described in 'of_remove_property'
drivers/of/base.c:1849: warning: Function parameter or member 'prop' not described in 'of_remove_property' drivers/of/base.c:2137: warning: Function parameter or member 'dn' not described in 'of_console_check'
drivers/of/base.c:2137: warning: Function parameter or member 'name' not described in 'of_console_check'
drivers/of/base.c:2137: warning: Function parameter or member 'index' not described in 'of_console_check'
--- drivers/of/base.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
drivers/of/base.c +8 -8
@@ -305,7 +305,7 @@ bool __weak arch_match_cpu_phys_id(int cpu, u64 phys_id)return (u32 )phys_id == cpu; } -/** +/* * Checks if the given "prop_name" property holds the physical id of the * core/thread corresponding to the logical cpu 'cpu'. If 'thread' is not * NULL, local thread number within the core is returned in it.
@@ -1128,7 +1128,7 @@ EXPORT_SYMBOL(of_match_node);* will; typically, you pass what the previous call * returned. of_node_put() will be called on it * @matches: array of of device match structures to search in -* @match Updated to point at the matches entry which matched +* @match: Updated to point at the matches entry which matched * * Returns a node pointer with refcount incremented, use * of_node_put() on it when done.
@@ -1772,7 +1772,7 @@ int of_count_phandle_with_args(const struct device_node *np, const char *list_na }EXPORT_SYMBOL (of_count_phandle_with_args); -/** +/* * __of_add_property - Add a property to a node without lock operations */ int __of_add_property (struct device_node *np,struct property *prop)
@@ -1793,7 +1793,7 @@ int __of_add_property(struct device_node *np, struct property *prop)return 0 ; } -/** +/* * of_add_property - Add a property to a node */ int of_add_property (struct device_node *np,struct property *prop)
@@ -1837,7 +1837,7 @@ int __of_remove_property(struct device_node *np, struct property *prop)return 0 ; } -/** +/* * of_remove_property - Remove a property from a node. * * Note that we don't actually remove it, since we have given out
@@ -2125,9 +2125,9 @@ EXPORT_SYMBOL_GPL(of_alias_get_highest_id);/** * of_console_check() - Test and setup console for DT setup -* @dn - Pointer to device node -* @name - Name to use for preferred console without index. ex. "ttyS" -* @index - Index to use for preferred console. +* @dn: Pointer to device node +* @name: Name to use for preferred console without index. ex. "ttyS" +* @index: Index to use for preferred console. * * Check if the given device node matches the stdout-path property in the * /chosen node. If it does then register it as the preferred console and return
Signature · 1 line
2.27.0
PATCH 5/10 of: property: Provide missing member description and remove excess param
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/of/property.c:1239: warning: Function parameter or member 'optional' not described in 'supplier_bindings' drivers/of/property.c:1366: warning: Excess function parameter 'dev' description in 'of_link_property'
--- drivers/of/property.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/of/property.c +1 -1
@@ -1225,6 +1225,7 @@ static struct device_node *parse_##fname(struct device_node *np, \* @parse_prop.prop_name: Name of property holding a phandle value * @parse_prop.index: For properties holding a list of phandles, this is the * index into the list +* @optional: Describes whether a supplier is mandatory or not * * Returns: * parse_prop() return values are
@@ -1344,7 +1345,6 @@ static const struct supplier_bindings of_supplier_bindings[] = {/** * of_link_property - Create device links to suppliers listed in a property -* @dev: Consumer device * @con_np: The consumer device tree node which contains the property * @prop_name: Name of property to be parsed *
Signature · 1 line
2.27.0
PATCH 6/10 of: address: Demote non-conformant kernel-doc header
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/of/address.c:868: warning: Function parameter or member 'dev' not described in 'of_address_to_resource' drivers/of/address.c:868: warning: Function parameter or member 'index' not described in 'of_address_to_resource' drivers/of/address.c:868: warning: Function parameter or member 'r' not described in 'of_address_to_resource'
--- drivers/of/address.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/of/address.c +1 -1
@@ -855,7 +855,7 @@ static int __of_address_to_resource(struct device_node *dev,return 0 ; } -/** +/* * of_address_to_resource - Translate device tree address and return as resource * * Note that if your address is a PIO address, the conversion will fail if
Signature · 1 line
2.27.0
PATCH 7/10 of: fdt: Demote kernel-doc abuses
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/of/fdt.c:478: warning: Function parameter or member 'node' not described in '__reserved_mem_reserve_reg' drivers/of/fdt.c:478: warning: Function parameter or member 'uname' not described in '__reserved_mem_reserve_reg' drivers/of/fdt.c:525: warning: Function parameter or member 'node' not described in '__reserved_mem_check_root' drivers/of/fdt.c:547: warning: Function parameter or member 'node' not described in '__fdt_scan_reserved_mem' drivers/of/fdt.c:547: warning: Function parameter or member 'uname' not described in '__fdt_scan_reserved_mem' drivers/of/fdt.c:547: warning: Function parameter or member 'depth' not described in '__fdt_scan_reserved_mem' drivers/of/fdt.c:547: warning: Function parameter or member 'data' not described in '__fdt_scan_reserved_mem' drivers/of/fdt.c:547: warning: expecting prototype for fdt_scan_reserved_mem(). Prototype was for __fdt_scan_reserved_mem() instead drivers/of/fdt.c:663: warning: Function parameter or member 'parent' not described in 'of_scan_flat_dt_subnodes' drivers/of/fdt.c:708: warning: Function parameter or member 'node' not described in 'of_get_flat_dt_prop' drivers/of/fdt.c:708: warning: Function parameter or member 'name' not described in 'of_get_flat_dt_prop' drivers/of/fdt.c:708: warning: Function parameter or member 'size' not described in 'of_get_flat_dt_prop' drivers/of/fdt.c:758: warning: Function parameter or member 'node' not described in 'of_flat_dt_match' drivers/of/fdt.c:758: warning: Function parameter or member 'compat' not described in 'of_flat_dt_match' drivers/of/fdt.c:778: warning: Function parameter or member 'node' not described in 'of_get_flat_dt_phandle' drivers/of/fdt.c:778: warning: expecting prototype for of_get_flat_dt_prop(). Prototype was for of_get_flat_dt_phandle() instead drivers/of/fdt.c:955: warning: Function parameter or member 'node' not described in 'early_init_dt_scan_root' drivers/of/fdt.c:955: warning: Function parameter or member 'uname' not described in 'early_init_dt_scan_root' drivers/of/fdt.c:955: warning: Function parameter or member 'depth' not described in 'early_init_dt_scan_root' drivers/of/fdt.c:955: warning: Function parameter or member 'data' not described in 'early_init_dt_scan_root' drivers/of/fdt.c:991: warning: Function parameter or member 'node' not described in 'early_init_dt_scan_memory' drivers/of/fdt.c:991: warning: Function parameter or member 'uname' not described in 'early_init_dt_scan_memory' drivers/of/fdt.c:991: warning: Function parameter or member 'depth' not described in 'early_init_dt_scan_memory' drivers/of/fdt.c:991: warning: Function parameter or member 'data' not described in 'early_init_dt_scan_memory'
--- drivers/of/fdt.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-)
drivers/of/fdt.c +10 -9
@@ -470,7 +470,7 @@ void *initial_boot_params __ro_after_init;static u32 of_fdt_crc32; -/** +/* * __reserved_mem_reserve_reg() - reserve all memory described in 'reg' property */ static int __init __reserved_mem_reserve_reg(unsigned long node,
@@ -516,7 +516,7 @@ static int __init __reserved_mem_reserve_reg(unsigned long node,return 0 ; } -/** +/* * __reserved_mem_check_root() - check if #size-cells, #address-cells provided * in /reserved-memory matches the values supported by the current implementation, * also check if ranges property has been provided
@@ -539,7 +539,7 @@ static int __init __reserved_mem_check_root(unsigned long node)return 0 ; } -/** +/* * fdt_scan_reserved_mem() - scan a single FDT node for reserved memory */ static int __init __fdt_scan_reserved_mem(unsigned long node, const char *uname,
@@ -650,6 +650,7 @@ int __init of_scan_flat_dt(int (*it)(unsigned long node,/** * of_scan_flat_dt_subnodes - scan sub-nodes of a node call callback on each. +* @parent: parent node * @it: callback function * @data: context data pointer *
@@ -689,7 +690,7 @@ int __init of_get_flat_dt_subnode_by_name(unsigned long node, const char *uname)return fdt_subnode_offset (initial_boot_params, node, uname); } -/** +/* * of_get_flat_dt_root - find the root node in the flat blob */ unsigned long __init of_get_flat_dt_root (void )
@@ -697,7 +698,7 @@ unsigned long __init of_get_flat_dt_root(void)return 0 ; } -/** +/* * of_get_flat_dt_prop - Given a node in the flat blob, return the property ptr * * This function can be used within scan_flattened_dt callback to get
@@ -751,7 +752,7 @@ int __init of_flat_dt_is_compatible(unsigned long node, const char *compat)return of_fdt_is_compatible (initial_boot_params, node, compat); } -/** +/* * of_flat_dt_match - Return true if node matches a list of compatible values */ static int __init of_flat_dt_match (unsigned long node,const char *const *compat)
@@ -771,7 +772,7 @@ static int __init of_flat_dt_match(unsigned long node, const char *const *compatreturn score; } -/** +/* * of_get_flat_dt_prop - Given a node in the flat blob, return the phandle */ uint32_t __init of_get_flat_dt_phandle (unsigned long node)
@@ -947,7 +948,7 @@ int __init early_init_dt_scan_chosen_stdout(void) }#endif -/** +/* * early_init_dt_scan_root - fetch the top level address and size cells */ int __init early_init_dt_scan_root(unsigned long node, const char *uname,
@@ -983,7 +984,7 @@ u64 __init dt_mem_next_cell(int s, const __be32 **cellp)return of_read_number (p, s); } -/** +/* * early_init_dt_scan_memory - Look for and parse memory nodes */ int __init early_init_dt_scan_memory(unsigned long node, const char *uname,
Signature · 1 line
2.27.0
Re: [PATCH 07/10] of: fdt: Demote kernel-doc abuses
Quoted 60 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/of/fdt.c:478: warning: Function parameter or member 'node' not described in '__reserved_mem_reserve_reg'drivers/of/fdt.c:478: warning: Function parameter or member 'uname' not described in '__reserved_mem_reserve_reg'drivers/of/fdt.c:525: warning: Function parameter or member 'node' not described in '__reserved_mem_check_root'drivers/of/fdt.c:547: warning: Function parameter or member 'node' not described in '__fdt_scan_reserved_mem'drivers/of/fdt.c:547: warning: Function parameter or member 'uname' not described in '__fdt_scan_reserved_mem'drivers/of/fdt.c:547: warning: Function parameter or member 'depth' not described in '__fdt_scan_reserved_mem'drivers/of/fdt.c:547: warning: Function parameter or member 'data' not described in '__fdt_scan_reserved_mem'drivers/of/fdt.c:547: warning: expecting prototype forfdt_scan_reserved_mem(). Prototype was for__fdt_scan_reserved_mem()insteaddrivers/of/fdt.c:663: warning: Function parameter or member 'parent' not described in 'of_scan_flat_dt_subnodes'drivers/of/fdt.c:708: warning: Function parameter or member 'node' not described in 'of_get_flat_dt_prop'drivers/of/fdt.c:708: warning: Function parameter or member 'name' not described in 'of_get_flat_dt_prop'drivers/of/fdt.c:708: warning: Function parameter or member 'size' not described in 'of_get_flat_dt_prop'drivers/of/fdt.c:758: warning: Function parameter or member 'node' not described in 'of_flat_dt_match'drivers/of/fdt.c:758: warning: Function parameter or member 'compat' not described in 'of_flat_dt_match'drivers/of/fdt.c:778: warning: Function parameter or member 'node' not described in 'of_get_flat_dt_phandle'drivers/of/fdt.c:778: warning: expecting prototype forof_get_flat_dt_prop(). Prototype was forof_get_flat_dt_phandle()insteaddrivers/of/fdt.c:955: warning: Function parameter or member 'node' not described in 'early_init_dt_scan_root'drivers/of/fdt.c:955: warning: Function parameter or member 'uname' not described in 'early_init_dt_scan_root'drivers/of/fdt.c:955: warning: Function parameter or member 'depth' not described in 'early_init_dt_scan_root'drivers/of/fdt.c:955: warning: Function parameter or member 'data' not described in 'early_init_dt_scan_root'drivers/of/fdt.c:991: warning: Function parameter or member 'node' not described in 'early_init_dt_scan_memory'drivers/of/fdt.c:991: warning: Function parameter or member 'uname' not described in 'early_init_dt_scan_memory'drivers/of/fdt.c:991: warning: Function parameter or member 'depth' not described in 'early_init_dt_scan_memory'drivers/of/fdt.c:991: warning: Function parameter or member 'data' not described in 'early_init_dt_scan_memory'Cc Rob Herring <[email protected]>Cc Frank Rowand <[email protected]>Signed-off-by Lee Jones <[email protected]>--- drivers/of/fdt.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-)drivers/of/fdt.c +2
-2@@ -470,7 +470,7 @@ void *initial_boot_params __ro_after_init;static u32 of_fdt_crc32; -/** +/* * __reserved_mem_reserve_reg() - reserve all memory described in 'reg' property */ static int __init __reserved_mem_reserve_reg(unsigned long node,@@ -516,7 +516,7 @@ static int __init __reserved_mem_reserve_reg(unsigned long node,return 0 ; } -/** +/* * __reserved_mem_check_root() - check if #size-cells, #address-cells provided * in /reserved-memory matches the values supported by the current implementation, * also check if ranges property has been provided
drivers/of/fdt.c static int __init __reserved_mem_check_root(unsigned long node) · line 543
Quoted 6 lines
drivers/of/fdt.c +1
-1@@ -539,7 +539,7 @@ static int __init __reserved_mem_check_root(unsigned long node)return 0 ; } -/** +/* * fdt_scan_reserved_mem() - scan a single FDT node for reserved memory
This is still wrong. Should be __fdt_scan_reserved_mem.
Quoted 38 lines
drivers/of/fdt.c +4
-3*/ static int __init __fdt_scan_reserved_mem(unsigned long node, const char *uname,@@ -650,6 +650,7 @@ int __init of_scan_flat_dt(int (*it)(unsigned long node,/** * of_scan_flat_dt_subnodes - scan sub-nodes of a node call callback on each. +* @parent: parent node * @it: callback function * @data: context data pointer * @@ -689,7 +690,7 @@ int __init of_get_flat_dt_subnode_by_name(unsigned long node, const char *uname)return fdt_subnode_offset (initial_boot_params, node, uname); } -/** +/* * of_get_flat_dt_root - find the root node in the flat blob */ unsigned long __init of_get_flat_dt_root (void )@@ -697,7 +698,7 @@ unsigned long __init of_get_flat_dt_root(void)return 0 ; } -/** +/* * of_get_flat_dt_prop - Given a node in the flat blob, return the property ptr * * This function can be used within scan_flattened_dt callback to get @@ -751,7 +752,7 @@ int __init of_flat_dt_is_compatible(unsigned long node, const char *compat)return of_fdt_is_compatible (initial_boot_params, node, compat); } -/** +/* * of_flat_dt_match - Return true if node matches a list of compatible values */ static int __init of_flat_dt_match (unsigned long node,const char *const *compat)
drivers/of/fdt.c static int __init of_flat_dt_match(unsigned long node, const char *const *compat · line 776
Quoted 6 lines
drivers/of/fdt.c +1
-1@@ -771,7 +772,7 @@ static int __init of_flat_dt_match(unsigned long node, const char *const *compatreturn score; } -/** +/* * of_get_flat_dt_prop - Given a node in the flat blob, return the phandle
This one too.
Quoted 23 lines
drivers/of/fdt.c +2
-3*/ uint32_t __init of_get_flat_dt_phandle (unsigned long node)@@ -947,7 +948,7 @@ int __init early_init_dt_scan_chosen_stdout(void) }#endif -/** +/* * early_init_dt_scan_root - fetch the top level address and size cells */ int __init early_init_dt_scan_root(unsigned long node, const char *uname,@@ -983,7 +984,7 @@ u64 __init dt_mem_next_cell(int s, const __be32 **cellp)return of_read_number (p, s); } -/** +/* * early_init_dt_scan_memory - Look for and parse memory nodes */ int __init early_init_dt_scan_memory(unsigned long node, const char *uname, --2.27.0
Re: [PATCH 07/10] of: fdt: Demote kernel-doc abuses
Quoted 64 lines · Rob Herring
Quoted 63 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/of/fdt.c:478: warning: Function parameter or member 'node' not described in '__reserved_mem_reserve_reg'drivers/of/fdt.c:478: warning: Function parameter or member 'uname' not described in '__reserved_mem_reserve_reg'drivers/of/fdt.c:525: warning: Function parameter or member 'node' not described in '__reserved_mem_check_root'drivers/of/fdt.c:547: warning: Function parameter or member 'node' not described in '__fdt_scan_reserved_mem'drivers/of/fdt.c:547: warning: Function parameter or member 'uname' not described in '__fdt_scan_reserved_mem'drivers/of/fdt.c:547: warning: Function parameter or member 'depth' not described in '__fdt_scan_reserved_mem'drivers/of/fdt.c:547: warning: Function parameter or member 'data' not described in '__fdt_scan_reserved_mem'drivers/of/fdt.c:547: warning: expecting prototype forfdt_scan_reserved_mem(). Prototype was for__fdt_scan_reserved_mem()insteaddrivers/of/fdt.c:663: warning: Function parameter or member 'parent' not described in 'of_scan_flat_dt_subnodes'drivers/of/fdt.c:708: warning: Function parameter or member 'node' not described in 'of_get_flat_dt_prop'drivers/of/fdt.c:708: warning: Function parameter or member 'name' not described in 'of_get_flat_dt_prop'drivers/of/fdt.c:708: warning: Function parameter or member 'size' not described in 'of_get_flat_dt_prop'drivers/of/fdt.c:758: warning: Function parameter or member 'node' not described in 'of_flat_dt_match'drivers/of/fdt.c:758: warning: Function parameter or member 'compat' not described in 'of_flat_dt_match'drivers/of/fdt.c:778: warning: Function parameter or member 'node' not described in 'of_get_flat_dt_phandle'drivers/of/fdt.c:778: warning: expecting prototype forof_get_flat_dt_prop(). Prototype was forof_get_flat_dt_phandle()insteaddrivers/of/fdt.c:955: warning: Function parameter or member 'node' not described in 'early_init_dt_scan_root'drivers/of/fdt.c:955: warning: Function parameter or member 'uname' not described in 'early_init_dt_scan_root'drivers/of/fdt.c:955: warning: Function parameter or member 'depth' not described in 'early_init_dt_scan_root'drivers/of/fdt.c:955: warning: Function parameter or member 'data' not described in 'early_init_dt_scan_root'drivers/of/fdt.c:991: warning: Function parameter or member 'node' not described in 'early_init_dt_scan_memory'drivers/of/fdt.c:991: warning: Function parameter or member 'uname' not described in 'early_init_dt_scan_memory'drivers/of/fdt.c:991: warning: Function parameter or member 'depth' not described in 'early_init_dt_scan_memory'drivers/of/fdt.c:991: warning: Function parameter or member 'data' not described in 'early_init_dt_scan_memory'Cc Rob Herring <[email protected]>Cc Frank Rowand <[email protected]>Signed-off-by Lee Jones <[email protected]>--- drivers/of/fdt.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-)drivers/of/fdt.c +2
-2@@ -470,7 +470,7 @@ void *initial_boot_params __ro_after_init;static u32 of_fdt_crc32; -/** +/* * __reserved_mem_reserve_reg() - reserve all memory described in 'reg' property */ static int __init __reserved_mem_reserve_reg(unsigned long node,@@ -516,7 +516,7 @@ static int __init __reserved_mem_reserve_reg(unsigned long node,return 0 ; } -/** +/* * __reserved_mem_check_root() - check if #size-cells, #address-cells provided * in /reserved-memory matches the values supported by the current implementation, * also check if ranges property has been provided @@ -539,7 +539,7 @@ static int __init __reserved_mem_check_root(unsigned long node)return 0 ; }
Quoted 5 lines
drivers/of/fdt.c static int __init __reserved_mem_check_root(unsigned long node) · line 543
Quoted 3 lines
drivers/of/fdt.c +1
-1-/** +/* * fdt_scan_reserved_mem() - scan a single FDT node for reserved memory This is still wrong. Should be
__fdt_scan_reserved_mem.
Ah, the warning went away because I demoted it.
Will fix. The others too.
Signature · 4 lines
Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog
PATCH 8/10 of: of_net: Demote non-conforming kernel-doc header
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/of/of_net.c:104: warning: Function parameter or member 'np' not described in 'of_get_mac_address' drivers/of/of_net.c:104: warning: expecting prototype for mac(). Prototype was for of_get_mac_address() instead
--- drivers/of/of_net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/of/of_net.c +1 -1
@@ -78,7 +78,7 @@ static const void *of_get_mac_addr_nvmem(struct device_node *np)return mac; } -/** +/* * Search the device tree for the best MAC address to use. 'mac-address' is * checked first, because that is supposed to contain to "most recent" MAC * address. If that isn't set, then 'local-mac-address' is checked next,
Signature · 1 line
2.27.0
Re: [PATCH 08/10] of: of_net: Demote non-conforming kernel-doc header
Quoted 22 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/of/of_net.c:104: warning: Function parameter or member 'np' not described in 'of_get_mac_address'drivers/of/of_net.c:104: warning: expecting prototype formac(). Prototype was forof_get_mac_address()insteadCc Andrew Lunn <[email protected]>Cc Heiner Kallweit <[email protected]>Cc Russell King <[email protected]>Cc Rob Herring <[email protected]>Cc Frank Rowand <[email protected]>Signed-off-by Lee Jones <[email protected]>--- drivers/of/of_net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/of/of_net.c +0
-0
drivers/of/of_net.c static const void *of_get_mac_addr_nvmem(struct device_node *np) · line 84
Quoted 8 lines
drivers/of/of_net.c +1
-1@@ -78,7 +78,7 @@ static const void *of_get_mac_addr_nvmem(struct device_node *np)return mac; } -/** +/* * Search the device tree for the best MAC address to use. 'mac-address' is * checked first, because that is supposed to contain to "most recent" MAC * address. If that isn't set, then 'local-mac-address' is checked next,
Hi Lee
of_get_mac_address() is a pretty important API function. So it would be better to add the missing header to make this valid kdoc.
/**
* of_get_mac_address - Get MAC address from device tree
* @np: Pointer to the device_node of the interface *
Andrew
Re: [PATCH 08/10] of: of_net: Demote non-conforming kernel-doc header
Quoted 34 lines · Andrew Lunn
Quoted 22 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/of/of_net.c:104: warning: Function parameter or member 'np' not described in 'of_get_mac_address'drivers/of/of_net.c:104: warning: expecting prototype formac(). Prototype was forof_get_mac_address()insteadCc Andrew Lunn <[email protected]>Cc Heiner Kallweit <[email protected]>Cc Russell King <[email protected]>Cc Rob Herring <[email protected]>Cc Frank Rowand <[email protected]>Signed-off-by Lee Jones <[email protected]>--- drivers/of/of_net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/of/of_net.c +0
-0drivers/of/of_net.c static const void *of_get_mac_addr_nvmem(struct device_node *np) · line 84
Quoted 8 lines
drivers/of/of_net.c +1
-1@@ -78,7 +78,7 @@ static const void *of_get_mac_addr_nvmem(struct device_node *np)return mac; } -/** +/* * Search the device tree for the best MAC address to use. 'mac-address' is * checked first, because that is supposed to contain to "most recent" MAC * address. If that isn't set, then 'local-mac-address' is checked next, Hi Lee
Quoted 2 lines
of_get_mac_address()is a pretty important API function. So it would be better to add the missing header to make this valid kdoc.
Pretty important, yes. Referenced/documented, no. :)
git grep kernel-doc:: | grep drivers/of
Quoted 6 lines
/**
*of_get_mac_address- Get MAC address from device tree
* @np: Pointer to thedevice_nodeof the interface *Andrew
Signature · 4 lines
Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog
PATCH 9/10 of: overlay: Fix function name disparity
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/of/overlay.c:147: warning: expecting prototype for of_overlay_notifier_register(). Prototype was for of_overlay_notifier_unregister() instead
--- drivers/of/overlay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/of/overlay.c +1 -1
@@ -140,7 +140,7 @@ int of_overlay_notifier_register(struct notifier_block *nb)EXPORT_SYMBOL_GPL (of_overlay_notifier_register);/** -* of_overlay_notifier_register() - Unregister notifier for overlay operations +* of_overlay_notifier_unregister() - Unregister notifier for overlay operations * @nb: Notifier block to unregister */ int of_overlay_notifier_unregister (struct notifier_block *nb)
Signature · 1 line
2.27.0
PATCH 10/10 of: of_reserved_mem: Demote kernel-doc abuses
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/of/of_reserved_mem.c:53: warning: Function parameter or member 'node' not described in 'fdt_reserved_mem_save_node' drivers/of/of_reserved_mem.c:53: warning: Function parameter or member 'uname' not described in 'fdt_reserved_mem_save_node' drivers/of/of_reserved_mem.c:53: warning: Function parameter or member 'base' not described in 'fdt_reserved_mem_save_node' drivers/of/of_reserved_mem.c:53: warning: Function parameter or member 'size' not described in 'fdt_reserved_mem_save_node' drivers/of/of_reserved_mem.c:76: warning: Function parameter or member 'node' not described in '__reserved_mem_alloc_size' drivers/of/of_reserved_mem.c:76: warning: Function parameter or member 'uname' not described in '__reserved_mem_alloc_size' drivers/of/of_reserved_mem.c:76: warning: Function parameter or member 'res_base' not described in '__reserved_mem_alloc_size' drivers/of/of_reserved_mem.c:76: warning: Function parameter or member 'res_size' not described in '__reserved_mem_alloc_size' drivers/of/of_reserved_mem.c:171: warning: Function parameter or member 'rmem' not described in '__reserved_mem_init_node'
--- drivers/of/of_reserved_mem.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/of/of_reserved_mem.c +3 -3
@@ -45,7 +45,7 @@ static int __init early_init_dt_alloc_reserved_memory_arch(phys_addr_t size,return memblock_reserve (base, size); } -/** +/* * fdt_reserved_mem_save_node() - save fdt node for second pass initialization */ void __init fdt_reserved_mem_save_node(unsigned long node, const char *uname,
@@ -67,7 +67,7 @@ void __init fdt_reserved_mem_save_node(unsigned long node, const char *uname,return ; } -/** +/* * __reserved_mem_alloc_size() - allocate reserved memory described by * 'size', 'alignment' and 'alloc-ranges' properties. */
@@ -164,7 +164,7 @@ static int __init __reserved_mem_alloc_size(unsigned long node, static const struct of_device_id __rmem_of_table_sentinel__used __section ("__reservedmem_of_table_end" ); -/** +/* * __reserved_mem_init_node() - call region specific reserved memory init code */ static int __init __reserved_mem_init_node (struct reserved_mem *rmem)
Signature · 1 line
2.27.0