Skip to content
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

sam0: Name all anonymous bit-fields with qualifiers #45

Merged
merged 14 commits into from
Feb 6, 2025

Conversation

wag-thom
Copy link

Names all anonymous bit-fields with qualifiers to Reserved1, Reserved2, ...

This conforms to CWG2229 and enables compilation with clang++.

(See Zephyr Issue zephyrproject-rtos/zephyr#84242)

This conforms to CWG2229 and enables compilation with clang++.

Signed-off-by: Thomas Schranz <[email protected]>
@wag-thom
Copy link
Author

@nandojve: Would you mind taking a look before I do the rest?

@nandojve
Copy link
Member

nandojve commented Feb 2, 2025

@nandojve: Would you mind taking a look before I do the rest?

Hi @wag-thom ,
This is perfect, let's finish and approve.

Thomas Schranz added 13 commits February 3, 2025 08:50
This conforms to CWG2229 and enables compilation with clang++.

Signed-off-by: Thomas Schranz <[email protected]>
This conforms to CWG2229 and enables compilation with clang++.

Signed-off-by: Thomas Schranz <[email protected]>
This conforms to CWG2229 and enables compilation with clang++.

Signed-off-by: Thomas Schranz <[email protected]>
This conforms to CWG2229 and enables compilation with clang++.

Signed-off-by: Thomas Schranz <[email protected]>
This conforms to CWG2229 and enables compilation with clang++.

Signed-off-by: Thomas Schranz <[email protected]>
This conforms to CWG2229 and enables compilation with clang++.

Signed-off-by: Thomas Schranz <[email protected]>
This conforms to CWG2229 and enables compilation with clang++.

Signed-off-by: Thomas Schranz <[email protected]>
This conforms to CWG2229 and enables compilation with clang++.

Signed-off-by: Thomas Schranz <[email protected]>
This conforms to CWG2229 and enables compilation with clang++.

Signed-off-by: Thomas Schranz <[email protected]>
This conforms to CWG2229 and enables compilation with clang++.

Signed-off-by: Thomas Schranz <[email protected]>
This conforms to CWG2229 and enables compilation with clang++.

Signed-off-by: Thomas Schranz <[email protected]>
This conforms to CWG2229 and enables compilation with clang++.

Signed-off-by: Thomas Schranz <[email protected]>
This conforms to CWG2229 and enables compilation with clang++.

Signed-off-by: Thomas Schranz <[email protected]>
@wag-thom wag-thom marked this pull request as ready for review February 3, 2025 09:01
@wag-thom
Copy link
Author

wag-thom commented Feb 3, 2025

@nandojve should be ready now.

@nandojve nandojve self-assigned this Feb 3, 2025
@nandojve
Copy link
Member

nandojve commented Feb 3, 2025

Hi @wag-thom ,

You need to create a zephyr PR that will fetch this changes, see process-for-submitting-changes-to-existing-modules. Search by hal_atmel and replace the revision hash by pull/45/head. Once CI is green I can merge this side : )

Note, don't forget to add the Fixes #84242 as expected by pull-request-guidelines.

@nandojve nandojve self-requested a review February 3, 2025 16:39
@wag-thom
Copy link
Author

wag-thom commented Feb 3, 2025

Hi @nandojve

My original Issue zephyrproject-rtos/zephyr#84242 also noted, that some SOCs here also have bit-fields which are named EMPTY (in dac.h) which collides with the zephyr utility macro. This results in some more unnamed bit-field errors.
This should also be fixed somehow before the Issue can be resolved.

One option to fix that would be to #undef and re-define the EMPTY macro in zephyr same51/soc.h .
Or is there a preferred way to handle such cases?

@nandojve
Copy link
Member

nandojve commented Feb 3, 2025

Hi @nandojve

My original Issue zephyrproject-rtos/zephyr#84242 also noted, that some SOCs here also have bit-fields which are named EMPTY (in dac.h) which collides with the zephyr utility macro. This results in some more unnamed bit-field errors. This should also be fixed somehow before the Issue can be resolved.

One option to fix that would be to #undef and re-define the EMPTY macro in zephyr same51/soc.h . Or is there a preferred way to handle such cases?

The correct solution would be rename the EMPTY here and solve once for all.

@wag-thom
Copy link
Author

wag-thom commented Feb 5, 2025

@nandojve I created a PR in zephyr and the CI looks good.

The correct solution would be rename the EMPTY here and solve once for all.

Ok, I guess that should be done in a separate PR.
I can create one, once this is merged. (Maybe the Zephyr PR should then point to that new one, which would then actually fix the original issue.)

@nandojve nandojve merged commit d697369 into zephyrproject-rtos:master Feb 6, 2025
6 checks passed
@wag-thom wag-thom deleted the fix_unnamed_bitfields branch February 7, 2025 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants