Skip to contentSkip to conversation

phonet: fix build when PROC_FS is disabled

PATCH Applied Randy Dunlap 3 participants 3 messages Aug 17, 2009 – Aug 18, 2009

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 phonet: fix build when PROC_FS is disabled

From: Randy Dunlap <[email protected]>

Fix phonet build when PROC_FS is not enabled:

net/built-in.o: In function `pn_sock_open':
socket.c:(.text+0x23c649): undefined reference to seq_open_net' net/built-in.o:(.rodata+0x21018): undefined reference to seq_release_net'

---
 net/phonet/socket.c |    2 ++
 1 file changed, 2 insertions(+)
net/phonet/socket.c +2 -0
@@ -413,6 +413,7 @@ found:
 }
 EXPORT_SYMBOL(pn_sock_get_port);
 
+#ifdef CONFIG_PROC_FS
 static struct sock *pn_sock_get_idx(struct seq_file *seq, loff_t pos)
 {
 	struct net *net = seq_file_net(seq);
@@ -509,3 +510,4 @@ const struct file_operations pn_sock_seq
 	.llseek = seq_lseek,
 	.release = seq_release_net,
 };
+#endif
Signature · 3 lines
~Randy
LPC 2009, Sept. 23-25, Portland, Oregon
http://linuxplumbersconf.org/2009/
Acked-by on v1 1/1
#1 lore raw

Le lundi 17 août 2009 23:35:49 Randy Dunlap, vous avez écrit :

Quoted 9 lines

From: Randy Dunlap <[email protected]>

Fix phonet build when PROC_FS is not enabled:

net/built-in.o: In function `pn_sock_open':
socket.c:(.text+0x23c649): undefined reference to seq_open_net' net/built-in.o:(.rodata+0x21018): undefined reference to seq_release_net'

Signature · 2 lines
Rémi Denis-Courmont
http://www.remlab.net/
maintainer Applied
#2 lore raw

From: "Rémi Denis-Courmont" <[email protected]>
Date: Mon, 17 Aug 2009 23:43:43 +0300

Quoted 5 lines

Le lundi 17 août 2009 23:35:49 Randy Dunlap, vous avez écrit :

Quoted 4 lines

From: Randy Dunlap <[email protected]>

Fix phonet build when PROC_FS is not enabled:

Quoted 7 lines
Quoted 5 lines

net/built-in.o: In function `pn_sock_open':
socket.c:(.text+0x23c649): undefined reference to seq_open_net' net/built-in.o:(.rodata+0x21018): undefined reference to seq_release_net'

Applied, thanks.