Skip to content

Conversation

@aescolar
Copy link
Member

@aescolar aescolar commented Dec 9, 2025

In #99169 the mayority of the Zephyr drivers were changed to use the Zephyr native net_ prefixed types, but some symbols were forgotten.
Without these fixes/changes the code still builds in most cases as we are by now setting CONFIG_NET_NAMESPACE_COMPAT_MODE.
But when this is not set, things fail to build.

Note that the net_offload struct was updated accordingly in d45cd67

There is currently a failure in main:
https://github.com/zephyrproject-rtos/zephyr/actions/runs/19997797171

drivers/modem/hl7800.c:380:9: error: unknown type name 'sa_family_t'
  380 |         sa_family_t family;
drivers/modem/hl7800.c:5961:24: error: unknown type name 'sa_family_t'; did you mean 'net_sa_family_t'?

In e6daacf the mayority of the
Zephyr ethernet drivers were changed to use the Zephyr native
net_ prefixed types, but this one was forgotten.
Without this fix/change the code still builds as we are by now setting
CONFIG_NET_NAMESPACE_COMPAT_MODE. But when this is not set, things
fail to build.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
rlubos
rlubos previously approved these changes Dec 9, 2025
rerickson1
rerickson1 previously approved these changes Dec 9, 2025
fabiobaltieri
fabiobaltieri previously approved these changes Dec 9, 2025
In b5588ed the mayority of the
Zephyr modem drivers were changed to use the Zephyr native
net_ prefixed types, but this one was forgotten.
Without this fix/change the code still builds as we are by now setting
CONFIG_NET_NAMESPACE_COMPAT_MODE. But when this is not set, things
fail to build.

Note that the net_offload struct was updated accordingly in
d45cd67

Signed-off-by: Alberto Escolar Piedras <[email protected]>
In d45cd67 the mayority of the
Zephyr codebased was changed to use the Zephyr native net_ prefixed
types. This comment was fogotten.
Let's fix it.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
In 55c49cd the mayority of the
Zephyr wifi drivers was changed to use the Zephyr native net_ prefixed
types, but some were forgotten.
Without this fix/change the code still builds as we are by now setting
CONFIG_NET_NAMESPACE_COMPAT_MODE. But when this is not set, things
will fail to build.

Note that the net_offload struct was updated accordingly in
d45cd67

Signed-off-by: Alberto Escolar Piedras <[email protected]>
@aescolar
Copy link
Member Author

Last push was just fixing a few more missing renames in one of the drivers being changed in this PR.

@sonarqubecloud
Copy link

@aescolar aescolar merged commit 244fe54 into zephyrproject-rtos:main Dec 11, 2025
27 checks passed
@aescolar aescolar deleted the net_cleanup_part1 branch December 11, 2025 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants