From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 887593806C8 for ; Fri, 10 Apr 2026 20:26:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775852822; cv=none; b=gXt/aws4XbTRspzFeL7haz/47AJndkEzQzhIowN7cw8d0JRPa6NIiZDKX19MRYuNBhTGvUc0xsiu633+gP9H1MmKUDyb/NU3qrGVNP+QUTubTiZJ962q/eZw3xXpfNEfjyM5JdC/GfzTKFIOLUOnZ3jwZwrOWIbpvuULFQ7wOZk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775852822; c=relaxed/simple; bh=WV6rS5mHsYIoscMOpj3AODRzSoktaNgVJ0h1MK2nX/o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QMfhORHFgkWGUEGV5nigMr7VUYrUdSxqGFDsQsBdIJPNVaMM7/LO+KhRWzZk+AvLOi/XC3fgJnw/Wn/HCT/zru3poO2+16MAmTivI7Emu1gXUQnWUXBXZYcUA1HB8TTE+qrm+H8fzkkUXENxCJEcW2nNRTpja+rBdiGHB4ZT8aU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Hg+GwNkV; arc=none smtp.client-ip=209.85.128.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Hg+GwNkV" Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-488aa77a06eso39084505e9.0 for ; Fri, 10 Apr 2026 13:26:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1775852817; x=1776457617; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=hYy1fnWTcRZBMXRzE8Qr9b3HU+y64sqLNj7mMpB6ZxQ=; b=Hg+GwNkVSiY0E0hUx/dvuoWIwyNwbYKacoh9fwy3TlocO1KASU7wURK/dsdpXdM7kR Uwx4Uy51xG9VRaB/sRC/aN/OEDbV9rvG1V+TVNF3kQwHGyF/HN/T/B1tviei+aNcJDHI Y6SicGcNsY3icUoKDD/T4dp4MbDIvNUS9GXtueG5AWb6I2OqhVY3D4NPrscB4moqS/uY 4AAhAQZE9cWWHZWWkhoWbJgXFCCEDnPEYm1WgaqlEraNDb6fjlD98kwqHEdcTmZ26Xwf Hw/6UZPaEtSw3RSdPhkf6D22gniX6B4gYJaDCp25VlNAQz7nWBx9Aw0RgnjLz2U86AKp PQjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775852817; x=1776457617; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=hYy1fnWTcRZBMXRzE8Qr9b3HU+y64sqLNj7mMpB6ZxQ=; b=etXOI8JIz/xBgC3s9Wol1vPQ9QRda4Pq/ZQ0XN+iv9973aFBZux8im/N3A2oj/PFsH hd8JExaJigUpnCWir3sbTI5J2xC9s2s67aGl9IQKB79r3tzDm5o20nTByHwA2hc/mVEd 9KiQBQ/ogxNVUMIejMzCfHCMgyhkoRuPZiGpfi2r8Negyc5PO80GZsosGQ3b1PXMI9oq B5t/zjbCJCYhNK+a50UYGboiT8st+nqPW4kxpaOUDAAL31gNUSIWwHdMXKWFLglRBIzF 6Imtk5bJVWYHYMVPJQS9viUcx+WQHGzxmXs0y7hRTGm1TzxnrqAOS4mgGS3Jb0++LzMi cAgA== X-Forwarded-Encrypted: i=1; AJvYcCV0ORC35lAg3ubxeFSLTZBsFK09pG8lrYP+Dc/HSs8YaqUoPWkdIUblsRVAMqhkUivm1GgKvHr1ShVnhkw=@vger.kernel.org X-Gm-Message-State: AOJu0YwgjrcNorkWll/+drrsyxYaBmI/mMyC/6C/T1jMvw7LEidrDEfi ZCkqeiBEgjWAL/vHKr6gRfiz+KB3Vc0G507mxepDj1N7eAmd7HuA3knE X-Gm-Gg: AeBDietiVOtAXUKk7f1BP9hW+Chy1ID+Ppdu/GCDu0IPdwTAN82MYk76hj44ZTTQxgl RArrhAkwTdQ4s+38j9zBneP+ZwxZQOXT9bkWaKKp98Le+d7LrIlgRKzBsnoyorItUVnshg65VfO nu+aWFFpVPBNJcMU4gxiwlz6hWa3bCddXZlNkiFosD7eNM5NA78V+utKGYqiS669dkksl6ldYvo C80kmvgd8pZE41eravUXLqRl28HByZ3cJE27BdzGP/GMFqDAs07coAiEpWNSB1vonZMbUY+teSc MrFZqOJmzTlwhwnces1WKzp9Y2a+abFxlQpOcgs3UGXkyfamEH6cqh9lCTDha2v0+YuNmrW0KhH XQ4W2+dzGl0YoRPPm+3C65AEmysSch5acN2OyshWAyrwuHwyOnq721lKGLTaMQymzl3JyDmaX5s /qe6FKobqe9uV0jxtfUY6YpRLsysc+7XbdJnSzViSgdiCKdgbhQWEfGnRYC/MlgDBMdRm9m4xPJ YAQRosbaxo= X-Received: by 2002:a05:600c:a311:b0:483:7903:c3b1 with SMTP id 5b1f17b1804b1-488d68607fbmr46331985e9.20.1775852816617; Fri, 10 Apr 2026 13:26:56 -0700 (PDT) Received: from localhost.localdomain ([31.206.191.21]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-488d531f229sm131909295e9.3.2026.04.10.13.26.55 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 10 Apr 2026 13:26:56 -0700 (PDT) From: Baran Arda To: ericvh@kernel.org, lucho@ionkov.net, asmadeus@codewreck.org Cc: linux_oss@crudebyte.com, v9fs@lists.linux.dev, linux-kernel@vger.kernel.org, Baran Arda Subject: [PATCH] fs/9p: remove unnecessary extern keywords from header files Date: Fri, 10 Apr 2026 23:26:51 +0300 Message-ID: <20260410202651.60818-1-baran9arda@gmail.com> X-Mailer: git-send-email 2.50.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Remove explicit extern keywords from function prototypes in 9p header files. Signed-off-by: Baran Arda --- 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 -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 #include -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)