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: um-allmodconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce (this is a W=1 build):
git checkout 15a34ffb02a72d9a272bbeaf80c2eea4cf4e3754
# save the attached .config to linux build tree
make W=1 ARCH=um
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 >>):
cc1: warning: arch/um/include/uapi: No such file or directory [-Wmissing-include-dirs]
In file included from include/asm-generic/bug.h:5,
from ./arch/um/include/generated/asm/bug.h:1,
from include/linux/bug.h:5,
from include/linux/thread_info.h:12,
from include/asm-generic/current.h:5,
from ./arch/um/include/generated/asm/current.h:1,
from include/linux/sched.h:12,
from fs/btrfs/ctree.c:6:
include/asm-generic/fixmap.h: In function 'fix_to_virt':
include/asm-generic/fixmap.h:32:19: warning: comparison of unsigned expression >= 0
is always true [-Wtype-limits]
32 | BUILD_BUG_ON(idx >= __end_of_fixed_addresses);
| ^~
include/linux/compiler.h:372:9: note: in definition of macro
'__compiletime_assert'
372 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler.h:392:2: note: in expansion of macro
'_compiletime_assert'
392 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro
'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
include/asm-generic/fixmap.h:32:2: note: in expansion of macro 'BUILD_BUG_ON'
32 | BUILD_BUG_ON(idx >= __end_of_fixed_addresses);
| ^~~~~~~~~~~~
In file included from include/linux/uaccess.h:11,
from include/linux/sched/task.h:11,
from include/linux/sched/signal.h:9,
from include/linux/rcuwait.h:6,
from include/linux/percpu-rwsem.h:7,
from include/linux/fs.h:33,
from include/linux/huge_mm.h:8,
from include/linux/mm.h:675,
from fs/btrfs/ctree.c:9:
arch/um/include/asm/uaccess.h: In function '__access_ok':
arch/um/include/asm/uaccess.h:17:29: warning: comparison of unsigned expression >= 0
is always true [-Wtype-limits]
17 | (((unsigned long) (addr) >= FIXADDR_USER_START) && \
| ^~
arch/um/include/asm/uaccess.h:45:3: note: in expansion of macro
'__access_ok_vsyscall'
45 | __access_ok_vsyscall(addr, size) ||
| ^~~~~~~~~~~~~~~~~~~~
In file included from fs/btrfs/ctree.c:10:
fs/btrfs/ctree.h: At top level:
fs/btrfs/ctree.h:2276:8: warning: type qualifiers ignored on function return type
[-Wignored-qualifiers]
2276 | size_t __const btrfs_get_num_csums(void);
| ^~~~~~~
> fs/btrfs/ctree.c:52:10: error:
'BTRFS_CSUM_TYPE_AUTH_CSUM' undeclared here (not in a function); did you mean
'BTRFS_CSUM_TYPE_AUTHSUM'?
52 | BTRFS_CSUM_TYPE_AUTH_CSUM },
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| BTRFS_CSUM_TYPE_AUTHSUM
fs/btrfs/ctree.c:93:8: warning: type qualifiers ignored on function return type
[-Wignored-qualifiers]
93 | size_t __const btrfs_get_num_csums(void)
| ^~~~~~~
vim +52 fs/btrfs/ctree.c
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