[nbd168-wireless:mt76 64/136] drivers/net/wireless/mediatek/mt76/mt7925/mcu.c:16:13: warning: 'mt7925_mcu_wow_pattern_old_tlv' defined but not used
kernel test robot <[email protected]> Tue, 28 Jul 2026 13:03:12 +0800
| Newsgroups | dev.linux.lists.oe-kbuild-all |
|---|---|
| Message-ID | <[email protected]> |
tree: https://github.com/nbd168/wireless mt76 head: 7f932e0223ee060815f66d631767412e329d4492 commit: a6317b82bddff5c838ee486ce38ec56e5415a39c [64/136] wifi: mt76: mt7925: support new WoW pattern TLV config: csky-allmodconfig (https://download.01.org/0day-ci/archive/20260728/[email protected]/config) compiler: csky-linux-gcc (GCC) 16.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260728/[email protected]/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All warnings (new ones prefixed by >>): >> drivers/net/wireless/mediatek/mt76/mt7925/mcu.c:16:13: warning: 'mt7925_mcu_wow_pattern_old_tlv' defined but not used [-Wunused-function] 16 | static bool mt7925_mcu_wow_pattern_old_tlv(struct mt76_dev *dev) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vim +/mt7925_mcu_wow_pattern_old_tlv +16 drivers/net/wireless/mediatek/mt76/mt7925/mcu.c 15 > 16 static bool mt7925_mcu_wow_pattern_old_tlv(struct mt76_dev *dev) 17 { 18 const char *fw_version = dev->hw->wiphy->fw_version; 19 const char *build_date = strrchr(fw_version, '-'); 20 21 if (!is_mt7925(dev)) 22 return false; 23 24 if (!build_date) 25 return false; 26 27 build_date++; 28 29 return strncmp(build_date, MT7925_WOW_PATTERN_NEW_FW_DATE, 30 strlen(MT7925_WOW_PATTERN_NEW_FW_DATE)) < 0; 31 } 32 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki