Skip to content

Conversation

korran
Copy link
Contributor

@korran korran commented Oct 2, 2025

In file included from lib/crypto/crypto_ipc.c:10:
In file included from external/lowrisc_opentitan+/sw/device/lib/crypto/include/ecc_p256.h:8: In file included from external/lowrisc_opentitan+/sw/device/lib/crypto/include/datatypes.h:12: external/lowrisc_opentitan+/sw/device/lib/base/hardened.h:244:37: error: 'OT_DISABLE_HARDENING' is not defined, evaluates to 0 [-Werror,-Wundef]

@korran korran requested a review from a team as a code owner October 2, 2025 01:04
@korran korran requested review from alees24 and removed request for a team October 2, 2025 01:04
@rswarbrick rswarbrick requested a review from nasahlpa October 2, 2025 11:05
@rswarbrick
Copy link
Contributor

How neat! I didn't even know that one could use defined(...) like that.

@nasahlpa: Would you mind taking a look at this? The other way we might do it is to switch the flag to just depend on whether it was defined and use #ifdef here. I'm not sure I have an opinion on what is better.

@nasahlpa
Copy link
Member

nasahlpa commented Oct 2, 2025

Thanks @korran for fixing this!

I also don't have a preference here - so I simply would stick to defined(...).

@korran could you please add a sign-off line as described here such that CI passes?

@korran korran force-pushed the hardening-warning branch from 9fc5611 to c7c094a Compare October 2, 2025 16:53
@korran
Copy link
Contributor Author

korran commented Oct 2, 2025

Thanks @korran for fixing this!

I also don't have a preference here - so I simply would stick to defined(...).

@korran could you please add a sign-off line as described here such that CI passes?

Done

In file included from lib/crypto/crypto_ipc.c:10:
In file included from external/lowrisc_opentitan+/sw/device/lib/crypto/include/ecc_p256.h:8:
In file included from external/lowrisc_opentitan+/sw/device/lib/crypto/include/datatypes.h:12:
external/lowrisc_opentitan+/sw/device/lib/base/hardened.h:244:37: error: 'OT_DISABLE_HARDENING' is not defined, evaluates to 0 [-Werror,-Wundef]

Signed-off-by: Kor Nielsen <[email protected]>
@korran korran force-pushed the hardening-warning branch from c7c094a to e08828d Compare October 2, 2025 18:59
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