mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-03-22 08:51:30 +03:00
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 <robn@despairlabs.com>
This commit is contained in:
parent
b3922eb8c1
commit
b8c5d43f34
@ -7,7 +7,7 @@ AC_DEFUN([ZFS_AC_KERNEL_SRC_KMAP_ATOMIC_ARGS], [
|
||||
ZFS_LINUX_TEST_SRC([kmap_atomic], [
|
||||
#include <linux/pagemap.h>
|
||||
],[
|
||||
struct page page;
|
||||
struct page page = {};
|
||||
kmap_atomic(&page);
|
||||
])
|
||||
])
|
||||
|
||||
Loading…
Reference in New Issue
Block a user