]> err.no Git - linux-2.6/commit
[PATCH] klist: fix klist to have the same klist_add semantics as list_head
authorJames Bottomley <James.Bottomley@SteelEye.com>
Fri, 19 Aug 2005 13:14:01 +0000 (09:14 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Sep 2005 23:03:13 +0000 (16:03 -0700)
commitd856f1e337782326c638c70c0b4df2b909350dec
tree15c070e3909cbd260b2616001f0a6dde4a0c24fa
parentfef6ec8dd96205fb22e3cfe2e4abd69d89413631
[PATCH] klist: fix klist to have the same klist_add semantics as list_head

at the moment, the list_head semantics are

list_add(node, head)

whereas current klist semantics are

klist_add(head, node)

This is bound to cause confusion, and since klist is the newcomer, it
should follow the list_head semantics.

I also added missing include guards to klist.h

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/bus.c
drivers/base/core.c
drivers/base/dd.c
include/linux/klist.h
lib/klist.c