]> git.baikalelectronics.ru Git - kernel.git/commit
ubifs: add CONFIG_BLOCK dependency for encryption
authorArnd Bergmann <arnd@arndb.de>
Fri, 16 Dec 2016 08:42:16 +0000 (09:42 +0100)
committerRichard Weinberger <richard@nod.at>
Tue, 17 Jan 2017 13:32:47 +0000 (14:32 +0100)
commit61e2b7836211edcb77070302e33ea8cd991d9cb8
tree5c4726bd5c4c84b10e6c353e5a68ff37b29fb095
parent8dc53900eee285a204df237e6e5556f6bcbdf79a
ubifs: add CONFIG_BLOCK dependency for encryption

This came up during the v4.10 merge window:

warning: (UBIFS_FS_ENCRYPTION) selects FS_ENCRYPTION which has unmet direct dependencies (BLOCK)
fs/crypto/crypto.c: In function 'fscrypt_zeroout_range':
fs/crypto/crypto.c:355:9: error: implicit declaration of function 'bio_alloc';did you mean 'd_alloc'? [-Werror=implicit-function-declaration]
   bio = bio_alloc(GFP_NOWAIT, 1);

The easiest way out is to limit UBIFS_FS_ENCRYPTION to configurations
that also enable BLOCK.

Fixes: ff5f6f31ebda ("ubifs: Add skeleton for fscrypto")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/Kconfig