From: kernel test robot <lkp@intel.com>
To: Mande Imran Ahmed <immu.ahmed1905@gmail.com>, johannes@sipsolutions.net
Cc: oe-kbuild-all@lists.linux.dev, linux-wireless@vger.kernel.org,
linux-kernel@vger.kernel.org,
Mande Imran Ahmed <immu.ahmed1905@gmail.com>
Subject: Re: [PATCH] net/mac80211: replace scnprintf() with sysfs_emit() for sysfs output
Date: Fri, 1 Aug 2025 11:32:00 +0800 [thread overview]
Message-ID: <202508011121.dDTSwRyY-lkp@intel.com> (raw)
In-Reply-To: <20250730095634.3754-1-immu.ahmed1905@gmail.com>
Hi Mande,
kernel test robot noticed the following build warnings:
[auto build test WARNING on wireless-next/main]
[also build test WARNING on wireless/main linus/master v6.16 next-20250731]
[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/Mande-Imran-Ahmed/net-mac80211-replace-scnprintf-with-sysfs_emit-for-sysfs-output/20250730-180128
base: https://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next.git main
patch link: https://lore.kernel.org/r/20250730095634.3754-1-immu.ahmed1905%40gmail.com
patch subject: [PATCH] net/mac80211: replace scnprintf() with sysfs_emit() for sysfs output
config: powerpc-randconfig-001-20250801 (https://download.01.org/0day-ci/archive/20250801/202508011121.dDTSwRyY-lkp@intel.com/config)
compiler: powerpc-linux-gcc (GCC) 13.4.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250801/202508011121.dDTSwRyY-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/202508011121.dDTSwRyY-lkp@intel.com/
All warnings (new ones prefixed by >>):
net/mac80211/debugfs_sta.c: In function 'sta_flags_read':
>> net/mac80211/debugfs_sta.c:99:16: warning: 'buf' is used uninitialized [-Wuninitialized]
99 | return simple_read_from_buffer(userbuf, count, ppos, buf, strlen(buf));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/string.h:65,
from include/linux/bitmap.h:13,
from include/linux/cpumask.h:12,
from include/linux/smp.h:13,
from include/linux/lockdep.h:14,
from include/linux/spinlock.h:63,
from include/linux/wait.h:9,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:7,
from include/linux/debugfs.h:15,
from net/mac80211/debugfs_sta.c:11:
arch/powerpc/include/asm/string.h:22:24: note: by argument 1 of type 'const char *' to 'strlen' declared here
22 | extern __kernel_size_t strlen(const char *);
| ^~~~~~
net/mac80211/debugfs_sta.c:87:14: note: 'buf' declared here
87 | char buf[16 * NUM_WLAN_STA_FLAGS], *pos = buf;
| ^~~
vim +/buf +99 net/mac80211/debugfs_sta.c
c84387d2f2c83d Johannes Berg 2016-03-17 83
e9f207f0ff90bf Jiri Benc 2007-05-05 84 static ssize_t sta_flags_read(struct file *file, char __user *userbuf,
e9f207f0ff90bf Jiri Benc 2007-05-05 85 size_t count, loff_t *ppos)
e9f207f0ff90bf Jiri Benc 2007-05-05 86 {
c84387d2f2c83d Johannes Berg 2016-03-17 87 char buf[16 * NUM_WLAN_STA_FLAGS], *pos = buf;
e9f207f0ff90bf Jiri Benc 2007-05-05 88 struct sta_info *sta = file->private_data;
c84387d2f2c83d Johannes Berg 2016-03-17 89 unsigned int flg;
c84387d2f2c83d Johannes Berg 2016-03-17 90
c84387d2f2c83d Johannes Berg 2016-03-17 91 BUILD_BUG_ON(ARRAY_SIZE(sta_flag_names) != NUM_WLAN_STA_FLAGS);
c2c98fdeb5c897 Johannes Berg 2011-09-29 92
c84387d2f2c83d Johannes Berg 2016-03-17 93 for (flg = 0; flg < NUM_WLAN_STA_FLAGS; flg++) {
c84387d2f2c83d Johannes Berg 2016-03-17 94 if (test_sta_flag(sta, flg))
ec95570844b7a6 Mande Imran Ahmed 2025-07-30 95 pos += sysfs_emit(pos, "%s\n",
c84387d2f2c83d Johannes Berg 2016-03-17 96 sta_flag_names[flg]);
c84387d2f2c83d Johannes Berg 2016-03-17 97 }
5bade101eceedb Johannes Berg 2011-09-29 98
c84387d2f2c83d Johannes Berg 2016-03-17 @99 return simple_read_from_buffer(userbuf, count, ppos, buf, strlen(buf));
e9f207f0ff90bf Jiri Benc 2007-05-05 100 }
e9f207f0ff90bf Jiri Benc 2007-05-05 101 STA_OPS(flags);
e9f207f0ff90bf Jiri Benc 2007-05-05 102
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-08-01 3:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-30 9:56 [PATCH] net/mac80211: replace scnprintf() with sysfs_emit() for sysfs output Mande Imran Ahmed
2025-07-31 1:44 ` Ping-Ke Shih
2025-08-01 3:32 ` kernel test robot [this message]
2025-08-08 6:21 ` kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202508011121.dDTSwRyY-lkp@intel.com \
--to=lkp@intel.com \
--cc=immu.ahmed1905@gmail.com \
--cc=johannes@sipsolutions.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox