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

From: Jakub Kicinski
Date: Thu Nov 14 2019 - 12:00:57 EST


On Thu, 14 Nov 2019 15:39:46 +0800, YueHaibing wrote:
> 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>

Acked-by: Jakub Kicinski <jakub.kicinski@xxxxxxxxxxxxx>