Re: [PATCH] lockd: get rid of reference-counted NSM RPC clients

From: kbuild test robot
Date: Wed Oct 07 2015 - 07:32:14 EST


Hi Andrey,

[auto build test WARNING on next-20151007 -- if it's inappropriate base, please ignore]

config: xtensa-allyesconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=xtensa

All warnings (new ones prefixed by >>):

fs/lockd/mon.c: In function 'nsm_mon_unmon':
>> fs/lockd/mon.c:111:3: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
dprintk("lockd: failed to create NSM upcall transport, "
^

vim +111 fs/lockd/mon.c

95 .priv = &nsm->sm_priv,
96 .prog = NLM_PROGRAM,
97 .vers = 3,
98 .proc = NLMPROC_NSM_NOTIFY,
99 .mon_name = nsm->sm_mon_name,
100 .nodename = host->nodename,
101 };
102 struct rpc_message msg = {
103 .rpc_argp = &args,
104 .rpc_resp = res,
105 };
106
107 memset(res, 0, sizeof(*res));
108
109 clnt = nsm_create(host->net, host->nodename);
110 if (IS_ERR(clnt)) {
> 111 dprintk("lockd: failed to create NSM upcall transport, "
112 "status=%d, net=%p\n", PTR_ERR(clnt), host->net);
113 return PTR_ERR(clnt);
114 }
115
116 msg.rpc_proc = &clnt->cl_procinfo[proc];
117 status = rpc_call_sync(clnt, &msg, RPC_TASK_SOFTCONN);
118 if (status == -ECONNREFUSED) {
119 dprintk("lockd: NSM upcall RPC failed, status=%d, forcing rebind\n",

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: Binary data