* Re: [RFC PATCH 5/6] wifi: mac80211: use wiphy locked debugfs helpers for agg_status
[not found] <20231109222251.186dcaf8bdcc.Id4251db174cdd42519a5ef19cbb08d7ed8f65397@changeid>
@ 2023-11-10 12:04 ` kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-11-10 12:04 UTC (permalink / raw)
To: Johannes Berg; +Cc: llvm, oe-kbuild-all
Hi Johannes,
[This is a private test report for your RFC patch.]
kernel test robot noticed the following build errors:
[auto build test ERROR on driver-core/driver-core-testing]
[also build test ERROR on driver-core/driver-core-next driver-core/driver-core-linus wireless-next/main wireless/main linus/master v6.6 next-20231110]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Johannes-Berg/debugfs-fix-automount-d_fsdata-usage/20231110-054024
base: driver-core/driver-core-testing
patch link: https://lore.kernel.org/r/20231109222251.186dcaf8bdcc.Id4251db174cdd42519a5ef19cbb08d7ed8f65397%40changeid
patch subject: [RFC PATCH 5/6] wifi: mac80211: use wiphy locked debugfs helpers for agg_status
config: x86_64-rhel-8.3-rust (https://download.01.org/0day-ci/archive/20231110/202311101917.1895GcFy-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231110/202311101917.1895GcFy-lkp@intel.com/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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202311101917.1895GcFy-lkp@intel.com/
All errors (new ones prefixed by >>):
>> net/mac80211/debugfs_sta.c:368:8: error: call to undeclared function 'wiphy_locked_debugfs_read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
ret = wiphy_locked_debugfs_read(wiphy, file, buf, bufsz,
^
>> net/mac80211/debugfs_sta.c:445:9: error: call to undeclared function 'wiphy_locked_debugfs_write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
return wiphy_locked_debugfs_write(wiphy, file, _buf, sizeof(_buf),
^
2 errors generated.
vim +/wiphy_locked_debugfs_read +368 net/mac80211/debugfs_sta.c
355
356 static ssize_t sta_agg_status_read(struct file *file, char __user *userbuf,
357 size_t count, loff_t *ppos)
358 {
359 struct sta_info *sta = file->private_data;
360 struct wiphy *wiphy = sta->local->hw.wiphy;
361 size_t bufsz = 71 + IEEE80211_NUM_TIDS * 40;
362 char *buf = kmalloc(bufsz, GFP_KERNEL);
363 ssize_t ret;
364
365 if (!buf)
366 return -ENOMEM;
367
> 368 ret = wiphy_locked_debugfs_read(wiphy, file, buf, bufsz,
369 userbuf, count, ppos,
370 sta_agg_status_do_read, sta);
371 kfree(buf);
372
373 return ret;
374 }
375
376 static ssize_t sta_agg_status_do_write(struct wiphy *wiphy, struct file *file,
377 char *buf, size_t count, void *data)
378 {
379 struct sta_info *sta = data;
380 bool start, tx;
381 unsigned long tid;
382 char *pos = buf;
383 int ret, timeout = 5000;
384
385 buf = strsep(&pos, " ");
386 if (!buf)
387 return -EINVAL;
388
389 if (!strcmp(buf, "tx"))
390 tx = true;
391 else if (!strcmp(buf, "rx"))
392 tx = false;
393 else
394 return -EINVAL;
395
396 buf = strsep(&pos, " ");
397 if (!buf)
398 return -EINVAL;
399 if (!strcmp(buf, "start")) {
400 start = true;
401 if (!tx)
402 return -EINVAL;
403 } else if (!strcmp(buf, "stop")) {
404 start = false;
405 } else {
406 return -EINVAL;
407 }
408
409 buf = strsep(&pos, " ");
410 if (!buf)
411 return -EINVAL;
412 if (sscanf(buf, "timeout=%d", &timeout) == 1) {
413 buf = strsep(&pos, " ");
414 if (!buf || !tx || !start)
415 return -EINVAL;
416 }
417
418 ret = kstrtoul(buf, 0, &tid);
419 if (ret || tid >= IEEE80211_NUM_TIDS)
420 return -EINVAL;
421
422 if (tx) {
423 if (start)
424 ret = ieee80211_start_tx_ba_session(&sta->sta, tid,
425 timeout);
426 else
427 ret = ieee80211_stop_tx_ba_session(&sta->sta, tid);
428 } else {
429 __ieee80211_stop_rx_ba_session(sta, tid, WLAN_BACK_RECIPIENT,
430 3, true);
431 ret = 0;
432 }
433
434 return ret ?: count;
435 }
436
437 static ssize_t sta_agg_status_write(struct file *file,
438 const char __user *userbuf,
439 size_t count, loff_t *ppos)
440 {
441 struct sta_info *sta = file->private_data;
442 struct wiphy *wiphy = sta->local->hw.wiphy;
443 char _buf[26];
444
> 445 return wiphy_locked_debugfs_write(wiphy, file, _buf, sizeof(_buf),
446 userbuf, count,
447 sta_agg_status_do_write, sta);
448 }
449 STA_OPS_RW(agg_status);
450
--
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:[~2023-11-10 12:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20231109222251.186dcaf8bdcc.Id4251db174cdd42519a5ef19cbb08d7ed8f65397@changeid>
2023-11-10 12:04 ` [RFC PATCH 5/6] wifi: mac80211: use wiphy locked debugfs helpers for agg_status kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox