2 dnl # ZERO_PAGE() is an alias for emtpy_zero_page. On certain architectures
3 dnl # this is a GPL exported variable.
7 dnl # Checking if ZERO_PAGE is exported GPL-only
9 AC_DEFUN([ZFS_AC_KERNEL_SRC_ZERO_PAGE], [
10 ZFS_LINUX_TEST_SRC([zero_page], [
11 #include <asm/pgtable.h>
13 struct page *p __attribute__ ((unused));
15 ], [], [ZFS_META_LICENSE])
18 AC_DEFUN([ZFS_AC_KERNEL_ZERO_PAGE], [
19 AC_MSG_CHECKING([whether ZERO_PAGE() is GPL-only])
20 ZFS_LINUX_TEST_RESULT([zero_page_license], [
24 AC_DEFINE(HAVE_ZERO_PAGE_GPL_ONLY, 1,
25 [ZERO_PAGE() is GPL-only])