diff options
author | Rob Norris <[email protected]> | 2024-01-23 17:43:20 +1100 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2024-01-29 14:53:29 -0800 |
commit | cbd51c5f2416fecd1e0c1b79c7dad385ad29f5ce (patch) | |
tree | 87af257271b933868165a91b87312cf413c46d5f /config/kernel-inode-permission.m4 | |
parent | 09e6724e1ee545a6afefc258820870dfedb2a16f (diff) |
Linux 6.8 compat: fix inode permission tests
The name inode_permission is now defined in the kernel. Rename ours to
test_permission, in line with most of our other tests.
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-inode-permission.m4')
-rw-r--r-- | config/kernel-inode-permission.m4 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/config/kernel-inode-permission.m4 b/config/kernel-inode-permission.m4 index aef4005c4..f7fc16439 100644 --- a/config/kernel-inode-permission.m4 +++ b/config/kernel-inode-permission.m4 @@ -8,12 +8,12 @@ AC_DEFUN([ZFS_AC_KERNEL_SRC_PERMISSION], [ #include <linux/fs.h> #include <linux/sched.h> - static int inode_permission(struct mnt_idmap *idmap, + static int test_permission(struct mnt_idmap *idmap, struct inode *inode, int mask) { return 0; } static const struct inode_operations iops __attribute__ ((unused)) = { - .permission = inode_permission, + .permission = test_permission, }; ],[]) @@ -25,12 +25,12 @@ AC_DEFUN([ZFS_AC_KERNEL_SRC_PERMISSION], [ #include <linux/fs.h> #include <linux/sched.h> - static int inode_permission(struct user_namespace *userns, + static int test_permission(struct user_namespace *userns, struct inode *inode, int mask) { return 0; } static const struct inode_operations iops __attribute__ ((unused)) = { - .permission = inode_permission, + .permission = test_permission, }; ],[]) ]) |