The function halbtc8192e2ant_iswifi_status_changed is called only at line 4158 which is #if'd in the same way as I'm now #if-ing the function. Signed-off-by: Jan Moskyto Matejka <mq@xxxxxxx> --- drivers/staging/rtl8821ae/btcoexist/halbtc8192e2ant.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/rtl8821ae/btcoexist/halbtc8192e2ant.c b/drivers/staging/rtl8821ae/btcoexist/halbtc8192e2ant.c index 81706f4..7af412d 100644 --- a/drivers/staging/rtl8821ae/btcoexist/halbtc8192e2ant.c +++ b/drivers/staging/rtl8821ae/btcoexist/halbtc8192e2ant.c @@ -503,6 +503,7 @@ static void halbtc8192e2ant_querybt_info(struct btc_coexist *btcoexist) btcoexist->btc_fill_h2c(btcoexist, 0x61, 1, h2c_parameter); } +#if (BT_AUTO_REPORT_ONLY_8192E_2ANT != 0) static bool halbtc8192e2ant_iswifi_status_changed(struct btc_coexist *btcoexist) { static bool pre_wifi_busy; @@ -534,6 +535,7 @@ static bool halbtc8192e2ant_iswifi_status_changed(struct btc_coexist *btcoexist) return false; } +#endif static void halbtc8192e2ant_update_btlink_info(struct btc_coexist *btcoexist) { -- 1.8.4.5 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel