From: Axel Lin <axel.lin@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: Lee Jones <lee.jones@linaro.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Subject: [PATCH] drivers/base: Use DEFINE_IDA for soc_ida
Date: Tue, 20 Mar 2012 15:00:55 +0800 [thread overview]
Message-ID: <1332226855.2434.1.camel@phoenix> (raw)
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
next reply other threads:[~2012-03-20 7:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-20 7:00 Axel Lin [this message]
2012-03-20 8:24 ` [PATCH] drivers/base: Use DEFINE_IDA for soc_ida Lee Jones
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1332226855.2434.1.camel@phoenix \
--to=axel.lin@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=lee.jones@linaro.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox