Branch: refs/heads/main Home: https://github.com/OpenAMP/libmetal Commit: 289e4de876fc0ad25ab9a1043c3682395d7e7fca https://github.com/OpenAMP/libmetal/commit/289e4de876fc0ad25ab9a1043c3682395... Author: Arnaud Pouliquen arnaud.pouliquen@foss.st.com Date: 2024-10-25 (Fri, 25 Oct 2024)
Changed paths: M lib/processor/CMakeLists.txt A lib/processor/hosted/cpu.c M lib/processor/hosted/cpu.h
Log Message: ----------- lib: processor: hosted: Fix compilation warning in metal_cpu_yield
Fix cross inclusion between metal/sys.h and /processor/hosted/cpu.h
The fix consists in creating a cpu.c file to avoid inline declaration.
Issue reported by Zephyr twister CI test:
libmetal/lib/include/metal/processor/hosted/cpu.h:19:9: error: implicit declaration of function ‘metal_wait_usec’ 19 | metal_wait_usec(10); | ^~~~~~~~~~~~~~~ libmetal/lib/include/metal/system/zephyr/sys.h:46:20: error: conflicting types for ‘metal_wait_usec’; have ‘void(uint32_t)’ 46 | static inline void metal_wait_usec(uint32_t usec_to_wait) | ^~~~~~~~~~~~~~~ libmetal/lib/include/metal/processor/hosted/cpu.h:19:9: note: previous implicit declaration of ‘metal_wait_usec’ with type ‘void(uint32_t)’ {aka ‘void(unsigned int)’} 19 | metal_wait_usec(10); | ^~~~~~~~~~~~~~~
Signed-off-by: Arnaud Pouliquen arnaud.pouliquen@foss.st.com
To unsubscribe from these emails, change your notification settings at https://github.com/OpenAMP/libmetal/settings/notifications
openamp-rp@lists.openampproject.org