tree:
https://github.com/kdave/btrfs-devel.git dev/auth-hash
head: 15a34ffb02a72d9a272bbeaf80c2eea4cf4e3754
commit: 15a34ffb02a72d9a272bbeaf80c2eea4cf4e3754 [59/59] btrfs: add authenticated plus
secondary checksum for sha256 and blake2b
config: arm64-randconfig-r003-20200623 (attached as .config)
compiler: clang version 11.0.0 (
https://github.com/llvm/llvm-project
1d4c87335d5236ea1f35937e1014980ba961ae34)
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
git checkout 15a34ffb02a72d9a272bbeaf80c2eea4cf4e3754
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from fs/btrfs/ctree.c:10:
fs/btrfs/ctree.h:2276:8: warning: 'const' type qualifier on return type has no
effect [-Wignored-qualifiers]
size_t __const btrfs_get_num_csums(void);
^~~~~~~~
> fs/btrfs/ctree.c:52:10: error: use of undeclared identifier
'BTRFS_CSUM_TYPE_AUTH_CSUM'; did you mean 'BTRFS_CSUM_TYPE_AUTHSUM'?
BTRFS_CSUM_TYPE_AUTH_CSUM },
^~~~~~~~~~~~~~~~~~~~~~~~~
BTRFS_CSUM_TYPE_AUTHSUM
fs/btrfs/ctree.h:2268:2: note: 'BTRFS_CSUM_TYPE_AUTHSUM' declared here
BTRFS_CSUM_TYPE_AUTHSUM = 2,
^
fs/btrfs/ctree.c:56:10: error: use of undeclared identifier
'BTRFS_CSUM_TYPE_AUTH_CSUM'; did you mean 'BTRFS_CSUM_TYPE_AUTHSUM'?
BTRFS_CSUM_TYPE_AUTH_CSUM },
^~~~~~~~~~~~~~~~~~~~~~~~~
BTRFS_CSUM_TYPE_AUTHSUM
fs/btrfs/ctree.h:2268:2: note: 'BTRFS_CSUM_TYPE_AUTHSUM' declared here
BTRFS_CSUM_TYPE_AUTHSUM = 2,
^
fs/btrfs/ctree.c:93:8: warning: 'const' type qualifier on return type has no
effect [-Wignored-qualifiers]
size_t __const btrfs_get_num_csums(void)
^~~~~~~~
2 warnings and 2 errors generated.
vim +52 fs/btrfs/ctree.c
10 #include "ctree.h"
11 #include
"disk-io.h"
12 #include "transaction.h"
13 #include "print-tree.h"
14 #include "locking.h"
15 #include "volumes.h"
16 #include "qgroup.h"
17
18 static int split_node(struct btrfs_trans_handle *trans, struct btrfs_root
19 *root, struct btrfs_path *path, int level);
20 static int split_leaf(struct btrfs_trans_handle *trans, struct btrfs_root *root,
21 const struct btrfs_key *ins_key, struct btrfs_path *path,
22 int data_size, int extend);
23 static int push_node_left(struct btrfs_trans_handle *trans,
24 struct extent_buffer *dst,
25 struct extent_buffer *src, int empty);
26 static int balance_node_right(struct btrfs_trans_handle *trans,
27 struct extent_buffer *dst_buf,
28 struct extent_buffer *src_buf);
29 static void del_ptr(struct btrfs_root *root, struct btrfs_path *path,
30 int level, int slot);
31
32 static const struct btrfs_csums {
33 u8 size;
34 u8 flags;
35 const char name[16];
36 const char driver[14];
37 } btrfs_csums[] = {
38 [BTRFS_CSUM_TYPE_CRC32] = { .size = 4, .name = "crc32c" },
39 [BTRFS_CSUM_TYPE_XXHASH] = { .size = 8, .name = "xxhash64" },
40 [BTRFS_CSUM_TYPE_SHA256] = { .size = 32, .name = "sha256" },
41 [BTRFS_CSUM_TYPE_BLAKE2] = { .size = 32, .name = "blake2b",
42 .driver = "blake2b-256" },
43 [BTRFS_CSUM_TYPE_AUTH_SHA256] = { .size = 32, .name = "auth-sha256",
44 .driver = "hmac(sha256)",
45 .flags = BTRFS_CSUM_TYPE_AUTH },
46 [BTRFS_CSUM_TYPE_AUTH_BLAKE2] = { .size = 32, .name = "auth-blake2b",
47 .driver = "blake2b-256",
48 .flags = BTRFS_CSUM_TYPE_AUTH },
49 [BTRFS_CSUM_TYPE_AUTHSUM_SHA256] = { .size = 32, .name =
"authsum-sha256",
50 .driver = "hmac(sha256)",
51 .flags = BTRFS_CSUM_TYPE_AUTH |
52 BTRFS_CSUM_TYPE_AUTH_CSUM },
53 [BTRFS_CSUM_TYPE_AUTHSUM_BLAKE2] = { .size = 32, .name = "authsum-blake2b",
54 .driver = "blake2b-256",
55 .flags = BTRFS_CSUM_TYPE_AUTH |
56 BTRFS_CSUM_TYPE_AUTH_CSUM },
57 };
58
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org