]> git.baikalelectronics.ru Git - kernel.git/commit
unix: define and set show_fdinfo only if procfs is enabled
authorTobias Klauser <tklauser@distanz.ch>
Wed, 26 Feb 2020 17:29:53 +0000 (18:29 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Feb 2020 19:11:57 +0000 (11:11 -0800)
commit85cac8f6706aafc1f775fe43395dfd46747f4d1e
treef762bf883ec807bc278655c263e3a3e372224779
parent7ee7aec26896c83b81bfdcaef9f451f3a45d7b4c
unix: define and set show_fdinfo only if procfs is enabled

Follow the pattern used with other *_show_fdinfo functions and only
define unix_show_fdinfo and set it in proto_ops if CONFIG_PROCFS
is set.

Fixes: 7a78e7c28588 ("unix: Show number of pending scm files of receive queue in fdinfo")
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Reviewed-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/unix/af_unix.c