]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
mlx4, mthca: Silence warnings about no-op alignment operations
authorMark Johnston <markj@FreeBSD.org>
Thu, 11 Feb 2021 15:16:59 +0000 (10:16 -0500)
committerMark Johnston <markj@FreeBSD.org>
Thu, 11 Feb 2021 15:16:59 +0000 (10:16 -0500)
commit29ed53850e72ab1b470b978d150561281addc0fc
tree1e235c97c7e98d7c4b03694ae133a348e9864e5a
parentc03ccb991d0e399435c9bbdb6b266ecee93f5b46
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
sys/dev/mlx4/mlx4_core/icm.h
sys/dev/mlx4/mlx4_core/mlx4_fw.c
sys/dev/mthca/mthca_cmd.c
sys/dev/mthca/mthca_memfree.h