2015-02-09 18:00:09

by Jim Davis

[permalink] [raw]
Subject: randconfig build error with next-20150209, in fs/nfs/client.c

Building with the attached random configuration file,

In file included from fs/nfs/client.c:25:0:
include/linux/sunrpc/metrics.h: In function ‘rpc_count_iostats_metrics’:
include/linux/sunrpc/metrics.h:92:59: error: parameter name omitted
static inline void rpc_count_iostats_metrics(const struct rpc_task *,
^
include/linux/sunrpc/metrics.h:93:18: error: parameter name omitted
struct rpc_iostats *) {}
^
CC net/ipv4/ip_vti.o
CC net/ipv6/addrconf_core.o
make[2]: *** [fs/nfs/client.o] Error 1


Attachments:
randconfig-1423478472.txt (87.00 kB)

2015-02-12 12:33:41

by Geert Uytterhoeven

[permalink] [raw]
Subject: Re: randconfig build error with next-20150209, in fs/nfs/client.c

On Mon, Feb 9, 2015 at 7:00 PM, Jim Davis <[email protected]> wrote:
> Building with the attached random configuration file,
>
> In file included from fs/nfs/client.c:25:0:
> include/linux/sunrpc/metrics.h: In function ‘rpc_count_iostats_metrics’:
> include/linux/sunrpc/metrics.h:92:59: error: parameter name omitted
> static inline void rpc_count_iostats_metrics(const struct rpc_task *,
> ^
> include/linux/sunrpc/metrics.h:93:18: error: parameter name omitted
> struct rpc_iostats *) {}
> ^
> CC net/ipv4/ip_vti.o
> CC net/ipv6/addrconf_core.o
> make[2]: *** [fs/nfs/client.o] Error 1

Yep, fails now in mainline too with CONFIG_PROC_FS=n.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

2015-02-12 13:35:08

by Trond Myklebust

[permalink] [raw]
Subject: Re: randconfig build error with next-20150209, in fs/nfs/client.c

On Mon, 2015-02-09 at 11:00 -0700, Jim Davis wrote:
> Building with the attached random configuration file,
>
> In file included from fs/nfs/client.c:25:0:
> include/linux/sunrpc/metrics.h: In function ‘rpc_count_iostats_metrics’:
> include/linux/sunrpc/metrics.h:92:59: error: parameter name omitted
> static inline void rpc_count_iostats_metrics(const struct rpc_task *,
> ^
> include/linux/sunrpc/metrics.h:93:18: error: parameter name omitted
> struct rpc_iostats *) {}
> ^
> CC net/ipv4/ip_vti.o
> CC net/ipv6/addrconf_core.o
> make[2]: *** [fs/nfs/client.o] Error 1

Thanks for the report! I'm adding the following fix to my linux-next
branch and will push it to Linus before the merge window ends.

8<------------------------------------------------------------------
>From 54d7e72a758609da5936d7452320d799cfc6a25c Mon Sep 17 00:00:00 2001
From: Trond Myklebust <[email protected]>
Date: Thu, 12 Feb 2015 08:28:12 -0500
Subject: [PATCH] SUNRPC: Fix a compile error when #undef CONFIG_PROC_FS

The definition of rpc_count_iostats_metrics() is borked.

Reported by: Jim Davis <[email protected]>
Fixes: d67ae825a59d6 ("pnfs/flexfiles: Add the FlexFile Layout Driver")
Cc: Tom Haynes <[email protected]>
Signed-off-by: Trond Myklebust <[email protected]>
---
include/linux/sunrpc/metrics.h | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/include/linux/sunrpc/metrics.h b/include/linux/sunrpc/metrics.h
index 7e61a17030a4..694eecb2f1b5 100644
--- a/include/linux/sunrpc/metrics.h
+++ b/include/linux/sunrpc/metrics.h
@@ -89,8 +89,11 @@ void rpc_free_iostats(struct rpc_iostats *);
static inline struct rpc_iostats *rpc_alloc_iostats(struct rpc_clnt *clnt) { return NULL; }
static inline void rpc_count_iostats(const struct rpc_task *task,
struct rpc_iostats *stats) {}
-static inline void rpc_count_iostats_metrics(const struct rpc_task *,
- struct rpc_iostats *) {}
+static inline void rpc_count_iostats_metrics(const struct rpc_task *task,
+ struct rpc_iostats *stats)
+{
+}
+
static inline void rpc_print_iostats(struct seq_file *seq, struct rpc_clnt *clnt) {}
static inline void rpc_free_iostats(struct rpc_iostats *stats) {}

--
2.1.0


--
Trond Myklebust
Linux NFS client maintainer, PrimaryData
[email protected]



2015-02-12 14:21:08

by Geert Uytterhoeven

[permalink] [raw]
Subject: Re: randconfig build error with next-20150209, in fs/nfs/client.c

On Thu, Feb 12, 2015 at 2:35 PM, Trond Myklebust
<[email protected]> wrote:
>> include/linux/sunrpc/metrics.h:93:18: error: parameter name omitted
>> struct rpc_iostats *) {}
>> ^
>> CC net/ipv4/ip_vti.o
>> CC net/ipv6/addrconf_core.o
>> make[2]: *** [fs/nfs/client.o] Error 1
>
> Thanks for the report! I'm adding the following fix to my linux-next
> branch and will push it to Linus before the merge window ends.

Thanks! I was just gonna git-send-email a similar patch...
>
> 8<------------------------------------------------------------------
> From 54d7e72a758609da5936d7452320d799cfc6a25c Mon Sep 17 00:00:00 2001
> From: Trond Myklebust <[email protected]>
> Date: Thu, 12 Feb 2015 08:28:12 -0500
> Subject: [PATCH] SUNRPC: Fix a compile error when #undef CONFIG_PROC_FS
>
> The definition of rpc_count_iostats_metrics() is borked.
>
> Reported by: Jim Davis <[email protected]>
> Fixes: d67ae825a59d6 ("pnfs/flexfiles: Add the FlexFile Layout Driver")
> Cc: Tom Haynes <[email protected]>
> Signed-off-by: Trond Myklebust <[email protected]>

Acked-by: Geert Uytterhoeven <[email protected]>

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds