mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
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:
1 parent
889af18eee
commit
35431ecb9d
3 files changed
+2
-2
No files matched your search
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
|
||||
@@ -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__ */
|
||||