Skip to contentSkip to conversation

drivers/base: fix compiler warning in SoC export driver - idr should be ida

PATCH New Lee Jones 2 participants 3 messages Mar 17, 2012 – Mar 29, 2012 Driver core

lore
Share & tools
lore

Lee Jones

author
#0 lore raw

PATCH 1/1 drivers/base: fix compiler warning in SoC export driver - idr should be ida

This fixes:
note: expected ?struct ida *? but argument is of type ?struct idr *?
warning: passing argument 1 of ?ida_pre_get? from incompatible pointer type

---
 drivers/base/soc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/base/soc.c +1 -1
index 05f1503..e57aec1 100644
@@ -15,7 +15,7 @@
 #include <linux/sys_soc.h>
 #include <linux/err.h>
 
-static DEFINE_IDR(soc_ida);
+static DEFINE_IDA(soc_ida);
 static DEFINE_SPINLOCK(soc_lock);
 
 static ssize_t soc_info_get(struct device *dev,
Signature · 1 line
1.7.5.4
#1 lore raw

PATCH 1/1 drivers/base: fix compiler warning in SoC export driver - idr should be ida

Quoted 10 lines · Lee Jones

This fixes:
note: expected ?struct ida *? but argument is of type ?struct idr *?
warning: passing argument 1 of ?ida_pre_get? from incompatible pointer type

 drivers/base/soc.c |    2 +-

Greg, are you taking this through your tree?

Arnd

#2 lore raw

PATCH 1/1 drivers/base: fix compiler warning in SoC export driver - idr should be ida

Quoted 10 lines · Arnd Bergmann
Quoted 9 lines · Lee Jones

This fixes:
note: expected ?struct ida *? but argument is of type ?struct idr *?
warning: passing argument 1 of ?ida_pre_get? from incompatible pointer type

Quoted 5 lines
Quoted 1 line
 drivers/base/soc.c |    2 +-

Greg, are you taking this through your tree?

I've applied it to arm-soc/fixes now. Greg, if you have any objections, tell me before the weekend and I'll take it out again, otherwise I'll submit it before -rc1.

Arnd