[PATCH] fs/9p: remove unnecessary extern keywords from header files
From: Baran Arda
Date: Fri Apr 10 2026 - 16:28:31 EST
Remove explicit extern keywords from function prototypes in 9p
header files.
Signed-off-by: Baran Arda <baran9arda@xxxxxxxxx>
---
fs/9p/cache.h | 6 +++---
fs/9p/v9fs.h | 32 ++++++++++++++++----------------
fs/9p/v9fs_vfs.h | 18 +++++++++---------
fs/9p/xattr.h | 2 +-
4 files changed, 29 insertions(+), 29 deletions(-)
diff --git a/fs/9p/cache.h b/fs/9p/cache.h
index ee1b6b06a2fd..25f0dd58122e 100644
--- a/fs/9p/cache.h
+++ b/fs/9p/cache.h
@@ -11,10 +11,10 @@
#ifdef CONFIG_9P_FSCACHE
#include <linux/fscache.h>
-extern int v9fs_cache_session_get_cookie(struct v9fs_session_info *v9ses,
- const char *dev_name);
+int v9fs_cache_session_get_cookie(struct v9fs_session_info *v9ses,
+ const char *dev_name);
-extern void v9fs_cache_inode_get_cookie(struct inode *inode);
+void v9fs_cache_inode_get_cookie(struct inode *inode);
#else /* CONFIG_9P_FSCACHE */
diff --git a/fs/9p/v9fs.h b/fs/9p/v9fs.h
index 6a12445d3858..cd58acdd3fb5 100644
--- a/fs/9p/v9fs.h
+++ b/fs/9p/v9fs.h
@@ -166,32 +166,32 @@ static inline struct fscache_volume *v9fs_session_cache(struct v9fs_session_info
#endif
}
-extern const struct fs_parameter_spec v9fs_param_spec[];
+const struct fs_parameter_spec v9fs_param_spec[];
-extern int v9fs_parse_param(struct fs_context *fc, struct fs_parameter *param);
-extern int v9fs_show_options(struct seq_file *m, struct dentry *root);
+int v9fs_parse_param(struct fs_context *fc, struct fs_parameter *param);
+int v9fs_show_options(struct seq_file *m, struct dentry *root);
struct p9_fid *v9fs_session_init(struct v9fs_session_info *v9ses,
struct fs_context *fc);
-extern void v9fs_session_close(struct v9fs_session_info *v9ses);
-extern void v9fs_session_cancel(struct v9fs_session_info *v9ses);
-extern void v9fs_session_begin_cancel(struct v9fs_session_info *v9ses);
-extern struct dentry *v9fs_vfs_lookup(struct inode *dir, struct dentry *dentry,
+void v9fs_session_close(struct v9fs_session_info *v9ses);
+void v9fs_session_cancel(struct v9fs_session_info *v9ses);
+void v9fs_session_begin_cancel(struct v9fs_session_info *v9ses);
+struct dentry *v9fs_vfs_lookup(struct inode *dir, struct dentry *dentry,
unsigned int flags);
-extern int v9fs_vfs_unlink(struct inode *i, struct dentry *d);
-extern int v9fs_vfs_rmdir(struct inode *i, struct dentry *d);
-extern int v9fs_vfs_rename(struct mnt_idmap *idmap,
+int v9fs_vfs_unlink(struct inode *i, struct dentry *d);
+int v9fs_vfs_rmdir(struct inode *i, struct dentry *d);
+int v9fs_vfs_rename(struct mnt_idmap *idmap,
struct inode *old_dir, struct dentry *old_dentry,
struct inode *new_dir, struct dentry *new_dentry,
unsigned int flags);
-extern struct inode *v9fs_inode_from_fid(struct v9fs_session_info *v9ses,
+struct inode *v9fs_inode_from_fid(struct v9fs_session_info *v9ses,
struct p9_fid *fid,
struct super_block *sb, int new);
-extern const struct inode_operations v9fs_dir_inode_operations_dotl;
-extern const struct inode_operations v9fs_file_inode_operations_dotl;
-extern const struct inode_operations v9fs_symlink_inode_operations_dotl;
-extern const struct netfs_request_ops v9fs_req_ops;
-extern struct inode *v9fs_inode_from_fid_dotl(struct v9fs_session_info *v9ses,
+const struct inode_operations v9fs_dir_inode_operations_dotl;
+const struct inode_operations v9fs_file_inode_operations_dotl;
+const struct inode_operations v9fs_symlink_inode_operations_dotl;
+const struct netfs_request_ops v9fs_req_ops;
+struct inode *v9fs_inode_from_fid_dotl(struct v9fs_session_info *v9ses,
struct p9_fid *fid,
struct super_block *sb, int new);
diff --git a/fs/9p/v9fs_vfs.h b/fs/9p/v9fs_vfs.h
index d3aefbec4de6..a8f09063e0d1 100644
--- a/fs/9p/v9fs_vfs.h
+++ b/fs/9p/v9fs_vfs.h
@@ -28,15 +28,15 @@
/* flags for v9fs_stat2inode() & v9fs_stat2inode_dotl() */
#define V9FS_STAT2INODE_KEEP_ISIZE 1
-extern struct file_system_type v9fs_fs_type;
-extern const struct address_space_operations v9fs_addr_operations;
-extern const struct file_operations v9fs_file_operations;
-extern const struct file_operations v9fs_file_operations_dotl;
-extern const struct file_operations v9fs_dir_operations;
-extern const struct file_operations v9fs_dir_operations_dotl;
-extern const struct dentry_operations v9fs_dentry_operations;
-extern const struct dentry_operations v9fs_cached_dentry_operations;
-extern struct kmem_cache *v9fs_inode_cache;
+struct file_system_type v9fs_fs_type;
+const struct address_space_operations v9fs_addr_operations;
+const struct file_operations v9fs_file_operations;
+const struct file_operations v9fs_file_operations_dotl;
+const struct file_operations v9fs_dir_operations;
+const struct file_operations v9fs_dir_operations_dotl;
+const struct dentry_operations v9fs_dentry_operations;
+const struct dentry_operations v9fs_cached_dentry_operations;
+struct kmem_cache *v9fs_inode_cache;
struct inode *v9fs_alloc_inode(struct super_block *sb);
void v9fs_free_inode(struct inode *inode);
diff --git a/fs/9p/xattr.h b/fs/9p/xattr.h
index 3ad5a802352a..ffba83163400 100644
--- a/fs/9p/xattr.h
+++ b/fs/9p/xattr.h
@@ -10,7 +10,7 @@
#include <net/9p/9p.h>
#include <net/9p/client.h>
-extern const struct xattr_handler * const v9fs_xattr_handlers[];
+const struct xattr_handler * const v9fs_xattr_handlers[];
ssize_t v9fs_fid_xattr_get(struct p9_fid *fid, const char *name,
void *buffer, size_t buffer_size);
--
2.50.1 (Apple Git-155)