]> git.baikalelectronics.ru Git - kernel.git/commit
devtmpfs: initify a bit
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Wed, 15 Jan 2020 18:41:52 +0000 (19:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Jan 2020 14:28:15 +0000 (15:28 +0100)
commitc9612f819cf566bd00d50f1cf2f44b2d0e9e4600
treebcb5a27c79d9def7370fe8f66c8e5f8abfddc3dd
parent56cc2fed1a4c4bb5188e97663e878cd2f2d986a7
devtmpfs: initify a bit

devtmpfs_mount() is only called from prepare_namespace() in
init/do_mounts.c, which is an __init function, so devtmpfs_mount() can
also be moved to .init.text.

Then the mount_dev static variable is only referenced from __init
functions (devtmpfs_mount and its initializer function mount_param).

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Link: https://lore.kernel.org/r/20200115184154.3492-5-linux@rasmusvillemoes.dk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/devtmpfs.c