netlink: Move netlink attribute parsing support to lib
authorGeert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Wed, 4 Mar 2009 06:53:30 +0000 (14:53 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 4 Mar 2009 06:53:30 +0000 (14:53 +0800)
commite9cc8bddaea3944fabfebb968bc88d603239beed
tree9d311256882e48bd133f31db564a307c2a271453
parent8c882f64130071eaebdc0861bee34a73e436f004
netlink: Move netlink attribute parsing support to lib

Netlink attribute parsing may be used even if CONFIG_NET is not set.
Move it from net/netlink to lib and control its inclusion based on the new
config symbol CONFIG_NLATTR, which is selected by CONFIG_NET.

Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
lib/Kconfig
lib/Makefile
lib/nlattr.c [moved from net/netlink/attr.c with 100% similarity]
net/Kconfig
net/netlink/Makefile