]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
boot: Mark some functions as static
authorJan Janssen <medhefgo@web.de>
Sun, 30 Oct 2022 08:28:44 +0000 (09:28 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sun, 30 Oct 2022 13:17:11 +0000 (14:17 +0100)
src/boot/efi/cpio.c
src/boot/efi/initrd.c
src/boot/efi/linux.c

index 1e814525bd61c130b0f97306749fe4f3ac0da51e..648f9f000f4ac3326c7ff810876559df3ba2c136 100644 (file)
@@ -341,7 +341,7 @@ static EFI_STATUS measure_cpio(
         return EFI_SUCCESS;
 }
 
-char16_t *get_dropin_dir(const EFI_DEVICE_PATH *file_path) {
+static char16_t *get_dropin_dir(const EFI_DEVICE_PATH *file_path) {
         if (!file_path)
                 return NULL;
 
index 0132c9eddb9d4fdfda930a9c3a656110ce6cc33c..d994ef86da0811e7227acd274d6403b0cac7ab44 100644 (file)
@@ -37,7 +37,7 @@ static const struct {
         }
 };
 
-EFIAPI EFI_STATUS initrd_load_file(
+static EFIAPI EFI_STATUS initrd_load_file(
                 EFI_LOAD_FILE_PROTOCOL *this,
                 EFI_DEVICE_PATH *file_path,
                 BOOLEAN boot_policy,
index 813e648b6bb41d626b4f3c324d641634423fe40c..75b95077094ca15bafdd8486ee4ae8ab802944eb 100644 (file)
@@ -51,7 +51,7 @@ static EFIAPI EFI_STATUS security2_hook(
                         this->original_security2, device_path, file_buffer, file_size, boot_policy);
 }
 
-EFI_STATUS load_image(EFI_HANDLE parent, const void *source, size_t len, EFI_HANDLE *ret_image) {
+static EFI_STATUS load_image(EFI_HANDLE parent, const void *source, size_t len, EFI_HANDLE *ret_image) {
         assert(parent);
         assert(source);
         assert(ret_image);