Commit ae6e2aef authored by Randy Dunlap's avatar Randy Dunlap Committed by David S. Miller

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: default avatarRandy Dunlap <randy.dunlap@oracle.com>
Acked-by: default avatarRémi Denis-Courmont <remi.denis-courmont@nokia.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3a5209e3
......@@ -413,6 +413,7 @@ int pn_sock_get_port(struct sock *sk, unsigned short sport)
}
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_fops = {
.llseek = seq_lseek,
.release = seq_release_net,
};
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment