Skip to content

Commit

Permalink
valgrind: Rework test for unsupported platforms
Browse files Browse the repository at this point in the history
Change things so that on an unsupported platform we will #error rather
than undef the feature.

Signed-off-by: Tom Rini <[email protected]>
  • Loading branch information
trini committed Dec 23, 2022
1 parent 991bc16 commit dc2c451
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/valgrind/valgrind.h
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit dc2c451

Please sign in to comment.