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

Randy Dunlap
2011-12-09T21:22:19Z

From: Randy Dunlap <rdunlap@xenotime.net>

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@xenotime.net>
Cc: Sjur Brendeland <sjur.brandeland@stericsson.com>
---
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---