ceph-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Jeff Layton <jlayton@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev, ceph-devel@vger.kernel.org,
	Ilya Dryomov <idryomov@gmail.com>, Xiubo Li <xiubli@redhat.com>
Subject: [ceph-client:testing 19/80] fs/ceph/super.c:1122:15: error: implicit declaration of function 'fscrypt_add_test_dummy_key'
Date: Tue, 21 Mar 2023 11:59:51 +0800	[thread overview]
Message-ID: <202303211100.ExmaGnB0-lkp@intel.com> (raw)

tree:   https://github.com/ceph/ceph-client.git testing
head:   bc74c6176640bed8ff55211d4211658413f5c19c
commit: 72326544b6f873e44659da920b51572bdf76b143 [19/80] ceph: implement -o test_dummy_encryption mount option
config: nios2-allmodconfig (https://download.01.org/0day-ci/archive/20230321/202303211100.ExmaGnB0-lkp@intel.com/config)
compiler: nios2-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/ceph/ceph-client/commit/72326544b6f873e44659da920b51572bdf76b143
        git remote add ceph-client https://github.com/ceph/ceph-client.git
        git fetch --no-tags ceph-client testing
        git checkout 72326544b6f873e44659da920b51572bdf76b143
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=nios2 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=nios2 SHELL=/bin/bash fs/ceph/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303211100.ExmaGnB0-lkp@intel.com/

All errors (new ones prefixed by >>):

   fs/ceph/super.c: In function 'ceph_apply_test_dummy_encryption':
>> fs/ceph/super.c:1122:15: error: implicit declaration of function 'fscrypt_add_test_dummy_key' [-Werror=implicit-function-declaration]
    1122 |         err = fscrypt_add_test_dummy_key(sb, &fsc->fsc_dummy_enc_policy);
         |               ^~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/fscrypt_add_test_dummy_key +1122 fs/ceph/super.c

  1088	
  1089	#ifdef CONFIG_FS_ENCRYPTION
  1090	static int ceph_apply_test_dummy_encryption(struct super_block *sb,
  1091						    struct fs_context *fc,
  1092						    struct ceph_mount_options *fsopt)
  1093	{
  1094		struct ceph_fs_client *fsc = sb->s_fs_info;
  1095		int err;
  1096	
  1097		if (!fscrypt_is_dummy_policy_set(&fsopt->dummy_enc_policy))
  1098			return 0;
  1099	
  1100		/* No changing encryption context on remount. */
  1101		if (fc->purpose == FS_CONTEXT_FOR_RECONFIGURE &&
  1102		    !fscrypt_is_dummy_policy_set(&fsc->fsc_dummy_enc_policy)) {
  1103			if (fscrypt_dummy_policies_equal(&fsopt->dummy_enc_policy,
  1104							 &fsc->fsc_dummy_enc_policy))
  1105				return 0;
  1106			errorfc(fc, "Can't set test_dummy_encryption on remount");
  1107			return -EINVAL;
  1108		}
  1109	
  1110		/* Also make sure fsopt doesn't contain a conflicting value. */
  1111		if (fscrypt_is_dummy_policy_set(&fsc->fsc_dummy_enc_policy)) {
  1112			if (fscrypt_dummy_policies_equal(&fsopt->dummy_enc_policy,
  1113							 &fsc->fsc_dummy_enc_policy))
  1114				return 0;
  1115			errorfc(fc, "Conflicting test_dummy_encryption options");
  1116			return -EINVAL;
  1117		}
  1118	
  1119		fsc->fsc_dummy_enc_policy = fsopt->dummy_enc_policy;
  1120		memset(&fsopt->dummy_enc_policy, 0, sizeof(fsopt->dummy_enc_policy));
  1121	
> 1122		err = fscrypt_add_test_dummy_key(sb, &fsc->fsc_dummy_enc_policy);
  1123		if (err) {
  1124			errorfc(fc, "Error adding test dummy encryption key, %d", err);
  1125			return err;
  1126		}
  1127	
  1128		warnfc(fc, "test_dummy_encryption mode enabled");
  1129		return 0;
  1130	}
  1131	#else
  1132	static int ceph_apply_test_dummy_encryption(struct super_block *sb,
  1133						    struct fs_context *fc,
  1134						    struct ceph_mount_options *fsopt)
  1135	{
  1136		return 0;
  1137	}
  1138	#endif
  1139	

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

             reply	other threads:[~2023-03-21  4:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-21  3:59 kernel test robot [this message]
2023-03-21  9:58 ` [ceph-client:testing 19/80] fs/ceph/super.c:1122:15: error: implicit declaration of function 'fscrypt_add_test_dummy_key' Ilya Dryomov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202303211100.ExmaGnB0-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=idryomov@gmail.com \
    --cc=jlayton@kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=xiubli@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).