ubifs: auth: Add CONFIG_KEYS dependency
authorArnd Bergmann <arnd@arndb.de>
Fri, 2 Nov 2018 11:11:22 +0000 (12:11 +0100)
committerRichard Weinberger <richard@nod.at>
Thu, 13 Dec 2018 21:09:07 +0000 (22:09 +0100)
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>
fs/ubifs/Kconfig

index 3ee613361f4eeded77b1814c0cc6fdc0811fc241..bc1e082d921d152a6df154378320ff4e5f3bce94 100644 (file)
@@ -86,6 +86,7 @@ config UBIFS_FS_SECURITY
 
 config UBIFS_FS_AUTHENTICATION
        bool "UBIFS authentication support"
+       depends on KEYS
        select CRYPTO_HMAC
        help
          Enable authentication support for UBIFS. This feature offers protection