From: Daan De Meyer Date: Sat, 30 Jan 2021 17:10:29 +0000 (+0000) Subject: sd-boot: Make internal functions static X-Git-Tag: v248-rc1~230^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9a383acaddb9403cc317d549b9bc34fd1305907a;p=thirdparty%2Fsystemd.git sd-boot: Make internal functions static --- diff --git a/src/boot/efi/boot.c b/src/boot/efi/boot.c index 60305f07f9c..e1a7dd1f32e 100644 --- a/src/boot/efi/boot.c +++ b/src/boot/efi/boot.c @@ -2025,7 +2025,7 @@ static const UINT8 xbootldr_guid[16] = { 0xff, 0xc2, 0x13, 0xbc, 0xe6, 0x59, 0x62, 0x42, 0xa3, 0x52, 0xb2, 0x75, 0xfd, 0x6f, 0x71, 0x72 }; -EFI_DEVICE_PATH *path_parent(EFI_DEVICE_PATH *path, EFI_DEVICE_PATH *node) { +static EFI_DEVICE_PATH *path_parent(EFI_DEVICE_PATH *path, EFI_DEVICE_PATH *node) { EFI_DEVICE_PATH *parent; UINTN len; diff --git a/src/boot/efi/random-seed.c b/src/boot/efi/random-seed.c index eda9260ae09..895c85445ef 100644 --- a/src/boot/efi/random-seed.c +++ b/src/boot/efi/random-seed.c @@ -142,7 +142,7 @@ static EFI_STATUS mangle_random_seed( return EFI_SUCCESS; } -EFI_STATUS acquire_system_token(VOID **ret, UINTN *ret_size) { +static EFI_STATUS acquire_system_token(VOID **ret, UINTN *ret_size) { _cleanup_freepool_ CHAR8 *data = NULL; EFI_STATUS err; UINTN size; diff --git a/src/boot/efi/splash.c b/src/boot/efi/splash.c index e166fec57af..552c45cff49 100644 --- a/src/boot/efi/splash.c +++ b/src/boot/efi/splash.c @@ -37,7 +37,7 @@ struct bmp_map { UINT8 reserved; } __attribute__((packed)); -EFI_STATUS bmp_parse_header(UINT8 *bmp, UINTN size, struct bmp_dib **ret_dib, +static EFI_STATUS bmp_parse_header(UINT8 *bmp, UINTN size, struct bmp_dib **ret_dib, struct bmp_map **ret_map, UINT8 **pixmap) { struct bmp_file *file; struct bmp_dib *dib; @@ -147,7 +147,7 @@ static VOID pixel_blend(UINT32 *dst, const UINT32 source) { *dst = (rb | g); } -EFI_STATUS bmp_to_blt(EFI_GRAPHICS_OUTPUT_BLT_PIXEL *buf, +static EFI_STATUS bmp_to_blt(EFI_GRAPHICS_OUTPUT_BLT_PIXEL *buf, struct bmp_dib *dib, struct bmp_map *map, UINT8 *pixmap) { UINT8 *in;