Skip to contentSkip to conversation

tools/env: Correct include kconfig

PATCH New York Sun 1 participant 1 message Nov 24, 2016

lore
Share & tools
lore

York Sun

author
#0 lore raw

PATCH 1/97 tools/env: Correct include kconfig

While we move some config macros to Kconfig, kconfig header is needed to avoid compiling error if not already included.

---

 common/env_embedded.c | 2 ++
 tools/envcrc.c        | 2 ++
 2 files changed, 4 insertions(+)
common/env_embedded.c +2 -0
index 56a13cb..b368fda 100644
@@ -5,6 +5,8 @@
  * SPDX-License-Identifier:	GPL-2.0+
  */
 
+#include <linux/kconfig.h>
+
 #ifndef __ASSEMBLY__
 #define	__ASSEMBLY__			/* Dirty trick to get only #defines */
 #endif
tools/envcrc.c +2 -0
index a9d9b48..e9fd088 100644
@@ -12,6 +12,8 @@
 #include <string.h>
 #include <unistd.h>
 
+#include <linux/kconfig.h>
+
 #ifndef __ASSEMBLY__
 #define	__ASSEMBLY__			/* Dirty trick to get only #defines	*/
 #endif
Signature · 1 line
2.7.4