[PATCH 1/3] efi_loader: make get_load_options() static

Heinrich Schuchardt heinrich.schuchardt at canonical.com
Fri Feb 10 08:32:18 CET 2023


In program initrddump.efi function get_load_options() can be static.

This avoids a warning when building with 'make W=1':

    lib/efi_loader/initrddump.c:442:6: warning:
    no previous prototype for ‘get_load_options’ [-Wmissing-prototypes]
      442 | u16 *get_load_options(void)
          |      ^~~~~~~~~~~~~~~~

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
---
 lib/efi_loader/initrddump.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/efi_loader/initrddump.c b/lib/efi_loader/initrddump.c
index 9872106981..971a3b6236 100644
--- a/lib/efi_loader/initrddump.c
+++ b/lib/efi_loader/initrddump.c
@@ -439,7 +439,7 @@ out:
  *
  * Return:	load options or NULL
  */
-u16 *get_load_options(void)
+static u16 *get_load_options(void)
 {
 	efi_status_t ret;
 	struct efi_loaded_image *loaded_image;
-- 
2.38.1



More information about the U-Boot mailing list