mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-02-06 07:13:25 +03:00
config: fix page_mapping test
It always failed from "unused variable" warnings-errors. The resulting `#define page_mapping(...)` happend to work because it always overrode the kernel's function prototype, but that's brittle. Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de> Signed-off-by: Rob Norris <robn@despairlabs.com> Closes #16479
This commit is contained in:
parent
3894844b62
commit
05aeaca7de
@ -21,8 +21,8 @@ AC_DEFUN([ZFS_AC_KERNEL_SRC_MM_PAGE_MAPPING], [
|
|||||||
ZFS_LINUX_TEST_SRC([page_mapping], [
|
ZFS_LINUX_TEST_SRC([page_mapping], [
|
||||||
#include <linux/pagemap.h>
|
#include <linux/pagemap.h>
|
||||||
],[
|
],[
|
||||||
struct page *p = NULL;
|
struct address_space *m;
|
||||||
struct address_space *m = page_mapping(NULL);
|
m = page_mapping(NULL);
|
||||||
])
|
])
|
||||||
])
|
])
|
||||||
AC_DEFUN([ZFS_AC_KERNEL_MM_PAGE_MAPPING], [
|
AC_DEFUN([ZFS_AC_KERNEL_MM_PAGE_MAPPING], [
|
||||||
|
Loading…
Reference in New Issue
Block a user