From: Daan De Meyer Date: Wed, 14 May 2025 21:15:25 +0000 (+0200) Subject: shutdown: Clean up includes X-Git-Tag: v258-rc1~589^2~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=06b5f13db364c643b5762db1877e985b3172020c;p=thirdparty%2Fsystemd.git shutdown: Clean up includes Split out of #37344. --- diff --git a/src/shutdown/detach-dm.h b/src/shutdown/detach-dm.h index b5f50a3bbf4..0db81350e0f 100644 --- a/src/shutdown/detach-dm.h +++ b/src/shutdown/detach-dm.h @@ -5,6 +5,6 @@ Copyright © 2010 ProFUSION embedded systems ***/ -#include +#include "forward.h" int dm_detach_all(bool *changed, bool last_try); diff --git a/src/shutdown/detach-loopback.h b/src/shutdown/detach-loopback.h index d6d73f31af0..18cb2f6cfca 100644 --- a/src/shutdown/detach-loopback.h +++ b/src/shutdown/detach-loopback.h @@ -5,6 +5,6 @@ Copyright © 2010 ProFUSION embedded systems ***/ -#include +#include "forward.h" int loopback_detach_all(bool *changed, bool last_try); diff --git a/src/shutdown/detach-md.h b/src/shutdown/detach-md.h index 3784598208b..8965a6ab65a 100644 --- a/src/shutdown/detach-md.h +++ b/src/shutdown/detach-md.h @@ -5,6 +5,6 @@ Copyright © 2010 ProFUSION embedded systems ***/ -#include +#include "forward.h" int md_detach_all(bool *changed, bool last_try); diff --git a/src/shutdown/detach-swap.h b/src/shutdown/detach-swap.h index 1ebf5eb9080..64e89076e7a 100644 --- a/src/shutdown/detach-swap.h +++ b/src/shutdown/detach-swap.h @@ -5,8 +5,7 @@ Copyright © 2010 ProFUSION embedded systems ***/ -#include - +#include "forward.h" #include "list.h" int swapoff_all(bool *changed); diff --git a/src/shutdown/shutdown.c b/src/shutdown/shutdown.c index 9c4eb4582dc..7ab4deac5e2 100644 --- a/src/shutdown/shutdown.c +++ b/src/shutdown/shutdown.c @@ -3,10 +3,8 @@ Copyright © 2010 ProFUSION embedded systems ***/ -#include #include #include -#include #include #include #include @@ -30,13 +28,16 @@ #include "detach-swap.h" #include "errno-util.h" #include "exec-util.h" +#include "extract-word.h" #include "fd-util.h" #include "fileio.h" +#include "format-util.h" #include "getopt-defs.h" #include "initrd-util.h" #include "killall.h" #include "log.h" #include "parse-util.h" +#include "pidref.h" #include "process-util.h" #include "reboot-util.h" #include "rlimit-util.h" @@ -46,6 +47,7 @@ #include "switch-root.h" #include "sysctl-util.h" #include "terminal-util.h" +#include "time-util.h" #include "umount.h" #include "virt.h" #include "watchdog.h" diff --git a/src/shutdown/test-umount.c b/src/shutdown/test-umount.c index 1de1fe8e111..c645b8e7b21 100644 --- a/src/shutdown/test-umount.c +++ b/src/shutdown/test-umount.c @@ -5,8 +5,6 @@ #include "errno-util.h" #include "fd-util.h" #include "log.h" -#include "path-util.h" -#include "string-util.h" #include "tests.h" #include "umount.h" diff --git a/src/shutdown/umount.c b/src/shutdown/umount.c index 9b083d24921..2bb456e0877 100644 --- a/src/shutdown/umount.c +++ b/src/shutdown/umount.c @@ -3,18 +3,18 @@ Copyright © 2010 ProFUSION embedded systems ***/ -#include #include #include #include -#include #include #include "alloc-util.h" #include "chase.h" #include "dirent-util.h" +#include "errno-util.h" #include "fd-util.h" #include "fileio.h" +#include "format-util.h" #include "fs-util.h" #include "fstab-util.h" #include "libmount-util.h" @@ -27,8 +27,10 @@ #include "process-util.h" #include "random-util.h" #include "signal-util.h" +#include "stat-util.h" +#include "string-util.h" +#include "time-util.h" #include "umount.h" -#include "user-util.h" #include "virt.h" static void mount_point_free(MountPoint **head, MountPoint *m) { diff --git a/src/shutdown/umount.h b/src/shutdown/umount.h index d18795c7278..5fdaf76392a 100644 --- a/src/shutdown/umount.h +++ b/src/shutdown/umount.h @@ -5,9 +5,7 @@ Copyright © 2010 ProFUSION embedded systems ***/ -#include -#include - +#include "forward.h" #include "list.h" int umount_all(bool *changed, bool last_try);