Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Roopni Devanathan <quic_rdevanat@quicinc.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH wireless-next v7 1/3] wifi: cfg80211: Add Support to Set RTS Threshold for each Radio
Date: Fri, 25 Apr 2025 23:32:34 +0800	[thread overview]
Message-ID: <202504252342.Myui0D81-lkp@intel.com> (raw)
In-Reply-To: <20250424134752.871886-2-quic_rdevanat@quicinc.com>

Hi Roopni,

kernel test robot noticed the following build warnings:

[auto build test WARNING on f600832794c91d7021d7337104734246b02a2b86]

url:    https://github.com/intel-lab-lkp/linux/commits/Roopni-Devanathan/wifi-cfg80211-Add-Support-to-Set-RTS-Threshold-for-each-Radio/20250424-215112
base:   f600832794c91d7021d7337104734246b02a2b86
patch link:    https://lore.kernel.org/r/20250424134752.871886-2-quic_rdevanat%40quicinc.com
patch subject: [PATCH wireless-next v7 1/3] wifi: cfg80211: Add Support to Set RTS Threshold for each Radio
config: arm64-randconfig-001-20250425 (https://download.01.org/0day-ci/archive/20250425/202504252342.Myui0D81-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project f819f46284f2a79790038e1f6649172789734ae8)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250425/202504252342.Myui0D81-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/202504252342.Myui0D81-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> net/wireless/nl80211.c:3625:3: warning: variable 'changed' is uninitialized when used here [-Wuninitialized]
    3625 |                 changed |= WIPHY_PARAM_RTS_THRESHOLD;
         |                 ^~~~~~~
   net/wireless/nl80211.c:3616:47: note: initialize the variable 'changed' to silence this warning
    3616 |         u32 rts_threshold, old_rts_threshold, changed;
         |                                                      ^
         |                                                       = 0
   1 warning generated.


vim +/changed +3625 net/wireless/nl80211.c

  3611	
  3612	static int nl80211_set_wiphy_radio(struct genl_info *info,
  3613					   struct cfg80211_registered_device *rdev,
  3614					   u8 radio_id)
  3615	{
  3616		u32 rts_threshold, old_rts_threshold, changed;
  3617		int result = 0;
  3618	
  3619		if (!rdev->ops->set_wiphy_params)
  3620			return -EOPNOTSUPP;
  3621	
  3622		if (info->attrs[NL80211_ATTR_WIPHY_RTS_THRESHOLD]) {
  3623			rts_threshold = nla_get_u32(
  3624					info->attrs[NL80211_ATTR_WIPHY_RTS_THRESHOLD]);
> 3625			changed |= WIPHY_PARAM_RTS_THRESHOLD;
  3626		}
  3627	
  3628		if (changed) {
  3629			old_rts_threshold = rdev->wiphy.radio_cfg[radio_id].rts_threshold;
  3630	
  3631			rdev->wiphy.radio_cfg[radio_id].rts_threshold = rts_threshold;
  3632	
  3633			result = rdev_set_wiphy_params(rdev, radio_id, changed);
  3634			if (result)
  3635				rdev->wiphy.radio_cfg[radio_id].rts_threshold = old_rts_threshold;
  3636		}
  3637	
  3638		return result;
  3639	}
  3640	

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

           reply	other threads:[~2025-04-25 15:33 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20250424134752.871886-2-quic_rdevanat@quicinc.com>]

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=202504252342.Myui0D81-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=quic_rdevanat@quicinc.com \
    /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