]> 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>
Fri, 28 Sep 2012 00:20:23 +0000 (10:20 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 3 Oct 2012 06:50:45 +0000 (16:50 +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);
                }