From b202c7a8a2a033a10f17bb2fa0f790851075ae2b Mon Sep 17 00:00:00 2001 From: Alexander Egorenkov Date: Fri, 26 Jun 2020 11:12:00 +0200 Subject: pkg/csource: fix casting of parameters for trampolines Signed-off-by: Alexander Egorenkov --- executor/common_linux.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'executor/common_linux.h') diff --git a/executor/common_linux.h b/executor/common_linux.h index cb60ca9de..8e816fb8e 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -3528,3 +3528,10 @@ static void setup_usb() fail("failed to chmod /dev/raw-gadget"); } #endif + +#if GOARCH_s390x +#include +// Ugly way to work around gcc's "error: function called through a non-compatible type". +// The macro is used in generated C code. +#define CAST(f) ({void* p = (void*)f; p; }) +#endif -- cgit mrf-deployment