public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drivers/base: make devtmpfs_context_ops static
@ 2026-01-15 16:08 dywoq
  2026-01-16 14:55 ` Greg KH
  2026-01-16 15:42 ` [PATCH v2] " Alexey Suchkov
  0 siblings, 2 replies; 6+ messages in thread
From: dywoq @ 2026-01-15 16:08 UTC (permalink / raw)
  To: linux-kernel; +Cc: gregkh, rafael, dakr, dywoq

The devtmpfs_context_ops symbol is only used within devtmpfs.c.
Marking it static removes compiler warnings and limits symbol visibility.

Signed-off-by: dywoq <aleks.koyf@gmail.com>
---
 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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-01-17  6:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-15 16:08 [PATCH] drivers/base: make devtmpfs_context_ops static dywoq
2026-01-16 14:55 ` Greg KH
2026-01-16 19:09   ` Alexey Suchkov
2026-01-16 15:42 ` [PATCH v2] " Alexey Suchkov
2026-01-16 23:12   ` Danilo Krummrich
2026-01-17  6:36     ` [PATCH] " Alexey Suchkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox