lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1332226855.2434.1.camel@phoenix>
Date:	Tue, 20 Mar 2012 15:00:55 +0800
From:	Axel Lin <axel.lin@...il.com>
To:	linux-kernel@...r.kernel.org
Cc:	Lee Jones <lee.jones@...aro.org>,
	Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Subject: [PATCH] drivers/base: Use DEFINE_IDA for soc_ida

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@...il.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



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ