From: Alexey Suchkov <aleks.koyf@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: gregkh@linuxfoundation.org, dakr@kernel.org, rafael@kernel.org,
Alexey Suchkov <aleks.koyf@gmail.com>
Subject: [PATCH v2] drivers/base: make devtmpfs_context_ops static
Date: Fri, 16 Jan 2026 18:42:15 +0300 [thread overview]
Message-ID: <20260116154213.5243-3-aleks.koyf@gmail.com> (raw)
In-Reply-To: <20260115160853.29756-1-aleks.koyf@gmail.com>
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@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
next prev parent reply other threads:[~2026-01-16 15:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-15 16:08 [PATCH] " dywoq
2026-01-16 14:55 ` Greg KH
2026-01-16 19:09 ` Alexey Suchkov
2026-01-16 15:42 ` Alexey Suchkov [this message]
2026-01-16 23:12 ` [PATCH v2] " Danilo Krummrich
2026-01-17 6:36 ` [PATCH] " Alexey Suchkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260116154213.5243-3-aleks.koyf@gmail.com \
--to=aleks.koyf@gmail.com \
--cc=dakr@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rafael@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®