summaryrefslogtreecommitdiff
path: root/src/boot
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2021-01-30 17:10:29 +0000
committerDaan De Meyer <daan.j.demeyer@gmail.com>2021-01-31 10:38:59 +0000
commit9a383acaddb9403cc317d549b9bc34fd1305907a (patch)
treefca6f62957126f0fdee9a54cbf827c9ecb3d3bb9 /src/boot
parentbc556335b1c568c98688cc1f586b5f753fcddac6 (diff)
downloadsystemd-9a383acaddb9403cc317d549b9bc34fd1305907a.tar.gz
sd-boot: Make internal functions static
Diffstat (limited to 'src/boot')
-rw-r--r--src/boot/efi/boot.c2
-rw-r--r--src/boot/efi/random-seed.c2
-rw-r--r--src/boot/efi/splash.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/src/boot/efi/boot.c b/src/boot/efi/boot.c
index 60305f07f9..e1a7dd1f32 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 eda9260ae0..895c85445e 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 e166fec57a..552c45cff4 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;