* [linux-next:master 5852/7483] drivers/net/wireless/purelifi/plfxlc/chip.c:33:14: sparse: sparse: cast to restricted __le16
@ 2022-04-28 22:12 kernel test robot
2022-04-29 5:49 ` Kalle Valo
0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2022-04-28 22:12 UTC (permalink / raw)
To: Srinivasan Raju; +Cc: kbuild-all, Linux Memory Management List, Kalle Valo
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
--
0-DAY CI Kernel Test Service
https://01.org/lkp
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-next:master 5852/7483] drivers/net/wireless/purelifi/plfxlc/chip.c:33:14: sparse: sparse: cast to restricted __le16
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
0 siblings, 0 replies; 3+ messages in thread
From: Kalle Valo @ 2022-04-29 5:49 UTC (permalink / raw)
To: kernel test robot
Cc: Srinivasan Raju, kbuild-all, Linux Memory Management List,
linux-wireless
+ 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-next:master 5852/7483] drivers/net/wireless/purelifi/plfxlc/chip.c:33:14: sparse: sparse: cast to restricted __le16
@ 2022-04-29 5:49 ` Kalle Valo
0 siblings, 0 replies; 3+ messages in thread
From: Kalle Valo @ 2022-04-29 5:49 UTC (permalink / raw)
To: kbuild-all
[-- 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-04-29 5:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2022-04-29 5:49 ` Kalle Valo
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.