Re: [PATCH 1/1] cxgb4: fix cxgb4_uld_in_use() not used error

From: David Miller
Date: Mon Jun 08 2020 - 22:07:41 EST


From: Heinrich Schuchardt <xypron.glpk@xxxxxx>
Date: Mon, 8 Jun 2020 02:58:23 +0200

> When building without CONFIG_CHELSIO_TLS_DEVICE a build error occurs:
>
> drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c:666:13: error:
> ʽcxgb4_uld_in_useʼ defined but not used [-Werror=unused-function]
> 666 | static bool cxgb4_uld_in_use(struct adapter *adap)
> | ^~~~~~~~~~~~~~~~
>
> Guard cxgb4_uld_in_use() with #ifdef CONFIG_CHELSIO_TLS_DEVICE.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@xxxxxx>


Please see commit ef1c75593e770aff8749e902aa0deb6855a3f485, which already
does this.

Thank you.