HomeFreeBSD

ena: Make first_interrupt a uint8_t

Description

ena: Make first_interrupt a uint8_t

We do not have atomic(9) routines for bools, and it is not guaranteed
that sizeof(bool) is 1.

This fixes the KASAN and KMSAN kernel builds, which fail because the
compiler refuses to silently cast a _Bool * to a uint8_t * when calling
the atomic(9) sanitizer interceptors.

Reviewed by: Dawid Górecki <dgr@semihalf.com>
MFC after: 2 weeks
Fixes: 0ac122c388d9 ("ena: Use atomic_load/store functions for first_interrupt variable")
Differential Revision: https://reviews.freebsd.org/D35683

(cherry picked from commit b72f1f4516896ad6da0ea74d146a56045de171f7)

Details

Provenance
markjAuthored on Jun 30 2022, 6:49 PM
mwCommitted on Jul 26 2022, 7:33 PM
Reviewer
rG0ac122c388d9: ena: Use atomic_load/store functions for first_interrupt variable
Differential Revision
D35683: ena: Make first_interrupt a uint8_t
Parents
rG7f12992281c7: ena: Update driver version to v2.6.0
Branches
Unknown
Tags
Unknown