public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [jlayton:dir-deleg 2/25] fs/nfsd/nfs4xdr.c:5670:28: error: use of undeclared identifier 'nfsd4_encode_get_dir_delegation'; did you mean 'nfsd4_decode_get_dir_delegation'?
@ 2024-03-20 14:37 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2024-03-20 14:37 UTC (permalink / raw)
  To: Jeff Layton; +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git dir-deleg
head:   f13f8d4a78153ebfaa225dcc13c1eec66e62b18f
commit: b1878d4cae9cf47ed8bce6c4129d9997c2afdaef [2/25] nfsd: trivial GET_DIR_DELEGATION support
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20240320/202403202241.TGkoPfFJ-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240320/202403202241.TGkoPfFJ-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202403202241.TGkoPfFJ-lkp@intel.com/

All errors (new ones prefixed by >>):

>> fs/nfsd/nfs4xdr.c:5670:28: error: use of undeclared identifier 'nfsd4_encode_get_dir_delegation'; did you mean 'nfsd4_decode_get_dir_delegation'?
    5670 |         [OP_GET_DIR_DELEGATION] = nfsd4_encode_get_dir_delegation,
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                                   nfsd4_decode_get_dir_delegation
   fs/nfsd/nfs4xdr.c:1736:1: note: 'nfsd4_decode_get_dir_delegation' declared here
    1736 | nfsd4_decode_get_dir_delegation(struct nfsd4_compoundargs *argp,
         | ^
>> fs/nfsd/nfs4xdr.c:5670:28: error: incompatible function pointer types initializing 'const nfsd4_enc' (aka 'unsigned int (*const)(struct nfsd4_compoundres *, unsigned int, union nfsd4_op_u *)') with an expression of type '__be32 (struct nfsd4_compoundargs *, union nfsd4_op_u *)' (aka 'unsigned int (struct nfsd4_compoundargs *, union nfsd4_op_u *)') [-Wincompatible-function-pointer-types]
    5670 |         [OP_GET_DIR_DELEGATION] = nfsd4_encode_get_dir_delegation,
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   2 errors generated.


vim +5670 fs/nfsd/nfs4xdr.c

  5618	
  5619	/*
  5620	 * Note: nfsd4_enc_ops vector is shared for v4.0 and v4.1
  5621	 * since we don't need to filter out obsolete ops as this is
  5622	 * done in the decoding phase.
  5623	 */
  5624	static const nfsd4_enc nfsd4_enc_ops[] = {
  5625		[OP_ACCESS]		= nfsd4_encode_access,
  5626		[OP_CLOSE]		= nfsd4_encode_close,
  5627		[OP_COMMIT]		= nfsd4_encode_commit,
  5628		[OP_CREATE]		= nfsd4_encode_create,
  5629		[OP_DELEGPURGE]		= nfsd4_encode_noop,
  5630		[OP_DELEGRETURN]	= nfsd4_encode_noop,
  5631		[OP_GETATTR]		= nfsd4_encode_getattr,
  5632		[OP_GETFH]		= nfsd4_encode_getfh,
  5633		[OP_LINK]		= nfsd4_encode_link,
  5634		[OP_LOCK]		= nfsd4_encode_lock,
  5635		[OP_LOCKT]		= nfsd4_encode_lockt,
  5636		[OP_LOCKU]		= nfsd4_encode_locku,
  5637		[OP_LOOKUP]		= nfsd4_encode_noop,
  5638		[OP_LOOKUPP]		= nfsd4_encode_noop,
  5639		[OP_NVERIFY]		= nfsd4_encode_noop,
  5640		[OP_OPEN]		= nfsd4_encode_open,
  5641		[OP_OPENATTR]		= nfsd4_encode_noop,
  5642		[OP_OPEN_CONFIRM]	= nfsd4_encode_open_confirm,
  5643		[OP_OPEN_DOWNGRADE]	= nfsd4_encode_open_downgrade,
  5644		[OP_PUTFH]		= nfsd4_encode_noop,
  5645		[OP_PUTPUBFH]		= nfsd4_encode_noop,
  5646		[OP_PUTROOTFH]		= nfsd4_encode_noop,
  5647		[OP_READ]		= nfsd4_encode_read,
  5648		[OP_READDIR]		= nfsd4_encode_readdir,
  5649		[OP_READLINK]		= nfsd4_encode_readlink,
  5650		[OP_REMOVE]		= nfsd4_encode_remove,
  5651		[OP_RENAME]		= nfsd4_encode_rename,
  5652		[OP_RENEW]		= nfsd4_encode_noop,
  5653		[OP_RESTOREFH]		= nfsd4_encode_noop,
  5654		[OP_SAVEFH]		= nfsd4_encode_noop,
  5655		[OP_SECINFO]		= nfsd4_encode_secinfo,
  5656		[OP_SETATTR]		= nfsd4_encode_setattr,
  5657		[OP_SETCLIENTID]	= nfsd4_encode_setclientid,
  5658		[OP_SETCLIENTID_CONFIRM] = nfsd4_encode_noop,
  5659		[OP_VERIFY]		= nfsd4_encode_noop,
  5660		[OP_WRITE]		= nfsd4_encode_write,
  5661		[OP_RELEASE_LOCKOWNER]	= nfsd4_encode_noop,
  5662	
  5663		/* NFSv4.1 operations */
  5664		[OP_BACKCHANNEL_CTL]	= nfsd4_encode_noop,
  5665		[OP_BIND_CONN_TO_SESSION] = nfsd4_encode_bind_conn_to_session,
  5666		[OP_EXCHANGE_ID]	= nfsd4_encode_exchange_id,
  5667		[OP_CREATE_SESSION]	= nfsd4_encode_create_session,
  5668		[OP_DESTROY_SESSION]	= nfsd4_encode_noop,
  5669		[OP_FREE_STATEID]	= nfsd4_encode_noop,
> 5670		[OP_GET_DIR_DELEGATION]	= nfsd4_encode_get_dir_delegation,
  5671	#ifdef CONFIG_NFSD_PNFS
  5672		[OP_GETDEVICEINFO]	= nfsd4_encode_getdeviceinfo,
  5673		[OP_GETDEVICELIST]	= nfsd4_encode_noop,
  5674		[OP_LAYOUTCOMMIT]	= nfsd4_encode_layoutcommit,
  5675		[OP_LAYOUTGET]		= nfsd4_encode_layoutget,
  5676		[OP_LAYOUTRETURN]	= nfsd4_encode_layoutreturn,
  5677	#else
  5678		[OP_GETDEVICEINFO]	= nfsd4_encode_noop,
  5679		[OP_GETDEVICELIST]	= nfsd4_encode_noop,
  5680		[OP_LAYOUTCOMMIT]	= nfsd4_encode_noop,
  5681		[OP_LAYOUTGET]		= nfsd4_encode_noop,
  5682		[OP_LAYOUTRETURN]	= nfsd4_encode_noop,
  5683	#endif
  5684		[OP_SECINFO_NO_NAME]	= nfsd4_encode_secinfo_no_name,
  5685		[OP_SEQUENCE]		= nfsd4_encode_sequence,
  5686		[OP_SET_SSV]		= nfsd4_encode_noop,
  5687		[OP_TEST_STATEID]	= nfsd4_encode_test_stateid,
  5688		[OP_WANT_DELEGATION]	= nfsd4_encode_noop,
  5689		[OP_DESTROY_CLIENTID]	= nfsd4_encode_noop,
  5690		[OP_RECLAIM_COMPLETE]	= nfsd4_encode_noop,
  5691	
  5692		/* NFSv4.2 operations */
  5693		[OP_ALLOCATE]		= nfsd4_encode_noop,
  5694		[OP_COPY]		= nfsd4_encode_copy,
  5695		[OP_COPY_NOTIFY]	= nfsd4_encode_copy_notify,
  5696		[OP_DEALLOCATE]		= nfsd4_encode_noop,
  5697		[OP_IO_ADVISE]		= nfsd4_encode_noop,
  5698		[OP_LAYOUTERROR]	= nfsd4_encode_noop,
  5699		[OP_LAYOUTSTATS]	= nfsd4_encode_noop,
  5700		[OP_OFFLOAD_CANCEL]	= nfsd4_encode_noop,
  5701		[OP_OFFLOAD_STATUS]	= nfsd4_encode_offload_status,
  5702		[OP_READ_PLUS]		= nfsd4_encode_read_plus,
  5703		[OP_SEEK]		= nfsd4_encode_seek,
  5704		[OP_WRITE_SAME]		= nfsd4_encode_noop,
  5705		[OP_CLONE]		= nfsd4_encode_noop,
  5706	
  5707		/* RFC 8276 extended atributes operations */
  5708		[OP_GETXATTR]		= nfsd4_encode_getxattr,
  5709		[OP_SETXATTR]		= nfsd4_encode_setxattr,
  5710		[OP_LISTXATTRS]		= nfsd4_encode_listxattrs,
  5711		[OP_REMOVEXATTR]	= nfsd4_encode_removexattr,
  5712	};
  5713	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [jlayton:dir-deleg 2/25] fs/nfsd/nfs4xdr.c:5670:28: error: use of undeclared identifier 'nfsd4_encode_get_dir_delegation'; did you mean 'nfsd4_decode_get_dir_delegation'?
@ 2024-03-21 17:49 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2024-03-21 17:49 UTC (permalink / raw)
  To: Jeff Layton; +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git dir-deleg
head:   2d69b21ee3c12afd89c876906ded927aaf1add2c
commit: ce5c0facdf0d50ca85e4943ea68e02685a0a5001 [2/25] nfsd: trivial GET_DIR_DELEGATION support
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20240322/202403220140.684w13Ic-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240322/202403220140.684w13Ic-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202403220140.684w13Ic-lkp@intel.com/

All errors (new ones prefixed by >>):

>> fs/nfsd/nfs4xdr.c:5670:28: error: use of undeclared identifier 'nfsd4_encode_get_dir_delegation'; did you mean 'nfsd4_decode_get_dir_delegation'?
    5670 |         [OP_GET_DIR_DELEGATION] = nfsd4_encode_get_dir_delegation,
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                                   nfsd4_decode_get_dir_delegation
   fs/nfsd/nfs4xdr.c:1736:1: note: 'nfsd4_decode_get_dir_delegation' declared here
    1736 | nfsd4_decode_get_dir_delegation(struct nfsd4_compoundargs *argp,
         | ^
>> fs/nfsd/nfs4xdr.c:5670:28: error: incompatible function pointer types initializing 'const nfsd4_enc' (aka 'unsigned int (*const)(struct nfsd4_compoundres *, unsigned int, union nfsd4_op_u *)') with an expression of type '__be32 (struct nfsd4_compoundargs *, union nfsd4_op_u *)' (aka 'unsigned int (struct nfsd4_compoundargs *, union nfsd4_op_u *)') [-Wincompatible-function-pointer-types]
    5670 |         [OP_GET_DIR_DELEGATION] = nfsd4_encode_get_dir_delegation,
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   2 errors generated.


vim +5670 fs/nfsd/nfs4xdr.c

  5618	
  5619	/*
  5620	 * Note: nfsd4_enc_ops vector is shared for v4.0 and v4.1
  5621	 * since we don't need to filter out obsolete ops as this is
  5622	 * done in the decoding phase.
  5623	 */
  5624	static const nfsd4_enc nfsd4_enc_ops[] = {
  5625		[OP_ACCESS]		= nfsd4_encode_access,
  5626		[OP_CLOSE]		= nfsd4_encode_close,
  5627		[OP_COMMIT]		= nfsd4_encode_commit,
  5628		[OP_CREATE]		= nfsd4_encode_create,
  5629		[OP_DELEGPURGE]		= nfsd4_encode_noop,
  5630		[OP_DELEGRETURN]	= nfsd4_encode_noop,
  5631		[OP_GETATTR]		= nfsd4_encode_getattr,
  5632		[OP_GETFH]		= nfsd4_encode_getfh,
  5633		[OP_LINK]		= nfsd4_encode_link,
  5634		[OP_LOCK]		= nfsd4_encode_lock,
  5635		[OP_LOCKT]		= nfsd4_encode_lockt,
  5636		[OP_LOCKU]		= nfsd4_encode_locku,
  5637		[OP_LOOKUP]		= nfsd4_encode_noop,
  5638		[OP_LOOKUPP]		= nfsd4_encode_noop,
  5639		[OP_NVERIFY]		= nfsd4_encode_noop,
  5640		[OP_OPEN]		= nfsd4_encode_open,
  5641		[OP_OPENATTR]		= nfsd4_encode_noop,
  5642		[OP_OPEN_CONFIRM]	= nfsd4_encode_open_confirm,
  5643		[OP_OPEN_DOWNGRADE]	= nfsd4_encode_open_downgrade,
  5644		[OP_PUTFH]		= nfsd4_encode_noop,
  5645		[OP_PUTPUBFH]		= nfsd4_encode_noop,
  5646		[OP_PUTROOTFH]		= nfsd4_encode_noop,
  5647		[OP_READ]		= nfsd4_encode_read,
  5648		[OP_READDIR]		= nfsd4_encode_readdir,
  5649		[OP_READLINK]		= nfsd4_encode_readlink,
  5650		[OP_REMOVE]		= nfsd4_encode_remove,
  5651		[OP_RENAME]		= nfsd4_encode_rename,
  5652		[OP_RENEW]		= nfsd4_encode_noop,
  5653		[OP_RESTOREFH]		= nfsd4_encode_noop,
  5654		[OP_SAVEFH]		= nfsd4_encode_noop,
  5655		[OP_SECINFO]		= nfsd4_encode_secinfo,
  5656		[OP_SETATTR]		= nfsd4_encode_setattr,
  5657		[OP_SETCLIENTID]	= nfsd4_encode_setclientid,
  5658		[OP_SETCLIENTID_CONFIRM] = nfsd4_encode_noop,
  5659		[OP_VERIFY]		= nfsd4_encode_noop,
  5660		[OP_WRITE]		= nfsd4_encode_write,
  5661		[OP_RELEASE_LOCKOWNER]	= nfsd4_encode_noop,
  5662	
  5663		/* NFSv4.1 operations */
  5664		[OP_BACKCHANNEL_CTL]	= nfsd4_encode_noop,
  5665		[OP_BIND_CONN_TO_SESSION] = nfsd4_encode_bind_conn_to_session,
  5666		[OP_EXCHANGE_ID]	= nfsd4_encode_exchange_id,
  5667		[OP_CREATE_SESSION]	= nfsd4_encode_create_session,
  5668		[OP_DESTROY_SESSION]	= nfsd4_encode_noop,
  5669		[OP_FREE_STATEID]	= nfsd4_encode_noop,
> 5670		[OP_GET_DIR_DELEGATION]	= nfsd4_encode_get_dir_delegation,
  5671	#ifdef CONFIG_NFSD_PNFS
  5672		[OP_GETDEVICEINFO]	= nfsd4_encode_getdeviceinfo,
  5673		[OP_GETDEVICELIST]	= nfsd4_encode_noop,
  5674		[OP_LAYOUTCOMMIT]	= nfsd4_encode_layoutcommit,
  5675		[OP_LAYOUTGET]		= nfsd4_encode_layoutget,
  5676		[OP_LAYOUTRETURN]	= nfsd4_encode_layoutreturn,
  5677	#else
  5678		[OP_GETDEVICEINFO]	= nfsd4_encode_noop,
  5679		[OP_GETDEVICELIST]	= nfsd4_encode_noop,
  5680		[OP_LAYOUTCOMMIT]	= nfsd4_encode_noop,
  5681		[OP_LAYOUTGET]		= nfsd4_encode_noop,
  5682		[OP_LAYOUTRETURN]	= nfsd4_encode_noop,
  5683	#endif
  5684		[OP_SECINFO_NO_NAME]	= nfsd4_encode_secinfo_no_name,
  5685		[OP_SEQUENCE]		= nfsd4_encode_sequence,
  5686		[OP_SET_SSV]		= nfsd4_encode_noop,
  5687		[OP_TEST_STATEID]	= nfsd4_encode_test_stateid,
  5688		[OP_WANT_DELEGATION]	= nfsd4_encode_noop,
  5689		[OP_DESTROY_CLIENTID]	= nfsd4_encode_noop,
  5690		[OP_RECLAIM_COMPLETE]	= nfsd4_encode_noop,
  5691	
  5692		/* NFSv4.2 operations */
  5693		[OP_ALLOCATE]		= nfsd4_encode_noop,
  5694		[OP_COPY]		= nfsd4_encode_copy,
  5695		[OP_COPY_NOTIFY]	= nfsd4_encode_copy_notify,
  5696		[OP_DEALLOCATE]		= nfsd4_encode_noop,
  5697		[OP_IO_ADVISE]		= nfsd4_encode_noop,
  5698		[OP_LAYOUTERROR]	= nfsd4_encode_noop,
  5699		[OP_LAYOUTSTATS]	= nfsd4_encode_noop,
  5700		[OP_OFFLOAD_CANCEL]	= nfsd4_encode_noop,
  5701		[OP_OFFLOAD_STATUS]	= nfsd4_encode_offload_status,
  5702		[OP_READ_PLUS]		= nfsd4_encode_read_plus,
  5703		[OP_SEEK]		= nfsd4_encode_seek,
  5704		[OP_WRITE_SAME]		= nfsd4_encode_noop,
  5705		[OP_CLONE]		= nfsd4_encode_noop,
  5706	
  5707		/* RFC 8276 extended atributes operations */
  5708		[OP_GETXATTR]		= nfsd4_encode_getxattr,
  5709		[OP_SETXATTR]		= nfsd4_encode_setxattr,
  5710		[OP_LISTXATTRS]		= nfsd4_encode_listxattrs,
  5711		[OP_REMOVEXATTR]	= nfsd4_encode_removexattr,
  5712	};
  5713	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-03-21 17:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-21 17:49 [jlayton:dir-deleg 2/25] fs/nfsd/nfs4xdr.c:5670:28: error: use of undeclared identifier 'nfsd4_encode_get_dir_delegation'; did you mean 'nfsd4_decode_get_dir_delegation'? kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2024-03-20 14:37 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox