Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ubifs: auth: Add CONFIG_KEYS dependency

The new authentication support causes a build failure
when CONFIG_KEYS is disabled, so add a dependency.

fs/ubifs/auth.c: In function 'ubifs_init_authentication':
fs/ubifs/auth.c:249:16: error: implicit declaration of function 'request_key'; did you mean 'request_irq'? [-Werror=implicit-function-declaration]
keyring_key = request_key(&key_type_logon, c->auth_key_name, NULL);

Fixes: d8a22773a12c ("ubifs: Enable authentication support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Richard Weinberger <richard@nod.at>

authored by

Arnd Bergmann and committed by
Richard Weinberger
60eb5da2 aa3d31e0

+1
+1
fs/ubifs/Kconfig
··· 86 86 87 87 config UBIFS_FS_AUTHENTICATION 88 88 bool "UBIFS authentication support" 89 + depends on KEYS 89 90 select CRYPTO_HMAC 90 91 help 91 92 Enable authentication support for UBIFS. This feature offers protection