aboutsummaryrefslogtreecommitdiffstats
path: root/config/kernel-evict-inode.m4
diff options
context:
space:
mode:
authorRob Norris <[email protected]>2024-01-23 10:50:53 +1100
committerBrian Behlendorf <[email protected]>2024-01-29 14:53:29 -0800
commit64afc4e66edf6a740f1c7ab808a452e42d964eb7 (patch)
tree85be65545abeeb522357b74e2a49f3d69905fe55 /config/kernel-evict-inode.m4
parent621dfaff5ce1673ca1edce82e44cb70b2e00316e (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-evict-inode.m4')
-rw-r--r--config/kernel-evict-inode.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/config/kernel-evict-inode.m4 b/config/kernel-evict-inode.m4
index 66f10492d..87082c9a2 100644
--- a/config/kernel-evict-inode.m4
+++ b/config/kernel-evict-inode.m4
@@ -6,7 +6,7 @@ dnl #
AC_DEFUN([ZFS_AC_KERNEL_SRC_EVICT_INODE], [
ZFS_LINUX_TEST_SRC([evict_inode], [
#include <linux/fs.h>
- void evict_inode (struct inode * t) { return; }
+ static void evict_inode (struct inode * t) { return; }
static struct super_operations sops __attribute__ ((unused)) = {
.evict_inode = evict_inode,
};