aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRandy Dunlap <randy.dunlap@oracle.com>2009-04-28 19:48:25 -0400
committerJ. Bruce Fields <bfields@citi.umich.edu>2009-05-03 15:09:12 -0400
commit9064caae8f47bb7ed5d91712e81f01c1aba2fa3c (patch)
tree8949b0ae4c1a24c65652343561109e1964a31f72
parent63e4863fabc6e165a6ca813051305be58966da45 (diff)
nfsd: use C99 struct initializers
Eliminate 56 sparse warnings like this one: fs/nfsd/nfs4xdr.c:1331:15: warning: obsolete array initializer, use C99 syntax Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Cc: Neil Brown <neilb@suse.de> Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
-rw-r--r--fs/nfsd/nfs4xdr.c112
1 files changed, 56 insertions, 56 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c
index 12d36a7361cd..ab005fc637e1 100644
--- a/fs/nfsd/nfs4xdr.c
+++ b/fs/nfsd/nfs4xdr.c
@@ -1318,64 +1318,64 @@ static nfsd4_dec nfsd4_dec_ops[] = {
1318}; 1318};
1319 1319
1320static nfsd4_dec nfsd41_dec_ops[] = { 1320static nfsd4_dec nfsd41_dec_ops[] = {
1321 [OP_ACCESS] (nfsd4_dec)nfsd4_decode_access, 1321 [OP_ACCESS] = (nfsd4_dec)nfsd4_decode_access,
1322 [OP_CLOSE] (nfsd4_dec)nfsd4_decode_close, 1322 [OP_CLOSE] = (nfsd4_dec)nfsd4_decode_close,
1323 [OP_COMMIT] (nfsd4_dec)nfsd4_decode_commit, 1323 [OP_COMMIT] = (nfsd4_dec)nfsd4_decode_commit,
1324 [OP_CREATE] (nfsd4_dec)nfsd4_decode_create, 1324 [OP_CREATE] = (nfsd4_dec)nfsd4_decode_create,
1325 [OP_DELEGPURGE] (nfsd4_dec)nfsd4_decode_notsupp, 1325 [OP_DELEGPURGE] = (nfsd4_dec)nfsd4_decode_notsupp,
1326 [OP_DELEGRETURN] (nfsd4_dec)nfsd4_decode_delegreturn, 1326 [OP_DELEGRETURN] = (nfsd4_dec)nfsd4_decode_delegreturn,
1327 [OP_GETATTR] (nfsd4_dec)nfsd4_decode_getattr, 1327 [OP_GETATTR] = (nfsd4_dec)nfsd4_decode_getattr,
1328 [OP_GETFH] (nfsd4_dec)nfsd4_decode_noop, 1328 [OP_GETFH] = (nfsd4_dec)nfsd4_decode_noop,
1329 [OP_LINK] (nfsd4_dec)nfsd4_decode_link, 1329 [OP_LINK] = (nfsd4_dec)nfsd4_decode_link,
1330 [OP_LOCK] (nfsd4_dec)nfsd4_decode_lock, 1330 [OP_LOCK] = (nfsd4_dec)nfsd4_decode_lock,
1331 [OP_LOCKT] (nfsd4_dec)nfsd4_decode_lockt, 1331 [OP_LOCKT] = (nfsd4_dec)nfsd4_decode_lockt,
1332 [OP_LOCKU] (nfsd4_dec)nfsd4_decode_locku, 1332 [OP_LOCKU] = (nfsd4_dec)nfsd4_decode_locku,
1333 [OP_LOOKUP] (nfsd4_dec)nfsd4_decode_lookup, 1333 [OP_LOOKUP] = (nfsd4_dec)nfsd4_decode_lookup,
1334 [OP_LOOKUPP] (nfsd4_dec)nfsd4_decode_noop, 1334 [OP_LOOKUPP] = (nfsd4_dec)nfsd4_decode_noop,
1335 [OP_NVERIFY] (nfsd4_dec)nfsd4_decode_verify, 1335 [OP_NVERIFY] = (nfsd4_dec)nfsd4_decode_verify,
1336 [OP_OPEN] (nfsd4_dec)nfsd4_decode_open, 1336 [OP_OPEN] = (nfsd4_dec)nfsd4_decode_open,
1337 [OP_OPENATTR] (nfsd4_dec)nfsd4_decode_notsupp, 1337 [OP_OPENATTR] = (nfsd4_dec)nfsd4_decode_notsupp,
1338 [OP_OPEN_CONFIRM] (nfsd4_dec)nfsd4_decode_notsupp, 1338 [OP_OPEN_CONFIRM] = (nfsd4_dec)nfsd4_decode_notsupp,
1339 [OP_OPEN_DOWNGRADE] (nfsd4_dec)nfsd4_decode_open_downgrade, 1339 [OP_OPEN_DOWNGRADE] = (nfsd4_dec)nfsd4_decode_open_downgrade,
1340 [OP_PUTFH] (nfsd4_dec)nfsd4_decode_putfh, 1340 [OP_PUTFH] = (nfsd4_dec)nfsd4_decode_putfh,
1341 [OP_PUTPUBFH] (nfsd4_dec)nfsd4_decode_notsupp, 1341 [OP_PUTPUBFH] = (nfsd4_dec)nfsd4_decode_notsupp,
1342 [OP_PUTROOTFH] (nfsd4_dec)nfsd4_decode_noop, 1342 [OP_PUTROOTFH] = (nfsd4_dec)nfsd4_decode_noop,
1343 [OP_READ] (nfsd4_dec)nfsd4_decode_read, 1343 [OP_READ] = (nfsd4_dec)nfsd4_decode_read,
1344 [OP_READDIR] (nfsd4_dec)nfsd4_decode_readdir, 1344 [OP_READDIR] = (nfsd4_dec)nfsd4_decode_readdir,
1345 [OP_READLINK] (nfsd4_dec)nfsd4_decode_noop, 1345 [OP_READLINK] = (nfsd4_dec)nfsd4_decode_noop,
1346 [OP_REMOVE] (nfsd4_dec)nfsd4_decode_remove, 1346 [OP_REMOVE] = (nfsd4_dec)nfsd4_decode_remove,
1347 [OP_RENAME] (nfsd4_dec)nfsd4_decode_rename, 1347 [OP_RENAME] = (nfsd4_dec)nfsd4_decode_rename,
1348 [OP_RENEW] (nfsd4_dec)nfsd4_decode_notsupp, 1348 [OP_RENEW] = (nfsd4_dec)nfsd4_decode_notsupp,
1349 [OP_RESTOREFH] (nfsd4_dec)nfsd4_decode_noop, 1349 [OP_RESTOREFH] = (nfsd4_dec)nfsd4_decode_noop,
1350 [OP_SAVEFH] (nfsd4_dec)nfsd4_decode_noop, 1350 [OP_SAVEFH] = (nfsd4_dec)nfsd4_decode_noop,
1351 [OP_SECINFO] (nfsd4_dec)nfsd4_decode_secinfo, 1351 [OP_SECINFO] = (nfsd4_dec)nfsd4_decode_secinfo,
1352 [OP_SETATTR] (nfsd4_dec)nfsd4_decode_setattr, 1352 [OP_SETATTR] = (nfsd4_dec)nfsd4_decode_setattr,
1353 [OP_SETCLIENTID] (nfsd4_dec)nfsd4_decode_notsupp, 1353 [OP_SETCLIENTID] = (nfsd4_dec)nfsd4_decode_notsupp,
1354 [OP_SETCLIENTID_CONFIRM](nfsd4_dec)nfsd4_decode_notsupp, 1354 [OP_SETCLIENTID_CONFIRM]= (nfsd4_dec)nfsd4_decode_notsupp,
1355 [OP_VERIFY] (nfsd4_dec)nfsd4_decode_verify, 1355 [OP_VERIFY] = (nfsd4_dec)nfsd4_decode_verify,
1356 [OP_WRITE] (nfsd4_dec)nfsd4_decode_write, 1356 [OP_WRITE] = (nfsd4_dec)nfsd4_decode_write,
1357 [OP_RELEASE_LOCKOWNER] (nfsd4_dec)nfsd4_decode_notsupp, 1357 [OP_RELEASE_LOCKOWNER] = (nfsd4_dec)nfsd4_decode_notsupp,
1358 1358
1359 /* new operations for NFSv4.1 */ 1359 /* new operations for NFSv4.1 */
1360 [OP_BACKCHANNEL_CTL] (nfsd4_dec)nfsd4_decode_notsupp, 1360 [OP_BACKCHANNEL_CTL] = (nfsd4_dec)nfsd4_decode_notsupp,
1361 [OP_BIND_CONN_TO_SESSION](nfsd4_dec)nfsd4_decode_notsupp, 1361 [OP_BIND_CONN_TO_SESSION]= (nfsd4_dec)nfsd4_decode_notsupp,
1362 [OP_EXCHANGE_ID] (nfsd4_dec)nfsd4_decode_exchange_id, 1362 [OP_EXCHANGE_ID] = (nfsd4_dec)nfsd4_decode_exchange_id,
1363 [OP_CREATE_SESSION] (nfsd4_dec)nfsd4_decode_create_session, 1363 [OP_CREATE_SESSION] = (nfsd4_dec)nfsd4_decode_create_session,
1364 [OP_DESTROY_SESSION] (nfsd4_dec)nfsd4_decode_destroy_session, 1364 [OP_DESTROY_SESSION] = (nfsd4_dec)nfsd4_decode_destroy_session,
1365 [OP_FREE_STATEID] (nfsd4_dec)nfsd4_decode_notsupp, 1365 [OP_FREE_STATEID] = (nfsd4_dec)nfsd4_decode_notsupp,
1366 [OP_GET_DIR_DELEGATION] (nfsd4_dec)nfsd4_decode_notsupp, 1366 [OP_GET_DIR_DELEGATION] = (nfsd4_dec)nfsd4_decode_notsupp,
1367 [OP_GETDEVICEINFO] (nfsd4_dec)nfsd4_decode_notsupp, 1367 [OP_GETDEVICEINFO] = (nfsd4_dec)nfsd4_decode_notsupp,
1368 [OP_GETDEVICELIST] (nfsd4_dec)nfsd4_decode_notsupp, 1368 [OP_GETDEVICELIST] = (nfsd4_dec)nfsd4_decode_notsupp,
1369 [OP_LAYOUTCOMMIT] (nfsd4_dec)nfsd4_decode_notsupp, 1369 [OP_LAYOUTCOMMIT] = (nfsd4_dec)nfsd4_decode_notsupp,
1370 [OP_LAYOUTGET] (nfsd4_dec)nfsd4_decode_notsupp, 1370 [OP_LAYOUTGET] = (nfsd4_dec)nfsd4_decode_notsupp,
1371 [OP_LAYOUTRETURN] (nfsd4_dec)nfsd4_decode_notsupp, 1371 [OP_LAYOUTRETURN] = (nfsd4_dec)nfsd4_decode_notsupp,
1372 [OP_SECINFO_NO_NAME] (nfsd4_dec)nfsd4_decode_notsupp, 1372 [OP_SECINFO_NO_NAME] = (nfsd4_dec)nfsd4_decode_notsupp,
1373 [OP_SEQUENCE] (nfsd4_dec)nfsd4_decode_sequence, 1373 [OP_SEQUENCE] = (nfsd4_dec)nfsd4_decode_sequence,
1374 [OP_SET_SSV] (nfsd4_dec)nfsd4_decode_notsupp, 1374 [OP_SET_SSV] = (nfsd4_dec)nfsd4_decode_notsupp,
1375 [OP_TEST_STATEID] (nfsd4_dec)nfsd4_decode_notsupp, 1375 [OP_TEST_STATEID] = (nfsd4_dec)nfsd4_decode_notsupp,
1376 [OP_WANT_DELEGATION] (nfsd4_dec)nfsd4_decode_notsupp, 1376 [OP_WANT_DELEGATION] = (nfsd4_dec)nfsd4_decode_notsupp,
1377 [OP_DESTROY_CLIENTID] (nfsd4_dec)nfsd4_decode_notsupp, 1377 [OP_DESTROY_CLIENTID] = (nfsd4_dec)nfsd4_decode_notsupp,
1378 [OP_RECLAIM_COMPLETE] (nfsd4_dec)nfsd4_decode_notsupp, 1378 [OP_RECLAIM_COMPLETE] = (nfsd4_dec)nfsd4_decode_notsupp,
1379}; 1379};
1380 1380
1381struct nfsd4_minorversion_ops { 1381struct nfsd4_minorversion_ops {