From 20b9245d55c7a96790bbfe0ae5bfc2fbb5c74d4e Mon Sep 17 00:00:00 2001 From: Jakub Czapiga Date: Mon, 10 Jan 2022 14:00:03 +0000 Subject: tests/include: Move EMPTY_WRAP() macro to tests/include/test.h EMPTY_WRAP() might be useful for tests other than CBFS's ones. Move it to the main tests header file to make it easily accessible. Change-Id: Ic06c55912488681daf6d2c48cb0c879fa97ba4be Signed-off-by: Jakub Czapiga Reviewed-on: https://review.coreboot.org/c/coreboot/+/60971 Tested-by: build bot (Jenkins) Reviewed-by: Paul Fagerburg --- tests/include/tests/lib/cbfs_util.h | 3 --- tests/include/tests/test.h | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/include/tests/lib/cbfs_util.h b/tests/include/tests/lib/cbfs_util.h index 847594638234..64096d285fbc 100644 --- a/tests/include/tests/lib/cbfs_util.h +++ b/tests/include/tests/lib/cbfs_util.h @@ -44,9 +44,6 @@ struct cbfs_test_file { #define HASH_ATTR_SIZE (offsetof(struct cbfs_file_attr_hash, hash.raw) + VB2_SHA256_DIGEST_SIZE) -/* This macro basically does nothing but suppresses linter messages */ -#define EMPTY_WRAP(...) __VA_ARGS__ - #define TEST_DATA_1_FILENAME "test/data/1" #define TEST_DATA_1_SIZE sizeof((u8[]){TEST_DATA_1}) #define TEST_DATA_1 EMPTY_WRAP( \ diff --git a/tests/include/tests/test.h b/tests/include/tests/test.h index 523f8fafe967..45b542ed9f1f 100644 --- a/tests/include/tests/test.h +++ b/tests/include/tests/test.h @@ -14,6 +14,9 @@ #include #include +/* This macro basically does nothing but suppresses linter messages */ +#define EMPTY_WRAP(...) __VA_ARGS__ + /* * Set symbol value and make it global. */ -- cgit v1.2.3