valgrind: Rework test for unsupported platforms

Change things so that on an unsupported platform we will #error rather
than undef the feature.

Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Tom Rini 2022-12-04 10:03:32 -05:00
parent 991bc16951
commit dc2c451a94

View File

@ -121,7 +121,9 @@
#else #else
/* If we're not compiling for our target platform, don't generate /* If we're not compiling for our target platform, don't generate
any inline asms. */ any inline asms. */
# undef CONFIG_VALGRIND # if IS_ENABLED(CONFIG_VALGRIND)
# error "Unsupported platform for valgrind"
# endif
#endif #endif