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-show-options.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-show-options.m4')
-rw-r--r-- | config/kernel-show-options.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/kernel-show-options.m4 b/config/kernel-show-options.m4 index 93bd5fbfb..fd62f3008 100644 --- a/config/kernel-show-options.m4 +++ b/config/kernel-show-options.m4 @@ -5,7 +5,7 @@ AC_DEFUN([ZFS_AC_KERNEL_SRC_SHOW_OPTIONS], [ ZFS_LINUX_TEST_SRC([super_operations_show_options], [ #include <linux/fs.h> - int show_options(struct seq_file * x, struct dentry * y) { + static int show_options(struct seq_file * x, struct dentry * y) { return 0; }; |