qlnxe: Fix unused but set variable warning

Signed-off-by: Mark O'Donovan <shiftee@posteo.net>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/779
This commit is contained in:
Mark O'Donovan 2023-07-01 11:06:51 -06:00 committed by Warner Losh
parent b75c387a66
commit dc58675cfb
2 changed files with 2 additions and 3 deletions

View file

@ -480,8 +480,8 @@ qlnx_test_and_change_bit(long bit, volatile unsigned long *var)
#define OSAL_TEST_AND_FLIP_BIT qlnx_test_and_change_bit
#define OSAL_TEST_AND_CLEAR_BIT test_and_clear_bit
#define OSAL_MEMCMP memcmp
#define OSAL_SPIN_LOCK_IRQSAVE(x,y) {y=0; mtx_lock(x);}
#define OSAL_SPIN_UNLOCK_IRQSAVE(x,y) {y= 0; mtx_unlock(x);}
#define OSAL_SPIN_LOCK_IRQSAVE(x, y) { (void)y; mtx_lock(x); }
#define OSAL_SPIN_UNLOCK_IRQSAVE(x, y) { (void)y; mtx_unlock(x); }
static inline u32
OSAL_CRC32(u32 crc, u8 *ptr, u32 length)

View file

@ -89,4 +89,3 @@ CFLAGS += -DCONFIG_ECORE_IWARP
CFLAGS += -DCONFIG_ECORE_RDMA
CFLAGS += -DQLNX_ENABLE_IWARP
CWARNFLAGS.ecore_ll2.c+= ${NO_WUNUSED_BUT_SET_VARIABLE}