summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hughes <tomhughes@chromium.org>2022-07-06 16:09:44 -0700
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-07-19 17:55:33 +0000
commitfd972cd0bcf2695949f3f6818f249e532e280695 (patch)
tree3a02b9ee9fa8f73fa3ed86b220edf601b71f970a
parentf8a5f4dd4e57a5c76a4f6f6b0b9a7b2178017376 (diff)
downloadchrome-ec-fd972cd0bcf2695949f3f6818f249e532e280695.tar.gz
tree: Remove HIDE_EC_STDLIB
HIDE_EC_STDLIB is no longer needed now that the stdlib code has been separated out from the EC code. BRANCH=none BUG=b:234181908 TEST=make runfuzztests Signed-off-by: Tom Hughes <tomhughes@chromium.org> Change-Id: Id47327c5061239b97b2e2f82791719f01b4e9ad8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3750109 Reviewed-by: Keith Short <keithshort@chromium.org>
-rw-r--r--fuzz/pchg_fuzz.c1
-rw-r--r--fuzz/usb_pd_fuzz.c1
-rw-r--r--fuzz/usb_tcpm_v2_rev20_fuzz.c1
-rw-r--r--include/common.h3
4 files changed, 1 insertions, 5 deletions
diff --git a/fuzz/pchg_fuzz.c b/fuzz/pchg_fuzz.c
index eced90bb5e..e4a7cdd3fa 100644
--- a/fuzz/pchg_fuzz.c
+++ b/fuzz/pchg_fuzz.c
@@ -5,7 +5,6 @@
* Test peripheral device charger module.
*/
-#define HIDE_EC_STDLIB
#include "common.h"
#include "compile_time_macros.h"
#include "driver/nfc/ctn730.h"
diff --git a/fuzz/usb_pd_fuzz.c b/fuzz/usb_pd_fuzz.c
index f92c7905ba..4d67780a71 100644
--- a/fuzz/usb_pd_fuzz.c
+++ b/fuzz/usb_pd_fuzz.c
@@ -4,7 +4,6 @@
*
* Test USB PD module.
*/
-#define HIDE_EC_STDLIB
#include "common.h"
#include "task.h"
#include "tcpm/tcpm.h"
diff --git a/fuzz/usb_tcpm_v2_rev20_fuzz.c b/fuzz/usb_tcpm_v2_rev20_fuzz.c
index 2f0129464a..8c2f6c7eff 100644
--- a/fuzz/usb_tcpm_v2_rev20_fuzz.c
+++ b/fuzz/usb_tcpm_v2_rev20_fuzz.c
@@ -5,7 +5,6 @@
* Stubs needed for fuzz testing the USB TCPMv2 state machines.
*/
-#define HIDE_EC_STDLIB
#include "charge_manager.h"
#include "mock/usb_mux_mock.h"
#include "usb_pd.h"
diff --git a/include/common.h b/include/common.h
index 7a549a6d55..dc20787e5b 100644
--- a/include/common.h
+++ b/include/common.h
@@ -372,8 +372,7 @@ enum ec_error_list {
/*
* Mark functions that collide with stdlib so they can be hidden when linking
- * against libraries that require stdlib. HIDE_EC_STDLIB should be defined
- * before including common.h from code that links to cstdlib.
+ * against libraries that require stdlib.
*/
#ifdef TEST_FUZZ
#define __stdlib_compat __attribute__((visibility("hidden")))