From nobody Wed Jul 27 19:14:21 2022 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 4LtNkP40zDz4XRj1; Wed, 27 Jul 2022 19:14:21 +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 4LtNkP2zcjz3DVf; Wed, 27 Jul 2022 19:14:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658949261; 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=ztl7mrMo5KLiUlZp4solWcJXPsWdC/PNrwiqOhgiM0M=; b=qGuCGaneHel5QGfqCHJ1BlIRlOveMqA8Spxdf2EunMxHbAZoVUh8wQrAuwais/kY02B7M/ zruLf1YA8bNUX7hTA5dl8f2SQt5pzrjUl0y4LIY/SeVeypoaghza/QHlM1XNI4EAj+xiAE s7cwtz6tcHWYg2Fsu8TT/eld70NA+WJ/Hw/ONOPvU6Z1UN+ymTezm7k56SGxUW3yOcKW7X 5tB9ejG+fPodS43nj4jRP74llF8blEPpQuZoXh2sND8jMiLMaXcBVcu9WDL8JzSXyR5bKh 3VjGGjZTMiajZfWfkXOftA2FkMm4++G1pXfaS1O1dJd5xRuoMpCC/00RytkCHw== 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 4LtNkP22nxzSDX; Wed, 27 Jul 2022 19:14:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 26RJEL2B058173; Wed, 27 Jul 2022 19:14:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26RJELVG058172; Wed, 27 Jul 2022 19:14:21 GMT (envelope-from git) Date: Wed, 27 Jul 2022 19:14:21 GMT Message-Id: <202207271914.26RJELVG058172@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dimitry Andric Subject: git: 02a226ac342f - main - Suppress possible unused variable warning for icl_soft.c 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: dim X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 02a226ac342f0fb622e654e461c41f4f588f4186 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658949261; 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=ztl7mrMo5KLiUlZp4solWcJXPsWdC/PNrwiqOhgiM0M=; b=BM5UOIdAxE4GTUwMEN/lbO6sL5xkvRRYn1Vr4TWs/RN2faXED2ViQDU6gk4BvH9jAgbLFG BsHxRnBywnl/69MaEfM8pwXza61CYGs67jkg8087UJn9DxyAKUu+pzGDBFGc7RNcaeZiPc knOv8+I02k5YATso4n7Jq6lGsf1cVc/sVZtaud8QeTGQjh2/5RWtY+Nn2EyXaCwkBEjBPT 0fwKXVvD6vXfIsBXx7lvk9du33+ETrbVVl392mAk780S2lTf6XGtFhtOfuJEp/vUWFdFGh D/P6MhDZYXSuPYqvEDsg2ytlZ939zGlVo4yx9CTgDTJqFuSQ+fN95wfvo5PpsQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658949261; a=rsa-sha256; cv=none; b=WOdz/UPqZxqNn5CQ1jYDYRNpXq6y1OyUckvonv8S8+2qM65T/mk+Ue7pskTd9Fx/0wTKUx 4zVzqQzvJ37C2WgQnR1mRZ+2qdHvVzed/d4Ik2wBCYVoTI75sRN51SHXqc9O1wwinoBMrQ oEN31BmVjX0vX1e2U8R9Rugovhfz4ZLIqWrPaHSuPcUjc4QuQhPnpwinQQjQiKfHAh3l4O 8h83aZVem0PqhIb2FT4VqX6aCMq2jpvBEeUn82Zhj7CIkrQCw5ZD1MidTXirfWtIchatUL DzsXseKRQ6Nb1zHoRKzPQjd9YMG0RY31WEWfbsqPbNfdj0AVBT6G8eqlP+Gk8g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=02a226ac342f0fb622e654e461c41f4f588f4186 commit 02a226ac342f0fb622e654e461c41f4f588f4186 Author: Dimitry Andric AuthorDate: 2022-07-27 19:00:22 +0000 Commit: Dimitry Andric CommitDate: 2022-07-27 19:13:58 +0000 Suppress possible unused variable warning for icl_soft.c With clang 15, the following -Werror warning is produced on i386: sys/dev/iscsi//icl_soft.c:1277:6: error: variable 'i' set but not used [-Werror,-Wunused-but-set-variable] int i; ^ The 'i' variable is used later in the icl_soft_conn_pdu_get_bio() function, via the PHYS_TO_DMAP() macro. However, on i386 and some other architectures, this macro is defined to panic immediately, so in those cases, 'i' is indeed not used. Suppress the warning by marking 'i' as unused. MFC after: 3 days --- sys/dev/iscsi/icl_soft.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/iscsi/icl_soft.c b/sys/dev/iscsi/icl_soft.c index 700f1c6e79f8..8a1002e7e4a0 100644 --- a/sys/dev/iscsi/icl_soft.c +++ b/sys/dev/iscsi/icl_soft.c @@ -1274,7 +1274,7 @@ icl_soft_conn_pdu_get_bio(struct icl_conn *ic, struct icl_pdu *ip, { vm_offset_t vaddr; size_t page_offset, todo; - int i; + int i __unused; MPASS(bp->bio_flags & BIO_UNMAPPED); if (bio_off < PAGE_SIZE - bp->bio_ma_offset) {