Просмотр исходного кода

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>
Tom Rini 1 год назад
Родитель
Сommit
dc2c451a94
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      include/valgrind/valgrind.h

+ 3 - 1
include/valgrind/valgrind.h

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