Re: linux-next: build warning after merge of the nfs-anna tree

From: David Wysochanski
Date: Tue Jul 31 2018 - 05:04:57 EST


On Mon, 2018-07-30 at 18:52 +1000, Stephen Rothwell wrote:
> Hi all,
>
> After merging the nfs-anna tree, today's linux-next build (powerpc
> ppc44x_defconfig, sparc defconfig) produced this warning:
>
> net/sunrpc/stats.c: In function 'rpc_clnt_show_stats':
> /home/sfr/next/next/net/sunrpc/stats.c:258:32: warning: excess elements in struct initializer
> struct rpc_iostats stats = { 0 };
>

Apologies I did not see this before submission.

The below fixup compiles without warning for me on ppc64le.

ÂÂÂstruct rpc_iostats stats = {};


> ^
>
> Introduced by commit
>
> c3b588a2d5be ("sunrpc: Change rpc_print_iostats to rpc_clnt_show_stats and handle rpc_clnt clones")
>