]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
idr-rename-max_level-to-max_idr_level-fix-fix-2-fix
authorStephen Rothwell <sfr@canb.auug.org.au>
Wed, 26 Sep 2012 01:34:26 +0000 (11:34 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 27 Sep 2012 07:27:54 +0000 (17:27 +1000)
IB/mlx4: fix for MAX_ID_MASK to MAX_IDR_MASK name change

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Roland Dreier <roland@purestorage.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/infiniband/hw/mlx4/cm.c

index e25e4dafb8a8dd26e7dfc37fe8c655753aa5ddac..80079e5a2e30f47da6e781d6d5932cab519571d4 100644 (file)
@@ -225,7 +225,7 @@ id_map_alloc(struct ib_device *ibdev, int slave_id, u32 sl_cm_id)
                ret = idr_get_new_above(&sriov->pv_id_table, ent,
                                        next_id, &id);
                if (!ret) {
-                       next_id = ((unsigned) id + 1) & MAX_ID_MASK;
+                       next_id = ((unsigned) id + 1) & MAX_IDR_MASK;
                        ent->pv_cm_id = (u32)id;
                        sl_id_map_add(ibdev, ent);
                }