• A
    iwlwifi: fix false-positive maybe-uninitialized warning · e8698301
    Arnd Bergmann 提交于
    With CONFIG_NO_AUTO_INLINE, we run into a silly warning when
    gcc fails to remember that n_profiles is constant across
    the function call to iwl_mvm_sar_set_profile:
    
    drivers/net/wireless/intel/iwlwifi/mvm/fw.c: In function 'iwl_mvm_sar_get_ewrd_table':
    drivers/net/wireless/intel/iwlwifi/mvm/fw.c:746:9: error: 'ret' may be used uninitialized in this function [-Werror=maybe-uninitialized]
    
    Marking that function 'inline' avoids the warning.
    Signed-off-by: NArnd Bergmann <arnd@arndb.de>
    Signed-off-by: NLuca Coelho <luciano.coelho@intel.com>
    e8698301
fw.c 36.7 KB