]> err.no Git - linux-2.6/blobdiff - net/9p/util.c
mac80211: automatic IBSS channel selection
[linux-2.6] / net / 9p / util.c
index 4d564604533052124e168365395cbad546e5ccbc..958fc58cd1ffbb0723552b180302c569387adfb4 100644 (file)
@@ -88,7 +88,7 @@ int p9_idpool_get(struct p9_idpool *p)
 {
        int i = 0;
        int error;
-       unsigned int flags;
+       unsigned long flags;
 
 retry:
        if (idr_pre_get(&p->pool, GFP_KERNEL) == 0)
@@ -120,7 +120,7 @@ EXPORT_SYMBOL(p9_idpool_get);
 
 void p9_idpool_put(int id, struct p9_idpool *p)
 {
-       unsigned int flags;
+       unsigned long flags;
        spin_lock_irqsave(&p->lock, flags);
        idr_remove(&p->pool, id);
        spin_unlock_irqrestore(&p->lock, flags);