Skip to contentSkip to conversation

ubifs: auth: add CONFIG_KEYS dependency

PATCH Applied Arnd Bergmann 2 participants 2 messages Nov 2, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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")
---
 fs/ubifs/Kconfig | 1 +
 1 file changed, 1 insertion(+)
fs/ubifs/Kconfig +1 -0
index 529856fbccd0..406c88dc039e 100644
@@ -89,6 +89,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
Signature · 1 line
2.18.0
maintainer Applied
#1 lore raw

Am Freitag, 2. November 2018, 12:11:22 CET schrieb Arnd Bergmann:

Quoted 9 lines

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")

Applied!

Thanks,
//richard