From b106961c2e4e7f339485a401ebb06c936fc432ee Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Thu, 14 Dec 2023 07:16:54 -0500 Subject: global: Restrict use of '#include ' In general terms, we -include include/linux/kconfig.h and so normal U-Boot code does not need to also #include it. However, for code which is shared with userspace we may need to add it so that either our full config is available or so that macros such as CONFIG_IS_ENABLED() can be evaluated. In this case make sure that we guard these includes with a test for USE_HOSTCC so that it clear as to why we're doing this. Reviewed-by: Simon Glass Signed-off-by: Tom Rini --- include/env_internal.h | 1 - 1 file changed, 1 deletion(-) (limited to 'include/env_internal.h') diff --git a/include/env_internal.h b/include/env_internal.h index 5c289d67f90..cbd1ef3e914 100644 --- a/include/env_internal.h +++ b/include/env_internal.h @@ -15,7 +15,6 @@ #ifndef _ENV_INTERNAL_H_ #define _ENV_INTERNAL_H_ -#include /************************************************************************** * -- cgit v1.2.3