]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mount-util: drop unnecessary inline attributes
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 14 Dec 2022 06:40:02 +0000 (15:40 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 15 Dec 2022 05:15:09 +0000 (14:15 +0900)
src/shared/mount-util.c

index dec12ea300063f180413044c3d64092ed79bba35..f63230fd0061004610bbc0a18cedc124f3d08582 100644 (file)
@@ -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);