1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
../../../../../../kernel/xiaomi/sm8150/fs/crypto/fscrypt_ice.c:15:5: error: redefinition of 'fscrypt_using_hardware_encryption'
int fscrypt_using_hardware_encryption(const struct inode *inode)
    ^
../../../../../../kernel/xiaomi/sm8150/include/linux/fscrypt.h:268:19: note: previous definition is here
static inline int fscrypt_using_hardware_encryption(const struct inode *inode)
                  ^
../../../../../../kernel/xiaomi/sm8150/fs/crypto/fscrypt_ice.c:122:6: error: redefinition of 'fscrypt_set_ice_dun'
void fscrypt_set_ice_dun(const struct inode *inode, struct bio *bio, u64 dun)
     ^
../../../../../../kernel/xiaomi/sm8150/include/linux/fscrypt.h:273:20: note: previous definition is here
static inline void fscrypt_set_ice_dun(const struct inode *inode,
                   ^
../../../../../../kernel/xiaomi/sm8150/fs/crypto/fscrypt_ice.c:125:16: error: no member named 'bi_dun' in 'struct bvec_iter'; did you mean 'bi_done'?
                bio->bi_iter.bi_dun = dun;
                             ^~~~~~
                             bi_done
../../../../../../kernel/xiaomi/sm8150/include/linux/bvec.h:43:26: note: 'bi_done' declared here
        unsigned int            bi_done;        /* number of bytes completed */
                                ^
../../../../../../kernel/xiaomi/sm8150/fs/crypto/fscrypt_ice.c:129:6: error: redefinition of 'fscrypt_set_ice_skip'
void fscrypt_set_ice_skip(struct bio *bio, int bi_crypt_skip)
     ^
../../../../../../kernel/xiaomi/sm8150/include/linux/fscrypt.h:276:20: note: previous definition is here
static inline void fscrypt_set_ice_skip(struct bio *bio, int bi_crypt_skip)
                   ^
../../../../../../kernel/xiaomi/sm8150/fs/crypto/fscrypt_ice.c:142:6: error: redefinition of 'fscrypt_mergeable_bio'
bool fscrypt_mergeable_bio(struct bio *bio, u64 dun, bool bio_encrypted,
     ^
../../../../../../kernel/xiaomi/sm8150/include/linux/fscrypt.h:279:20: note: previous definition is here
static inline bool fscrypt_mergeable_bio(struct bio *bio,
                   ^
../../../../../../kernel/xiaomi/sm8150/fs/crypto/fscrypt_ice.c:153:7: error: no member named 'bi_dun' in 'struct bvec_iter'; did you mean 'bi_done'?
        if (!bio_dun(bio) && !bio_encrypted)
             ^
../../../../../../kernel/xiaomi/sm8150/include/linux/bio.h:72:39: note: expanded from macro 'bio_dun'
#define bio_dun(bio)            ((bio)->bi_iter.bi_dun)
                                                ^
../../../../../../kernel/xiaomi/sm8150/include/linux/bvec.h:43:26: note: 'bi_done' declared here
        unsigned int            bi_done;        /* number of bytes completed */
                                ^
../../../../../../kernel/xiaomi/sm8150/fs/crypto/fscrypt_ice.c:157:9: error: no member named 'bi_dun' in 'struct bvec_iter'; did you mean 'bi_done'?
        return bio_end_dun(bio) == dun;
               ^
../../../../../../kernel/xiaomi/sm8150/include/linux/bio.h:74:27: note: expanded from macro 'bio_end_dun'
#define bio_end_dun(bio)        (bio_dun(bio) + bio_duns(bio))
                                 ^
../../../../../../kernel/xiaomi/sm8150/include/linux/bio.h:72:39: note: expanded from macro 'bio_dun'
#define bio_dun(bio)            ((bio)->bi_iter.bi_dun)
                                                ^
../../../../../../kernel/xiaomi/sm8150/include/linux/bvec.h:43:26: note: 'bi_done' declared here
        unsigned int            bi_done;        /* number of bytes completed */
                                ^