[PATCH] fs: crypto: add CONFIG_BLOCK dependency

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The newly added generic crypto abstraction for file systems operates
on 'struct bio' objects, which do not exist when CONFIG_BLOCK is
disabled:

fs/crypto/crypto.c: In function 'fscrypt_zeroout_range':
fs/crypto/crypto.c:308:9: error: implicit declaration of function 'bio_alloc' [-Werror=implicit-function-declaration]

This adds a Kconfig dependency that prevents FS_ENCRYPTION from being
enabled without BLOCK.

Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
Fixes: 846c506fadf7 ("fs crypto: add Makefile and Kconfig")
---
 fs/crypto/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/crypto/Kconfig b/fs/crypto/Kconfig
index fc5a4f94c87d..9bea124e274b 100644
--- a/fs/crypto/Kconfig
+++ b/fs/crypto/Kconfig
@@ -1,5 +1,6 @@
 config FS_ENCRYPTION
 	bool "FS Encryption (Per-file encryption)"
+	depends on BLOCK
 	select CRYPTO_AES
 	select CRYPTO_CBC
 	select CRYPTO_ECB
-- 
2.7.0

--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux