From nobody Mon Jun 26 12:08:30 2023 X-Original-To: dev-commits-src-branches@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 4QqRSv27G4z4k6XP; Mon, 26 Jun 2023 12:08:31 +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 4QqRSv0zXKz3hgc; Mon, 26 Jun 2023 12:08:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687781311; 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=NBAdzrAP2xTzjZu4nFGx57g1/PDUA8FhqejlOyl80YU=; b=T0H8c/O2m8erfgHycD25H9CehmK6e2VuNHFiNfJelSpu0H+1bmZ6FJGLJSOWnx/2EccB/l c2WWNyPvEW5q3o950iDpUG8wjuZmW2y1mJp8/5DqDeYSDKPI8aAoLDU/DiUFFQpQKLi9bU HL/Ax2AGjfzhJwb7474OxDyQkhSLDkwme/H8z//kQ69cLzg1nmnji33nI9xtvp9lFy6ctc WKKGDbi6UwjjzDpW0O7CUd93kVG6RJto8437N1Nj2kRvtwau+REO9cm8KmIii6AoWwPpcq u3/2ztDcoN5ZUPtFIPGTHogpUnSHtMrBSMfWw6Y/lX3Xx5wuWYVOCLKjp58hnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687781311; 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=NBAdzrAP2xTzjZu4nFGx57g1/PDUA8FhqejlOyl80YU=; b=MS4prPF6NqYcBpTC9LiZ7Zd2ONGB3JEMUqq4ydSV86q/4EC2/gXgGBtQu6jL8dv7L4xd+/ 1Y+swIYfClPfSmUrytAGA//ubBOQjPo9iurlN+z/1JY02bk/USA6xrAWqSiOU0mweQ88WF b3tfHhyc8cjkvMdC+vXF1Pmf46wyZOFLWuM2aoMVtync7YJOPyekwmteOmaSe0gqsUhZM4 ZYVAUIdCxfh5y7jZoin3irMh3s0V6wERgX4IZDlp0SrFW8Kb2GvZoUUNabFllZ9ttDmEsg GIe5zzwH3P3ug+pdyiTR4FFtzFpz4YVjaQqMDmuSQ/BjLYaCN5vq/+CDT5HjCA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687781311; a=rsa-sha256; cv=none; b=lpu4uunk0qLcfL2NSttMaDdoMqVPBUSEJuxJfVEpshk7LSgcXIiBC7Bxg5s68/PaPXXfQc +nHzyeoEzdxTeEh+RGmhAKtkuUUmC7xfKEbqlpBd5oU9HcttUK7n4lUfWsPdVLQWTQRnk0 csEyIHlhcnlB2XMdKSi8dxn++ATveRyX5DOJ7cbaX1MVQ8nSVHnbKJqZJlENr8+CszBK46 S/mC+AR73qAZDPQoficCCSA+beGPwsGTphCUd3YHIUzDvPzkPZmQozuawPJ1wHOH5E4LTe DyxAXAoz/RoE+UspgWkBCiiw1kSbcXXqtMckqMQklxQ6kMxwzGaOLLnl4FmWAQ== 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 4QqRSt70Rtz17dX; Mon, 26 Jun 2023 12:08:30 +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 35QC8UrC082981; Mon, 26 Jun 2023 12:08:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35QC8UYv082980; Mon, 26 Jun 2023 12:08:30 GMT (envelope-from git) Date: Mon, 26 Jun 2023 12:08:30 GMT Message-Id: <202306261208.35QC8UYv082980@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: e9a999ea8f2b - stable/13 - LinuxKPI: 802.11: fix a -Wenum-compare warning List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/stable/13 X-Git-Reftype: branch X-Git-Commit: e9a999ea8f2b7ab13108d0f8331bfc1464da0463 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=e9a999ea8f2b7ab13108d0f8331bfc1464da0463 commit e9a999ea8f2b7ab13108d0f8331bfc1464da0463 Author: Bjoern A. Zeeb AuthorDate: 2023-04-19 21:40:18 +0000 Commit: Bjoern A. Zeeb CommitDate: 2023-06-26 09:09:42 +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 (cherry picked from commit f369f10dd8122b1cd1282a378fb16ba81a712a74) --- 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)