Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1671592

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

From Arnd Bergmann <arnd@arndb.de>
Newsgroups linux.kernel
Subject Re: [PATCH] kernel.h: fix new warnings for container_of()
Date 2017-06-21 12:20 +0200
Message-ID <tUKTU-4Pr-13@gated-at.bofh.it> (permalink)
References <tUxN1-4P5-35@gated-at.bofh.it> <tUK7w-4ih-27@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Jun 21, 2017 at 11:25 AM, Ian Abbott <abbotti@mev.co.uk> 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

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] kernel.h: fix new warnings for container_of() Arnd Bergmann <arnd@arndb.de> - 2017-06-20 22:20 +0200
  Re: [PATCH] kernel.h: fix new warnings for container_of() Kees Cook <keescook@chromium.org> - 2017-06-21 00:50 +0200
  Re: [PATCH] kernel.h: fix new warnings for container_of() Kees Cook <keescook@chromium.org> - 2017-06-21 00:50 +0200
  Re: [PATCH] kernel.h: fix new warnings for container_of() Ian Abbott <abbotti@mev.co.uk> - 2017-06-21 11:30 +0200
    Re: [PATCH] kernel.h: fix new warnings for container_of() Arnd Bergmann <arnd@arndb.de> - 2017-06-21 12:20 +0200

csiph-web