From nobody Sat Jul 01 17:10:17 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Qtdwn4Q5kz4l3WW; Sat, 1 Jul 2023 17:10:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Qtdwn3ZXPz3hbB; Sat, 1 Jul 2023 17:10:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688231417; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=M+Ww9Ml5OW33/NcPalqXBPXU3181SvA6dHYg4cSXZo0=; b=TqSvqcMqdDY+jIPs/+6jg6eHgROOhpNFvmts3SmwxBanhEadqOTc0CDdjnqT3RrgdVkA/d 9jrOh1qe9Gy5g85VuzFGzzsR4FefUrXcUXggTyXx/IEBg8K8q09rqdz7qyoPk4f1vRanyw Oe4wOEHZQUJMKLS3nefCsDwr216TgCIlHYXo0Z1GID50phT8MS93zDqcll5L243hMx/AvD rOGMunuq/88MtBR1n/JFPwTquObTIjB/xgdtQY5LWflIWtffHLO+62kiUgPmEr3HmgvKMr Zj4tVsOBeNaDss24qv4qGqXbNKuNM6IVVkWlHR+LJLoJAFQIHNlEze9Fvhr8uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688231417; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=M+Ww9Ml5OW33/NcPalqXBPXU3181SvA6dHYg4cSXZo0=; b=durCcheqlZCQ5EZWSdbmABLrUyqLnuDewxYfQF+aqRl+oCDomufUL5ECA/HQkMQmaca9bf BHUKRzW9IlFClNNbBNSq3J1VvfE+5SiHUbwCH85wRLmtITPvpiJBbOFV+QdsacQoVLgEP2 IX/wtThZyJe2fC4I6nQzivZjkM9PaeqP/LAUR1Em/KG7TJ/cDMQnaGDLfQtc4PN8Q0Tdoq R+K7EzdLC8435DPNq0RmGlFOCoetapZ43MXe5kdBAGoyygXuu/RN0PImFcZj59/pCP8d4Q t6HzUARgcmDsnaqTpGbiMGxHhLIkMYD/OBB/4N1kWmbD0IE9EmNMTZ1hmCjnGA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1688231417; a=rsa-sha256; cv=none; b=fzA1i/ruS+B6xqkn89quEGbW/0JMUuNROSe6ESOcaLnBCNOODY+wSdlFKA2CLjhS4tTFqc chnbItq9y2GPIUuvIN8hs/ZleR+H1R9OKAksh8Ubx+Bdb8M8+Zj6Na5X55z3RPKFpJPJca HPjH3CtRC48ez7Dh/9biEkIY8ObWUiujNMwSpspUZ4/4P+pCOAB/Zcub2EfyjRKSvzK8yM o0s2C6DrilwwamfPhqH0D2zJI2ynG3gKL53cddWQfOeCp0ZMjPnunfa0BLZ5uBToByoocC TghH7wD2J5gh72UuVOeQtHZ/znn+UPgVIolGIXlAg+7wOyx7YltWJTRZnvfR6A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Qtdwn2RlzzZ2Q; Sat, 1 Jul 2023 17:10:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 361HAHj6046815; Sat, 1 Jul 2023 17:10:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 361HAHs7046809; Sat, 1 Jul 2023 17:10:17 GMT (envelope-from git) Date: Sat, 1 Jul 2023 17:10:17 GMT Message-Id: <202307011710.361HAHs7046809@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: dc58675cfb18 - main - qlnxe: Fix unused but set variable warning List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: dc58675cfb18b1fcde4cdad95eae546c0d5f35cb Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=dc58675cfb18b1fcde4cdad95eae546c0d5f35cb commit dc58675cfb18b1fcde4cdad95eae546c0d5f35cb Author: Mark O'Donovan AuthorDate: 2023-07-01 17:06:51 +0000 Commit: Warner Losh CommitDate: 2023-07-01 17:06:58 +0000 qlnxe: Fix unused but set variable warning Signed-off-by: Mark O'Donovan Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/779 --- sys/dev/qlnx/qlnxe/bcm_osal.h | 4 ++-- sys/modules/qlnx/qlnxe/Makefile | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/dev/qlnx/qlnxe/bcm_osal.h b/sys/dev/qlnx/qlnxe/bcm_osal.h index 3f7bb5234942..1cf4b8d06ff1 100644 --- a/sys/dev/qlnx/qlnxe/bcm_osal.h +++ b/sys/dev/qlnx/qlnxe/bcm_osal.h @@ -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) diff --git a/sys/modules/qlnx/qlnxe/Makefile b/sys/modules/qlnx/qlnxe/Makefile index d682192d18fc..42dbfc14bdf5 100644 --- a/sys/modules/qlnx/qlnxe/Makefile +++ b/sys/modules/qlnx/qlnxe/Makefile @@ -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}