[PATCH v2] drivers/base: make devtmpfs_context_ops static
From: Alexey Suchkov
Date: Fri Jan 16 2026 - 10:43:24 EST
The devtmpfs_context_ops symbol is only used within devtmpfs.c.
Marking it static removes compiler warnings and limits symbol visibility.
Changes since v1:
- Use real name in From and Signed-off-by
Signed-off-by: Alexey Suchkov <aleks.koyf@xxxxxxxxx>
---
drivers/base/devtmpfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/base/devtmpfs.c b/drivers/base/devtmpfs.c
index 194b44075..748ad3698 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)
--
2.52.0