CI: Move perl script to dist_noinst_DATA
[zfs.git] / config / kernel-writepage_t.m4
blob3a0cffd98570601b36b7630043e95163b302beb7
1 AC_DEFUN([ZFS_AC_KERNEL_SRC_WRITEPAGE_T], [
2         dnl #
3         dnl # 6.3 API change
4         dnl # The writepage_t function type now has its first argument as
5         dnl # struct folio* instead of struct page*
6         dnl #
7         ZFS_LINUX_TEST_SRC([writepage_t_folio], [
8                 #include <linux/writeback.h>
9                 int putpage(struct folio *folio,
10                     struct writeback_control *wbc, void *data)
11                 { return 0; }
12                 writepage_t func = putpage;
13         ],[])
16 AC_DEFUN([ZFS_AC_KERNEL_WRITEPAGE_T], [
17         AC_MSG_CHECKING([whether int (*writepage_t)() takes struct folio*])
18         ZFS_LINUX_TEST_RESULT([writepage_t_folio], [
19                 AC_MSG_RESULT(yes)
20                 AC_DEFINE(HAVE_WRITEPAGE_T_FOLIO, 1,
21                    [int (*writepage_t)() takes struct folio*])
22         ],[
23                 AC_MSG_RESULT(no)
24         ])