From: kbuild test robot <lkp@intel.com>
Cc: kbuild-all@01.org, jakob.unterwurzacher@theobroma-systems.com,
Martin Elshuber <martin.elshuber@theobroma-systems.com>,
Philipp Tomsich <philipp.tomsich@theobroma-systems.com>,
Wolfgang Grandegger <wg@grandegger.com>,
Marc Kleine-Budde <mkl@pengutronix.de>,
linux-can@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 1/1] can: ucan: add driver for Theobroma Systems UCAN devices
Date: Sat, 24 Mar 2018 19:43:47 +0800 [thread overview]
Message-ID: <201803241907.upf6wIeD%fengguang.wu@intel.com> (raw)
In-Reply-To: <20180322135338.60923-2-jakob.unterwurzacher@theobroma-systems.com>
Hi Jakob,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on net-next/master]
[also build test WARNING on v4.16-rc6]
[cannot apply to next-20180323]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Jakob-Unterwurzacher/can-ucan-add-driver-for-Theobroma-Systems-UCAN-devices/20180324-164143
reproduce:
# apt-get install sparse
make ARCH=x86_64 allmodconfig
make C=1 CF=-D__CHECK_ENDIAN__
sparse warnings: (new ones prefixed by >>)
>> drivers/net/can/usb/ucan.c:301:16: sparse: restricted __le32 degrades to integer
drivers/net/can/usb/ucan.c:414:32: sparse: incorrect type in argument 5 (different base types) @@ expected unsigned short [unsigned] [usertype] value @@ got short [unsigned] [usertype] value @@
drivers/net/can/usb/ucan.c:414:32: expected unsigned short [unsigned] [usertype] value
drivers/net/can/usb/ucan.c:414:32: got restricted __le16 [usertype] <noident>
drivers/net/can/usb/ucan.c:428:32: sparse: incorrect type in argument 5 (different base types) @@ expected unsigned short [unsigned] [usertype] value @@ got short [unsigned] [usertype] value @@
drivers/net/can/usb/ucan.c:428:32: expected unsigned short [unsigned] [usertype] value
drivers/net/can/usb/ucan.c:428:32: got restricted __le16 [usertype] <noident>
drivers/net/can/usb/ucan.c:683:44: sparse: incorrect type in argument 2 (different base types) @@ expected unsigned long [unsigned] [usertype] size @@ got d long [unsigned] [usertype] size @@
drivers/net/can/usb/ucan.c:683:44: expected unsigned long [unsigned] [usertype] size
drivers/net/can/usb/ucan.c:683:44: got restricted __le16 [usertype] wMaxPacketSize
drivers/net/can/usb/ucan.c:700:44: sparse: incorrect type in argument 2 (different base types) @@ expected unsigned long [unsigned] [usertype] size @@ got d long [unsigned] [usertype] size @@
drivers/net/can/usb/ucan.c:700:44: expected unsigned long [unsigned] [usertype] size
drivers/net/can/usb/ucan.c:700:44: got restricted __le16 [usertype] wMaxPacketSize
drivers/net/can/usb/ucan.c:752:25: sparse: cast to restricted __le16
drivers/net/can/usb/ucan.c:779:36: sparse: incorrect type in argument 5 (different base types) @@ expected int [signed] buffer_length @@ got restricted __le1int [signed] buffer_length @@
drivers/net/can/usb/ucan.c:779:36: expected int [signed] buffer_length
drivers/net/can/usb/ucan.c:779:36: got restricted __le16 [usertype] wMaxPacketSize
drivers/net/can/usb/ucan.c:793:54: sparse: incorrect type in argument 2 (different base types) @@ expected unsigned long [unsigned] [usertype] size @@ got d long [unsigned] [usertype] size @@
drivers/net/can/usb/ucan.c:793:54: expected unsigned long [unsigned] [usertype] size
drivers/net/can/usb/ucan.c:793:54: got restricted __le16 [usertype] wMaxPacketSize
drivers/net/can/usb/ucan.c:853:62: sparse: incorrect type in argument 2 (different base types) @@ expected unsigned long [unsigned] [usertype] size @@ got d long [unsigned] [usertype] size @@
drivers/net/can/usb/ucan.c:853:62: expected unsigned long [unsigned] [usertype] size
drivers/net/can/usb/ucan.c:853:62: got restricted __le16 [usertype] wMaxPacketSize
drivers/net/can/usb/ucan.c:877:61: sparse: incorrect type in argument 2 (different base types) @@ expected unsigned long [unsigned] [usertype] size @@ got d long [unsigned] [usertype] size @@
drivers/net/can/usb/ucan.c:877:61: expected unsigned long [unsigned] [usertype] size
drivers/net/can/usb/ucan.c:877:61: got restricted __le16 [usertype] wMaxPacketSize
drivers/net/can/usb/ucan.c:891:44: sparse: incorrect type in argument 5 (different base types) @@ expected int [signed] buffer_length @@ got restricted __le1int [signed] buffer_length @@
drivers/net/can/usb/ucan.c:891:44: expected int [signed] buffer_length
drivers/net/can/usb/ucan.c:891:44: got restricted __le16 [usertype] wMaxPacketSize
>> drivers/net/can/usb/ucan.c:1238:41: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] sample_point @@ got restricted __le16 [usertype] sample_point @@
drivers/net/can/usb/ucan.c:1238:41: expected restricted __le16 [usertype] sample_point
drivers/net/can/usb/ucan.c:1238:41: got restricted __le32 [usertype] <noident>
drivers/net/can/usb/ucan.c:1368:18: sparse: restricted __le16 degrades to integer
drivers/net/can/usb/ucan.c:1373:19: sparse: restricted __le16 degrades to integer
drivers/net/can/usb/ucan.c:1407:31: sparse: incorrect type in argument 5 (different base types) @@ expected unsigned short [unsigned] [usertype] value @@ got short [unsigned] [usertype] value @@
drivers/net/can/usb/ucan.c:1407:31: expected unsigned short [unsigned] [usertype] value
drivers/net/can/usb/ucan.c:1407:31: got restricted __le16 [usertype] <noident>
drivers/net/can/usb/ucan.c:1448:31: sparse: incorrect type in argument 5 (different base types) @@ expected unsigned short [unsigned] [usertype] value @@ got short [unsigned] [usertype] value @@
drivers/net/can/usb/ucan.c:1448:31: expected unsigned short [unsigned] [usertype] value
drivers/net/can/usb/ucan.c:1448:31: got restricted __le16 [usertype] <noident>
vim +301 drivers/net/can/usb/ucan.c
298
299 static u8 ucan_get_can_dlc(struct ucan_can_msg *msg, u16 len)
300 {
> 301 if (msg->id & CAN_RTR_FLAG)
302 return get_can_dlc(msg->dlc);
303 else
304 return get_can_dlc(len - (UCAN_IN_HDR_SIZE + sizeof(msg->id)));
305 }
306
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
next prev parent reply other threads:[~2018-03-24 11:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-22 13:53 [PATCH v3 0/1] can: ucan: add driver for Theobroma Systems UCAN devices Jakob Unterwurzacher
2018-03-22 13:53 ` [PATCH v3 1/1] " Jakob Unterwurzacher
2018-03-23 8:42 ` Wolfgang Grandegger
2018-03-24 11:43 ` kbuild test robot [this message]
2018-03-27 10:20 ` Martin Elshuber
2018-03-23 8:32 ` [PATCH v3 0/1] " Wolfgang Grandegger
2018-03-23 9:40 ` Jakob Unterwurzacher
2018-03-23 10:04 ` Wolfgang Grandegger
2018-03-23 10:12 ` Jakob Unterwurzacher
2018-03-27 10:19 ` Martin Elshuber
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=201803241907.upf6wIeD%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=jakob.unterwurzacher@theobroma-systems.com \
--cc=kbuild-all@01.org \
--cc=linux-can@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=martin.elshuber@theobroma-systems.com \
--cc=mkl@pengutronix.de \
--cc=philipp.tomsich@theobroma-systems.com \
--cc=wg@grandegger.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox