From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH v3 14/22] mac80211: encode listen interval for S1G
Date: Tue, 22 Sep 2020 08:38:26 +0800 [thread overview]
Message-ID: <202009220801.3ctLp6da%lkp@intel.com> (raw)
In-Reply-To: <20200908190323.15814-15-thomas@adapt-ip.com>
[-- Attachment #1: Type: text/plain, Size: 2585 bytes --]
Hi Thomas,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on mac80211-next/master]
[cannot apply to mac80211/master v5.9-rc6 next-20200921]
[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]
url: https://github.com/0day-ci/linux/commits/Thomas-Pedersen/add-support-for-S1G-association/20200909-122015
base: https://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git master
config: x86_64-randconfig-s022-20200920 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-201-g24bdaac6-dirty
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
sparse warnings: (new ones prefixed by >>)
>> net/mac80211/util.c:4412:16: sparse: sparse: incorrect type in return expression (different base types) @@ expected restricted __le16 @@ got int [assigned] listen_interval @@
>> net/mac80211/util.c:4412:16: sparse: expected restricted __le16
>> net/mac80211/util.c:4412:16: sparse: got int [assigned] listen_interval
--
>> net/mac80211/mlme.c:789:22: sparse: sparse: restricted __le16 degrades to integer
# https://github.com/0day-ci/linux/commit/3fc1b6bebf4f30e15318e12b83607fb202bf7528
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Thomas-Pedersen/add-support-for-S1G-association/20200909-122015
git checkout 3fc1b6bebf4f30e15318e12b83607fb202bf7528
vim +4412 net/mac80211/util.c
4394
4395 __le16 ieee80211_encode_usf(int listen_interval)
4396 {
4397 u16 ui, usf = 0;
4398
4399 /* find greatest USF */
4400 while (usf < IEEE80211_MAX_USF) {
4401 if (listen_interval % listen_int_usf[usf + 1])
4402 break;
4403 usf += 1;
4404 }
4405 ui = listen_interval / listen_int_usf[usf];
4406
4407 /* error if there is a remainder. Should've been checked by user */
4408 WARN_ON_ONCE(ui > IEEE80211_MAX_UI);
4409 listen_interval = FIELD_PREP(LISTEN_INT_USF, usf) |
4410 FIELD_PREP(LISTEN_INT_UI, ui);
4411
> 4412 return listen_interval;
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 35336 bytes --]
next prev parent reply other threads:[~2020-09-22 0:38 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-08 19:03 [PATCH v3 00/22] add support for S1G association Thomas Pedersen
2020-09-08 19:03 ` [PATCH v3 01/22] ieee80211: redefine S1G bits with GENMASK Thomas Pedersen
2020-09-08 19:03 ` [PATCH v3 02/22] nl80211: advertise supported channel width in S1G Thomas Pedersen
2020-09-08 19:03 ` [PATCH v3 03/22] cfg80211: regulatory: handle S1G channels Thomas Pedersen
2020-09-08 19:03 ` [PATCH v3 04/22] nl80211: correctly validate S1G beacon head Thomas Pedersen
2020-09-18 10:56 ` Johannes Berg
2020-09-18 17:45 ` Thomas Pedersen
2020-09-18 17:47 ` Johannes Berg
2020-09-08 19:03 ` [PATCH v3 05/22] nl80211: support setting S1G channels Thomas Pedersen
2020-09-08 19:03 ` [PATCH v3 06/22] {cfg,mac}80211: get correct default channel width for S1G Thomas Pedersen
2020-09-08 19:03 ` [PATCH v3 07/22] mac80211: s1g: choose scanning width based on frequency Thomas Pedersen
2020-09-08 19:03 ` [PATCH v3 08/22] nl80211: support S1G capabilities Thomas Pedersen
2020-09-08 19:03 ` [PATCH v3 09/22] mac80211: support S1G STA capabilities Thomas Pedersen
2020-09-08 19:03 ` [PATCH v3 10/22] cfg80211: convert S1G beacon to scan results Thomas Pedersen
2020-09-08 19:03 ` [PATCH v3 11/22] cfg80211: parse S1G Operation element for BSS channel Thomas Pedersen
2020-09-08 19:03 ` [PATCH v3 12/22] mac80211: convert S1G beacon to scan results Thomas Pedersen
2020-09-08 19:03 ` [PATCH v3 13/22] cfg80211: handle Association Response from S1G STA Thomas Pedersen
2020-09-08 19:03 ` [PATCH v3 14/22] mac80211: encode listen interval for S1G Thomas Pedersen
2020-09-22 0:38 ` kernel test robot [this message]
2020-09-08 19:03 ` [PATCH v3 15/22] mac80211: don't calculate duration " Thomas Pedersen
2020-09-08 19:03 ` [PATCH v3 16/22] mac80211: handle S1G low rates Thomas Pedersen
2020-09-08 19:03 ` [PATCH v3 17/22] mac80211: avoid rate init for S1G band Thomas Pedersen
2020-09-08 19:03 ` [PATCH v3 18/22] mac80211: receive and process S1G beacons Thomas Pedersen
2020-09-08 19:03 ` [PATCH v3 19/22] mac80211: support S1G association Thomas Pedersen
2020-09-08 19:03 ` [PATCH v3 20/22] nl80211: include frequency offset in survey info Thomas Pedersen
2020-09-08 19:03 ` [PATCH v3 21/22] mac80211_hwsim: fix TSF timestamp write to S1G beacon Thomas Pedersen
2020-09-08 19:03 ` [PATCH v3 22/22] mac80211_hwsim: indicate support for S1G Thomas Pedersen
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=202009220801.3ctLp6da%lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/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 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.