From nobody Sun Dec 22 16:04:41 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=bugseng.com ARC-Seal: i=1; a=rsa-sha256; t=1728311213; cv=none; d=zohomail.com; s=zohoarc; b=IQls7yv8rW4+9zauRHAtWzf3XbPuGRwpct74W77WlIZw7qNc24YiMirg+jZb3wlwg6ZNcgGjDdeEeGJa2Vuaqh+hNCjujwETn/wjfsVGUJQW5vX1t0L0YVCMbj8okoiOmC8wVNw8tIZpX1qxffGwgh+YKtM0hixzbyU0MzZUP1Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1728311213; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=v54KLPtLMvcqWm3YNsp8a3Ay+wz8gSmemBwKG/1fFyw=; b=XI0z5j+1ZVcBFasajKPurSFeIRZPsUelKhedd1Fx0PKe6wpNtK2FdOMTnPGQfqiW8ICvTM6KDQHrN3Jpsc8skFgulhg647GE8R95/waNotMS2U4d2hMN856pOnry9jb+GFtY6HUBt26ZPsxwHnAzs5kYsFZFJIbdqbZdhoPslBs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1728311213774615.5048396109596; Mon, 7 Oct 2024 07:26:53 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.812062.1224770 (Exim 4.92) (envelope-from ) id 1sxogs-0005Z4-8C; Mon, 07 Oct 2024 14:26:26 +0000 Received: by outflank-mailman (output) from mailman id 812062.1224770; Mon, 07 Oct 2024 14:26:26 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1sxogs-0005Yx-5i; Mon, 07 Oct 2024 14:26:26 +0000 Received: by outflank-mailman (input) for mailman id 812062; Mon, 07 Oct 2024 14:26:25 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1sxoXO-0002yM-3E for xen-devel@lists.xenproject.org; Mon, 07 Oct 2024 14:16:38 +0000 Received: from support.bugseng.com (mail.bugseng.com [162.55.131.47]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id c3bc471c-84b6-11ef-a0bb-8be0dac302b0; Mon, 07 Oct 2024 16:16:37 +0200 (CEST) Received: from truciolo.bugseng.com (unknown [37.162.58.49]) by support.bugseng.com (Postfix) with ESMTPSA id 4C67E4EE074C; Mon, 7 Oct 2024 16:16:36 +0200 (CEST) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: c3bc471c-84b6-11ef-a0bb-8be0dac302b0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bugseng.com; s=mail; t=1728310597; bh=Cj7N+K8vyoIngmTvtRYCAMfqpWWddHIl9pmTFZ7wneY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HlM9scJN3uJ3HDUAg+2dJHb1oLxWkXIjhV32iHKtNcMKHzFdTtGNxjUfVtugP5QZf pinxogS46o5Y5Vq9wmzsTzfT5LtLERkht6uXnM+jIQGHCJbAQ45yG1ckvoTa5PBIH8 hCLAgvPD74v/aZa42Ji+wDxzrJXWnrZstmeFw1bJMszg1MWt2GxMaEaibWDnRBaMwj LugF/OPtHc8rdwS/+F2oAsmwO/Wq935GBF+GPJyj7Ku3Ihp+rgZ481hUrV1EfT1cAh walqsVhR3YBwGY7C0LUc6C4CrKeQOizm7nVh8LJa7sfcezrrbU5S4tz8y4bOTrdrrC XUHLbd6hHFOxA== From: Federico Serafini To: xen-devel@lists.xenproject.org Cc: consulting@bugseng.com, Federico Serafini , Jan Beulich , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , Stefano Stabellini Subject: [XEN PATCH v2 4/4] xen/pci: address a violation of MISRA C Rule 16.3 Date: Mon, 7 Oct 2024 16:16:19 +0200 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @bugseng.com) X-ZM-MESSAGEID: 1728311214536116600 Content-Type: text/plain; charset="utf-8" Refactor the code to avoid an implicit fallthrough and address a violation of MISRA C:2012 Rule 16.3: "An unconditional `break' statement shall terminate every switch-clause". No functional change. Signed-off-by: Federico Serafini Acked-by: Roger Pau Monn=C3=A9 Reviewed-by: Stefano Stabellini --- Changes in v2: - improved description. --- xen/drivers/passthrough/pci.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xen/drivers/passthrough/pci.c b/xen/drivers/passthrough/pci.c index 5a446d3dce..a5705def3f 100644 --- a/xen/drivers/passthrough/pci.c +++ b/xen/drivers/passthrough/pci.c @@ -170,8 +170,10 @@ static int __init cf_check parse_phantom_dev(const cha= r *str) { case 1: case 2: case 4: if ( *s ) - default: return -EINVAL; + break; + default: + return -EINVAL; } =20 phantom_devs[nr_phantom_devs++] =3D phantom; --=20 2.43.0