From: Yu Watanabe Date: Sun, 2 Nov 2025 08:43:14 +0000 (+0900) Subject: tree-wide: add missing '#pragma once' X-Git-Tag: v258.2~87 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0988a6146aa4bc2ec72ac4867bd7b1547cc94f63;p=thirdparty%2Fsystemd.git tree-wide: add missing '#pragma once' (cherry picked from commit 5963cdf49867885d1d0641fe0693a3513aa4182a) --- diff --git a/src/analyze/analyze-compare-versions.h b/src/analyze/analyze-compare-versions.h index ac90ede2f05..91913039035 100644 --- a/src/analyze/analyze-compare-versions.h +++ b/src/analyze/analyze-compare-versions.h @@ -1,3 +1,4 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ +#pragma once int verb_compare_versions(int argc, char *argv[], void *userdata); diff --git a/src/analyze/analyze-fdstore.h b/src/analyze/analyze-fdstore.h index e82d0342455..d548ad2b4d1 100644 --- a/src/analyze/analyze-fdstore.h +++ b/src/analyze/analyze-fdstore.h @@ -1,3 +1,4 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ +#pragma once int verb_fdstore(int argc, char *argv[], void *userdata); diff --git a/src/analyze/analyze-image-policy.h b/src/analyze/analyze-image-policy.h index fa08447822a..16c1e966e89 100644 --- a/src/analyze/analyze-image-policy.h +++ b/src/analyze/analyze-image-policy.h @@ -1,3 +1,4 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ +#pragma once int verb_image_policy(int argc, char *argv[], void *userdata); diff --git a/src/boot/export-vars.h b/src/boot/export-vars.h index a925d09827a..23a42cf7734 100644 --- a/src/boot/export-vars.h +++ b/src/boot/export-vars.h @@ -1,4 +1,5 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ +#pragma once #include "proto/loaded-image.h" diff --git a/src/bootctl/bootctl-reboot-to-firmware.h b/src/bootctl/bootctl-reboot-to-firmware.h index 82f77b997d1..9059e91eb86 100644 --- a/src/bootctl/bootctl-reboot-to-firmware.h +++ b/src/bootctl/bootctl-reboot-to-firmware.h @@ -1,4 +1,5 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ +#pragma once #include "forward.h" diff --git a/src/bootctl/bootctl-status.h b/src/bootctl/bootctl-status.h index b26a2b1f6f4..1bebd9fb366 100644 --- a/src/bootctl/bootctl-status.h +++ b/src/bootctl/bootctl-status.h @@ -1,4 +1,5 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ +#pragma once #include "forward.h" diff --git a/src/bootctl/bootctl-uki.h b/src/bootctl/bootctl-uki.h index 20c080cf854..79931016644 100644 --- a/src/bootctl/bootctl-uki.h +++ b/src/bootctl/bootctl-uki.h @@ -1,4 +1,5 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ +#pragma once #include "forward.h" diff --git a/src/core/bpf/restrict-fs/restrict-fs-skel.h b/src/core/bpf/restrict-fs/restrict-fs-skel.h index 51b15ae812b..796c85cf54e 100644 --- a/src/core/bpf/restrict-fs/restrict-fs-skel.h +++ b/src/core/bpf/restrict-fs/restrict-fs-skel.h @@ -1,4 +1,5 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ +#pragma once /* The SPDX header above is actually correct in claiming this was * LGPL-2.1-or-later, because it is. Since the kernel doesn't consider that diff --git a/src/core/bpf/restrict-ifaces/restrict-ifaces-skel.h b/src/core/bpf/restrict-ifaces/restrict-ifaces-skel.h index fbebad688d9..7172929e41c 100644 --- a/src/core/bpf/restrict-ifaces/restrict-ifaces-skel.h +++ b/src/core/bpf/restrict-ifaces/restrict-ifaces-skel.h @@ -1,4 +1,5 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ +#pragma once /* The SPDX header above is actually correct in claiming this was * LGPL-2.1-or-later, because it is. Since the kernel doesn't consider that diff --git a/src/core/bpf/socket-bind/socket-bind-api.bpf.h b/src/core/bpf/socket-bind/socket-bind-api.bpf.h index 4fe08f1f444..9bd7c0f7fff 100644 --- a/src/core/bpf/socket-bind/socket-bind-api.bpf.h +++ b/src/core/bpf/socket-bind/socket-bind-api.bpf.h @@ -1,4 +1,5 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ +#pragma once /* The SPDX header above is actually correct in claiming this was * LGPL-2.1-or-later, because it is. Since the kernel doesn't consider that diff --git a/src/core/bpf/socket-bind/socket-bind-skel.h b/src/core/bpf/socket-bind/socket-bind-skel.h index 72d708dbfc8..b1dfa246caf 100644 --- a/src/core/bpf/socket-bind/socket-bind-skel.h +++ b/src/core/bpf/socket-bind/socket-bind-skel.h @@ -1,4 +1,5 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ +#pragma once /* The SPDX header above is actually correct in claiming this was * LGPL-2.1-or-later, because it is. Since the kernel doesn't consider that diff --git a/src/fundamental/confidential-virt-fundamental.h b/src/fundamental/confidential-virt-fundamental.h index 618b5800ea4..d78ad3650c4 100644 --- a/src/fundamental/confidential-virt-fundamental.h +++ b/src/fundamental/confidential-virt-fundamental.h @@ -1,4 +1,5 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ +#pragma once #include diff --git a/src/fundamental/sbat.h b/src/fundamental/sbat.h index 1a6e678b355..060a34c947f 100644 --- a/src/fundamental/sbat.h +++ b/src/fundamental/sbat.h @@ -1,4 +1,5 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ +#pragma once #ifdef SBAT_DISTRO # include "version.h" diff --git a/src/libsystemd/sd-bus/test-vtable-data.h b/src/libsystemd/sd-bus/test-vtable-data.h index 57fd5eaf1f1..81c7f52b1c8 100644 --- a/src/libsystemd/sd-bus/test-vtable-data.h +++ b/src/libsystemd/sd-bus/test-vtable-data.h @@ -1,4 +1,5 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ +#pragma once #include diff --git a/src/network/bpf/sysctl-monitor/sysctl-monitor-skel.h b/src/network/bpf/sysctl-monitor/sysctl-monitor-skel.h index 26ee2945789..7d664896c90 100644 --- a/src/network/bpf/sysctl-monitor/sysctl-monitor-skel.h +++ b/src/network/bpf/sysctl-monitor/sysctl-monitor-skel.h @@ -1,4 +1,5 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ +#pragma once /* The SPDX header above is actually correct in claiming this was * LGPL-2.1-or-later, because it is. Since the kernel doesn't consider that diff --git a/src/network/networkctl-link-info.h b/src/network/networkctl-link-info.h index 1dfd910e35b..32cecd1b87d 100644 --- a/src/network/networkctl-link-info.h +++ b/src/network/networkctl-link-info.h @@ -1,4 +1,5 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ +#pragma once #include #include diff --git a/src/nspawn/nspawn-bind-user.h b/src/nspawn/nspawn-bind-user.h index d4154218c0f..682784f52b4 100644 --- a/src/nspawn/nspawn-bind-user.h +++ b/src/nspawn/nspawn-bind-user.h @@ -1,4 +1,5 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ +#pragma once #include "forward.h" diff --git a/src/nsresourced/bpf/userns-restrict/userns-restrict-skel.h b/src/nsresourced/bpf/userns-restrict/userns-restrict-skel.h index a7cbeb8e75a..ef158e962bb 100644 --- a/src/nsresourced/bpf/userns-restrict/userns-restrict-skel.h +++ b/src/nsresourced/bpf/userns-restrict/userns-restrict-skel.h @@ -1,4 +1,5 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ +#pragma once /* The SPDX header above is actually correct in claiming this was * LGPL-2.1-or-later, because it is. Since the kernel doesn't consider that diff --git a/src/shared/kernel-config.h b/src/shared/kernel-config.h index 2c149ba3bd1..c31fcef1fb8 100644 --- a/src/shared/kernel-config.h +++ b/src/shared/kernel-config.h @@ -1,4 +1,5 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ +#pragma once #include "forward.h" diff --git a/src/sysupdate/sysupdate-feature.h b/src/sysupdate/sysupdate-feature.h index 08ba9f06758..fcd05c97085 100644 --- a/src/sysupdate/sysupdate-feature.h +++ b/src/sysupdate/sysupdate-feature.h @@ -1,4 +1,5 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ +#pragma once #include "sysupdate-forward.h" diff --git a/src/vmspawn/vmspawn-register.h b/src/vmspawn/vmspawn-register.h index 2adfabdc030..93ec2709bd6 100644 --- a/src/vmspawn/vmspawn-register.h +++ b/src/vmspawn/vmspawn-register.h @@ -1,4 +1,5 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ +#pragma once #include "forward.h"