warning: (UBIFS_FS_ENCRYPTION) selects FS_ENCRYPTION which has unmet direct dependencies (BLOCK)

From: kbuild test robot
Date: Mon Dec 19 2016 - 01:53:39 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: b0b3a37b908b5906524c11f3ca12cd7c9d4adc1c
commit: d475a507457b5cafa428871a473d0dcc828c5f68 ubifs: Add skeleton for fscrypto
date: 6 days ago
config: x86_64-randconfig-x016-12191306 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout d475a507457b5cafa428871a473d0dcc828c5f68
# save the attached .config to linux build tree
make ARCH=x86_64

All error/warnings (new ones prefixed by >>):

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' [-Werror=implicit-function-declaration]
bio = bio_alloc(GFP_NOWAIT, 1);
^~~~~~~~~
>> fs/crypto/crypto.c:355:7: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
bio = bio_alloc(GFP_NOWAIT, 1);
^
>> fs/crypto/crypto.c:360:6: error: dereferencing pointer to incomplete type 'struct bio'
bio->bi_bdev = inode->i_sb->s_bdev;
^~
>> fs/crypto/crypto.c:363:3: error: implicit declaration of function 'bio_set_op_attrs' [-Werror=implicit-function-declaration]
bio_set_op_attrs(bio, REQ_OP_WRITE, 0);
^~~~~~~~~~~~~~~~
>> fs/crypto/crypto.c:364:9: error: implicit declaration of function 'bio_add_page' [-Werror=implicit-function-declaration]
ret = bio_add_page(bio, ciphertext_page,
^~~~~~~~~~~~
>> fs/crypto/crypto.c:369:4: error: implicit declaration of function 'bio_put' [-Werror=implicit-function-declaration]
bio_put(bio);
^~~~~~~
>> fs/crypto/crypto.c:373:9: error: implicit declaration of function 'submit_bio_wait' [-Werror=implicit-function-declaration]
err = submit_bio_wait(bio);
^~~~~~~~~~~~~~~
fs/crypto/crypto.c: In function 'fscrypt_d_revalidate':
>> fs/crypto/crypto.c:411:25: error: dereferencing pointer to incomplete type 'struct key'
(ci->ci_keyring_key->flags & ((1 << KEY_FLAG_INVALIDATED) |
^~
>> fs/crypto/crypto.c:411:42: error: 'KEY_FLAG_INVALIDATED' undeclared (first use in this function)
(ci->ci_keyring_key->flags & ((1 << KEY_FLAG_INVALIDATED) |
^~~~~~~~~~~~~~~~~~~~
fs/crypto/crypto.c:411:42: note: each undeclared identifier is reported only once for each function it appears in
>> fs/crypto/crypto.c:412:14: error: 'KEY_FLAG_REVOKED' undeclared (first use in this function)
(1 << KEY_FLAG_REVOKED) |
^~~~~~~~~~~~~~~~
>> fs/crypto/crypto.c:413:14: error: 'KEY_FLAG_DEAD' undeclared (first use in this function)
(1 << KEY_FLAG_DEAD))))
^~~~~~~~~~~~~
fs/crypto/crypto.c: In function 'completion_pages':
>> fs/crypto/crypto.c:457:2: error: implicit declaration of function 'bio_for_each_segment_all' [-Werror=implicit-function-declaration]
bio_for_each_segment_all(bv, bio, i) {
^~~~~~~~~~~~~~~~~~~~~~~~
>> fs/crypto/crypto.c:457:39: error: expected ';' before '{' token
bio_for_each_segment_all(bv, bio, i) {
^
cc1: some warnings being treated as errors
--
fs/crypto/keyinfo.c: In function 'validate_user_key':
>> fs/crypto/keyinfo.c:98:16: error: implicit declaration of function 'request_key' [-Werror=implicit-function-declaration]
keyring_key = request_key(&key_type_logon, full_key_descriptor, NULL);
^~~~~~~~~~~
>> fs/crypto/keyinfo.c:98:29: error: 'key_type_logon' undeclared (first use in this function)
keyring_key = request_key(&key_type_logon, full_key_descriptor, NULL);
^~~~~~~~~~~~~~
fs/crypto/keyinfo.c:98:29: note: each undeclared identifier is reported only once for each function it appears in
>> fs/crypto/keyinfo.c:103:17: error: dereferencing pointer to incomplete type 'struct key'
if (keyring_key->type != &key_type_logon) {
^~
>> fs/crypto/keyinfo.c:110:8: error: implicit declaration of function 'user_key_payload' [-Werror=implicit-function-declaration]
ukp = user_key_payload(keyring_key);
^~~~~~~~~~~~~~~~
>> fs/crypto/keyinfo.c:110:6: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
ukp = user_key_payload(keyring_key);
^
>> fs/crypto/keyinfo.c:111:9: error: dereferencing pointer to incomplete type 'const struct user_key_payload'
if (ukp->datalen != sizeof(struct fscrypt_key)) {
^~
fs/crypto/keyinfo.c: In function 'fscrypt_get_encryption_info':
>> fs/crypto/keyinfo.c:327:40: error: 'KEY_FLAG_INVALIDATED' undeclared (first use in this function)
(ci->ci_keyring_key->flags & ((1 << KEY_FLAG_INVALIDATED) |
^~~~~~~~~~~~~~~~~~~~
>> fs/crypto/keyinfo.c:328:19: error: 'KEY_FLAG_REVOKED' undeclared (first use in this function)
(1 << KEY_FLAG_REVOKED) |
^~~~~~~~~~~~~~~~
>> fs/crypto/keyinfo.c:329:19: error: 'KEY_FLAG_DEAD' undeclared (first use in this function)
(1 << KEY_FLAG_DEAD)))))
^~~~~~~~~~~~~
cc1: some warnings being treated as errors

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip