From nobody Thu May 16 02:59:18 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1656942578; cv=none; d=zohomail.com; s=zohoarc; b=iDhRaBQy/hIwp/rYaG8N5oUVcIKa0YVKdCR9LVdO1lJj8BvR11jDWJMDaiH0GTwfK5UBWbTJ6dYHVvVz7Sf5ZuPscKl0/6uybKqcIQ7Cjtrn0fGGlSipS8FMuW/MDLRM/FZJEzeDEDyzoawG0/s+QcyAm9X0pAXqwkeof0VEYBA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1656942578; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=FKNO9SGbq7D7AW2L1BAlbSS1205rzFUhra+1gkCut88=; b=FyYcAmHPLYrbc0e5AydRl3s1ZpL4ZM6C7waUn3rS1lOFQrSavRh7fGmsFhSS2mhajna9GLjL9qCclpSxrgYyoZsl1sN0ZwvKGvj57alHh6q/7m3OCUYAwzwqW2ggRVb6ydkjN2X4PE01BG7//TJACCvfsRR1s4HN8kmDjnJp9WU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 165694257862111.29488946346703; Mon, 4 Jul 2022 06:49:38 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-636-o3ZJxClZMlKYqT20yBFfVw-1; Mon, 04 Jul 2022 09:49:33 -0400 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id BC0AF84AC8A; Mon, 4 Jul 2022 13:49:30 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8FBD6492CA3; Mon, 4 Jul 2022 13:49:29 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 1F824194704D; Mon, 4 Jul 2022 13:49:29 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 8DB811947041 for ; Mon, 4 Jul 2022 13:49:27 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 54DF7C27E83; Mon, 4 Jul 2022 13:49:27 +0000 (UTC) Received: from maggie.redhat.com (unknown [10.43.2.39]) by smtp.corp.redhat.com (Postfix) with ESMTP id F4228C27E80 for ; Mon, 4 Jul 2022 13:49:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1656942577; h=from:from:sender:sender: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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=FKNO9SGbq7D7AW2L1BAlbSS1205rzFUhra+1gkCut88=; b=iQFjNzn/sPOklIj826a+5AqxtN1T0tgbhbybCZduyTS0G2WeCpfCsbcNhc7aYxZ5OSy7+C B0hxiRgu0r/LIxlXNORjzT6jTFEn3HytGfzuj+r2N63v7wECdBSvdK99OziAZG5z3be7Qe BUohSzJxO2LO+7YxGuPaUopOQ7OazAw= X-MC-Unique: o3ZJxClZMlKYqT20yBFfVw-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH] domain_validate: Properly terminate switch() in virDomainIOMMUDefValidate() Date: Mon, 4 Jul 2022 15:49:25 +0200 Message-Id: <35609616a2353d23b43d6c490daed333f60c917c.1656942551.git.mprivozn@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.8 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1656942580261100001 Content-Type: text/plain; charset="utf-8"; x-default="true" In my previous commit I've introduced virDomainIOMMUDefValidate() function with a switch() statement. However, two cases in it, though empty, were not terminated with a break statement which made compiler complain. Signed-off-by: Michal Privoznik --- Merged under trivial rule. src/conf/domain_validate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/conf/domain_validate.c b/src/conf/domain_validate.c index d35451c26a..57d4e63a26 100644 --- a/src/conf/domain_validate.c +++ b/src/conf/domain_validate.c @@ -2598,6 +2598,7 @@ virDomainIOMMUDefValidate(const virDomainIOMMUDef *io= mmu) =20 case VIR_DOMAIN_IOMMU_MODEL_VIRTIO: case VIR_DOMAIN_IOMMU_MODEL_LAST: + break; } =20 return 0; --=20 2.35.1