From b8b4f80a8a89f58c608ec37181f308cb4b5890d9 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 14 Dec 2022 15:40:02 +0900 Subject: [PATCH] mount-util: drop unnecessary inline attributes --- src/shared/mount-util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shared/mount-util.c b/src/shared/mount-util.c index dec12ea3000..f63230fd006 100644 --- a/src/shared/mount-util.c +++ b/src/shared/mount-util.c @@ -454,7 +454,7 @@ unsigned int mount_attr_propagation_type_to_flag(MountAttrPropagationType t) { } } -static inline int mount_switch_root_pivot(const char *path, int fd_newroot) { +static int mount_switch_root_pivot(const char *path, int fd_newroot) { _cleanup_close_ int fd_oldroot = -EBADF; fd_oldroot = open("/", O_PATH|O_DIRECTORY|O_CLOEXEC|O_NOFOLLOW); @@ -484,7 +484,7 @@ static inline int mount_switch_root_pivot(const char *path, int fd_newroot) { return 0; } -static inline int mount_switch_root_move(const char *path) { +static int mount_switch_root_move(const char *path) { if (mount(path, "/", NULL, MS_MOVE, NULL) < 0) return log_debug_errno(errno, "Failed to move new rootfs '%s': %m", path); -- 2.47.3