iwlwifi: fix NUM_IWL_UCODE_TLV_* definitions to avoid sparse errors
authorLuca Coelho <luciano.coelho@intel.com>
Fri, 18 Jun 2021 08:01:20 +0000 (11:01 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Tue, 22 Jun 2021 13:57:56 +0000 (16:57 +0300)
commit12236e9af903f7a36f24d24a9b70ba8f8e2859e4
treea0d51f289a778a3a59141069441ac7f19fdc1223
parent947689756352af9bd0486c1a19fffc7837ae0335
iwlwifi: fix NUM_IWL_UCODE_TLV_* definitions to avoid sparse errors

We were assigning these macros manually when sparse is running, but
with newer versions of sparse, it started causing other warnings.  Fix
it by making it a macro when sparse is running.

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20210618105614.dc658639e07f.I69ab6d59ff10c55c8517621eb20a52194dc4783a@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/file.h