* [jlayton:ceph-fscrypt-fnames 49/49] fs/ceph/xattr.c:346:16: error: 'struct ceph_inode_info' has no member named 'fscrypt_auth_len'
@ 2021-06-29 7:59 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-06-29 7:59 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 5038 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git ceph-fscrypt-fnames
head: 9c297d5cea7b08ea73fe150ea262b6d990394f5f
commit: 9c297d5cea7b08ea73fe150ea262b6d990394f5f [49/49] ceph: add a new ceph.fscrypt.auth vxattr
config: sparc64-randconfig-s032-20210628 (attached as .config)
compiler: sparc64-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git/commit/?id=9c297d5cea7b08ea73fe150ea262b6d990394f5f
git remote add jlayton https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git
git fetch --no-tags jlayton ceph-fscrypt-fnames
git checkout 9c297d5cea7b08ea73fe150ea262b6d990394f5f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=sparc64 SHELL=/bin/bash fs/ceph/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from fs/ceph/super.h:29,
from fs/ceph/xattr.c:5:
fs/ceph/crypto.h:83:58: warning: 'struct ceph_fs_client' declared inside parameter list will not be visible outside of this definition or declaration
83 | static inline void ceph_fscrypt_free_dummy_policy(struct ceph_fs_client *fsc)
| ^~~~~~~~~~~~~~
fs/ceph/crypto.h:88:14: warning: 'struct ceph_acl_sec_ctx' declared inside parameter list will not be visible outside of this definition or declaration
88 | struct ceph_acl_sec_ctx *as)
| ^~~~~~~~~~~~~~~~
fs/ceph/crypto.h:96:14: warning: 'struct ceph_acl_sec_ctx' declared inside parameter list will not be visible outside of this definition or declaration
96 | struct ceph_acl_sec_ctx *as_ctx)
| ^~~~~~~~~~~~~~~~
fs/ceph/crypto.h:95:54: warning: 'struct ceph_mds_request' declared inside parameter list will not be visible outside of this definition or declaration
95 | static inline void ceph_fscrypt_as_ctx_to_req(struct ceph_mds_request *req,
| ^~~~~~~~~~~~~~~~
fs/ceph/xattr.c: In function 'ceph_vxattrcb_fscrypt_auth':
>> fs/ceph/xattr.c:346:16: error: 'struct ceph_inode_info' has no member named 'fscrypt_auth_len'
346 | if (size < ci->fscrypt_auth_len)
| ^~
In file included from include/linux/string.h:21,
from include/linux/ceph/ceph_debug.h:7,
from fs/ceph/xattr.c:2:
>> fs/ceph/xattr.c:348:17: error: 'struct ceph_inode_info' has no member named 'fscrypt_auth'
348 | memcpy(val, ci->fscrypt_auth, ci->fscrypt_auth_len);
| ^~
arch/sparc/include/asm/string.h:15:45: note: in definition of macro 'memcpy'
15 | #define memcpy(t, f, n) __builtin_memcpy(t, f, n)
| ^
fs/ceph/xattr.c:348:35: error: 'struct ceph_inode_info' has no member named 'fscrypt_auth_len'
348 | memcpy(val, ci->fscrypt_auth, ci->fscrypt_auth_len);
| ^~
arch/sparc/include/asm/string.h:15:48: note: in definition of macro 'memcpy'
15 | #define memcpy(t, f, n) __builtin_memcpy(t, f, n)
| ^
fs/ceph/xattr.c:350:11: error: 'struct ceph_inode_info' has no member named 'fscrypt_auth_len'
350 | return ci->fscrypt_auth_len;
| ^~
fs/ceph/xattr.c:351:1: error: control reaches end of non-void function [-Werror=return-type]
351 | }
| ^
cc1: some warnings being treated as errors
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for LOCKDEP
Depends on DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT && (FRAME_POINTER || MIPS || PPC || S390 || MICROBLAZE || ARM || ARC || X86)
Selected by
- PROVE_LOCKING && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
- LOCK_STAT && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
- DEBUG_LOCK_ALLOC && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
vim +346 fs/ceph/xattr.c
342
343 static ssize_t ceph_vxattrcb_fscrypt_auth(struct ceph_inode_info *ci, char *val, size_t size)
344 {
345 if (size) {
> 346 if (size < ci->fscrypt_auth_len)
347 return -ERANGE;
> 348 memcpy(val, ci->fscrypt_auth, ci->fscrypt_auth_len);
349 }
350 return ci->fscrypt_auth_len;
351 }
352
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 30975 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-06-29 7:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-29 7:59 [jlayton:ceph-fscrypt-fnames 49/49] fs/ceph/xattr.c:346:16: error: 'struct ceph_inode_info' has no member named 'fscrypt_auth_len' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.