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
Differential Revision: https://reviews.freebsd.org/D28576

(cherry picked from commit 29ed53850e72ab1b470b978d150561281addc0fc)

Details

Provenance
markjAuthored on Feb 11 2021, 3:16 PM
Reviewer
arichardson
Differential Revision
D28576: Silence warnings about no-op alignment operations
Parents
rG720600023287: Fix incorrect powf(3) result with x near 1 and |y| much larger than 1
Branches
Unknown
Tags
Unknown