From: Heinrich Schuchardt <xypron.g...@gmx.de> 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.g...@gmx.de> Please see commit ef1c75593e770aff8749e902aa0deb6855a3f485, which already does this. Thank you.