Skip to content

Commit bfd137d

Browse files
robnbehlendorf
authored andcommitted
config/kmap_atomic: initialise test data
6.18 changes kmap_atomic() to take a const pointer. This is no problem for the places we use it, but Clang fails the test due to a warning about being unable to guarantee that uninitialised data will definitely not change. Easily solved by forcibly initialising it. Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Alexander Motin <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Rob Norris <[email protected]> Closes #17954
1 parent b7e00c7 commit bfd137d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/kernel-kmap-atomic-args.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ AC_DEFUN([ZFS_AC_KERNEL_SRC_KMAP_ATOMIC_ARGS], [
77
ZFS_LINUX_TEST_SRC([kmap_atomic], [
88
#include <linux/pagemap.h>
99
],[
10-
struct page page;
10+
struct page page = {};
1111
kmap_atomic(&page);
1212
])
1313
])

0 commit comments

Comments
 (0)