aboutsummaryrefslogtreecommitdiffstats
path: root/fs/kernfs/kernfs-internal.h
diff options
context:
space:
mode:
authorImran Khan <[email protected]>2022-02-18 01:02:05 +0000
committerGreg Kroah-Hartman <[email protected]>2022-02-22 07:11:00 +0000
commitf3a690227f07390b0cfccb96ebbd87bf4ab0a5b2 (patch)
tree214b45d36463d104cc558c3be32a0e5f7637f5af /fs/kernfs/kernfs-internal.h
parentplatform: use dev_err_probe() in platform_get_irq_byname() (diff)
downloadkernel-f3a690227f07390b0cfccb96ebbd87bf4ab0a5b2.tar.gz
kernel-f3a690227f07390b0cfccb96ebbd87bf4ab0a5b2.zip
kernfs: remove redundant kernfs_rwsem declaration.
Since 'commit 393c3714081a ("kernfs: switch global kernfs_rwsem lock to per-fs lock")' per-fs kernfs_rwsem has replaced global kernfs_rwsem. Remove redundant declaration of global kernfs_rwsem. Fixes: 393c3714081a ("kernfs: switch global kernfs_rwsem lock to per-fs lock") Signed-off-by: Imran Khan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'fs/kernfs/kernfs-internal.h')
-rw-r--r--fs/kernfs/kernfs-internal.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/kernfs/kernfs-internal.h b/fs/kernfs/kernfs-internal.h
index f9cc912c31e1..fc3b32f82a60 100644
--- a/fs/kernfs/kernfs-internal.h
+++ b/fs/kernfs/kernfs-internal.h
@@ -122,7 +122,6 @@ int __kernfs_setattr(struct kernfs_node *kn, const struct iattr *iattr);
/*
* dir.c
*/
-extern struct rw_semaphore kernfs_rwsem;
extern const struct dentry_operations kernfs_dops;
extern const struct file_operations kernfs_dir_fops;
extern const struct inode_operations kernfs_dir_iops;