From 7228ce007cc42030393b3a33f28b6115e41591b1 Mon Sep 17 00:00:00 2001 From: Thomas Heijligen Date: Thu, 21 Apr 2022 13:29:33 +0200 Subject: platform/swap: move swap inline functions & macros into an own header These inline functions and macros are only used in platform/endian_(big|little).c and do not need to be compiled into every object which includes `platform.h`. Change-Id: Ib2326e6a4eb5e000a0eace857d040372e2e9e561 Signed-off-by: Thomas Heijligen Reviewed-on: https://review.coreboot.org/c/flashrom/+/63825 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber Reviewed-by: Angel Pons --- platform/endian_big.c | 1 + platform/endian_little.c | 1 + 2 files changed, 2 insertions(+) (limited to 'platform') diff --git a/platform/endian_big.c b/platform/endian_big.c index 6541a831..45655340 100644 --- a/platform/endian_big.c +++ b/platform/endian_big.c @@ -16,6 +16,7 @@ */ #include "platform.h" +#include "platform/swap.h" /* convert cpu native endian to little endian */ ___return_swapped(cpu_to_le, 8) diff --git a/platform/endian_little.c b/platform/endian_little.c index aeb9d573..690f3839 100644 --- a/platform/endian_little.c +++ b/platform/endian_little.c @@ -16,6 +16,7 @@ */ #include "platform.h" +#include "platform/swap.h" /* convert cpu native endian to little endian */ ___return_same(cpu_to_le, 8) -- cgit v1.2.3