xen/arm: smmu: move phys_addr_t definition to linux-compat.h

Both smmu and smmu-v3 (ported from Linux) define the typedef name
"phys_addr_t": move the type definition to the common header
linux-compat.h to address violations of MISRA C:2012 Rule 5.6
("A typedef name shall be a unique identifier").
No functional change.

Suggested-by: Jan Beulich <jbeulich@suse.com>
Suggested-by: Julien Grall <julien@xen.org>
Signed-off-by: Federico Serafini <federico.serafini@bugseng.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Julien Grall <jgrall@amazon.com>
This commit is contained in:
Federico Serafini authored and Jan Beulich committed 2023-12-12 14:04:22 +01:00
1 parent 889af18eee
commit 35431ecb9d
3 files changed
+2 -2

No files matched your search

-1
View File
@@ -377,7 +377,6 @@
/* Linux compatibility functions. */
typedef paddr_t dma_addr_t;
typedef paddr_t phys_addr_t;
typedef unsigned int gfp_t;
/* Alias to Xen lock functions */
-1
View File
@@ -199,7 +199,6 @@ static inline int pci_for_each_dma_alias(struct pci_dev *pdev,
/* Xen: misc */
#define PHYS_MASK_SHIFT PADDR_BITS
typedef paddr_t phys_addr_t;
#define VA_BITS 0 /* Only used for configuring stage-1 input size */
+2
View File
@@ -17,4 +17,6 @@ typedef int16_t __s16;
typedef int32_t __s32;
typedef int64_t __s64;
typedef paddr_t phys_addr_t;
#endif /* __XEN_LINUX_COMPAT_H__ */
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.