From: Yu Watanabe Date: Wed, 14 Dec 2022 06:40:02 +0000 (+0900) Subject: mount-util: drop unnecessary inline attributes X-Git-Tag: v253-rc1~274^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b8b4f80a8a89f58c608ec37181f308cb4b5890d9;p=thirdparty%2Fsystemd.git mount-util: drop unnecessary inline attributes --- 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);