trace: Fix compilation issue due to using an undefined symbol
Fix commit5545d995b3
which could use undefined symbol testing_fail_alloc() in os_malloc() if CONFIG_WPA_TRACE=y is used without CONFIG_WPA_TRACE_BFD=y. Fixes:5545d995b3
("trace: Share common implementation for TEST_FAIL and TEST_ALLOC_FAIL") Signed-off-by: Jintao Lin <jintaolin@chromium.org>
This commit is contained in:
parent
cbcd056ece
commit
628f286102
1 changed files with 7 additions and 0 deletions
|
@ -709,6 +709,13 @@ int testing_get_fail_pattern(bool is_alloc, char *buf, size_t buflen)
|
||||||
#endif /* WPA_TRACE_BFD */
|
#endif /* WPA_TRACE_BFD */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#else /* defined(WPA_TRACE_BFD) && defined(CONFIG_TESTING_OPTIONS) */
|
||||||
|
|
||||||
|
static inline int testing_test_fail(const char *tag, bool is_alloc)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void * os_malloc(size_t size)
|
void * os_malloc(size_t size)
|
||||||
|
|
Loading…
Reference in a new issue