[PATCH -next] xshm: fix build errors, depends on NET

From: Randy Dunlap
Date: Fri Dec 09 2011 - 16:22:27 EST


From: Randy Dunlap <rdunlap@xxxxxxxxxxxx>

Fix build errors in xshm. xshm uses netlink, so it
should depend on NET.

ERROR: "genl_unregister_family" [drivers/xshm/xshm.ko] undefined!
ERROR: "netlink_unicast" [drivers/xshm/xshm.ko] undefined!
ERROR: "genl_register_family_with_ops" [drivers/xshm/xshm.ko] undefined!
ERROR: "init_net" [drivers/xshm/xshm.ko] undefined!
ERROR: "__alloc_skb" [drivers/xshm/xshm.ko] undefined!
ERROR: "kfree_skb" [drivers/xshm/xshm.ko] undefined!
ERROR: "skb_put" [drivers/xshm/xshm.ko] undefined!

Signed-off-by: Randy Dunlap <rdunlap@xxxxxxxxxxxx>
Cc: Sjur Brendeland <sjur.brandeland@xxxxxxxxxxxxxx>
---
drivers/xshm/Kconfig | 1 +
1 file changed, 1 insertion(+)

--- linux-next-20111209.orig/drivers/xshm/Kconfig
+++ linux-next-20111209/drivers/xshm/Kconfig
@@ -5,6 +5,7 @@ config XSHM

config XSHM_CHR
tristate "Character device for External Shared Memory (XSHM)"
+ depends on NET
select XSHM
default n
---help---
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/