Skip to content

Conversation

@tswaehn
Copy link
Contributor

@tswaehn tswaehn commented Aug 21, 2025

  • remove compiler warnings
  • fix for using zephyr,random-mac-address

note, that when not defining zephyr,random-mac-address it will be generated to:

zephyr/include/generated/zephyr/devicetree_generated.h

...
#define DT_N_S_soc_S_ethernet_1a120000_P_zephyr_random_mac_address 0
...

removed invalid arguments.

Signed-off-by: Sven Ginka <s.ginka@sensry.de>
@tswaehn tswaehn self-assigned this Aug 21, 2025
@tswaehn tswaehn added the size: XS A PR changing only a single line of code label Aug 21, 2025
@tswaehn tswaehn force-pushed the sy1xx/ethernet-fix branch from 483fd85 to c359d27 Compare August 21, 2025 09:18
@tswaehn tswaehn removed the size: XS A PR changing only a single line of code label Aug 21, 2025
@tswaehn tswaehn force-pushed the sy1xx/ethernet-fix branch from c359d27 to 9503cc0 Compare August 21, 2025 09:22
@tswaehn tswaehn marked this pull request as ready for review August 21, 2025 10:06
Copy link
Contributor

@pdgendt pdgendt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same mistake should be fixed at these locations, could you apply them while you're at it?

.use_random_mac_addr = DT_NODE_HAS_PROP(port, zephyr_random_mac_address), \

.use_random_mac_addr = DT_NODE_HAS_PROP(port, zephyr_random_mac_address), \

@tswaehn tswaehn force-pushed the sy1xx/ethernet-fix branch from 9503cc0 to d08af17 Compare August 21, 2025 10:17
@tswaehn tswaehn requested a review from pdgendt August 21, 2025 10:19
pdgendt
pdgendt previously approved these changes Aug 21, 2025
@tswaehn
Copy link
Contributor Author

tswaehn commented Aug 21, 2025

The same mistake should be fixed at these locations, could you apply them while you're at it?

sure, will create separate PR

casting the address to uint32_t removes the compiler warning.

Signed-off-by: Sven Ginka <s.ginka@sensry.de>
before that commit, random mac was used even when defining
zephyr,random-mac-address to false.

Signed-off-by: Sven Ginka <s.ginka@sensry.de>
@tswaehn
Copy link
Contributor Author

tswaehn commented Aug 21, 2025

@pdgendt created PR #94798

@sonarqubecloud
Copy link

@tswaehn tswaehn removed their assignment Aug 21, 2025
@kartben kartben merged commit ddc4f5f into zephyrproject-rtos:main Aug 25, 2025
27 checks passed
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.

5 participants