]> git.baikalelectronics.ru Git - kernel.git/commit
sock: Hide unused variable when !CONFIG_PROC_FS.
authorTonghao Zhang <xiangxia.m.yue@gmail.com>
Thu, 14 Dec 2017 13:51:59 +0000 (05:51 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Dec 2017 14:58:14 +0000 (09:58 -0500)
commit2955ca53996d5c7345309fc12dd22c35c7c46de2
tree011226fe28681a501706a9c8acf56e16602cd354
parent7da4baf27ae3252a974a7d6d4ef019ef2eb45215
sock: Hide unused variable when !CONFIG_PROC_FS.

When CONFIG_PROC_FS is disabled, we will not use the prot_inuse
counter. This adds an #ifdef to hide the variable definition in
that case. This is not a bugfix. But we can save bytes when there
are many network namespace.

Cc: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: Martin Zhang <zhangjunweimartin@didichuxing.com>
Signed-off-by: Tonghao Zhang <zhangtonghao@didichuxing.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/netns/core.h