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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <12094266922694@kroah.org>
Date:	Mon, 28 Apr 2008 16:51:32 -0700
From:	<gregkh@...e.de>
To:	htejun@...il.com, akpm@...ux-foundation.org,
	alan@...rguk.ukuu.org.uk, gregkh@...e.de, greg@...ah.com,
	James.Bottomley@...senPartnership.com,
	linux-kernel@...r.kernel.org, peterz@...radead.org,
	stern@...land.harvard.edu
Subject: patch klist-implement-klist_init-and-define_klist.patch added to gregkh-2.6 tree


This is a note to let you know that I've just added the patch titled

     Subject: klist: implement KLIST_INIT() and DEFINE_KLIST()

to my gregkh-2.6 tree.  Its filename is

     klist-implement-klist_init-and-define_klist.patch

This tree can be found at 
    http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/patches/


>From linux-usb-owner@...r.kernel.org Fri Apr 25 11:19:08 2008
From: Tejun Heo <htejun@...il.com>
Date: Sat, 26 Apr 2008 03:16:04 +0900
Subject: klist: implement KLIST_INIT() and DEFINE_KLIST()
To: Greg KH <greg@...ah.com>
Cc: Peter Zijlstra <peterz@...radead.org>, James Bottomley <James.Bottomley@...senPartnership.com>, Alan Stern <stern@...land.harvard.edu>, Andrew Morton <akpm@...ux-foundation.org>, oliver@...kum.org, Alan Cox <alan@...rguk.ukuu.org.uk>, zaitcev@...hat.com, Linux Kernel Mailing List <linux-kernel@...r.kernel.org>, linux-usb@...r.kernel.org
Message-ID: <48121FE4.5010803@...il.com>


klist is missing static initializers and definition helper.  Add them.

Signed-off-by: Tejun Heo <htejun@...il.com>
Cc: Peter Zijlstra <peterz@...radead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@...e.de>

---
 include/linux/klist.h |    8 ++++++++
 1 file changed, 8 insertions(+)

--- a/include/linux/klist.h
+++ b/include/linux/klist.h
@@ -25,6 +25,14 @@ struct klist {
 	void			(*put)(struct klist_node *);
 };
 
+#define KLIST_INIT(_name, _get, _put)					\
+	{ .k_lock	= __SPIN_LOCK_UNLOCKED(_name.k_lock),		\
+	  .k_list	= LIST_HEAD_INIT(_name.k_list),			\
+	  .get		= _get,						\
+	  .put		= _put, }
+
+#define DEFINE_KLIST(_name, _get, _put)					\
+	struct klist _name = KLIST_INIT(_name, _get, _put)
 
 extern void klist_init(struct klist * k, void (*get)(struct klist_node *),
 		       void (*put)(struct klist_node *));


Patches currently in gregkh-2.6 which might be from htejun@...il.com are

driver-core/sysfs-add-sys-dev-char-block-to-lookup-sysfs-path-by-major-minor.patch
driver-core/klist-implement-klist_add_-after-before.patch
driver-core/klist-implement-klist_init-and-define_klist.patch
--
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