* [chrome-os:chromeos-4.14 9/12] drivers/usb/core/message.c:951:25: sparse: sparse: incorrect type in argument 5 (different base types)
@ 2021-07-18 8:26 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-07-18 8:26 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 4002 bytes --]
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.14
head: 20c828b1505cdd2d518dbace69490b21342fdf8d
commit: 7b34fb233405ff37e4d69921764524baac34f382 [9/12] UPSTREAM: usb: core: add support for USB_REQ_SET_ISOCH_DELAY
config: microblaze-randconfig-s032-20210718 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 10.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.3-341-g8af24329-dirty
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-4.14
git checkout 7b34fb233405ff37e4d69921764524baac34f382
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=microblaze
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/usb/core/message.c: note: in included file (through arch/microblaze/include/uapi/asm/byteorder.h, include/asm-generic/bitops/le.h, include/asm-generic/bitops.h, ...):
include/linux/byteorder/big_endian.h:8:2: sparse: sparse: inconsistent configuration, needs CONFIG_CPU_BIG_ENDIAN
>> drivers/usb/core/message.c:951:25: sparse: sparse: incorrect type in argument 5 (different base types) @@ expected unsigned short [usertype] value @@ got restricted __le16 [usertype] @@
drivers/usb/core/message.c:951:25: sparse: expected unsigned short [usertype] value
drivers/usb/core/message.c:951:25: sparse: got restricted __le16 [usertype]
In file included from include/linux/workqueue.h:9,
from include/linux/srcu.h:34,
from include/linux/notifier.h:16,
from include/linux/memory_hotplug.h:7,
from include/linux/mmzone.h:913,
from include/linux/gfp.h:6,
from include/linux/idr.h:16,
from include/linux/kernfs.h:14,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:21,
from include/linux/pci.h:29,
from drivers/usb/core/message.c:8:
include/linux/timer.h: In function 'timer_setup':
include/linux/timer.h:179:23: warning: cast between incompatible function types from 'void (*)(struct timer_list *)' to 'void (*)(long unsigned int)' [-Wcast-function-type]
179 | __setup_timer(timer, (TIMER_FUNC_TYPE)callback,
| ^
include/linux/timer.h:144:25: note: in definition of macro '__setup_timer'
144 | (_timer)->function = (_fn); 24- | ^~~
vim +951 drivers/usb/core/message.c
930
931 /*
932 * usb_set_isoch_delay - informs the device of the packet transmit delay
933 * @dev: the device whose delay is to be informed
934 * Context: !in_interrupt()
935 *
936 * Since this is an optional request, we don't bother if it fails.
937 */
938 int usb_set_isoch_delay(struct usb_device *dev)
939 {
940 /* skip hub devices */
941 if (dev->descriptor.bDeviceClass == USB_CLASS_HUB)
942 return 0;
943
944 /* skip non-SS/non-SSP devices */
945 if (dev->speed < USB_SPEED_SUPER)
946 return 0;
947
948 return usb_control_msg(dev, usb_sndctrlpipe(dev, 0),
949 USB_REQ_SET_ISOCH_DELAY,
950 USB_DIR_OUT | USB_TYPE_STANDARD | USB_RECIP_DEVICE,
> 951 cpu_to_le16(dev->hub_delay), 0, NULL, 0,
952 USB_CTRL_SET_TIMEOUT);
953 }
954
---
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: 24526 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-07-18 8:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-18 8:26 [chrome-os:chromeos-4.14 9/12] drivers/usb/core/message.c:951:25: sparse: sparse: incorrect type in argument 5 (different base types) kernel test robot
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.