]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
idr-rename-max_level-to-max_idr_level-fix
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 13 Sep 2012 00:58:12 +0000 (10:58 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 17 Sep 2012 10:22:19 +0000 (20:22 +1000)
repair fallout

Cc: Bernd Petrovitsch <bernd@petrovitsch.priv.at>
Cc: Fengguang Wu <fengguang.wu@intel.com>
Cc: Glauber Costa <glommer@parallels.com>
Cc: walter harms <wharms@bfs.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/i2c/i2c-core.c
drivers/infiniband/core/cm.c
drivers/pps/pps.c
drivers/thermal/thermal_sys.c
fs/super.c

index bfa92a3cc2586aa8d4d144fe10cce3581d4dad31..a7edf987a339f7e1708faa290d4a030c5d7de939 100644 (file)
@@ -982,7 +982,7 @@ int i2c_add_numbered_adapter(struct i2c_adapter *adap)
 
        if (adap->nr == -1) /* -1 means dynamically assign bus id */
                return i2c_add_adapter(adap);
-       if (adap->nr & ~MAX_ID_MASK)
+       if (adap->nr & ~MAX_IDR_MASK)
                return -EINVAL;
 
 retry:
index d67999f6e34a147a6f99cdcd162fba4ebfdbb82d..394fea2ba1bc2018cac2f047ee7f0802823b0222 100644 (file)
@@ -390,7 +390,7 @@ static int cm_alloc_id(struct cm_id_private *cm_id_priv)
                ret = idr_get_new_above(&cm.local_id_table, cm_id_priv,
                                        next_id, &id);
                if (!ret)
-                       next_id = ((unsigned) id + 1) & MAX_ID_MASK;
+                       next_id = ((unsigned) id + 1) & MAX_IDR_MASK;
                spin_unlock_irqrestore(&cm.lock, flags);
        } while( (ret == -EAGAIN) && idr_pre_get(&cm.local_id_table, GFP_KERNEL) );
 
index e771487132f7542123a0e8a669cd8582481ab051..2420d5af05839a8403bf6b0bd00fe07ad9c5ae42 100644 (file)
@@ -306,7 +306,7 @@ int pps_register_cdev(struct pps_device *pps)
        if (err < 0)
                return err;
 
-       pps->id &= MAX_ID_MASK;
+       pps->id &= MAX_IDR_MASK;
        if (pps->id >= PPS_MAX_SOURCES) {
                pr_err("%s: too many PPS sources in the system\n",
                                        pps->info.name);
index d552a96f08cd1bf1abd12f2977a5ffd35eef6da5..9ee42ca4d289754cb99b374a32eb8bdc59371e46 100644 (file)
@@ -88,7 +88,7 @@ again:
        else if (unlikely(err))
                return err;
 
-       *id = *id & MAX_ID_MASK;
+       *id = *id & MAX_IDR_MASK;
        return 0;
 }
 
index 0902cfa6a12efd21e4ebd52a39333b7f9d6270eb..150a86453bb413e0802a153ea37733c3698e5370 100644 (file)
@@ -871,7 +871,7 @@ int get_anon_bdev(dev_t *p)
        else if (error)
                return -EAGAIN;
 
-       if ((dev & MAX_ID_MASK) == (1 << MINORBITS)) {
+       if ((dev & MAX_IDR_MASK) == (1 << MINORBITS)) {
                spin_lock(&unnamed_dev_lock);
                ida_remove(&unnamed_dev_ida, dev);
                if (unnamed_dev_start > dev)