summaryrefslogtreecommitdiffstats
path: root/util/amdfwtool/amdfwtool.h
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2022-10-14 09:58:29 +0200
committerFelix Held <felix-coreboot@felixheld.de>2022-11-12 17:59:20 +0000
commit7d67a19cfa42a5ef3ab9734ba9e445be59fc76e3 (patch)
treeb10bf9fafbaf3bc3893ae059289f94be7023405e /util/amdfwtool/amdfwtool.h
parentb291dc87764f3749655ebc07a5e2c1a20592501f (diff)
downloadcoreboot-7d67a19cfa42a5ef3ab9734ba9e445be59fc76e3.tar.gz
coreboot-7d67a19cfa42a5ef3ab9734ba9e445be59fc76e3.tar.bz2
coreboot-7d67a19cfa42a5ef3ab9734ba9e445be59fc76e3.zip
util/amdfwtool/amdfwtool: Don't rewrite macros
Change-Id: Iea9dc65584c751e4d02524582b744ec9732e2c04 Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/68376 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'util/amdfwtool/amdfwtool.h')
-rw-r--r--util/amdfwtool/amdfwtool.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/util/amdfwtool/amdfwtool.h b/util/amdfwtool/amdfwtool.h
index cd36085a50b6..3afa80e49a93 100644
--- a/util/amdfwtool/amdfwtool.h
+++ b/util/amdfwtool/amdfwtool.h
@@ -4,6 +4,7 @@
#define _AMD_FW_TOOL_H_
#include <commonlib/bsd/compiler.h>
+#include <commonlib/bsd/helpers.h>
#include <openssl/sha.h>
#include <stdint.h>
#include <stdbool.h>
@@ -373,6 +374,4 @@ uint8_t process_config(FILE *config, amd_cb_config *cb_config, uint8_t print_dep
#define LINE_EOF (1)
#define LINE_TOO_LONG (2)
-#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
-
#endif /* _AMD_FW_TOOL_H_ */