]> git.baikalelectronics.ru Git - kernel.git/commitdiff
mt76: mt7915: fix sparse warnings: incorrect type initializer
authorRyder Lee <ryder.lee@mediatek.com>
Sat, 16 May 2020 09:05:19 +0000 (17:05 +0800)
committerFelix Fietkau <nbd@nbd.name>
Thu, 28 May 2020 15:55:30 +0000 (17:55 +0200)
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c:2317:31: sparse: sparse:
incorrect type in initializer (different base types)

Fixes: e87320b36aa7 ("mt76: mt7915: enable firmware module debug support")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c

index 695364d35eb2e75f4290bae1b3909fe0cea21eca..8460cd45321376991ce72652d84ea5b59b94b18a 100644 (file)
@@ -2671,7 +2671,7 @@ int mt7915_mcu_fw_dbg_ctrl(struct mt7915_dev *dev, u32 module, u8 level)
                u16 len;
                u8 level;
                u8 rsv[3];
-               u32 module_idx;
+               __le32 module_idx;
        } data = {
                .module_idx = cpu_to_le32(module),
                .level = level,