Skip to content

Commit fc9e6bb

Browse files
committed
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/ Signed-off-by: Rob Norris <[email protected]>
1 parent e976b58 commit fc9e6bb

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)