From 8d2d64166e1bb5978b5392b2787d1dd8feb63c16 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Mon, 15 Jun 2020 19:50:56 +0100 Subject: [PATCH] efi: use stub for cache_efi_options_variable if !ENABLE_EFI ../src/core/main.c: In function 'main': ../src/core/main.c:2637:32: error: implicit declaration of function 'cache_efi_options_variable'; did you mean 'systemd_efi_options_variable'? [-Werror=implicit-function-declaration] (void) cache_efi_options_variable(); ^~~~~~~~~~~~~~~~~~~~~~~~~~ systemd_efi_options_variable --- src/basic/efivars.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/basic/efivars.h b/src/basic/efivars.h index 80854677f4..cb341e452f 100644 --- a/src/basic/efivars.h +++ b/src/basic/efivars.h @@ -69,6 +69,10 @@ static inline bool is_efi_secure_boot_setup_mode(void) { return false; } +static inline int cache_efi_options_variable(void) { + return -EOPNOTSUPP; +} + static inline int systemd_efi_options_variable(char **line) { return -ENODATA; }