-
Notifications
You must be signed in to change notification settings - Fork 8.4k
sys: util: add sys_ prefix to SIGN, gcd, and lcm utils #100725
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
These should not show up as API in doxygen Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
As per our naming conventions for public symbols, these utility functions and macros should be prefixed with "sys_". Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
|
By the way, this fix is needed to be able to build https://github.com/zephyrproject-rtos/zephyr/blob/main/drivers/usb_c/vbus/usbc_vbus_adc.c#L99 |
|
No worries!
The rule is for new APIs being introduced. Renaming existing API is unfortunately not really possible without breaking LOTS of users :) |
Yeah I don't think that'd be a good idea. In general, I don't think we should blindly follow these rules without applying common sense first, some of these macros are well used in Linux and we have a lot of developers working cross-project, having different convention just makes it harder for them carry over and add distractions when doing code reviews. Probably no big deal for this one, there is a linux counterpart but it's not as commonly used as min/max though honestly I would leave it as is. |



As per our naming conventions for public symbols, these utility functions and macros should be prefixed with "sys_".
These were introduced with #98875 with a lack of prefix.