From patchwork Fri Aug 25 12:18:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicola Vetrini X-Patchwork-Id: 13365535 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E5E84C3DA6F for ; Fri, 25 Aug 2023 12:19:21 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.590886.923234 (Exim 4.92) (envelope-from ) id 1qZVmN-00011J-D9; Fri, 25 Aug 2023 12:19:07 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 590886.923234; Fri, 25 Aug 2023 12:19:07 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qZVmN-00011C-AO; Fri, 25 Aug 2023 12:19:07 +0000 Received: by outflank-mailman (input) for mailman id 590886; Fri, 25 Aug 2023 12:19:06 +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 1qZVmM-000114-8a for xen-devel@lists.xenproject.org; Fri, 25 Aug 2023 12:19:06 +0000 Received: from support.bugseng.com (mail.bugseng.com [162.55.131.47]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 94dd797c-4341-11ee-8783-cb3800f73035; Fri, 25 Aug 2023 14:19:04 +0200 (CEST) Received: from nico.bugseng.com (unknown [147.123.100.131]) by support.bugseng.com (Postfix) with ESMTPSA id A143F4EE0737; Fri, 25 Aug 2023 14:19:03 +0200 (CEST) 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: 94dd797c-4341-11ee-8783-cb3800f73035 From: Nicola Vetrini To: xen-devel@lists.xenproject.org Cc: sstabellini@kernel.org, michal.orzel@amd.com, xenia.ragiadakou@amd.com, ayan.kumar.halder@amd.com, consulting@bugseng.com, Nicola Vetrini , Andrew Cooper , George Dunlap , Jan Beulich , Julien Grall , Wei Liu Subject: [XEN PATCH] xen/pci: drop remaining uses of bool_t Date: Fri, 25 Aug 2023 14:18:46 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 The remaining occurrences of the type bool_t in the header file can be removed. This also resolves violations of MISRA C:2012 Rule 8.3 introduced by 870d5cd9a91f ("xen/IOMMU: Switch bool_t to bool"). Signed-off-by: Nicola Vetrini Acked-by: Jan Beulich --- xen/include/xen/pci.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/xen/include/xen/pci.h b/xen/include/xen/pci.h index a8c8c4ff11c3..7d8a7cd21301 100644 --- a/xen/include/xen/pci.h +++ b/xen/include/xen/pci.h @@ -75,8 +75,8 @@ struct pci_dev_info { * VF's 'is_extfn' field is used to indicate whether its PF is an extended * function. */ - bool_t is_extfn; - bool_t is_virtfn; + bool is_extfn; + bool is_virtfn; struct { u8 bus; u8 devfn; @@ -158,10 +158,10 @@ struct pci_dev { void pcidevs_lock(void); void pcidevs_unlock(void); -bool_t __must_check pcidevs_locked(void); +bool __must_check pcidevs_locked(void); -bool_t pci_known_segment(u16 seg); -bool_t pci_device_detect(u16 seg, u8 bus, u8 dev, u8 func); +bool pci_known_segment(u16 seg); +bool pci_device_detect(u16 seg, u8 bus, u8 dev, u8 func); int scan_pci_devices(void); enum pdev_type pdev_type(u16 seg, u8 bus, u8 devfn); int find_upstream_bridge(u16 seg, u8 *bus, u8 *devfn, u8 *secbus); @@ -211,7 +211,7 @@ unsigned int pci_size_mem_bar(pci_sbdf_t sbdf, unsigned int pos, unsigned int flags); void pci_intx(const struct pci_dev *, bool enable); -bool_t pcie_aer_get_firmware_first(const struct pci_dev *); +bool pcie_aer_get_firmware_first(const struct pci_dev *); struct pirq; int msixtbl_pt_register(struct domain *, struct pirq *, uint64_t gtable);