diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2018-10-23 23:10:35 +0300 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2019-12-12 16:49:57 +0300 |
commit | 5e787dbf659fe77d56215be74044f85e01b3920f (patch) | |
tree | 2041ebfdeab6acf7e5bc4069f8d1905914ea4d86 /include | |
parent | ae4b064e2a616b545acf02b8f50cc513b32c7522 (diff) | |
download | linux-5e787dbf659fe77d56215be74044f85e01b3920f.tar.xz |
devtmpfs: use do_mount() instead of ksys_mount()
In devtmpfs, do_mount() can be called directly instead of complex wrapping
by ksys_mount():
- the first and third arguments are const strings in the kernel,
and do not need to be copied over from userspace;
- the fifth argument is NULL, and therefore no page needs to be
copied over from userspace;
- the second and fourth argument are passed through anyway.
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/device.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index e226030c1df3..96ff76731e93 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -1666,11 +1666,11 @@ extern bool kill_device(struct device *dev); #ifdef CONFIG_DEVTMPFS extern int devtmpfs_create_node(struct device *dev); extern int devtmpfs_delete_node(struct device *dev); -extern int devtmpfs_mount(const char *mntdir); +extern int devtmpfs_mount(void); #else static inline int devtmpfs_create_node(struct device *dev) { return 0; } static inline int devtmpfs_delete_node(struct device *dev) { return 0; } -static inline int devtmpfs_mount(const char *mountpoint) { return 0; } +static inline int devtmpfs_mount(void) { return 0; } #endif /* drivers/base/power/shutdown.c */ |