diff mbox series

[v3,01/23] kconfig: add IS_ENABLED_NOCHECK to bypass usage_of_is_enabled_check

Message ID 20230313213146.1775650-2-troykiskyboundary@gmail.com
State Deferred
Delegated to: Tom Rini
Headers show
Series CONFIG_IS_ENABLED vs IS_ENABLED | expand

Commit Message

Troy Kisky March 13, 2023, 9:31 p.m. UTC
This is for use when a config with an SPL version needs to always
check the non-spl verion of the config. It avoids error messages
from CI test script usage_of_is_enabled_check.sh

Signed-off-by: Troy Kisky <troykiskyboundary@gmail.com>
---

(no changes since v2)

Changes in v2:
- new patch

 include/linux/kconfig.h | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/include/linux/kconfig.h b/include/linux/kconfig.h
index 2bc704e1104..19b71723ab3 100644
--- a/include/linux/kconfig.h
+++ b/include/linux/kconfig.h
@@ -27,6 +27,11 @@ 
  * 0 otherwise.
  */
 #define IS_ENABLED(option)	config_enabled(option, 0)
+/*
+ * Using IS_ENABLED_NOCHECK instead of IS_ENABLED prevents
+ * complaints from test/usage_of_is_enabled_check.sh
+ */
+#define IS_ENABLED_NOCHECK(option) config_enabled(option, 0)
 
 /*
  * U-Boot add-on: Helper macros to reference to different macros (prefixed by