]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-boot: Make internal functions static
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 30 Jan 2021 17:10:29 +0000 (17:10 +0000)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 31 Jan 2021 10:38:59 +0000 (10:38 +0000)
src/boot/efi/boot.c
src/boot/efi/random-seed.c
src/boot/efi/splash.c

index 60305f07f9ceaf59dc05f44e5c9b7b70eb1e48e2..e1a7dd1f32ee9c9bf2b6e8a3d642e7106d635c51 100644 (file)
@@ -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;
 
index eda9260ae0991c6e8105c9b4e9116778fffa2abe..895c85445ef010af4325a059f0c6b6ee13ba24df 100644 (file)
@@ -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;
index e166fec57af62ae491bd169e431696463f18dc86..552c45cff49a1176aacd910f23586bb97f953807 100644 (file)
@@ -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;