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

From: Randy Dunlap <[email-masked]>
Date: Fri, 09 Dec 2011 14:21:50 -0800

From: Randy Dunlap <[email-masked]>

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 <[email-masked]>
Cc: Sjur Brendeland <[email-masked]>
---
 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---