]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
maple_tree: Fix u64 => unsigned long
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Thu, 20 Feb 2020 20:06:48 +0000 (15:06 -0500)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Fri, 30 Oct 2020 18:59:03 +0000 (14:59 -0400)
Incorrect types fixed.  This will need to be revisited for different
arch and also u16/u32 one day.

Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
include/linux/maple_tree.h

index 88f4593220eb72f0ba5c9bf77abb6df4e7a89e36..eb9ede385c02768e160f9cf31e347967eabd972c 100644 (file)
@@ -84,14 +84,14 @@ typedef struct maple_pnode *maple_pnode; // parent node.
 struct maple_range_64 {
        struct maple_pnode *parent;
        void __rcu *slot[MAPLE_RANGE64_SLOTS];
-       u64 pivot[MAPLE_RANGE64_SLOTS - 1];
+       unsigned long pivot[MAPLE_RANGE64_SLOTS - 1];
 };
 
 struct maple_arange_64 {
        struct maple_pnode *parent;
-       u64 gap[MAPLE_ARANGE64_SLOTS];
+       unsigned long gap[MAPLE_ARANGE64_SLOTS];
        void __rcu *slot[MAPLE_ARANGE64_SLOTS];
-       u64 pivot[MAPLE_ARANGE64_SLOTS - 1];
+       unsigned long pivot[MAPLE_ARANGE64_SLOTS - 1];
 };
 
 struct maple_range_32 {
@@ -109,7 +109,7 @@ struct maple_range_16 {
 struct maple_sparse_64 {
        struct maple_pnode *parent;
        void __rcu *slot[MAPLE_SPARSE64_SLOTS];
-       u64 pivot[MAPLE_SPARSE64_SLOTS];
+       unsigned long pivot[MAPLE_SPARSE64_SLOTS];
 };
 
 struct maple_sparse_32 {
@@ -121,7 +121,7 @@ struct maple_sparse_32 {
 struct maple_sparse_21 {
        struct maple_pnode *parent;
        void __rcu *slot[MAPLE_SPARSE21_SLOTS];
-       u64 pivot[(MAPLE_SPARSE21_SLOTS + 2) / 3];
+       unsigned long pivot[(MAPLE_SPARSE21_SLOTS + 2) / 3];
 };
 
 struct maple_sparse_16 {
@@ -133,13 +133,13 @@ struct maple_sparse_16 {
 struct maple_sparse_9 {
        struct maple_pnode *parent;
        void __rcu *slot[MAPLE_SPARSE9_SLOTS];
-       u64 pivot[(MAPLE_SPARSE9_SLOTS + 6) / 7];
+       unsigned long pivot[(MAPLE_SPARSE9_SLOTS + 6) / 7];
 };
 
 struct maple_sparse_6 {
        struct maple_pnode *parent;
        void __rcu *slot[MAPLE_SPARSE6_SLOTS];
-       u64 pivot;      /* Use a bitmap for pivots */
+       unsigned long pivot;    /* Use a bitmap for pivots */
 };
 
 struct maple_node {