[PATCH 5/9] nvvar: add static inline dummy for nvvar_save

Lucas Stach l.stach at pengutronix.de
Tue Dec 20 01:33:36 PST 2016


Just as the other NVVAR functions, when support for NVVAR isn't
compiled in.

Signed-off-by: Lucas Stach <l.stach at pengutronix.de>
---
 include/globalvar.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/globalvar.h b/include/globalvar.h
index ecd9f1d1860b..80bc53e6803b 100644
--- a/include/globalvar.h
+++ b/include/globalvar.h
@@ -116,6 +116,11 @@ static inline int nvvar_remove(const char *name)
 	return 0;
 }
 
+static inline int nvvar_save(void)
+{
+	return 0;
+}
+
 static inline void dev_param_init_from_nv(struct device_d *dev, const char *name)
 {
 }
-- 
2.11.0




More information about the barebox mailing list