From 7cde6eb092fda52f92e01968a2c33804b3c194f3 Mon Sep 17 00:00:00 2001 From: Geert Uytterhoeven Date: Wed, 4 Mar 2009 14:53:30 +0800 Subject: [PATCH] --- yaml --- r: 132703 b: refs/heads/master c: e9cc8bddaea3944fabfebb968bc88d603239beed h: refs/heads/master i: 132701: fc7a6654173427e18e54143732340dc7f0f5763d 132699: 4733b2fc726c6114c7c119cbf1f67e55c8e34909 132695: 4e0e424e14c07f02f3690219b6ec4290bb023370 132687: d88232114ccf1b0c22f0ddf3fc983ffa0550615c 132671: f1f51d201da105d6ef799eafe1616b31abe4ae38 v: v3 --- [refs] | 2 +- trunk/lib/Kconfig | 6 ++++++ trunk/lib/Makefile | 2 ++ trunk/{net/netlink/attr.c => lib/nlattr.c} | 0 trunk/net/Kconfig | 1 + trunk/net/netlink/Makefile | 2 +- 6 files changed, 11 insertions(+), 2 deletions(-) rename trunk/{net/netlink/attr.c => lib/nlattr.c} (100%) diff --git a/[refs] b/[refs] index 8147af3df856..d19681d9aac8 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 8c882f64130071eaebdc0861bee34a73e436f004 +refs/heads/master: e9cc8bddaea3944fabfebb968bc88d603239beed diff --git a/trunk/lib/Kconfig b/trunk/lib/Kconfig index 03c2c24b9083..cea9e30a88ff 100644 --- a/trunk/lib/Kconfig +++ b/trunk/lib/Kconfig @@ -174,4 +174,10 @@ config DISABLE_OBSOLETE_CPUMASK_FUNCTIONS bool "Disable obsolete cpumask functions" if DEBUG_PER_CPU_MAPS depends on EXPERIMENTAL && BROKEN +# +# Netlink attribute parsing support is select'ed if needed +# +config NLATTR + bool + endmenu diff --git a/trunk/lib/Makefile b/trunk/lib/Makefile index 32b0e64ded27..b2c09da02cae 100644 --- a/trunk/lib/Makefile +++ b/trunk/lib/Makefile @@ -84,6 +84,8 @@ obj-$(CONFIG_HAVE_ARCH_TRACEHOOK) += syscall.o obj-$(CONFIG_DYNAMIC_PRINTK_DEBUG) += dynamic_printk.o +obj-$(CONFIG_NLATTR) += nlattr.o + hostprogs-y := gen_crc32table clean-files := crc32table.h diff --git a/trunk/net/netlink/attr.c b/trunk/lib/nlattr.c similarity index 100% rename from trunk/net/netlink/attr.c rename to trunk/lib/nlattr.c diff --git a/trunk/net/Kconfig b/trunk/net/Kconfig index cdb8fdef6c4a..eab40a481356 100644 --- a/trunk/net/Kconfig +++ b/trunk/net/Kconfig @@ -4,6 +4,7 @@ menuconfig NET bool "Networking support" + select NLATTR ---help--- Unless you really know what you are doing, you should say Y here. The reason is that some programs need kernel networking support even diff --git a/trunk/net/netlink/Makefile b/trunk/net/netlink/Makefile index e3589c2de49e..bdd6ddf4e95b 100644 --- a/trunk/net/netlink/Makefile +++ b/trunk/net/netlink/Makefile @@ -2,4 +2,4 @@ # Makefile for the netlink driver. # -obj-y := af_netlink.o attr.o genetlink.o +obj-y := af_netlink.o genetlink.o