Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Ben Dooks and committed by
Greg Kroah-Hartman
99aa03f9 9d4502fe

+1 -1
+1 -1
drivers/base/devtmpfs.c
··· 85 85 } 86 86 87 87 /* Ops are filled in during init depending on underlying shmem or ramfs type */ 88 - struct fs_context_operations devtmpfs_context_ops = {}; 88 + static struct fs_context_operations devtmpfs_context_ops = {}; 89 89 90 90 /* Call the underlying initialization and set to our ops */ 91 91 static int devtmpfs_init_fs_context(struct fs_context *fc)