zephyr/tests/lib
Jonathan Hamberg 9c1a45cc00 posix: Fix name collision with __bswap
__bswap_ in zephyr/sys/byteorder.h conflicts with __bswap_ in host's
byteswap.h. byteswap.h from host compiler used in posix_native_64 boards
causes a compilation issue.

This commit renames __bswap_ to BSWAP_ to prevent collision.

Before this commit a compilation error can be created by adding #include
<byteswap.h> to samples/net/sockets/echo/src/socket_echo.c

This does not change external API to byteorder.h, but does change
internal implementation which some other source files depend on.

Replaced manual byteswap operations in devmem_service.c with APIs from
byteorder.h which automatically converts to CPU endianess when necessary.

Fixes #44324

Signed-off-by: Jonathan Hamberg <jonathanhamberg@gmail.com>
2024-01-10 18:13:44 +00:00
..
acpi tests: lib: acpi: Convert to FFF 2023-12-19 11:04:19 +01:00
c_lib tests: lib: c_lib: fix double promotion error 2023-12-18 09:21:12 +00:00
cbprintf_fp tests: cbprintf: fix test meta data and components 2023-10-11 14:19:40 +03:00
cbprintf_package tests: lib: cbprintf_package: Add test case for cbprintf_convert 2023-12-28 12:18:50 +00:00
cmsis_dsp tests/lib/cmsis_dsp: Switch integration_platform to native_sim 2023-11-30 09:42:25 -05:00
cmsis_nn tests: Switch from NEWLIB_LIBC to REQUIRES_FULL_LIBC 2023-10-25 08:32:06 +02:00
cpp posix: Fix name collision with __bswap 2024-01-10 18:13:44 +00:00
devicetree boards: xtensa: add Kincony KC868-A32 module suppport 2024-01-08 14:21:30 +01:00
fdtable tests: fix thread function signatures 2023-10-30 12:24:34 +01:00
gui/lvgl tests/lib/gui/lvgl: Enable for native_sim 2023-11-27 16:06:42 +00:00
hash_function tests/lib/*: Switch integration platform to native_sim 2023-11-30 09:42:25 -05:00
hash_map tests/lib/*: Switch integration platform to native_sim 2023-11-30 09:42:25 -05:00
heap lib: heap: build heap utilities only on demand 2023-12-13 17:27:54 -05:00
heap_align tests/lib/*: Switch integration platform to native_sim 2023-11-30 09:42:25 -05:00
json tests/lib/*: Switch integration platform to native_sim 2023-11-30 09:42:25 -05:00
linear_range tests/lib/*: Switch integration platform to native_sim 2023-11-30 09:42:25 -05:00
mem_alloc tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
mem_blocks tests/lib/*: Switch integration platform to native_sim 2023-11-30 09:42:25 -05:00
mem_blocks_stats tests/lib/*: Switch integration platform to native_sim 2023-11-30 09:42:25 -05:00
mpsc_pbuf tests/lib/mpsc_pbuf: Switch to native_sim 2023-11-27 16:06:42 +00:00
multi_heap lib: heap: make multi-heap feature configurable 2023-12-13 17:27:54 -05:00
newlib tests newlib: Exclude in posix architecture 2023-10-24 09:05:29 +02:00
notify tests/lib/*: Switch integration platform to native_sim 2023-11-30 09:42:25 -05:00
onoff tests/lib/*: Switch integration platform to native_sim 2023-11-30 09:42:25 -05:00
p4workq tests/lib/*: Switch integration platform to native_sim 2023-11-30 09:42:25 -05:00
ringbuffer tests/lib/*: Switch integration platform to native_sim 2023-11-30 09:42:25 -05:00
shared_multi_heap tests: shared_multi_heap: fix identifier 2023-12-13 17:27:54 -05:00
smf tests/lib/*: Switch integration platform to native_sim 2023-11-30 09:42:25 -05:00
sprintf tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
spsc_pbuf tests/lib/*: Switch integration platform to native_sim 2023-11-30 09:42:25 -05:00
sys_util tests/lib/*: Switch integration platform to native_sim 2023-11-30 09:42:25 -05:00
thrift/ThriftTest tests: Switch from NEWLIB_LIBC to REQUIRES_FULL_LIBC 2023-10-25 08:32:06 +02:00
time tests/lib/time: Fix for posix architecture 2023-10-25 09:58:07 +02:00