2 dnl # Starting from Linux 5.13, flush_dcache_page() becomes an inline
3 dnl # function and may indirectly referencing GPL-only cpu_feature_keys on
8 dnl # Checking if flush_dcache_page is exported GPL-only
10 AC_DEFUN([ZFS_AC_KERNEL_SRC_FLUSH_DCACHE_PAGE], [
11 ZFS_LINUX_TEST_SRC([flush_dcache_page], [
12 #include <asm/cacheflush.h>
15 ], [], [ZFS_META_LICENSE])
17 AC_DEFUN([ZFS_AC_KERNEL_FLUSH_DCACHE_PAGE], [
18 AC_MSG_CHECKING([whether flush_dcache_page() is GPL-only])
19 ZFS_LINUX_TEST_RESULT([flush_dcache_page_license], [
23 AC_DEFINE(HAVE_FLUSH_DCACHE_PAGE_GPL_ONLY, 1,
24 [flush_dcache_page() is GPL-only])