summaryrefslogtreecommitdiff
path: root/drivers/base/devtmpfs.c
diff options
context:
space:
mode:
authorBen Dooks <ben.dooks@codethink.co.uk>2026-01-16 15:07:45 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-01-16 16:44:31 +0100
commit99aa03f98ce56804f2e8936f9dabf8c4f117a661 (patch)
treea74df3f19f307f7d76cfe610b8a39d048b4bd920 /drivers/base/devtmpfs.c
parent9d4502fef00fa7a798d3c0806d4da4466a7ffc6f (diff)
downloadlwn-99aa03f98ce56804f2e8936f9dabf8c4f117a661.tar.gz
lwn-99aa03f98ce56804f2e8936f9dabf8c4f117a661.zip
devtmpfs: make 'devtmpfs_context_ops' static
The 'devtmpfs_context_ops' object is not exported outside the devtmpfs.c file nor defined anywhere for use outside. Make this static to remove the following sparse warning: drivers/base/devtmpfs.c:88:30: warning: symbol 'devtmpfs_context_ops' was not declared. Should it be static? Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> Link: https://patch.msgid.link/20260116150745.1330145-1-ben.dooks@codethink.co.uk Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/devtmpfs.c')
-rw-r--r--drivers/base/devtmpfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/devtmpfs.c b/drivers/base/devtmpfs.c
index 194b44075ac7..748ad3698107 100644
--- a/drivers/base/devtmpfs.c
+++ b/drivers/base/devtmpfs.c
@@ -85,7 +85,7 @@ static int devtmpfs_get_tree(struct fs_context *fc)
}
/* Ops are filled in during init depending on underlying shmem or ramfs type */
-struct fs_context_operations devtmpfs_context_ops = {};
+static struct fs_context_operations devtmpfs_context_ops = {};
/* Call the underlying initialization and set to our ops */
static int devtmpfs_init_fs_context(struct fs_context *fc)