From nobody Wed Apr 19 21:50:28 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 4Q1vbm5mrPz45GNm; Wed, 19 Apr 2023 21:50:28 +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 4Q1vbm4SZCz3Bw2; Wed, 19 Apr 2023 21:50:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681941028; 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=JFwdjXLrjykUuBjDphOMBRxX0d30WTCyd2eoLviP/io=; b=b9aUdsflA9YCDsRKKUKDjdS6eTpeWQz+VtaJcPnMqD3+RVBCTPSDpdfTkSuXgm0Rx36LNe pRCbmlx1CVJu3HFEfIMIuBZ8vZ8f4JnJalsm7qqOEuhQqnq86oJOe3cCRSmwApO9/06qTP EA0q8eq7eY5L33XeRT8jIU5dH5+kAn/LiOvj4p/QRjVnImy4V5BBS4AstkoRsjxaDSRV8/ l2HEmzs5L/qx+FN8AgPtbHFHW0WSo2UQKFIQTAbM/OUui9izlQkjwLEMwjMmpkHuS+uS1c gS6/Ck67//8+iGGs6esyUejt/7JDlk3fwpUO5G8CZo3HO0jExGP3BOTdDmPxMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681941028; 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=JFwdjXLrjykUuBjDphOMBRxX0d30WTCyd2eoLviP/io=; b=UsdNMy5uTQq1A+KaH2h1dA6qPt43CfPt8GYRb7IJdq0+th4AhhP0FHKy0k8bGyq2OjfyYD dtOC6urWxj1GbvWgPfxkrg7qHLv1xCzqTizgCEh+FOWabeeg9AATH3ueFg9C/2OBKZWXl0 4l3eKWbOd2ptx06fTPTztLkZzc9qXuFsWp3PUZULWwK+s9Ds/sfLaRcg5LHhvW9IfB0mAN KpHJPN+uUYGKpp9oJw/Ca/AwG52JoimjRWxSuivCteNkZPXwBDaFnXNnNxWDec6k4Qer8P fHocDZngB25+B6K8OUYvmARg+5K65NXduFVwotOVN2MgPGkkAWSpiGZjcR1j0A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681941028; a=rsa-sha256; cv=none; b=i4Bm4lRv+o+7P8W4U33xS6zWWO1kPVc/5RGiGaOQNAxeCeuwfsbswF2Z90cQ963TaH/gG0 MCaYQl6mvDG3XuzxRNoPFXGRzkfJA1zkMiD5knFtzVvAl4OE6VyelYDzelGw6snGfouJOi xI3eIkR+RQ006OdKjrSlWNB/YFepHg+3HibGJsmyb1Eh1cxNq1p61ASMH8i368gvmHclZe qib5W4sHNLMqsYccNIr80U6s0UMkIjSv+HpK7PDX83TQy/4OY6ZeIhQsCcQKzJdoX0jHAO orDYKNtOE+rl3OugpUJVFrQyv5Q+fgGV6lPAaijj7p7k96uxxXAN4scPhWCBVw== 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 4Q1vbm3SWQz19gd; Wed, 19 Apr 2023 21:50:28 +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 33JLoSx0027058; Wed, 19 Apr 2023 21:50:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33JLoSMP027057; Wed, 19 Apr 2023 21:50:28 GMT (envelope-from git) Date: Wed, 19 Apr 2023 21:50:28 GMT Message-Id: <202304192150.33JLoSMP027057@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: f369f10dd812 - main - LinuxKPI: 802.11: fix a -Wenum-compare 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: bz X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f369f10dd8122b1cd1282a378fb16ba81a712a74 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=f369f10dd8122b1cd1282a378fb16ba81a712a74 commit f369f10dd8122b1cd1282a378fb16ba81a712a74 Author: Bjoern A. Zeeb AuthorDate: 2023-04-19 21:40:18 +0000 Commit: Bjoern A. Zeeb CommitDate: 2023-04-19 21:49:17 +0000 LinuxKPI: 802.11: fix a -Wenum-compare warning We are asserting that two values from different enums are the same. gcc warns about these. Cast the values to (int) to avoid the warning. Sponsored by: The FreeBSD Foundation MFC after: 3 days --- sys/compat/linuxkpi/common/include/net/mac80211.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/compat/linuxkpi/common/include/net/mac80211.h b/sys/compat/linuxkpi/common/include/net/mac80211.h index 36e6600f237b..1fcee420232c 100644 --- a/sys/compat/linuxkpi/common/include/net/mac80211.h +++ b/sys/compat/linuxkpi/common/include/net/mac80211.h @@ -1784,7 +1784,7 @@ ieee80211_action_contains_tpc(struct sk_buff *skb) return (false); /* Check that it is TPC Report or Link Measurement Report? */ - KASSERT(IEEE80211_ACTION_SM_TPCREP == IEEE80211_ACTION_RADIO_MEASUREMENT_LMREP, + KASSERT((int)IEEE80211_ACTION_SM_TPCREP == (int)IEEE80211_ACTION_RADIO_MEASUREMENT_LMREP, ("%s: SM_TPCREP %d != RADIO_MEASUREMENT_LMREP %d\n", __func__, IEEE80211_ACTION_SM_TPCREP, IEEE80211_ACTION_RADIO_MEASUREMENT_LMREP)); if (mgmt->u.action.u.tpc_report.spec_mgmt != IEEE80211_ACTION_SM_TPCREP)