[PATCH] jffs, clang: avoid some warnings of used uninitialized ptr

Daniel Hellstrom daniel at gaisler.com
Fri Oct 5 07:25:19 UTC 2018


On 2018-10-05 09:12, Sebastian Huber wrote:
> On 05/10/2018 08:57, Daniel Hellstrom wrote:
>> This fixes the following test failures on LEON3 UP/SMP when
>> built using clang compiler:
>>   * fsjffs2gc01
>>   * jffs2_fserror
>>   * jffs2_fspermission
>>   * jffs2_fsrdwr
>>   * jffs2_fstime
>
> The problem is probably in the rbtree_postorder_for_each_entry_safe(). 
> Coverity Scan has also an issue with this macro. It is on my todo 
> list. Please do not check in this patch.
Ok I will not push it. Yes I was also thinking so. To use offsetof() 
macro could be an option maybe, however the node type input is not known 
to the rbtree_postorder_for_each_entry_safe() function even though it 
only used from jffs2 code.





More information about the devel mailing list