From nobody Sun Dec 22 16:22:29 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=1728311397; cv=none; d=zohomail.com; s=zohoarc; b=N4J8ZCTNZab6omniJa74MgQ3VpsRL4PVy/oON5934ZIwIVkt+FO2ryMDfhcqQC9Ts8dTNYacP/wv1RC9srCGwkuAm1UtXsg/XCjnPw6xGk+fp5zHT5ZjkaJo3paR45zOgD9TFbypVf3/efA8umR50VHpSCghI8l/rlW8dubUfyg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1728311397; 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=adc4fSGnpAYXCpU3ca4g+d4W8voT6p/4n3IwdSeDzdU=; b=VVOGzfiwE5Qp2STGXj8vc3dSPbcN56p6je/w7rtaeh2aJltCF0s0+bhtW8x4iLPeOuLwUCD5GLFsLoechkZkSaytr12cQcNdTNXk4Cw+yZlIgquL7+TpuAC9kVgtqAcPypYytD2Xx6HkhNzbkX4ASex4G34XyEhNwHPKAFs87v0= 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 1728311397711310.6503531794492; Mon, 7 Oct 2024 07:29:57 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.812107.1224831 (Exim 4.92) (envelope-from ) id 1sxojy-00056T-Tf; Mon, 07 Oct 2024 14:29:38 +0000 Received: by outflank-mailman (output) from mailman id 812107.1224831; Mon, 07 Oct 2024 14:29:38 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1sxojy-00055m-Qj; Mon, 07 Oct 2024 14:29:38 +0000 Received: by outflank-mailman (input) for mailman id 812107; Mon, 07 Oct 2024 14:29:37 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1sxoXO-0002dC-IW 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-flk1.inumbo.com (Halon) with ESMTPS id c2f69c14-84b6-11ef-99a2-01e77a169b0f; Mon, 07 Oct 2024 16:16:36 +0200 (CEST) Received: from truciolo.bugseng.com (unknown [37.162.58.49]) by support.bugseng.com (Postfix) with ESMTPSA id 67D704EE0746; Mon, 7 Oct 2024 16:16:35 +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: c2f69c14-84b6-11ef-99a2-01e77a169b0f DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bugseng.com; s=mail; t=1728310596; bh=E7dB2FCofs9MFp7zihxh1wxnARDyNN7WgWI2FwQOK0E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xVPGjM9WjmZpi8GG7K9MaKDBHZwteFI3oEC0yibwshSbIA5MxmazJ2nlmAPH8z8XV ydBaf+FQ3AAfT6hfAwEp+ksKFO0j3UVtrKrGnAda5JHB1CZ95YQ3HUS/3Q1OZ2nTxQ H8syHKDPHxjy1fQyO5r4zkGDoCtrIXjXLuLv8lw5Kczd1hIT4IKijqL9g9v9qI11gI +qEtVlpB+dKouWU80A4wXuR4lR6tr4lT2lzuSLkIu6ghEwCTary4FKkxx9+cdLJx3x CXMSp0RmQwR08y0eiH6H9A5HEKEw+OjqeWqpyEo39l4OUfYP5eQLpvAWdO2oIA/i1I 0gH2S1Owz3nLA== From: Federico Serafini To: xen-devel@lists.xenproject.org Cc: consulting@bugseng.com, Federico Serafini , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , Stefano Stabellini Subject: [XEN PATCH v2 3/4] xen/vpci: address violations of MISRA C Rule 16.3 Date: Mon, 7 Oct 2024 16:16:18 +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: 1728311399158116600 Content-Type: text/plain; charset="utf-8" Address violations 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 --- Changes from v2: - simply break without returning X86EMUL_UNHANDLEABLE. As pointed out by Jan, these functions only return X86EMUL_OKAY but: https://lists.xenproject.org/archives/html/xen-devel/2024-09/msg00727.html Do you have any comments? --- xen/drivers/vpci/msix.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/drivers/vpci/msix.c b/xen/drivers/vpci/msix.c index fbe710ab92..5bb4444ce2 100644 --- a/xen/drivers/vpci/msix.c +++ b/xen/drivers/vpci/msix.c @@ -364,6 +364,7 @@ static int adjacent_read(const struct domain *d, const = struct vpci_msix *msix, =20 default: ASSERT_UNREACHABLE(); + break; } spin_unlock(&vpci->lock); =20 @@ -512,6 +513,7 @@ static int adjacent_write(const struct domain *d, const= struct vpci_msix *msix, =20 default: ASSERT_UNREACHABLE(); + break; } spin_unlock(&vpci->lock); =20 --=20 2.43.0