Re: [PATCH] kernel.h: fix new warnings for container_of()

From: Arnd Bergmann
Date: Wed Jun 21 2017 - 06:16:07 EST


On Wed, Jun 21, 2017 at 11:25 AM, Ian Abbott <abbotti@xxxxxxxxx> wrote:
> On 20/06/17 21:09, Arnd Bergmann wrote:
>>
>> I see new warnings with gcc-7.0.1 with the modified container_of():
>>
>> fs/f2fs/dir.c: In function 'F2FS_I':
>> fs/f2fs/f2fs.h:1122:385: note: found mismatched ssa struct pointer types:
>> 'struct f2fs_inode_info' and 'struct inode'
>
>
> Is that actually a warning, or just informational? In any case, it seems
> like a good idea to avoid it.

It's informational, not a warning. I couldn't actually figure out what the
message is trying to tell me here. Maybe the message could also be
improved?

Arnd