From nobody Sun Jul 24 22:40:44 2022 X-Original-To: dev-commits-src-all@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 4LrdRx1h53z3ysMl; Sun, 24 Jul 2022 22:40:45 +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 4LrdRw6Q1Yz3vyd; Sun, 24 Jul 2022 22:40:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658702444; 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=YHlXf/D+P56X3szrpn/cF/xf3tF80+e7Rntd/BUKOes=; b=oTI2oHkDjGFMQ3E3Kfn979GPCJZxTwRgl9P5vwI6ANDEDvjdLk6eX2lINRavqYYyk8kbUE Wg76vvrpeAvIXqzxjU6w+0X7TbcPBBZYPcGQXh1mUFd7q6c+S9CQoJRvYFb4PxGaMm3g3a FykTLprvRZaHRtIjaHYMbv37AvqqVgCS0vMPdEAlvN4PIMnge4I/OU5aLqd9/6QAqDmuvy oY2bt5y5wq1vms5vEYja367sfJNPY+QzgWC/8fe3Z/HqPcBpENocojRDrqiz2bAV8ddLnr GjS+kKX7PvnPhwvD9mtcydciSepwmJHJX0m4MTQ4uLBqz/YHsWF6GF1lefDH/A== 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 4LrdRw5WRDzb8D; Sun, 24 Jul 2022 22:40:44 +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 26OMeiJK086421; Sun, 24 Jul 2022 22:40:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26OMeiD9086420; Sun, 24 Jul 2022 22:40:44 GMT (envelope-from git) Date: Sun, 24 Jul 2022 22:40:44 GMT Message-Id: <202207242240.26OMeiD9086420@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: 3a0b2432828e - main - Fix unused variable warning in mlx5_ib_devx.c List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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: 3a0b2432828e9014bfea064baefd0dd051fc3cd6 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658702444; 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=YHlXf/D+P56X3szrpn/cF/xf3tF80+e7Rntd/BUKOes=; b=jH58eRCyT8oYWXkHhjsqNPw/Va8miicL0xPcC78SLGsnb3qmWKNP2AIUp3o/RYDlUs9syJ dhgFpI3dxBlX0f9HGdXKx6d1u3PC3jNOrO//jF+mwh3JfacVaRmtBmAjlp3Ce05dkvyjoW jrfKKP6PRnbGs7W4fyhXsW0sbBOHvcJIVvH3nQOvGjrgLEW1a+VBM3WImys+bTcuZu2v62 zFkhYW0UkE1cAt6YlNrB7aMLaaUqQg4JiDm9tvv5gj+09UNn8hbB9ULxVknEyWxz84TFq+ Z3Zb2gzOIgDnJ3tSYYZqRM/llpr4pxwPx23AjLqBoETm9dcHSGlnfkB/c7XBnw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658702444; a=rsa-sha256; cv=none; b=P+deJfN3C0dtzRsN0OYHXRsilb3PQgloExX4BPklkxVWJOSb7gd+pGgZ0SSf4Xfp+AAxFm Kr1uESEAZLr7jLQQsJJztrTYiHvQlSwoiz7r51ZBNlxR/6DCnN0fUQjfmQkcg44QwN7VUc 9wBcvIRWDPVeQ8noKh/h0KdGFcTpTg5ZjBhzxpic+IJxwYHi8Jy4NOv1pDsZr20yY9A3v+ 1Z4OMyL/b9g3JKX1Nwdd8+HQQO3xDi0tAD3KEFbsXj5qfgemOkot0oNUqlqAOHllQTBVDv k+skWapKIcHLV2H8nExelxk5q/gcmlPtLYmGGZOu3D+zwU+qyBS8gdDXg1SEAg== 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=3a0b2432828e9014bfea064baefd0dd051fc3cd6 commit 3a0b2432828e9014bfea064baefd0dd051fc3cd6 Author: Dimitry Andric AuthorDate: 2022-07-24 22:16:18 +0000 Commit: Dimitry Andric CommitDate: 2022-07-24 22:40:13 +0000 Fix unused variable warning in mlx5_ib_devx.c With clang 15, the following -Werror warning is produced: sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c:1926:6: error: variable 'num_alloc_xa_entries' set but not used [-Werror,-Wunused-but-set-variable] int num_alloc_xa_entries = 0; ^ The 'num_alloc_xa_entries' variable appears to have been a debugging aid that has never been used for anything, so remove it. MFC after: 3 days --- sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c b/sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c index e8c982978998..8d22b4ed3637 100644 --- a/sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c +++ b/sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c @@ -1923,7 +1923,6 @@ static int UVERBS_HANDLER(MLX5_IB_METHOD_DEVX_SUBSCRIBE_EVENT)( int redirect_fd; bool use_eventfd = false; int num_events; - int num_alloc_xa_entries = 0; u16 obj_type = 0; u64 cookie = 0; u32 obj_id = 0; @@ -2005,7 +2004,6 @@ static int UVERBS_HANDLER(MLX5_IB_METHOD_DEVX_SUBSCRIBE_EVENT)( if (err) goto err; - num_alloc_xa_entries++; event_sub = kzalloc(sizeof(*event_sub), GFP_KERNEL); if (!event_sub) goto err;