summaryrefslogtreecommitdiffstats
path: root/src/basic/efivars.h
diff options
context:
space:
mode:
authorLuca Boccassi <luca.boccassi@microsoft.com>2020-06-15 20:50:56 +0200
committerLennart Poettering <lennart@poettering.net>2020-06-16 21:47:30 +0200
commit8d2d64166e1bb5978b5392b2787d1dd8feb63c16 (patch)
tree2e65de426061a8e048e2f2d9884e8ee3ecf342d0 /src/basic/efivars.h
parentUSER_RECORD: fix typo (diff)
downloadsystemd-8d2d64166e1bb5978b5392b2787d1dd8feb63c16.tar.xz
systemd-8d2d64166e1bb5978b5392b2787d1dd8feb63c16.zip
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
Diffstat (limited to '')
-rw-r--r--src/basic/efivars.h4
1 files changed, 4 insertions, 0 deletions
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;
}