From nobody Tue May 10 23:24:06 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 40CAC1AD7CEB; Tue, 10 May 2022 23:24:08 +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 4KyYyb2m0pz4btd; Tue, 10 May 2022 23:24:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652225047; 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=ryJHxpMJTBAP2HpG/QxVayFUGLzoAT4sG3wD25w3ocs=; b=xAMCKNU78MIg90v61zLBztxLiTnzpldeadwDOK916k+KSk7iW94Zs5gom07HkE+v7yT73i wv8yfvh/noTGLjREte0Tyxh06KnrZFCAINsPf9aqEn2NGsZtyitq9IJKCOuJAwfQjxNQj0 DGGiSdFBVAkZA+rCGY7DYfRhhsMxdXb70uEg6AjjQaEqeSesl0vcJM8xA8APaq+M5sSm37 8fw2Yasm8BKEoxfGnYPkOissM2rv/QtDI0Aq6saM5UDcoK9i6I0ze4loFe1gYmwSruhy2s A1Hy5nUmpDXdJK8rEfNM8FSz/+kC06vBr9qX+N8wTDaqO9UgfB0DCVFm27PK/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 0EAC46B4B; Tue, 10 May 2022 23:24:07 +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 24ANO6BQ072390; Tue, 10 May 2022 23:24:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 24ANO6GE072389; Tue, 10 May 2022 23:24:06 GMT (envelope-from git) Date: Tue, 10 May 2022 23:24:06 GMT Message-Id: <202205102324.24ANO6GE072389@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: 2dfc07d2c600 - stable/13 - bhyve: Add an empty case for event types in mevent_kq_fflags(). 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: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 2dfc07d2c60046ad90e99fcadc6134ae9aad28d3 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652225047; 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=ryJHxpMJTBAP2HpG/QxVayFUGLzoAT4sG3wD25w3ocs=; b=rPnKgz04sI7cQGBzUHxH13A+9vZXt1yXsbqYKvHyMSZEwnL1lRU4ltiJX5tAZ57CVoaR3n gfxAskqZKlvykgAawaQF3vsFr4dffXa2WZY4z8PIyrx0cOBpQb85RQuW/e+uaMXJi1sAhc 9G4/A4cLqAxu8M30HBNKTadZcwD8vaBoVHN/TTdh2lQO8ABOSQeKypEVQr4gSHutBsbgz3 KPmJpHdyxLPnQlak7Mg8oShp0vAlJA4z21BrpSM0D5AcHF4CfSWs2SCMljTdgypsA9VvZf LWed5Inv2Q/DVVWhcTjdg+OjeUs2pgL9W++wq4roQwaK9b98cP+BJTv7kffIjQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652225047; a=rsa-sha256; cv=none; b=m9ZltQYMNk9eb5ks/koa62wUS7c+CpnaAqg8lHDPJ8ys2no3haaQGcbVfsc8Mb9bOCgtc2 X56z+jxXlC36ZWd0ONh8tmL7am4so2avU2jaiepZ0IKDsXrUM9NLKz+H8Y6Eov71iwNEpk gOMagkUk+ygqeP7KrdkBJ27dIqz5k3q46/y+OA2Qkid0r6VagFCkXR7QXFsFMEkOaPzvPk aRGkzuPjUJMvDiChDwhcz+DWEa842s315gE28x405+BPFy37pjexMiA71zR7quHarr4sJ5 B32LRThQDjiMmvDY1ksCmn4A3p82nA7FYgLpjzbb3muy9VLmbFdXe1iRUfmscw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=2dfc07d2c60046ad90e99fcadc6134ae9aad28d3 commit 2dfc07d2c60046ad90e99fcadc6134ae9aad28d3 Author: John Baldwin AuthorDate: 2021-09-25 18:25:25 +0000 Commit: John Baldwin CommitDate: 2022-05-10 22:51:49 +0000 bhyve: Add an empty case for event types in mevent_kq_fflags(). This fixes a -Wswitch error raised by GCC 9. Differential Revision: https://reviews.freebsd.org/D31938 (cherry picked from commit 7ecdfc823798a8f7add245651b26d9d900bc9889) --- usr.sbin/bhyve/mevent.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/usr.sbin/bhyve/mevent.c b/usr.sbin/bhyve/mevent.c index e12a46ac9312..5170251e008b 100644 --- a/usr.sbin/bhyve/mevent.c +++ b/usr.sbin/bhyve/mevent.c @@ -197,6 +197,11 @@ mevent_kq_fflags(struct mevent *mevp) if ((mevp->me_fflags & EVFF_ATTRIB) != 0) retval |= NOTE_ATTRIB; break; + case EVF_READ: + case EVF_WRITE: + case EVF_TIMER: + case EVF_SIGNAL: + break; } return (retval);