]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit59102d80c3a46b385b0eb4e90494d37918b3e633
treea0d51f289a778a3a59141069441ac7f19fdc1223
parent6bac3a8dbef2ec6b585d4ab7da0aa045ef76025c
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