From: Jan Janssen Date: Sun, 30 Oct 2022 08:28:44 +0000 (+0100) Subject: boot: Mark some functions as static X-Git-Tag: v252~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dcebf1d87efea7b0016e0997b0bffc2c3fbd6c1a;p=thirdparty%2Fsystemd.git boot: Mark some functions as static --- diff --git a/src/boot/efi/cpio.c b/src/boot/efi/cpio.c index 1e814525bd6..648f9f000f4 100644 --- a/src/boot/efi/cpio.c +++ b/src/boot/efi/cpio.c @@ -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; diff --git a/src/boot/efi/initrd.c b/src/boot/efi/initrd.c index 0132c9eddb9..d994ef86da0 100644 --- a/src/boot/efi/initrd.c +++ b/src/boot/efi/initrd.c @@ -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, diff --git a/src/boot/efi/linux.c b/src/boot/efi/linux.c index 813e648b6bb..75b95077094 100644 --- a/src/boot/efi/linux.c +++ b/src/boot/efi/linux.c @@ -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);