aboutsummaryrefslogtreecommitdiffstats
path: root/config/kernel-tmpfile.m4
diff options
context:
space:
mode:
authorRob Norris <[email protected]>2024-01-23 10:50:53 +1100
committerBrian Behlendorf <[email protected]>2024-01-29 11:36:07 -0800
commita41d0b29a9b31b2b257785071cac4acca4efdc19 (patch)
tree55a70cc216902565dc763d6b9415617dba1cb1db /config/kernel-tmpfile.m4
parent0c11f7c96f3b3c542de68b476b7954c3ac0f7e5c (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-tmpfile.m4')
-rw-r--r--config/kernel-tmpfile.m48
1 files changed, 4 insertions, 4 deletions
diff --git a/config/kernel-tmpfile.m4 b/config/kernel-tmpfile.m4
index cc18b8f65..743951418 100644
--- a/config/kernel-tmpfile.m4
+++ b/config/kernel-tmpfile.m4
@@ -9,7 +9,7 @@ AC_DEFUN([ZFS_AC_KERNEL_SRC_TMPFILE], [
dnl #
ZFS_LINUX_TEST_SRC([inode_operations_tmpfile_mnt_idmap], [
#include <linux/fs.h>
- int tmpfile(struct mnt_idmap *idmap,
+ static int tmpfile(struct mnt_idmap *idmap,
struct inode *inode, struct file *file,
umode_t mode) { return 0; }
static struct inode_operations
@@ -22,7 +22,7 @@ AC_DEFUN([ZFS_AC_KERNEL_SRC_TMPFILE], [
dnl #
ZFS_LINUX_TEST_SRC([inode_operations_tmpfile], [
#include <linux/fs.h>
- int tmpfile(struct user_namespace *userns,
+ static int tmpfile(struct user_namespace *userns,
struct inode *inode, struct file *file,
umode_t mode) { return 0; }
static struct inode_operations
@@ -36,7 +36,7 @@ AC_DEFUN([ZFS_AC_KERNEL_SRC_TMPFILE], [
dnl #
ZFS_LINUX_TEST_SRC([inode_operations_tmpfile_dentry_userns], [
#include <linux/fs.h>
- int tmpfile(struct user_namespace *userns,
+ static int tmpfile(struct user_namespace *userns,
struct inode *inode, struct dentry *dentry,
umode_t mode) { return 0; }
static struct inode_operations
@@ -46,7 +46,7 @@ AC_DEFUN([ZFS_AC_KERNEL_SRC_TMPFILE], [
],[])
ZFS_LINUX_TEST_SRC([inode_operations_tmpfile_dentry], [
#include <linux/fs.h>
- int tmpfile(struct inode *inode, struct dentry *dentry,
+ static int tmpfile(struct inode *inode, struct dentry *dentry,
umode_t mode) { return 0; }
static struct inode_operations
iops __attribute__ ((unused)) = {