diff options
author | Thomas Heijligen <thomas.heijligen@secunet.com> | 2022-04-21 13:29:33 +0200 |
---|---|---|
committer | Thomas Heijligen <src@posteo.de> | 2022-05-08 17:37:45 +0000 |
commit | 7228ce007cc42030393b3a33f28b6115e41591b1 (patch) | |
tree | f05d46d98809e752e6d711061ef20f8b4d84b4fe /platform | |
parent | 1866deb06d775b9d006c1ef21c99f439677f0f76 (diff) | |
download | flashrom-7228ce007cc42030393b3a33f28b6115e41591b1.tar.gz flashrom-7228ce007cc42030393b3a33f28b6115e41591b1.tar.bz2 flashrom-7228ce007cc42030393b3a33f28b6115e41591b1.zip |
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 <thomas.heijligen@secunet.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/63825
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'platform')
-rw-r--r-- | platform/endian_big.c | 1 | ||||
-rw-r--r-- | platform/endian_little.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/platform/endian_big.c b/platform/endian_big.c index 6541a831e..456553409 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 aeb9d5730..690f3839f 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) |