mlx4: Move DEFINE_MUTEX() outside function body.
authorHans Petter Selasky <hselasky@FreeBSD.org>
Sun, 21 May 2023 11:25:28 +0000 (13:25 +0200)
committerHans Petter Selasky <hselasky@FreeBSD.org>
Sun, 21 May 2023 16:20:16 +0000 (18:20 +0200)
commit805d759338a2be939fffc8bf3f25cfaab981a9be
treef85afc7e12a66593df7d0d666959bdce997f04da
parent63ad5ce7335be6a0cc4a7bf27fe03d72c28ad401
mlx4: Move DEFINE_MUTEX() outside function body.

Move static mutex declaration outside function body, to avoid global
variables being declared on the stack, when using SYSINITs.

MFC after: 1 week
Sponsored by: NVIDIA Networking
sys/dev/mlx4/mlx4_core/mlx4_main.c