[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20181117.220322.2081647103024305665.davem@davemloft.net>
Date: Sat, 17 Nov 2018 22:03:22 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: natechancellor@...il.com
Cc: sbrivio@...hat.com, sd@...asysnail.net, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH net-next v3] geneve: Initialize addr6 with memset
From: Nathan Chancellor <natechancellor@...il.com>
Date: Fri, 16 Nov 2018 18:36:27 -0700
> Clang warns:
>
> drivers/net/geneve.c:428:29: error: suggest braces around initialization
> of subobject [-Werror,-Wmissing-braces]
> struct in6_addr addr6 = { 0 };
> ^
> {}
>
> Rather than trying to appease the various compilers that support the
> kernel, use memset, which is unambiguous.
>
> Fixes: a07966447f39 ("geneve: ICMP error lookup handler")
> Suggested-by: David S. Miller <davem@...emloft.net>
> Signed-off-by: Nathan Chancellor <natechancellor@...il.com>
Applied.
Powered by blists - more mailing lists