]> git.baikalelectronics.ru Git - kernel.git/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)
commit18e73361f41b5ee8e0d9ee338840628d737398f6
tree15c070e3909cbd260b2616001f0a6dde4a0c24fa
parent6359a3d7907161ac90d4e853cbffa83bb0fb45d4
[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