summaryrefslogtreecommitdiffstats
path: root/tools/include
diff options
context:
space:
mode:
authorKarolina Drobnik <karolinadrobnik@gmail.com>2022-02-02 12:03:01 +0100
committerMike Rapoport <rppt@linux.ibm.com>2022-02-20 07:44:37 +0100
commit884ee1e585ca01b47f66c7e5b6902c62d1af77a3 (patch)
tree447f10ee345935fef7470a29df196dc185d5b102 /tools/include
parenttools: Move gfp.h and slab.h from radix-tree to lib (diff)
downloadlinux-884ee1e585ca01b47f66c7e5b6902c62d1af77a3.tar.xz
linux-884ee1e585ca01b47f66c7e5b6902c62d1af77a3.zip
tools/include: Add phys_addr_t to types.h
Update types.h file to include phys_addr_t typedef so it can be used in testing. Signed-off-by: Karolina Drobnik <karolinadrobnik@gmail.com> Signed-off-by: Mike Rapoport <rppt@kernel.org> Link: https://lore.kernel.org/r/f0b42be7d1fe2eb9cd299532676d9df2df9ef089.1643796665.git.karolinadrobnik@gmail.com
Diffstat (limited to 'tools/include')
-rw-r--r--tools/include/linux/types.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/include/linux/types.h b/tools/include/linux/types.h
index 6e14a533ab4e..35cedaf191e8 100644
--- a/tools/include/linux/types.h
+++ b/tools/include/linux/types.h
@@ -64,6 +64,12 @@ typedef __u64 __bitwise __be64;
typedef __u16 __bitwise __sum16;
typedef __u32 __bitwise __wsum;
+#ifdef CONFIG_PHYS_ADDR_T_64BIT
+typedef u64 phys_addr_t;
+#else
+typedef u32 phys_addr_t;
+#endif
+
typedef struct {
int counter;
} atomic_t;