* [PATCH] drivers/base: Use DEFINE_IDA for soc_ida
@ 2012-03-20 7:00 Axel Lin
2012-03-20 8:24 ` Lee Jones
0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2012-03-20 7:00 UTC (permalink / raw)
To: linux-kernel; +Cc: Lee Jones, Greg Kroah-Hartman
soc_ida actually is a struct ida.
This fixes below build warnings:
CC drivers/base/soc.o
drivers/base/soc.c: In function 'soc_device_register':
drivers/base/soc.c:126: warning: passing argument 1 of 'ida_pre_get' from incompatible pointer type
include/linux/idr.h:142: note: expected 'struct ida *' but argument is of type 'struct idr *'
drivers/base/soc.c:132: warning: passing argument 1 of 'ida_get_new' from incompatible pointer type
include/linux/idr.h:144: note: expected 'struct ida *' but argument is of type 'struct idr *'
drivers/base/soc.c:154: warning: passing argument 1 of 'ida_remove' from incompatible pointer type
include/linux/idr.h:145: note: expected 'struct ida *' but argument is of type 'struct idr *'
drivers/base/soc.c: In function 'soc_device_unregister':
drivers/base/soc.c:164: warning: passing argument 1 of 'ida_remove' from incompatible pointer type
include/linux/idr.h:145: note: expected 'struct ida *' but argument is of type 'struct idr *'
drivers/base/soc.c: In function 'soc_bus_unregister':
drivers/base/soc.c:179: warning: passing argument 1 of 'ida_destroy' from incompatible pointer type
include/linux/idr.h:146: note: expected 'struct ida *' but argument is of type 'struct idr *'
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
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] 2+ messages in thread
* Re: [PATCH] drivers/base: Use DEFINE_IDA for soc_ida
2012-03-20 7:00 [PATCH] drivers/base: Use DEFINE_IDA for soc_ida Axel Lin
@ 2012-03-20 8:24 ` Lee Jones
0 siblings, 0 replies; 2+ messages in thread
From: Lee Jones @ 2012-03-20 8:24 UTC (permalink / raw)
To: Axel Lin; +Cc: linux-kernel, Greg Kroah-Hartman
Hi Axel,
I've already sent the fix for this.
Kind regards,
Lee
On 20/03/12 07:00, Axel Lin wrote:
> soc_ida actually is a struct ida.
> This fixes below build warnings:
>
> CC drivers/base/soc.o
> drivers/base/soc.c: In function 'soc_device_register':
> drivers/base/soc.c:126: warning: passing argument 1 of 'ida_pre_get' from incompatible pointer type
> include/linux/idr.h:142: note: expected 'struct ida *' but argument is of type 'struct idr *'
> drivers/base/soc.c:132: warning: passing argument 1 of 'ida_get_new' from incompatible pointer type
> include/linux/idr.h:144: note: expected 'struct ida *' but argument is of type 'struct idr *'
> drivers/base/soc.c:154: warning: passing argument 1 of 'ida_remove' from incompatible pointer type
> include/linux/idr.h:145: note: expected 'struct ida *' but argument is of type 'struct idr *'
> drivers/base/soc.c: In function 'soc_device_unregister':
> drivers/base/soc.c:164: warning: passing argument 1 of 'ida_remove' from incompatible pointer type
> include/linux/idr.h:145: note: expected 'struct ida *' but argument is of type 'struct idr *'
> drivers/base/soc.c: In function 'soc_bus_unregister':
> drivers/base/soc.c:179: warning: passing argument 1 of 'ida_destroy' from incompatible pointer type
> include/linux/idr.h:146: note: expected 'struct ida *' but argument is of type 'struct idr *'
>
> Signed-off-by: Axel Lin <axel.lin@gmail.com>
> ---
> 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,
--
Lee Jones
Linaro ST-Ericsson Landing Team Lead
M: +44 77 88 633 515
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-03-20 8:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-20 7:00 [PATCH] drivers/base: Use DEFINE_IDA for soc_ida Axel Lin
2012-03-20 8:24 ` Lee Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox