Arnd Bergmann
542d3065f2
socket: fix unused-function warning
...
When procfs is disabled, the fdinfo code causes a harmless
warning:
net/socket.c:1000:13: error: 'sock_show_fdinfo' defined but not used [-Werror=unused-function]
static void sock_show_fdinfo(struct seq_file *m, struct file *f)
Move the function definition up so we can use a single #ifdef
around it.
Fixes: b4653342b1 ("net: Allow to show socket-specific information in /proc/[pid]/fdinfo/[fd]")
Suggested-by: Al Viro <viro@zeniv.linux.org.uk >
Acked-by: Kirill Tkhai <ktkhai@virtuozzo.com >
Signed-off-by: Arnd Bergmann <arnd@arndb.de >
Signed-off-by: David S. Miller <davem@davemloft.net >
2020-01-08 15:02:21 -08:00
..
2019-07-06 12:50:01 +02:00
2019-09-27 15:10:34 -07:00
2019-12-09 10:36:44 -08:00
2019-12-25 19:51:33 -08:00
2019-09-24 16:37:18 +02:00
2019-12-12 21:38:57 -08:00
2019-11-06 16:14:48 -08:00
2019-12-09 10:36:44 -08:00
2019-12-12 21:38:57 -08:00
2019-12-18 17:05:58 -08:00
2019-07-12 16:03:16 -07:00
2019-12-31 13:37:13 -08:00
2019-11-02 13:54:56 -07:00
2019-12-08 11:52:02 +01:00
2019-11-27 22:28:37 +01:00
2020-01-02 15:37:52 -08:00
2019-12-09 10:36:44 -08:00
2019-12-24 22:28:54 -08:00
2019-07-10 18:43:43 -07:00
2020-01-05 23:22:32 -08:00
2019-11-07 20:07:30 -08:00
2020-01-03 12:22:12 -08:00
2020-01-08 13:09:54 -08:00
2019-11-02 13:54:56 -07:00
2019-09-26 08:56:17 +02:00
2020-01-03 12:24:34 -08:00
2020-01-03 12:24:34 -08:00
2019-12-09 10:36:44 -08:00
2019-09-27 10:27:14 +02:00
2019-07-08 19:48:57 -07:00
2020-01-03 12:26:07 -08:00
2019-12-20 21:19:36 -08:00
2019-12-13 10:34:04 +01:00
2019-12-04 12:27:13 -08:00
2020-01-08 13:09:18 -08:00
2019-12-31 13:37:13 -08:00
2019-09-01 11:45:02 -07:00
2019-12-09 10:36:44 -08:00
2019-10-24 14:53:48 -07:00
2019-12-18 11:57:33 -08:00
2019-12-24 22:24:45 -08:00
2019-12-26 15:19:59 -08:00
2020-01-03 12:25:50 -08:00
2019-11-26 14:40:13 -08:00
2019-10-30 17:58:23 -07:00
2019-11-16 21:51:42 -08:00
2019-12-16 10:15:49 +01:00
2020-01-07 13:52:28 -08:00
2019-12-24 16:12:47 -08:00
2019-12-31 13:37:13 -08:00
2019-12-31 13:37:13 -08:00
2019-12-22 15:15:05 -08:00
2019-12-07 16:56:00 -08:00
2019-12-22 15:15:05 -08:00
2019-12-19 17:46:51 -08:00
2019-12-22 15:15:05 -08:00
2019-12-22 15:15:05 -08:00
2019-08-10 15:25:47 -07:00
2019-12-22 15:15:05 -08:00
2019-12-09 10:28:43 -08:00
2019-12-27 14:20:10 -08:00
2019-11-25 20:02:57 -08:00
2019-11-15 14:38:29 +01:00
2019-12-27 16:40:01 -08:00
2019-12-12 17:07:05 -08:00
2020-01-08 15:02:21 -08:00