HomeFreeBSD

mlx4, mthca: Silence warnings about no-op alignment operations

Description

mlx4, mthca: Silence warnings about no-op alignment operations

Since commit 8fa6abb6f4f64f ("Expose clang's alignment builtins and use
them for roundup2/rounddown2"), clang emits warnings for several
alignment operations in these drivers because the operation is a no-op.
The compiler is arguably being too strict here, but in the meantime
let's silence the warnings by conditionally compiling the alignment
operations.

Reviewed by: arichardson, hselasky
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D28576

Details

Provenance
markjAuthored on Feb 11 2021, 3:16 PM
Reviewer
arichardson
Differential Revision
D28576: Silence warnings about no-op alignment operations
Parents
rGc03ccb991d0e: VOP_ADVLOCK(9): fix a typo
Branches
Unknown
Tags
Unknown