diff options
author | Rob Norris <[email protected]> | 2024-01-23 10:50:53 +1100 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2024-01-29 14:53:29 -0800 |
commit | 64afc4e66edf6a740f1c7ab808a452e42d964eb7 (patch) | |
tree | 85be65545abeeb522357b74e2a49f3d69905fe55 /config/kernel-fallocate.m4 | |
parent | 621dfaff5ce1673ca1edce82e44cb70b2e00316e (diff) |
Linux 6.8 compat: make test functions static
The kernel is now being compiled with -Wmissing-prototypes. Most of our
test stub functions had no prototype, and failed to compile. Since they
don't need to be visible anywhere else, just make them all static.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Rob Norris <[email protected]>
Sponsored-by: https://despairlabs.com/sponsor/
Closes #15805
Diffstat (limited to 'config/kernel-fallocate.m4')
-rw-r--r-- | config/kernel-fallocate.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/kernel-fallocate.m4 b/config/kernel-fallocate.m4 index 815602d3e..95186dada 100644 --- a/config/kernel-fallocate.m4 +++ b/config/kernel-fallocate.m4 @@ -11,7 +11,7 @@ AC_DEFUN([ZFS_AC_KERNEL_SRC_FALLOCATE], [ ZFS_LINUX_TEST_SRC([file_fallocate], [ #include <linux/fs.h> - long test_fallocate(struct file *file, int mode, + static long test_fallocate(struct file *file, int mode, loff_t offset, loff_t len) { return 0; } static const struct file_operations |