aboutsummaryrefslogtreecommitdiffstats
path: root/module/os/linux/zfs/zpl_ctldir.c
diff options
context:
space:
mode:
authorTino Reichardt <[email protected]>2022-10-01 00:34:39 +0200
committerGitHub <[email protected]>2022-09-30 15:34:39 -0700
commita2d5643f88ceb7c5d30fa43cc683756d19cb3eb1 (patch)
tree1720f659c632c11305d6537843500f0a92fb8303 /module/os/linux/zfs/zpl_ctldir.c
parent55d7afa4adbb4ca569e9c4477a7d121f4dc0bfbd (diff)
Fix double const qualifier declarations
Some header files define structures like this one: typedef const struct zio_checksum_info { /* ... */ const char *ci_name; } zio_abd_checksum_func_t; So we can use `zio_abd_checksum_func_t` for const declarations now. It's not needed that we use the `const` qualifier again like this: `const zio_abd_checksum_func_t *varname;` This patch solves the double const qualifiers, which were found by smatch. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Richard Yao <[email protected]> Signed-off-by: Tino Reichardt <[email protected]> Closes #13961
Diffstat (limited to 'module/os/linux/zfs/zpl_ctldir.c')
-rw-r--r--module/os/linux/zfs/zpl_ctldir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/os/linux/zfs/zpl_ctldir.c b/module/os/linux/zfs/zpl_ctldir.c
index 1a688687a..837629e4a 100644
--- a/module/os/linux/zfs/zpl_ctldir.c
+++ b/module/os/linux/zfs/zpl_ctldir.c
@@ -208,7 +208,7 @@ zpl_snapdir_revalidate(struct dentry *dentry, unsigned int flags)
return (!!dentry->d_inode);
}
-static const dentry_operations_t zpl_dops_snapdirs = {
+static dentry_operations_t zpl_dops_snapdirs = {
/*
* Auto mounting of snapshots is only supported for 2.6.37 and
* newer kernels. Prior to this kernel the ops->follow_link()