lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ee585b21-7b75-c7fe-57fd-ad6d35986a11@infradead.org>
Date:   Tue, 21 Mar 2023 20:21:33 -0700
From:   Randy Dunlap <rdunlap@...radead.org>
To:     Stephen Rothwell <sfr@...b.auug.org.au>,
        Rob Herring <robherring2@...il.com>
Cc:     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 warning

Hi--

On 3/9/23 20:52, Randy Dunlap wrote:
> 
> 
> On 3/9/23 16:32, Stephen Rothwell wrote:
>>
>> Fix this htmldoc build warning:
>>
>> include/linux/of.h:115: warning: cannot understand function prototype: 'const struct kobj_type of_node_ktype; '
>>
>> Reported by: Stephen Rothwell <sfr@...b.auug.org.au>
>> Fixes: 39459ce717b8 ("of: dynamic: add lifecycle docbook info to node creation functions")
>> Signed-off-by: Stephen Rothwell <sfr@...b.auug.org.au>
> 

Can we get Stephen's patch merged, please?
Thanks.

> 
> Acked-by: Randy Dunlap <rdunlap@...radead.org>
> Tested-by: Randy Dunlap <rdunlap@...radead.org>
> Thanks.
> 
> After this patch, there is another warning for this function:
> 
> ../include/linux/of.h:118: warning: Excess function parameter 'phandle_name' description in 'of_node_init'
> 
>> ---
>>  include/linux/of.h | 6 +++---
>>  1 file changed, 3 insertions(+), 3 deletions(-)
>>
>> This is actually untested, but seems pretty straight forward.
>>
>> diff --git a/include/linux/of.h b/include/linux/of.h
>> index 0af611307db2..814d33f3835a 100644
>> --- a/include/linux/of.h
>> +++ b/include/linux/of.h
>> @@ -100,6 +100,9 @@ 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()
>> @@ -111,9 +114,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)
> 

-- 
~Randy

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ