Skip to content

numbers.h: simplify #ifndef ZEPHYR for MIN and MAX - #4130

Merged
lgirdwood merged 1 commit into
thesofproject:mainfrom
marc-hb:ifndef-zep-min
May 4, 2021
Merged

numbers.h: simplify #ifndef ZEPHYR for MIN and MAX#4130
lgirdwood merged 1 commit into
thesofproject:mainfrom
marc-hb:ifndef-zep-min

Conversation

@marc-hb

@marc-hbmarc-hb commented May 3, 2021

Copy link
Copy Markdown
Collaborator

Undefining and re-defining MIN/MAX when already defined is
convoluted. Simply define them if not __ZEPHYR__ instead.

Signed-off-by: Marc Herbert marc.herbert@intel.com

Undefining and re-defining MIN/MAX when already defined is
convoluted. Simply define them if not __ZEPHYR__ instead.
Signed-off-by: Marc Herbert <marc.herbert@intel.com>

@lgirdwoodlgirdwood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Good stuff @marc-hb - need more like this for any and all duplicated macros. @kv2019i@lyakh fyi

@marc-hb
marc-hb marked this pull request as ready for review May 4, 2021 05:58
@marc-hb

marc-hb commented May 4, 2021

Copy link
Copy Markdown
CollaboratorAuthor

WHL_HDA failed everything in https://sof-ci.01.org/sof-pr-viewer/#/build/PR4130/build6388021 but the exact same happened in this entirely different and unrelated PR so it's hopefully unrelated: https://sof-ci.01.org/sof-pr-viewer/#/build/PR4131/build6388373

@zrombel, @kkarask or @wszypelt could you check what's going on with WHL_HDA?

https://sof-ci.01.org/sofpr/PR4130/build8910/devicetest was all green

@lgirdwood
lgirdwood merged commit ce52555 into thesofproject:mainMay 4, 2021
@marc-hb
marc-hb deleted the ifndef-zep-min branch September 2, 2021 23:49
Sign up for freeto 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

@marc-hb@lgirdwood@jgunn0262