OSDN Git Service

usb: gadget: udc-xilinx: fix cast from restricted __le16 warning
authorPiyush Mehta <piyush.mehta@amd.com>
Tue, 22 Aug 2023 06:32:00 +0000 (12:02 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Aug 2023 12:46:45 +0000 (14:46 +0200)
commit0411fa8a5f655ebc0753e718fdfe68bc66a756f0
tree86325777e710ec6b1e0875d8b95cfbad25891b2e
parent7f93e683bc0667a6b5e0da4b49fa07938a9ccad4
usb: gadget: udc-xilinx: fix cast from restricted __le16 warning

usb_ctrlrequest member wValue, wLength and wIndex are of type __le16,
conversion macro cpu_to_le16() input argument is __u16, so properly
typecasted to fix the cast from restricted __le16 warning.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/all/202209020044.CX2PfZzM-lkp@intel.com/
Signed-off-by: Piyush Mehta <piyush.mehta@amd.com>
Link: https://lore.kernel.org/r/20230822063201.16929-3-piyush.mehta@amd.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/udc-xilinx.c