From: Kalle Valo <kvalo@kernel.org>
To: kernel test robot <lkp@intel.com>
Cc: Srinivasan Raju <srini.raju@purelifi.com>,
kbuild-all@lists.01.org,
Linux Memory Management List <linux-mm@kvack.org>,
linux-wireless@vger.kernel.org
Subject: Re: [linux-next:master 5852/7483] drivers/net/wireless/purelifi/plfxlc/chip.c:33:14: sparse: sparse: cast to restricted __le16
Date: Fri, 29 Apr 2022 08:49:54 +0300 [thread overview]
Message-ID: <87bkwkfngd.fsf@kernel.org> (raw)
In-Reply-To: <202204290641.UGDfvg2b-lkp@intel.com> (kernel test robot's message of "Fri, 29 Apr 2022 06:12:58 +0800")
+ linux-wireless
kernel test robot <lkp@intel.com> writes:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> head: bdc61aad77faf67187525028f1f355eff3849f22
> commit: 68d57a07bfe5bb29b80cd8b8fa24c9d1ea104124 [5852/7483] wireless:
> add plfxlc driver for pureLiFi X, XL, XC devices
> config: alpha-allmodconfig
> (https://download.01.org/0day-ci/archive/20220429/202204290641.UGDfvg2b-lkp@intel.com/config)
> compiler: alpha-linux-gcc (GCC) 11.3.0
> reproduce:
> wget
> https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross
> -O ~/bin/make.cross
> chmod +x ~/bin/make.cross
> # apt-get install sparse
> # sparse version: v0.6.4-dirty
> #
> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=68d57a07bfe5bb29b80cd8b8fa24c9d1ea104124
> git remote add linux-next
> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
> git fetch --no-tags linux-next master
> git checkout 68d57a07bfe5bb29b80cd8b8fa24c9d1ea104124
> # save the config file
> mkdir build_dir && cp config build_dir/.config
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0
> make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir
> ARCH=alpha SHELL=/bin/bash drivers/net/wireless/purelifi/plfxlc/
>
> 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 >>)
>>> drivers/net/wireless/purelifi/plfxlc/chip.c:33:14: sparse: sparse:
>>> cast to restricted __le16
>>> drivers/net/wireless/purelifi/plfxlc/chip.c:36:31: sparse: sparse:
>>> incorrect type in assignment (different base types) @@ expected
>>> unsigned short [usertype] beacon_interval @@ got restricted __le16
>>> [usertype] @@
> drivers/net/wireless/purelifi/plfxlc/chip.c:36:31: sparse: expected unsigned short [usertype] beacon_interval
> drivers/net/wireless/purelifi/plfxlc/chip.c:36:31: sparse: got restricted __le16 [usertype]
>
> vim +33 drivers/net/wireless/purelifi/plfxlc/chip.c
>
> 27
> 28 int plfxlc_set_beacon_interval(struct plfxlc_chip *chip, u16 interval,
> 29 u8 dtim_period, int type)
> 30 {
> 31 if (!interval ||
> 32 (chip->beacon_set &&
> > 33 le16_to_cpu(chip->beacon_interval) == interval))
> 34 return 0;
> 35
> > 36 chip->beacon_interval = cpu_to_le16(interval);
> 37 chip->beacon_set = true;
> 38 return plfxlc_usb_wreq(chip->usb.ez_usb,
> 39 &chip->beacon_interval,
> 40 sizeof(chip->beacon_interval),
> 41 USB_REQ_BEACON_INTERVAL_WR);
> 42 }
> 43
Srinivasan, please submit a patch to fix this.
--
https://patchwork.kernel.org/project/linux-wireless/list/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
WARNING: multiple messages have this Message-ID (diff)
From: Kalle Valo <kvalo@kernel.org>
To: kbuild-all@lists.01.org
Subject: Re: [linux-next:master 5852/7483] drivers/net/wireless/purelifi/plfxlc/chip.c:33:14: sparse: sparse: cast to restricted __le16
Date: Fri, 29 Apr 2022 08:49:54 +0300 [thread overview]
Message-ID: <87bkwkfngd.fsf@kernel.org> (raw)
In-Reply-To: <202204290641.UGDfvg2b-lkp@intel.com>
[-- Attachment #1: Type: text/plain, Size: 3009 bytes --]
+ linux-wireless
kernel test robot <lkp@intel.com> writes:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> head: bdc61aad77faf67187525028f1f355eff3849f22
> commit: 68d57a07bfe5bb29b80cd8b8fa24c9d1ea104124 [5852/7483] wireless:
> add plfxlc driver for pureLiFi X, XL, XC devices
> config: alpha-allmodconfig
> (https://download.01.org/0day-ci/archive/20220429/202204290641.UGDfvg2b-lkp(a)intel.com/config)
> compiler: alpha-linux-gcc (GCC) 11.3.0
> reproduce:
> wget
> https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross
> -O ~/bin/make.cross
> chmod +x ~/bin/make.cross
> # apt-get install sparse
> # sparse version: v0.6.4-dirty
> #
> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=68d57a07bfe5bb29b80cd8b8fa24c9d1ea104124
> git remote add linux-next
> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
> git fetch --no-tags linux-next master
> git checkout 68d57a07bfe5bb29b80cd8b8fa24c9d1ea104124
> # save the config file
> mkdir build_dir && cp config build_dir/.config
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0
> make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir
> ARCH=alpha SHELL=/bin/bash drivers/net/wireless/purelifi/plfxlc/
>
> 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 >>)
>>> drivers/net/wireless/purelifi/plfxlc/chip.c:33:14: sparse: sparse:
>>> cast to restricted __le16
>>> drivers/net/wireless/purelifi/plfxlc/chip.c:36:31: sparse: sparse:
>>> incorrect type in assignment (different base types) @@ expected
>>> unsigned short [usertype] beacon_interval @@ got restricted __le16
>>> [usertype] @@
> drivers/net/wireless/purelifi/plfxlc/chip.c:36:31: sparse: expected unsigned short [usertype] beacon_interval
> drivers/net/wireless/purelifi/plfxlc/chip.c:36:31: sparse: got restricted __le16 [usertype]
>
> vim +33 drivers/net/wireless/purelifi/plfxlc/chip.c
>
> 27
> 28 int plfxlc_set_beacon_interval(struct plfxlc_chip *chip, u16 interval,
> 29 u8 dtim_period, int type)
> 30 {
> 31 if (!interval ||
> 32 (chip->beacon_set &&
> > 33 le16_to_cpu(chip->beacon_interval) == interval))
> 34 return 0;
> 35
> > 36 chip->beacon_interval = cpu_to_le16(interval);
> 37 chip->beacon_set = true;
> 38 return plfxlc_usb_wreq(chip->usb.ez_usb,
> 39 &chip->beacon_interval,
> 40 sizeof(chip->beacon_interval),
> 41 USB_REQ_BEACON_INTERVAL_WR);
> 42 }
> 43
Srinivasan, please submit a patch to fix this.
--
https://patchwork.kernel.org/project/linux-wireless/list/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
next prev parent reply other threads:[~2022-04-29 5:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-28 22:12 [linux-next:master 5852/7483] drivers/net/wireless/purelifi/plfxlc/chip.c:33:14: sparse: sparse: cast to restricted __le16 kernel test robot
2022-04-29 5:49 ` Kalle Valo [this message]
2022-04-29 5:49 ` Kalle Valo
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=87bkwkfngd.fsf@kernel.org \
--to=kvalo@kernel.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-mm@kvack.org \
--cc=linux-wireless@vger.kernel.org \
--cc=lkp@intel.com \
--cc=srini.raju@purelifi.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 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.