Skip to content

tests/drivers/build_all/wifi fails on native_sim/native/64 #80242

@danieldegrasse

Description

@danieldegrasse

Describe the bug
The WiFi driver build all test added in #79145 is failing to build on native_sim/native/64, due to some issues regarding 64 bit versus 32 bit pointers in the eswifi driver.

To Reproduce

  1. west build -p -b native_sim/native/64 tests/drivers/build_all/wifi -T drivers.wifi.build.uart
  2. See build warning (upgraded to error in CI)

Expected behavior
The build should pass without warnings

Impact
Blocking CI on #72102

Logs and console output

[118/162] Building C object zephyr/drivers/wifi/CM...ivers__wifi.dir/eswifi/eswifi_socket_offload.c.obj
/home/danieldegrasse/zephyr/zephyrproject/zephyr/drivers/wifi/eswifi/eswifi_socket_offload.c: In function ‘eswifi_socket_connect’:
/home/danieldegrasse/zephyr/zephyrproject/zephyr/drivers/wifi/eswifi/eswifi_socket_offload.c:31:26: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   31 | #define OBJ_TO_SD(obj) (((int)obj) - 1)
      |                          ^
/home/danieldegrasse/zephyr/zephyrproject/zephyr/drivers/wifi/eswifi/eswifi_socket_offload.c:58:20: note: in expansion of macro ‘OBJ_TO_SD’
   58 |         int sock = OBJ_TO_SD(obj);
      |                    ^~~~~~~~~
/home/danieldegrasse/zephyr/zephyrproject/zephyr/drivers/wifi/eswifi/eswifi_socket_offload.c: In function ‘eswifi_socket_listen’:
/home/danieldegrasse/zephyr/zephyrproject/zephyr/drivers/wifi/eswifi/eswifi_socket_offload.c:31:26: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   31 | #define OBJ_TO_SD(obj) (((int)obj) - 1)

Several similar warnings are present in the file.

Environment (please complete the following information):

  • OS: Ubuntu 22.04 LTS
  • Toolchain: zephyr-sdk-0.17.0-rc1
  • Commit SHA or Version used 6e653a9 (main)

Metadata

Metadata

Labels

area: Wi-FiWi-FibugThe issue is a bug, or the PR is fixing a bugpriority: mediumMedium impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions