]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
vmspawn: Clean up includes 37438/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 14 May 2025 15:12:06 +0000 (17:12 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 14 May 2025 15:21:37 +0000 (17:21 +0200)
Split out of #37344

src/vmspawn/test-vmspawn-util.c
src/vmspawn/vmspawn-mount.c
src/vmspawn/vmspawn-mount.h
src/vmspawn/vmspawn-register.c
src/vmspawn/vmspawn-register.h
src/vmspawn/vmspawn-scope.c
src/vmspawn/vmspawn-scope.h
src/vmspawn/vmspawn-settings.h
src/vmspawn/vmspawn-util.c
src/vmspawn/vmspawn-util.h
src/vmspawn/vmspawn.c

index aaf5524536432cbd68afc4a0e5ba75ecf1556d7d..d487cbcacb781c90eaa9136194cdb1e66dd45093 100644 (file)
@@ -1,7 +1,5 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
-#include <stdbool.h>
-
 #include "alloc-util.h"
 #include "string-util.h"
 #include "tests.h"
index a57baaa3e8a197bf0c4b27afac9b073a500d7a24..9f03a216554af439921dea67ce05aa17a0db6273 100644 (file)
@@ -2,8 +2,6 @@
 
 #include "alloc-util.h"
 #include "extract-word.h"
-#include "macro.h"
-#include "parse-argument.h"
 #include "path-util.h"
 #include "stat-util.h"
 #include "string-util.h"
index 2ea24fd0354eadca0b528018facb26a711db2444..531288a9eddc1e9d497fad34114c779b7850aa8c 100644 (file)
@@ -1,8 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include <stdbool.h>
-#include <stddef.h>
+#include "forward.h"
 
 typedef struct RuntimeMount {
         bool read_only;
index a55caebc1194774bbb701e5d693eaf45413ead6c..ae7edd0fdbf12cd1a225c217e59527ebb5c03326 100644 (file)
@@ -9,9 +9,8 @@
 
 #include "bus-error.h"
 #include "bus-locator.h"
-#include "json-util.h"
+#include "errno-util.h"
 #include "log.h"
-#include "macro.h"
 #include "process-util.h"
 #include "socket-util.h"
 #include "string-util.h"
index c785b162ba59e1a6db363fc5907232f4a575bf78..58cae542cebc9df5c1f22cd24e70de24def33eb1 100644 (file)
@@ -1,9 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
-#include <stdbool.h>
-
-#include "sd-bus.h"
-#include "sd-id128.h"
+#include "forward.h"
 
 int register_machine(
                 sd_bus *bus,
index 024efb53e1b05b91478aae2b73b6132ec73e4e3e..624bd7730d5b57f7444edb3903d7ce55e4da36fa 100644 (file)
@@ -1,7 +1,5 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
-#include <stdio.h>
-
 #include "sd-bus.h"
 
 #include "bus-error.h"
 #include "bus-wait-for-jobs.h"
 #include "escape.h"
 #include "log.h"
-#include "macro.h"
-#include "process-util.h"
+#include "pidref.h"
 #include "random-util.h"
 #include "socket-util.h"
+#include "string-util.h"
 #include "strv.h"
-#include "unit-def.h"
-#include "unit-name.h"
 #include "vmspawn-scope.h"
 
 int start_transient_scope(sd_bus *bus, const char *machine_name, bool allow_pidfd, char **ret_scope) {
index 100de94fa138824c82abcdb651a6f9bbc5095039..c29325a31459079a6ba477882ca6229899a230fc 100644 (file)
@@ -1,11 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include <stdbool.h>
-
-#include "sd-bus.h"
-
-#include "macro.h"
+#include "forward.h"
 
 typedef struct SocketServicePair {
         char **exec_start_pre;
index 0902dbb245b320945ec3bdd22a08c50d142e71ff..1267dd070188b48e293d3f12b05813118aacfc8d 100644 (file)
@@ -1,10 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include <errno.h>
-#include <stdint.h>
-
-#include "macro.h"
+#include "forward.h"
 
 typedef enum ConsoleMode {
         CONSOLE_INTERACTIVE,    /* ptyfwd */
index 3fb8f8405b336456daa9b013cd25891201644a99..1216f3c5be0f3c586c03fac0af7fdfba2d5f0958 100644 (file)
@@ -1,6 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
 #include <linux/vhost.h>
+#include <linux/vm_sockets.h>
 #include <sys/ioctl.h>
 #include <unistd.h>
 
 #include "architecture.h"
 #include "conf-files.h"
 #include "errno-util.h"
-#include "escape.h"
 #include "fd-util.h"
-#include "fileio.h"
+#include "hashmap.h"
 #include "json-util.h"
 #include "log.h"
-#include "macro.h"
-#include "memory-util.h"
 #include "path-lookup.h"
 #include "path-util.h"
 #include "random-util.h"
-#include "recurse-dir.h"
 #include "siphash24.h"
-#include "socket-util.h"
-#include "sort-util.h"
 #include "string-table.h"
 #include "string-util.h"
 #include "strv.h"
index ff1cffd13e1a6d6f8a7672216b860e53d5410166..a8a69a9e50f053c0bffd4b052e5b25aded923046 100644 (file)
@@ -1,10 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include <stdbool.h>
-
-#include "assert-util.h"
-#include "memory-util.h"
+#include "forward.h"
 
 #if defined(__x86_64__) || defined(__i386__) || defined(__arm__) || defined(__aarch64__)
 #  define ARCHITECTURE_SUPPORTS_SMBIOS 1
index 7c12b5e6120f27893e789eb347308e57bb95a119..3f53f1f436a5dfed66c2242f51cb2da5f570bcee 100644 (file)
@@ -3,13 +3,13 @@
 #include <getopt.h>
 #include <linux/if.h>
 #include <net/if.h>
-#include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <sys/stat.h>
 #include <unistd.h>
 
+#include "sd-bus.h"
 #include "sd-daemon.h"
 #include "sd-event.h"
 #include "sd-id128.h"
 #include "architecture.h"
 #include "bootspec.h"
 #include "build.h"
+#include "bus-error.h"
 #include "bus-internal.h"
 #include "bus-locator.h"
 #include "bus-util.h"
 #include "bus-wait-for-jobs.h"
 #include "capability-util.h"
-#include "chase.h"
 #include "common-signal.h"
 #include "copy.h"
-#include "creds-util.h"
-#include "dirent-util.h"
 #include "discover-image.h"
 #include "dissect-image.h"
 #include "escape.h"
 #include "event-util.h"
 #include "extract-word.h"
 #include "fd-util.h"
-#include "fileio.h"
 #include "format-util.h"
 #include "fs-util.h"
 #include "gpt.h"
 #include "hexdecoct.h"
 #include "hostname-setup.h"
 #include "hostname-util.h"
-#include "io-util.h"
-#include "kernel-image.h"
+#include "id128-util.h"
 #include "log.h"
 #include "machine-credential.h"
-#include "macro.h"
 #include "main-func.h"
 #include "mkdir.h"
 #include "namespace-util.h"
 #include "rm-rf.h"
 #include "signal-util.h"
 #include "socket-util.h"
-#include "stat-util.h"
 #include "stdio-util.h"
 #include "string-util.h"
 #include "strv.h"
 #include "sync-util.h"
-#include "time-util.h"
+#include "terminal-util.h"
 #include "tmpfile-util.h"
 #include "unit-name.h"
-#include "user-util.h"
 #include "utf8.h"
 #include "vmspawn-mount.h"
 #include "vmspawn-register.h"