All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/net/wireless/mediatek/mt76/mt7925/nan.c:106:32-33: WARNING opportunity for min()
@ 2026-10-09 20:26 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-09 20:26 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp, Julia Lawall

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Sean Wang <sean.wang@mediatek.com>
CC: Felix Fietkau <nbd@nbd.name>
CC: Stella Liu <yu-ching.liu@mediatek.com>
CC: Jeremy Yu <chengwei.yu@mediatek.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   af32da41b0327b9c6a37856ba82b6760d6c8d10e
commit: a5487a6824068cba6fab02f3e5186940a59275ed wifi: mt76: mt7925: add NAN MCU helpers
date:   2 months ago
:::::: branch date: 16 hours ago
:::::: commit date: 2 months ago
config: sparc-randconfig-r2105-20261009 (https://download.01.org/0day-ci/archive/20261009/202610092212.rtfizEXs-lkp@intel.com/config)
compiler: sparc-linux-gcc (GCC) 16.1.0

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
| Fixes: a5487a682406 ("wifi: mt76: mt7925: add NAN MCU helpers")
| Reported-by: kernel test robot <lkp@intel.com>
| Reported-by: Julia Lawall <julia.lawall@inria.fr>
| Closes: https://lore.kernel.org/r/202610092212.rtfizEXs-lkp@intel.com/

cocci warnings: (new ones prefixed by >>)
>> drivers/net/wireless/mediatek/mt76/mt7925/nan.c:106:32-33: WARNING opportunity for min()
   drivers/net/wireless/mediatek/mt76/mt7925/nan.c:108:24-25: WARNING opportunity for min()

vim +106 drivers/net/wireless/mediatek/mt76/mt7925/nan.c

a5487a6824068c Sean Wang 2026-06-24  101  
a5487a6824068c Sean Wang 2026-06-24  102  static void mt7925_nan_set_scan_params(struct mt7925_nan_enable_req_tlv *req,
a5487a6824068c Sean Wang 2026-06-24  103  				       struct cfg80211_nan_conf *conf)
a5487a6824068c Sean Wang 2026-06-24  104  {
a5487a6824068c Sean Wang 2026-06-24  105  	req->scan_params_val.scan_period[0] =
a5487a6824068c Sean Wang 2026-06-24 @106  		cpu_to_le16(conf->scan_period < 255 ? conf->scan_period : 255);
a5487a6824068c Sean Wang 2026-06-24  107  	req->scan_params_val.dwell_time[0] =
a5487a6824068c Sean Wang 2026-06-24  108  		conf->scan_dwell_time < 255 ? conf->scan_dwell_time : 255;
a5487a6824068c Sean Wang 2026-06-24  109  }
a5487a6824068c Sean Wang 2026-06-24  110  

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-09 20:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-09 20:26 drivers/net/wireless/mediatek/mt76/mt7925/nan.c:106:32-33: WARNING opportunity for min() kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.