fscrypt: clean up fscrypt_add_test_dummy_key()
authorEric Biggers <ebiggers@google.com>
Wed, 8 Feb 2023 06:21:07 +0000 (22:21 -0800)
committerEric Biggers <ebiggers@google.com>
Wed, 8 Feb 2023 06:30:30 +0000 (22:30 -0800)
commit097d7c1fcb8d4b52c62a36f94b8f18bc21a24934
tree756fe0e27fcec53e247c16b9892bf4af87a30409
parentec64036e68634231f5891faa2b7a81cdc5dcd001
fscrypt: clean up fscrypt_add_test_dummy_key()

Now that fscrypt_add_test_dummy_key() is only called by
setup_file_encryption_key() and not by the individual filesystems,
un-export it.  Also change its prototype to take the
fscrypt_key_specifier directly, as the caller already has it.

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