Re: [PATCH net-next] net/tls: Fix unused function warning

From: David Miller
Date: Fri Nov 15 2019 - 15:12:53 EST


From: YueHaibing <yuehaibing@xxxxxxxxxx>
Date: Thu, 14 Nov 2019 15:39:46 +0800

> If PROC_FS is not set, gcc warning this:
>
> net/tls/tls_proc.c:23:12: warning:
> 'tls_statistics_seq_show' defined but not used [-Wunused-function]
>
> Use #ifdef to guard this.
>
> Reported-by: Hulk Robot <hulkci@xxxxxxxxxx>
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>

Applied.