diff options
author | Randy Dunlap <randy.dunlap@oracle.com> | 2009-08-17 06:35:49 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-08-17 20:48:25 -0400 |
commit | ae6e2aef6c03ccb06c6baaa1b77cc0e0ae226faf (patch) | |
tree | d9f248ff8f0af50750831ac71b4e88fe1c2cb820 /net/phonet | |
parent | 3a5209e3b26386fd174820ee6e8e27479b24869a (diff) |
phonet: fix build when PROC_FS is disabled
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'
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Acked-by: RĂ©mi Denis-Courmont <remi.denis-courmont@nokia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/phonet')
-rw-r--r-- | net/phonet/socket.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/phonet/socket.c b/net/phonet/socket.c index 5f26c3711a1e..7a4ee397d2f7 100644 --- a/net/phonet/socket.c +++ b/net/phonet/socket.c | |||
@@ -413,6 +413,7 @@ found: | |||
413 | } | 413 | } |
414 | EXPORT_SYMBOL(pn_sock_get_port); | 414 | EXPORT_SYMBOL(pn_sock_get_port); |
415 | 415 | ||
416 | #ifdef CONFIG_PROC_FS | ||
416 | static struct sock *pn_sock_get_idx(struct seq_file *seq, loff_t pos) | 417 | static struct sock *pn_sock_get_idx(struct seq_file *seq, loff_t pos) |
417 | { | 418 | { |
418 | struct net *net = seq_file_net(seq); | 419 | struct net *net = seq_file_net(seq); |
@@ -509,3 +510,4 @@ const struct file_operations pn_sock_seq_fops = { | |||
509 | .llseek = seq_lseek, | 510 | .llseek = seq_lseek, |
510 | .release = seq_release_net, | 511 | .release = seq_release_net, |
511 | }; | 512 | }; |
513 | #endif | ||