zephyr/subsys/shell/modules
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
..
CMakeLists.txt
date_service.c shell: date_service: conditionally include posix/time.h 2023-08-23 10:06:00 +02:00
device_service.c device: make device dependencies optional 2023-06-21 09:32:05 +02:00
devmem_service.c posix: Fix name collision with __bswap 2024-01-10 18:13:44 +00:00
Kconfig
kernel_service.c shell: modules: do not use k_thread_foreach with shell callbacks 2023-12-21 10:01:08 +00:00