tree: git://git.linux-nfs.org/projects/trondmy/linux-nfs.git multipath_tcp head: 9da698446b337886886af032ac284357da54a1bf commit: 046d9b28e7927c5d985b0f78e501faef24ebb1bb [27/29] NFSv4: Allow multiple connections to NFSv4.x (x>0) servers config: x86_64-randconfig-x002-201802 (attached as .config) compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025 reproduce: git checkout 046d9b28e7927c5d985b0f78e501faef24ebb1bb # save the attached .config to linux build tree make ARCH=x86_64 All errors (new ones prefixed by >>): fs/nfs/nfs4client.c: In function 'nfs4_create_referral_server': fs/nfs/nfs4client.c:1141:5: warning: passing argument 9 of 'nfs4_set_client' makes integer from pointer without a cast [-Wint-conversion] parent_client->cl_net); ^~~~~~~~~~~~~ fs/nfs/nfs4client.c:837:12: note: expected 'unsigned int' but argument is of type 'struct net *' static int nfs4_set_client(struct nfs_server *server, ^~~~~~~~~~~~~~~ >> fs/nfs/nfs4client.c:1134:10: error: too few arguments to function 'nfs4_set_client' error = nfs4_set_client(server, data->hostname, ^~~~~~~~~~~~~~~ fs/nfs/nfs4client.c:837:12: note: declared here static int nfs4_set_client(struct nfs_server *server, ^~~~~~~~~~~~~~~ In file included from include/linux/kernel.h:10:0, from include/linux/list.h:9, from include/linux/module.h:9, from fs/nfs/nfs4client.c:5: fs/nfs/nfs4client.c: At top level: include/linux/compiler.h:64:4: warning: '______f' is static but declared in inline function 'strcpy' which is not static ______f = { \ ^ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) ^~~~~~~~~~ include/linux/string.h:425:2: note: in expansion of macro 'if' if (p_size == (size_t)-1 && q_size == (size_t)-1) ^~ include/linux/compiler.h:64:4: warning: '______f' is static but declared in inline function 'kmemdup' which is not static ______f = { \ ^ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) ^~~~~~~~~~ include/linux/string.h:415:2: note: in expansion of macro 'if' if (p_size < size) ^~ include/linux/compiler.h:64:4: warning: '______f' is static but declared in inline function 'kmemdup' which is not static ______f = { \ ^ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) ^~~~~~~~~~ include/linux/string.h:413:2: note: in expansion of macro 'if' if (__builtin_constant_p(size) && p_size < size) ^~ include/linux/compiler.h:64:4: warning: '______f' is static but declared in inline function 'memchr_inv' which is not static ______f = { \ ^ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) ^~~~~~~~~~ include/linux/string.h:404:2: note: in expansion of macro 'if' if (p_size < size) ^~ include/linux/compiler.h:64:4: warning: '______f' is static but declared in inline function 'memchr_inv' which is not static ______f = { \ ^ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) ^~~~~~~~~~ include/linux/string.h:402:2: note: in expansion of macro 'if' if (__builtin_constant_p(size) && p_size < size) ^~ include/linux/compiler.h:64:4: warning: '______f' is static but declared in inline function 'memchr' which is not static ______f = { \ ^ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) ^~~~~~~~~~ include/linux/string.h:393:2: note: in expansion of macro 'if' if (p_size < size) ^~ include/linux/compiler.h:64:4: warning: '______f' is static but declared in inline function 'memchr' which is not static ______f = { \ ^ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) ^~~~~~~~~~ include/linux/string.h:391:2: note: in expansion of macro 'if' if (__builtin_constant_p(size) && p_size < size) ^~ include/linux/compiler.h:64:4: warning: '______f' is static but declared in inline function 'memcmp' which is not static ______f = { \ ^ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) ^~~~~~~~~~ include/linux/string.h:383:2: note: in expansion of macro 'if' if (p_size < size || q_size < size) ^~ include/linux/compiler.h:64:4: warning: '______f' is static but declared in inline function 'memcmp' which is not static ______f = { \ ^ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) ^~~~~~~~~~ include/linux/string.h:380:3: note: in expansion of macro 'if' if (q_size < size) ^~ include/linux/compiler.h:64:4: warning: '______f' is static but declared in inline function 'memcmp' which is not static ______f = { \ ^ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) ^~~~~~~~~~ include/linux/string.h:378:3: note: in expansion of macro 'if' if (p_size < size) ^~ vim +/nfs4_set_client +1134 fs/nfs/nfs4client.c fcf10398f Bryan Schumaker 2012-07-16 1109 fcf10398f Bryan Schumaker 2012-07-16 1110 /* fcf10398f Bryan Schumaker 2012-07-16 1111 * Create an NFS4 referral server record fcf10398f Bryan Schumaker 2012-07-16 1112 */ fcf10398f Bryan Schumaker 2012-07-16 1113 struct nfs_server *nfs4_create_referral_server(struct nfs_clone_mount *data, fcf10398f Bryan Schumaker 2012-07-16 1114 struct nfs_fh *mntfh) fcf10398f Bryan Schumaker 2012-07-16 1115 { fcf10398f Bryan Schumaker 2012-07-16 1116 struct nfs_client *parent_client; fcf10398f Bryan Schumaker 2012-07-16 1117 struct nfs_server *server, *parent_server; 5837f6dfc Weston Andros Adamson 2013-10-18 1118 bool auth_probe; fcf10398f Bryan Schumaker 2012-07-16 1119 int error; fcf10398f Bryan Schumaker 2012-07-16 1120 fcf10398f Bryan Schumaker 2012-07-16 1121 server = nfs_alloc_server(); fcf10398f Bryan Schumaker 2012-07-16 1122 if (!server) fcf10398f Bryan Schumaker 2012-07-16 1123 return ERR_PTR(-ENOMEM); fcf10398f Bryan Schumaker 2012-07-16 1124 fcf10398f Bryan Schumaker 2012-07-16 1125 parent_server = NFS_SB(data->sb); fcf10398f Bryan Schumaker 2012-07-16 1126 parent_client = parent_server->nfs_client; fcf10398f Bryan Schumaker 2012-07-16 1127 fcf10398f Bryan Schumaker 2012-07-16 1128 /* Initialise the client representation from the parent server */ fcf10398f Bryan Schumaker 2012-07-16 1129 nfs_server_copy_userdata(server, parent_server); fcf10398f Bryan Schumaker 2012-07-16 1130 530ea4219 Chuck Lever 2017-12-04 1131 /* Get a client representation */ 530ea4219 Chuck Lever 2017-12-04 1132 #ifdef CONFIG_SUNRPC_XPRT_RDMA 530ea4219 Chuck Lever 2017-12-04 1133 rpc_set_port(data->addr, NFS_RDMA_PORT); fcf10398f Bryan Schumaker 2012-07-16 @1134 error = nfs4_set_client(server, data->hostname, fcf10398f Bryan Schumaker 2012-07-16 1135 data->addr, fcf10398f Bryan Schumaker 2012-07-16 1136 data->addrlen, fcf10398f Bryan Schumaker 2012-07-16 1137 parent_client->cl_ipaddr, 530ea4219 Chuck Lever 2017-12-04 1138 XPRT_TRANSPORT_RDMA, 530ea4219 Chuck Lever 2017-12-04 1139 parent_server->client->cl_timeout, 530ea4219 Chuck Lever 2017-12-04 1140 parent_client->cl_mvops->minor_version, 530ea4219 Chuck Lever 2017-12-04 @1141 parent_client->cl_net); 530ea4219 Chuck Lever 2017-12-04 1142 if (!error) 530ea4219 Chuck Lever 2017-12-04 1143 goto init_server; 530ea4219 Chuck Lever 2017-12-04 1144 #endif /* CONFIG_SUNRPC_XPRT_RDMA */ 530ea4219 Chuck Lever 2017-12-04 1145 530ea4219 Chuck Lever 2017-12-04 1146 rpc_set_port(data->addr, NFS_PORT); 530ea4219 Chuck Lever 2017-12-04 1147 error = nfs4_set_client(server, data->hostname, 530ea4219 Chuck Lever 2017-12-04 1148 data->addr, 530ea4219 Chuck Lever 2017-12-04 1149 data->addrlen, 530ea4219 Chuck Lever 2017-12-04 1150 parent_client->cl_ipaddr, 530ea4219 Chuck Lever 2017-12-04 1151 XPRT_TRANSPORT_TCP, fcf10398f Bryan Schumaker 2012-07-16 1152 parent_server->client->cl_timeout, fcf10398f Bryan Schumaker 2012-07-16 1153 parent_client->cl_mvops->minor_version, 046d9b28e Trond Myklebust 2017-04-27 1154 parent_client->cl_nconnect, fcf10398f Bryan Schumaker 2012-07-16 1155 parent_client->cl_net); fcf10398f Bryan Schumaker 2012-07-16 1156 if (error < 0) fcf10398f Bryan Schumaker 2012-07-16 1157 goto error; fcf10398f Bryan Schumaker 2012-07-16 1158 :::::: The code at line 1134 was first introduced by commit :::::: fcf10398f641c4450119f8a4cc27e9e584edb010 NFS: Split out NFS v4 server creating code :::::: TO: Bryan Schumaker <bjschuma@xxxxxxxxxx> :::::: CC: Trond Myklebust <Trond.Myklebust@xxxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip