From 06aab75c209854ac598b6953d11574d9b06d1340 Mon Sep 17 00:00:00 2001 From: Seppo Ingalsuo Date: Thu, 17 Oct 2024 11:39:31 +0300 Subject: [PATCH] Platform: Library: Move mailbox_sw_reg_read64() from posix mailbox.h Without this change testbench IPC4 build fails with copier with implicit definition of the function. The mailbox_sw_reg_read64() function should be there in the same platform library mailbox.h header as the 32 bit version of similar function. The header mailbox.h for all Intel platforms is organized similarly. The argument type is changed to size_t from uint32_t to follow other similar functions. Signed-off-by: Seppo Ingalsuo --- posix/include/sof/lib/mailbox.h | 4 ---- src/platform/library/include/platform/lib/mailbox.h | 5 +++++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/posix/include/sof/lib/mailbox.h b/posix/include/sof/lib/mailbox.h index 3d43a22e10ec..06e2659a5847 100644 --- a/posix/include/sof/lib/mailbox.h +++ b/posix/include/sof/lib/mailbox.h @@ -72,10 +72,6 @@ void mailbox_dspbox_read(void *dest, size_t dest_size, #define mailbox_hostbox_write(_offset, _src, _bytes) \ memcpy((char *)ipc->comp_data + _offset, _src, _bytes) -static inline uint64_t mailbox_sw_reg_read64(uint32_t offset) -{ - return 0; -} #else static inline diff --git a/src/platform/library/include/platform/lib/mailbox.h b/src/platform/library/include/platform/lib/mailbox.h index 04470a43e66e..daa858481149 100644 --- a/src/platform/library/include/platform/lib/mailbox.h +++ b/src/platform/library/include/platform/lib/mailbox.h @@ -59,6 +59,11 @@ static inline uint32_t mailbox_sw_reg_read(size_t offset) return 0; } +static inline uint64_t mailbox_sw_reg_read64(size_t offset) +{ + return 0; +} + #endif /* __PLATFORM_LIB_MAILBOX_H__ */ #else