Skip to content

Conversation

@andyross
Copy link
Contributor

[As before, I'm not sure if stable-v1.6 is the correct branch to which to submit]

IS_ENABLED and ARRAY_SIZE exist in effectively identical forms in the
Zephyr headers already. Disable the SOF definitions when building
with Zephyr to avoid the macro redefinition collision.

Signed-off-by: Andy Ross andrew.j.ross@intel.com

IS_ENABLED and ARRAY_SIZE exist in effectively identical forms in the
Zephyr headers already.  Disable the SOF definitions when building
with Zephyr to avoid the macro redefinition collision.

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
andyross pushed a commit to andyross/zephyr that referenced this pull request Oct 22, 2020
Currently SOF and Zephyr define the same common macros. Avoid redifinition
error until SOF port is complete.

This patch can be removed when this pull request is merged in upstream
SOF:

thesofproject/sof#3545

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
@lgirdwood
Copy link
Member

SOFCI TEST

Copy link
Member

@lgirdwood lgirdwood left a comment

Choose a reason for hiding this comment

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

Looks like CI issue is unrelated and a script failure.

@lgirdwood
Copy link
Member

@andyross could you send the same patch into master too. Thanks. This will help us with CI as it may be trying a test that's not in stable.

@lgirdwood lgirdwood added this to the v1.6 milestone Oct 29, 2020
Copy link
Collaborator

@lyakh lyakh left a comment

Choose a reason for hiding this comment

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

tested to work, but shouldn't we rather do #ifndef ARRAY_SIZE and #ifndef IS_ENABLED respectively?

@lgirdwood
Copy link
Member

@lyakh can you do a PR for this into master, then we can merge into stable. Thanks

@lgirdwood
Copy link
Member

@lyakh ping.

@andyross
Copy link
Contributor Author

Close, rolled into #3601 and sent to master

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.

3 participants