[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v3 1/4] xen/pci: address a violation of MISRA C:2012 Rule 8.3


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>
  • Date: Mon, 21 Aug 2023 21:29:49 -0400
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=5oL8/mLXOI79PD0AEV7EPeuneKGMtclOpYPZNKxydew=; b=WfrTgmYedw6X+swMhkiUdPSnXgd7wOAqMa+CsyIL+F2tbohoLFccyKNjh7BrCkq6+1aTo6BRmiuC49ehDq+pR9Z2sa9QC6D5F9KOS9nDgcxPAb4HdV14/QGVtTf8V5aI15htpXOsPyi8DCq2Z4HRbdsIhazb7VEKgIq+1RKBlXT0LCUUyLrGLyTg4P7vtEYM+Zz2AF/9jZxJbPN4XA1sCNg9P2OwGkpA0A/zKxZj058bmuWatMnqzYjk2oHBgW6rleTnWzf/s3pm3Vu6eGTbXa8ZjoDmNW2KpW8+F5uxGAIX8vMNu+cQgzZwfIr9M3yDgQKmoYmMlm4Flb1orCd0XA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=m4WdhzEJ06FDB4ekZ+JGQ2ejilZ3m4iTzIFV/aeMTKcj9oDZiLKgWgVX1KcihrirBORH53syIgjXv4eN87MJ2si5MLYvAG6dr2+p13yiIHhZheoxBc6c0Cdrhlt8hHAFAmDSRnFVTvWpNRtfNu8fLxocDmbbV2DEu4fi933hBEprEP1yU44MjCR72iwq1qo2R6nKMjMEJfQILo30IQ4dyTcSyPj8xR5+bPgXQbnYdDnBMv9PD0FVZFamvw+zcoXIAXd8PJD3f4t3pAIDwj6kI/GFf2j/tsr3en4bN/Kfn/t4pmkT4aenIuTjM8QWXHNFwwrzf2BOb/F0WbiOJt+aAA==
  • Cc: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, "Jan Beulich" <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, "Stefano Stabellini" <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Tue, 22 Aug 2023 01:31:09 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Make the paramater names of the prototype match the definition. No functional
change.

Signed-off-by: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>
---
v2->v3:
* new patch
---
 xen/drivers/pci/pci.c | 2 +-
 xen/include/xen/pci.h | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/xen/drivers/pci/pci.c b/xen/drivers/pci/pci.c
index e411876a1518..c73a8c4124af 100644
--- a/xen/drivers/pci/pci.c
+++ b/xen/drivers/pci/pci.c
@@ -80,7 +80,7 @@ int pci_find_ext_capability(int seg, int bus, int devfn, int 
cap)
 /**
  * pci_find_next_ext_capability - Find another extended capability
  * @seg/@bus/@devfn: PCI device to query
- * @pos: starting position
+ * @start: starting position
  * @cap: capability code
  *
  * Returns the address of the requested extended capability structure
diff --git a/xen/include/xen/pci.h b/xen/include/xen/pci.h
index 5975ca2f3032..a8c8c4ff11c3 100644
--- a/xen/include/xen/pci.h
+++ b/xen/include/xen/pci.h
@@ -196,7 +196,8 @@ int pci_mmcfg_write(unsigned int seg, unsigned int bus,
 int pci_find_cap_offset(u16 seg, u8 bus, u8 dev, u8 func, u8 cap);
 int pci_find_next_cap(u16 seg, u8 bus, unsigned int devfn, u8 pos, int cap);
 int pci_find_ext_capability(int seg, int bus, int devfn, int cap);
-int pci_find_next_ext_capability(int seg, int bus, int devfn, int pos, int 
cap);
+int pci_find_next_ext_capability(int seg, int bus, int devfn, int start,
+                                 int cap);
 const char *parse_pci(const char *, unsigned int *seg, unsigned int *bus,
                       unsigned int *dev, unsigned int *func);
 const char *parse_pci_seg(const char *, unsigned int *seg, unsigned int *bus,
-- 
2.41.0




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.