Re: [PATCH net-next v2] geneve: Use empty braces for addr6 initializer

From: Stefano Brivio
Date: Tue Nov 13 2018 - 04:03:24 EST


On Mon, 12 Nov 2018 23:11:47 -0700
Nathan Chancellor <natechancellor@xxxxxxxxx> wrote:

> Clang warns:
>
> drivers/net/geneve.c:428:29: error: suggest braces around initialization
> of subobject [-Werror,-Wmissing-braces]
> struct in6_addr addr6 = { 0 };
> ^
> {}
>
> Most initializations of structs in the kernel seem to use this format.
>
> Fixes: a07966447f39 ("geneve: ICMP error lookup handler")
> Suggested-by: Joe Perches <joe@xxxxxxxxxxx>
> Signed-off-by: Nathan Chancellor <natechancellor@xxxxxxxxx>

Also,

Reviewed-by: Stefano Brivio <sbrivio@xxxxxxxxxx>

--
Stefano