mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
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:
parent
b75c387a66
commit
dc58675cfb
2 changed files with 2 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Reference in a new issue