[jlayton:ceph-fscrypt-sparse 64/69] fs/ceph/crypto.h:230:19: warning: 'ceph_fscrypt_decrypt_extents' used but never defined

From: kernel test robot
Date: Sat Mar 19 2022 - 00:51:11 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git ceph-fscrypt-sparse
head: a6125c2dec56f1f523f5009ce8b25932ba4be812
commit: cf5a57fc1b4827a42e9662f23422b2b62b9e9d7b [64/69] ceph: plumb in decryption during sync reads
config: microblaze-randconfig-s031-20220317 (https://download.01.org/0day-ci/archive/20220319/202203191202.HeBYpWrc-lkp@xxxxxxxxx/config)
compiler: microblaze-linux-gcc (GCC) 11.2.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.4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git/commit/?id=cf5a57fc1b4827a42e9662f23422b2b62b9e9d7b
git remote add jlayton https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git
git fetch --no-tags jlayton ceph-fscrypt-sparse
git checkout cf5a57fc1b4827a42e9662f23422b2b62b9e9d7b
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=microblaze SHELL=/bin/bash fs/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

In file included from fs/ceph/super.h:28,
from fs/ceph/file.c:16:
fs/ceph/crypto.h:233:1: error: expected identifier or '(' before '{' token
233 | {
| ^
>> fs/ceph/crypto.h:230:19: warning: 'ceph_fscrypt_decrypt_extents' used but never defined
230 | static inline int ceph_fscrypt_decrypt_extents(struct inode *inode, struct page **page,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/ceph_fscrypt_decrypt_extents +230 fs/ceph/crypto.h

ba7e3fe2150bf3 Jeff Layton 2021-12-01 229
8e0977c7c0cb14 Jeff Layton 2022-03-18 @230 static inline int ceph_fscrypt_decrypt_extents(struct inode *inode, struct page **page,
8e0977c7c0cb14 Jeff Layton 2022-03-18 231 u64 off, struct ceph_sparse_extent *map,
8e0977c7c0cb14 Jeff Layton 2022-03-18 232 u32 ext_cnt);
8e0977c7c0cb14 Jeff Layton 2022-03-18 233 {
8e0977c7c0cb14 Jeff Layton 2022-03-18 234 return 0;
8e0977c7c0cb14 Jeff Layton 2022-03-18 235 }
8e0977c7c0cb14 Jeff Layton 2022-03-18 236

:::::: The code at line 230 was first introduced by commit
:::::: 8e0977c7c0cb145079b881a6035a98bb0ce71b1b ceph: new helper: ceph_fscrypt_decrypt_extents

:::::: TO: Jeff Layton <jlayton@xxxxxxxxxx>
:::::: CC: Jeff Layton <jlayton@xxxxxxxxxx>

---
0-DAY CI Kernel Test Service
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx