Skip to contentSkip to conversation

iwlwifi: fix old-style-declaration warning

PATCH In review Arnd Bergmann 2 participants 2 messages Mar 22, 2021 – Mar 23, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iwlwifi: fix old-style-declaration warning

From: Arnd Bergmann <[email protected]>

The correct order is 'static const', not 'const static', as seen from make W=1:

drivers/net/wireless/intel/iwlwifi/mvm/rfi.c:14:1: error: 'static' is not at beginning of declaration [-Werror=old-style-declaration]

Fixes 21254908cbe9 ("iwlwifi: mvm: add RFI-M support")
---
 drivers/net/wireless/intel/iwlwifi/mvm/rfi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/intel/iwlwifi/mvm/rfi.c +1 -1
index 873919048143..4d5a99cbcc9d 100644
@@ -11,7 +11,7 @@
  * DDR needs frequency in units of 16.666MHz, so provide FW with the
  * frequency values in the adjusted format.
  */
-const static struct iwl_rfi_lut_entry iwl_rfi_table[IWL_RFI_LUT_SIZE] = {
+static const struct iwl_rfi_lut_entry iwl_rfi_table[IWL_RFI_LUT_SIZE] = {
 	/* LPDDR4 */
 
 	/* frequency 3733MHz */
Signature · 1 line
2.29.2
#1 lore raw
Quoted 10 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

The correct order is 'static const', not 'const static', as seen from make W=1:

drivers/net/wireless/intel/iwlwifi/mvm/rfi.c:14:1: error: 'static' is not at beginning of declaration [-Werror=old-style-declaration]

Fixes 21254908cbe9 ("iwlwifi: mvm: add RFI-M support")

---

Thanks, Arnd! But I just applied the patch Wei Yongjun submitted, so we'll go with that one.

--
Cheers,
Luca.