From: Hongzhan Chen Subject: [PATCH] Revert "cobalt/assert: pipeline: add TODO() marker" Date: Tue, 30 Nov 2021 20:13:12 -0500 Message-Id: <20211201011312.32144-1-hongzhan.chen@intel.com> List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai@xenomai.org This reverts commit 5c9cbcfce83083d9ea280f3b9143525cacfecfc8. We revert this because we fixed all related TODOs. Signed-off-by: Hongzhan Chen diff --git a/include/cobalt/kernel/assert.h b/include/cobalt/kernel/assert.h index abe044100..98218ce6c 100644 --- a/include/cobalt/kernel/assert.h +++ b/include/cobalt/kernel/assert.h @@ -55,8 +55,6 @@ do { } while (0) #endif -#define TODO() BUILD_BUG_ON(IS_ENABLED(CONFIG_XENO_TODO)) - #define primary_mode_only() XENO_BUG_ON(CONTEXT, is_secondary_domain()) #define secondary_mode_only() XENO_BUG_ON(CONTEXT, !is_secondary_domain()) #define interrupt_only() XENO_BUG_ON(CONTEXT, !xnsched_interrupt_p()) diff --git a/kernel/cobalt/Kconfig b/kernel/cobalt/Kconfig index 88953ff24..3233de1b1 100644 --- a/kernel/cobalt/Kconfig +++ b/kernel/cobalt/Kconfig @@ -487,9 +487,3 @@ config XENO_OPT_WATCHDOG_TIMEOUT Watchdog timeout value (in seconds). endif # XENO_OPT_DEBUG - -config XENO_TODO - bool "Reveal TODO places" - help - This option causes a build time assertion to trigger - when the TODO() marker is found in the compiled code. -- 2.17.1