diff options
| author | Willem de Bruijn <[email protected]> | 2017-08-25 17:10:43 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-08-28 22:11:50 +0000 |
| commit | cc8737a5fe9051b7fa052b08c57ddb9f539c389a (patch) | |
| tree | 3cae87f56e582add84e57166aa2db99b9efe6aa9 /net/ipv6/tcp_ipv6.c | |
| parent | Merge branch 'gre-add-collect_md-mode-for-ERSPAN-tunnel' (diff) | |
| download | kernel-cc8737a5fe9051b7fa052b08c57ddb9f539c389a.tar.gz kernel-cc8737a5fe9051b7fa052b08c57ddb9f539c389a.zip | |
xen-netback: update ubuf_info initialization to anonymous union
The xen driver initializes struct ubuf_info fields using designated
initializers. I recently moved these fields inside a nested anonymous
struct inside an anonymous union. I had missed this use case.
This breaks compilation of xen-netback with older compilers.
>From kbuild bot with gcc-4.4.7:
drivers/net//xen-netback/interface.c: In function
'xenvif_init_queue':
>> drivers/net//xen-netback/interface.c:554: error: unknown field 'ctx' specified in initializer
>> drivers/net//xen-netback/interface.c:554: warning: missing braces around initializer
drivers/net//xen-netback/interface.c:554: warning: (near initialization for '(anonymous).<anonymous>')
>> drivers/net//xen-netback/interface.c:554: warning: initialization makes integer from pointer without a cast
>> drivers/net//xen-netback/interface.c:555: error: unknown field 'desc' specified in initializer
Add double braces around the designated initializers to match their
nested position in the struct. After this, compilation succeeds again.
Fixes: 4ab6c99d99bb ("sock: MSG_ZEROCOPY notification coalescing")
Reported-by: kbuild bot <[email protected]>
Signed-off-by: Willem de Bruijn <[email protected]>
Acked-by: Wei Liu <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
0 files changed, 0 insertions, 0 deletions
