linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drivers/base: fix compiler warning in SoC export driver - idr should be ida
@ 2012-03-17  9:01 Lee Jones
  2012-03-17  9:04 ` Russell King - ARM Linux
  0 siblings, 1 reply; 6+ messages in thread
From: Lee Jones @ 2012-03-17  9:01 UTC (permalink / raw)
  To: linux-arm-kernel

Reported-by: Arnd Bergman <arnd@arndb.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
---
 drivers/base/soc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/base/soc.c b/drivers/base/soc.c
index 05f1503..e57aec1 100644
--- a/drivers/base/soc.c
+++ b/drivers/base/soc.c
@@ -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,
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread
* [PATCH] drivers/base: fix compiler warning in SoC export driver - idr should be ida
@ 2012-03-17  9:17 Lee Jones
  2012-03-17 21:16 ` Arnd Bergmann
  0 siblings, 1 reply; 6+ messages in thread
From: Lee Jones @ 2012-03-17  9:17 UTC (permalink / raw)
  To: linux-arm-kernel

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

Reported-by: Arnd Bergman <arnd@arndb.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
---
 drivers/base/soc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/base/soc.c b/drivers/base/soc.c
index 05f1503..e57aec1 100644
--- a/drivers/base/soc.c
+++ b/drivers/base/soc.c
@@ -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,
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-03-29 13:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-17  9:01 [PATCH] drivers/base: fix compiler warning in SoC export driver - idr should be ida Lee Jones
2012-03-17  9:04 ` Russell King - ARM Linux
2012-03-17  9:12   ` Lee Jones
  -- strict thread matches above, loose matches on Subject: below --
2012-03-17  9:17 Lee Jones
2012-03-17 21:16 ` Arnd Bergmann
2012-03-29 13:46   ` Arnd Bergmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).