]> git.baikalelectronics.ru Git - kernel.git/commit
net: proc: fix build failed when procfs is not configured
authorGao feng <gaofeng@cn.fujitsu.com>
Tue, 19 Feb 2013 00:43:10 +0000 (00:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Feb 2013 18:18:13 +0000 (13:18 -0500)
commit21b10566de0623aa4abcae6ac48829f8a33a77bf
tree7584eb8f9f4d2c3b2aefd751296bdc177fd11f6a
parent5fa1a20c77662b6f2086c1d47fcbbdbad5703139
net: proc: fix build failed when procfs is not configured

commit ac1a7b75fabcaadcf0240cf20f28bae9892a3f10
"net: proc: change proc_net_fops_create to proc_create"
uses proc_create to replace proc_net_fops_create, when
CONFIG_PROC isn't configured, some build error will
occurs.

net/packet/af_packet.c: In function 'packet_net_init':
net/packet/af_packet.c:3831:48: error: 'packet_seq_fops' undeclared (first use in this function)
net/packet/af_packet.c:3831:48: note: each undeclared identifier is reported only once for each function it appears in

There may be other build fails like above,this patch
change proc_create from function to macros when CONFIG_PROC
is not configured,just like what proc_net_fops_create did
before this commit.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/proc_fs.h