mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Piyush Mehta <piyush.mehta@amd.com>
To: <gregkh@linuxfoundation.org>, <michal.simek@amd.com>,
	<u.kleine-koenig@pengutronix.de>, <linus.walleij@linaro.org>
Cc: <linux-usb@vger.kernel.org>,
	<linux-arm-kernel@lists.infradead.org>,
	<linux-kernel@vger.kernel.org>, <git@amd.com>,
	Piyush Mehta <piyush.mehta@amd.com>
Subject: [PATCH 0/3] usb: gadget: udc-xilinx: fix warnings
Date: Tue, 22 Aug 2023 12:01:58 +0530	[thread overview]
Message-ID: <20230822063201.16929-1-piyush.mehta@amd.com> (raw)

Fixed below sparse warnings for the udc-xilinx reported by the kernel
test robot.

Link: https://lore.kernel.org/all/202209020044.CX2PfZzM-lkp@intel.com/

Sparse Warnings:
drivers/usb/gadget/udc/udc-xilinx.c:1620:35: sparse: warning: restricted __le16 degrades to integer
drivers/usb/gadget/udc/udc-xilinx.c:1626:31: sparse: warning: restricted __le16 degrades to integer
drivers/usb/gadget/udc/udc-xilinx.c:1641:34: sparse: warning: incorrect type in assignment (different base types)
drivers/usb/gadget/udc/udc-xilinx.c:1641:34: sparse:    expected unsigned short [usertype]
drivers/usb/gadget/udc/udc-xilinx.c:1641:34: sparse:    got restricted __le16 [usertype]
drivers/usb/gadget/udc/udc-xilinx.c:1669:35: sparse: warning: restricted __le16 degrades to integer
drivers/usb/gadget/udc/udc-xilinx.c:1669:35: sparse: warning: restricted __le16 degrades to integer
drivers/usb/gadget/udc/udc-xilinx.c:1689:46: sparse: warning: restricted __le16 degrades to integer
drivers/usb/gadget/udc/udc-xilinx.c:1695:46: sparse: warning: restricted __le16 degrades to integer
drivers/usb/gadget/udc/udc-xilinx.c:1758:29: sparse: warning: cast from restricted __le16
drivers/usb/gadget/udc/udc-xilinx.c:1759:29: sparse: warning: cast from restricted __le16
drivers/usb/gadget/udc/udc-xilinx.c:1760:30: sparse: warning: cast from restricted __le16
drivers/usb/gadget/udc/udc-xilinx.c:1872:34: sparse: warning: restricted __le16 degrades to integer
drivers/usb/gadget/udc/udc-xilinx.c:1883:49: sparse: warning: incorrect type in argument 3 (different base types)
drivers/usb/gadget/udc/udc-xilinx.c:1883:49: sparse:    expected unsigned int [usertype]
drivers/usb/gadget/udc/udc-xilinx.c:1883:49: sparse:    got restricted __le16 [usertype] wValue
drivers/usb/gadget/udc/udc-xilinx.c:1888:47: sparse: warning: restricted __le16 degrades to integer

Piyush Mehta (3):
  usb: gadget: udc-xilinx: fix restricted __le16 degrades to integer
    warning
  usb: gadget: udc-xilinx: fix cast from restricted __le16 warning
  usb: gadget: udc-xilinx: fix incorrect type in assignment warning

 drivers/usb/gadget/udc/udc-xilinx.c | 26 ++++++++++++++------------
 1 file changed, 14 insertions(+), 12 deletions(-)

-- 
2.17.1


             reply	other threads:[~2023-08-22  6:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-22  6:31 Piyush Mehta [this message]
2023-08-22  6:31 ` [PATCH 1/3] usb: gadget: udc-xilinx: fix restricted __le16 degrades to integer warning Piyush Mehta
2023-08-22  6:32 ` [PATCH 2/3] usb: gadget: udc-xilinx: fix cast from restricted __le16 warning Piyush Mehta
2023-08-22  6:32 ` [PATCH 3/3] usb: gadget: udc-xilinx: fix incorrect type in assignment warning Piyush Mehta

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=20230822063201.16929-1-piyush.mehta@amd.com \
    --to=piyush.mehta@amd.com \
    --cc=git@amd.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=michal.simek@amd.com \
    --cc=u.kleine-koenig@pengutronix.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®