fscrypt: remove fscrypt_set_test_dummy_encryption()
authorEric Biggers <ebiggers@google.com>
Mon, 15 Aug 2022 18:45:01 +0000 (11:45 -0700)
committerEric Biggers <ebiggers@google.com>
Mon, 22 Aug 2022 20:47:51 +0000 (13:47 -0700)
Now that all its callers have been converted to
fscrypt_parse_test_dummy_encryption() and fscrypt_add_test_dummy_key()
instead, fscrypt_set_test_dummy_encryption() can be removed.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Link: https://lore.kernel.org/r/20220513231605.175121-6-ebiggers@kernel.org
fs/crypto/policy.c
include/linux/fscrypt.h

index 80b8ca0f340b29db71f62cbb2fec85b96618e451..55d57181cd9e9265127280f55959103d18277821 100644 (file)
@@ -833,19 +833,6 @@ bool fscrypt_dummy_policies_equal(const struct fscrypt_dummy_policy *p1,
 }
 EXPORT_SYMBOL_GPL(fscrypt_dummy_policies_equal);
 
-/* Deprecated, do not use */
-int fscrypt_set_test_dummy_encryption(struct super_block *sb, const char *arg,
-                                     struct fscrypt_dummy_policy *dummy_policy)
-{
-       struct fs_parameter param = {
-               .type = fs_value_is_string,
-               .string = arg ? (char *)arg : "",
-       };
-       return fscrypt_parse_test_dummy_encryption(&param, dummy_policy) ?:
-               fscrypt_add_test_dummy_key(sb, dummy_policy);
-}
-EXPORT_SYMBOL_GPL(fscrypt_set_test_dummy_encryption);
-
 /**
  * fscrypt_show_test_dummy_encryption() - show '-o test_dummy_encryption'
  * @seq: the seq_file to print the option to
index 7d2f1e0f23b1feae03d9bd8d3702b00c477e5325..b95b8601b9c15a60bbca47446a88d7f8a1f0fb46 100644 (file)
@@ -295,8 +295,6 @@ int fscrypt_parse_test_dummy_encryption(const struct fs_parameter *param,
                                    struct fscrypt_dummy_policy *dummy_policy);
 bool fscrypt_dummy_policies_equal(const struct fscrypt_dummy_policy *p1,
                                  const struct fscrypt_dummy_policy *p2);
-int fscrypt_set_test_dummy_encryption(struct super_block *sb, const char *arg,
-                               struct fscrypt_dummy_policy *dummy_policy);
 void fscrypt_show_test_dummy_encryption(struct seq_file *seq, char sep,
                                        struct super_block *sb);
 static inline bool