]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: make get_load_options() static
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 10 Feb 2023 07:09:40 +0000 (08:09 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 10 Feb 2023 12:05:40 +0000 (13:05 +0100)
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@canonical.com>
lib/efi_loader/initrddump.c

index 98721069816dee86f64efa24d0a52fbdfa40843f..971a3b6236c96698a903843fbe014afb2a0106b9 100644 (file)
@@ -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;