From nobody Mon Feb 9 07:56:25 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1578488116; cv=none; d=zohomail.com; s=zohoarc; b=EbWfBUUdMU6euep3VDzpnVgyxpF/EyM8fCLGHS5AiWFbQHcBNdN6uTTXXfx3dOXmYVR063CookWUEAw9iyhYHVZLetE0mtFOSTUMQkwxV5PiL9xbwVJkq6MxujMLduI0lRfOL0U40FPjnWDjnm+efjUES4siG7h7IbQFILUQ+w0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1578488116; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=0DFURfcrdlZMFc5Cww9NVOEhGZMTURpWj94rU1e8DFs=; b=R1qSC0XjAsYzbFnbTZuracqjl2jiW1avALTPOpEOXsXzZycuxHixmEDihlE/kgmNOwMvTNIwDZyGbRA1Fta3I3hYnoV940lpCLhNr1paZ2q0q7waM1GsQsRZ2Te61Iyr6o+730cfZ5yiEUWsssphg09fOFDxL4WNlJwoUiTyHIc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1578488116500235.73115460476652; Wed, 8 Jan 2020 04:55:16 -0800 (PST) Received: from localhost ([::1]:43098 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipArj-0001Tp-2Y for importer@patchew.org; Wed, 08 Jan 2020 07:55:15 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60665) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipAWj-0004Ic-4u for qemu-devel@nongnu.org; Wed, 08 Jan 2020 07:33:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ipAWi-0004Yy-3g for qemu-devel@nongnu.org; Wed, 08 Jan 2020 07:33:33 -0500 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:44181) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ipAWh-0004YT-Ty for qemu-devel@nongnu.org; Wed, 08 Jan 2020 07:33:32 -0500 Received: by mail-wr1-x435.google.com with SMTP id q10so3146282wrm.11 for ; Wed, 08 Jan 2020 04:33:31 -0800 (PST) Received: from 640k.lan ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id o4sm4037750wrw.97.2020.01.08.04.33.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Jan 2020 04:33:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0DFURfcrdlZMFc5Cww9NVOEhGZMTURpWj94rU1e8DFs=; b=bRYRp0rUZJU0nvnAn06ZCG5z1UKtS9nM1be8EcEJaEb5qi6TKcEzq8PgH94Sjpz/X4 /e6WiB8K7V9WntAYFkj2ZrbF/aPwAIl7rsTz9U1Cf+U1q3atHyOYQyKMfr2Y3OoitQKB HZIGdr5+G8rLIIGJsYOeCkyPzSh2IalEeXYCyvYniXB+RM3nQIjg1aOx/wSRbahqwYqW jTtpWaqQwybpqXMyQRBSCDfhZhaDzyAjyjKMEExDrhDRIA/Pso0UjngkH4MiF8qxV/BE MWBjnzPu/OJkJZPH00HJ2tnjOa/aXqf6vqHuIJzZZ1C1oukUvJnqiWr7FsfUei9aLkgz BvsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=0DFURfcrdlZMFc5Cww9NVOEhGZMTURpWj94rU1e8DFs=; b=Qd8nf5POYxpkxsLr4VZlZLNexBjXI9faXktT0XjGz4Mb5RBq0cQdPsUZXidkDWzZiR 6ydddV7+zvCNM7N+QqESq7t45GIaI2tHBv4hqXesLudCWLJweDOt9g/elJsMZtJOU/g9 XlZzDAfYqkSvtf8m+oLG2OMZRPdEOn48HdN4yp6/G2YGg6qg+5m/otXbzuwaVVA3aQYy yMsBJ/n+BA4qRq9aPg5ylbeAmt3Yz0Z+xVoa9/4rtNcsAFs52kpih1xBSvMVAwR869Dn GXDVzV3UnSV1X5t7/3uH+JPO7hjy1uCdqoNH+6WjcOGzmirgB4ds53fqavmJvmUlcTpC 6GRg== X-Gm-Message-State: APjAAAVirjqP/MSoIduaAuhAjFfmMiPFBdsIaFYgGVakFON5/a1LNcl7 9Hb3uNZtDIeKKnyqrtyUtSYowQER X-Google-Smtp-Source: APXvYqyBHVFY5D7Fk19GnkeaVc3yyQtNrJfcNMJ/IX5p5l/o+WgSgkZgxZ+z62uNJsFNxpiS1gdTEA== X-Received: by 2002:adf:f1d0:: with SMTP id z16mr4194631wro.209.1578486810188; Wed, 08 Jan 2020 04:33:30 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PULL 31/38] vhost-user-net: Explicit we ignore few QEMUChrEvent in IOEventHandler Date: Wed, 8 Jan 2020 13:32:48 +0100 Message-Id: <1578486775-52247-32-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1578486775-52247-1-git-send-email-pbonzini@redhat.com> References: <1578486775-52247-1-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::435 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Philippe Mathieu-Daud=C3=A9 The Chardev events are listed in the QEMUChrEvent enum. To be able to use this enum in the IOEventHandler typedef, we need to explicit all the events ignored by this frontend, to silent the following GCC warning: CC net/vhost-user.o net/vhost-user.c: In function =E2=80=98net_vhost_user_event=E2=80=99: net/vhost-user.c:269:5: error: enumeration value =E2=80=98CHR_EVENT_BREAK= =E2=80=99 not handled in switch [-Werror=3Dswitch] 269 | switch (event) { | ^~~~~~ net/vhost-user.c:269:5: error: enumeration value =E2=80=98CHR_EVENT_MUX_I= N=E2=80=99 not handled in switch [-Werror=3Dswitch] net/vhost-user.c:269:5: error: enumeration value =E2=80=98CHR_EVENT_MUX_O= UT=E2=80=99 not handled in switch [-Werror=3Dswitch] cc1: all warnings being treated as errors Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Marc-Andr=C3=A9 Lureau Reviewed-by: Michael S. Tsirkin Message-Id: <20191218172009.8868-9-philmd@redhat.com> Signed-off-by: Paolo Bonzini --- net/vhost-user.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/net/vhost-user.c b/net/vhost-user.c index 014199d..c54c9c7 100644 --- a/net/vhost-user.c +++ b/net/vhost-user.c @@ -294,6 +294,11 @@ static void net_vhost_user_event(void *opaque, int eve= nt) aio_bh_schedule_oneshot(ctx, chr_closed_bh, opaque); } break; + case CHR_EVENT_BREAK: + case CHR_EVENT_MUX_IN: + case CHR_EVENT_MUX_OUT: + /* Ignore */ + break; } =20 if (err) { --=20 1.8.3.1