projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
991bc16
)
valgrind: Rework test for unsupported platforms
author
Tom Rini
<trini@konsulko.com>
Sun, 4 Dec 2022 15:03:32 +0000
(10:03 -0500)
committer
Tom Rini
<trini@konsulko.com>
Fri, 23 Dec 2022 15:07:03 +0000
(10:07 -0500)
Change things so that on an unsupported platform we will #error rather
than undef the feature.
Signed-off-by: Tom Rini <trini@konsulko.com>
include/valgrind/valgrind.h
patch
|
blob
|
history
diff --git
a/include/valgrind/valgrind.h
b/include/valgrind/valgrind.h
index
e59a7fd
..
5d4fa5f
100644
(file)
--- a/
include/valgrind/valgrind.h
+++ b/
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