• Mauro Rossi's avatar
    iwlwifi: dbg_ini: fix compile time assert build errors · 1f660725
    Mauro Rossi authored
    This patch fixes and preserves existing code style, and readability,
    for IWL_ERR() and IWL_WARN() macros invocations recently added in dbg.c
    
    Fixes the following build errors with Android build system:
    
    /home/utente/pie-x86_kernel/kernel/drivers/net/wireless/intel/iwlwifi/fw/dbg.c: In function '_iwl_fw_dbg_apply_point':
    /home/utente/pie-x86_kernel/kernel/drivers/net/wireless/intel/iwlwifi/fw/dbg.c:2445:3:
    error: call to '__compiletime_assert_2446' declared with attribute error: BUILD_BUG_ON failed: err_str[sizeof(err_str) - 2] != '\n'
    /home/utente/pie-x86_kernel/kernel/drivers/net/wireless/intel/iwlwifi/fw/dbg.c:2451:3:
    error: call to '__compiletime_assert_2452' declared with attribute error: BUILD_BUG_ON failed: err_str[sizeof(err_str) - 2] != '\n'
    ...
    /home/utente/pie-x86_kernel/kernel/drivers/net/wireless/intel/iwlwifi/fw/dbg.c:2789:5:
    error: call to '__compiletime_assert_2790' declared with attribute error: BUILD_BUG_ON failed: invalid_ap_str[sizeof(invalid_ap_str) - 2] != '\n'
    /home/utente/pie-x86_kernel/kernel/drivers/net/wireless/intel/iwlwifi/fw/dbg.c:2800:5:
    error: call to '__compiletime_assert_2801' declared with attribute error: BUILD_BUG_ON failed: invalid_ap_str[sizeof(invalid_ap_str) - 2] != '\n'
    
    Fixes: 427ab638 ("iwlwifi: dbg_ini: enforce apply point early on buffer allocation tlv")
    Fixes: 57d88b11 ("iwlwifi: dbg_ini: support debug info TLV")
    Signed-off-by: default avatarMauro Rossi <issor.oruam@gmail.com>
    Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
    Reviewed-by: default avatarNathan Chancellor <natechancellor@gmail.com>
    Tested-by: default avatarNathan Chancellor <natechancellor@gmail.com>
    Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
    1f660725
dbg.c 86.9 KB