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 --- lib/rsa/rsa-verify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rsa/rsa-verify.c') diff --git a/lib/rsa/rsa-verify.c b/lib/rsa/rsa-verify.c index 2f3b3440391..096e7f6d178 100644 --- a/lib/rsa/rsa-verify.c +++ b/lib/rsa/rsa-verify.c @@ -17,9 +17,9 @@ #else #include "fdt_host.h" #include "mkimage.h" +#include #include #endif -#include #include #include -- cgit v1.2.3 From 467382ca03758e4f3f13107e3a83669e93a7461e Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Thu, 14 Dec 2023 13:16:58 -0500 Subject: lib: Remove inclusion from these files After some header file cleanups to add missing include files, remove common.h from all files in the lib directory. This primarily means just dropping the line but in a few cases we need to add in other header files now. Reviewed-by: Simon Glass Signed-off-by: Tom Rini --- lib/rsa/rsa-verify.c | 1 - 1 file changed, 1 deletion(-) (limited to 'lib/rsa/rsa-verify.c') diff --git a/lib/rsa/rsa-verify.c b/lib/rsa/rsa-verify.c index 096e7f6d178..1007b6979a4 100644 --- a/lib/rsa/rsa-verify.c +++ b/lib/rsa/rsa-verify.c @@ -4,7 +4,6 @@ */ #ifndef USE_HOSTCC -#include #include #include #include -- cgit v1.2.3