From: kernel test robot <lkp@intel.com>
To: Piyush Mehta <piyush.mehta@xilinx.com>
Cc: kbuild-all@lists.01.org, linux-arm-kernel@lists.infradead.org,
Michal Simek <monstr@monstr.eu>,
Manish Narani <manish.narani@xilinx.com>
Subject: [xilinx-xlnx:xlnx_rebase_v5.15 537/1049] drivers/usb/misc/usb5744.c:64:55: sparse: sparse: incorrect type in argument 3 (different base types)
Date: Tue, 5 Apr 2022 03:20:06 +0800 [thread overview]
Message-ID: <202204050314.OPOaZ49I-lkp@intel.com> (raw)
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.15
head: 4cf4408c2dbe725bb8530f851fbf277b9343f602
commit: a72cdbc061595029cbe60bc7f5b33015d391cf18 [537/1049] usb: misc: usb5744: add support for USB hub controller
config: sh-randconfig-s032-20220404 (https://download.01.org/0day-ci/archive/20220405/202204050314.OPOaZ49I-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 11.2.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://github.com/Xilinx/linux-xlnx/commit/a72cdbc061595029cbe60bc7f5b33015d391cf18
git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.15
git checkout a72cdbc061595029cbe60bc7f5b33015d391cf18
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=sh SHELL=/bin/bash drivers/staging/ drivers/usb/misc/
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/misc/usb5744.c:64:55: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected unsigned short [usertype] value @@ got restricted __be16 [usertype] @@
drivers/usb/misc/usb5744.c:64:55: sparse: expected unsigned short [usertype] value
drivers/usb/misc/usb5744.c:64:55: sparse: got restricted __be16 [usertype]
vim +64 drivers/usb/misc/usb5744.c
49
50 static int usb5744_i2c_dev_init(struct i2c_client *client)
51 {
52 struct device *dev = &client->dev;
53 struct usb5744 *data = NULL;
54 int ret = 0;
55
56 i2c_set_clientdata(client, data);
57
58 /* Trigger gpio reset to the hub. */
59 ret = usb5744_init_hw(dev, data);
60 if (ret)
61 return ret;
62
63 /* Send SMBus command to boot hub. */
> 64 ret = i2c_smbus_write_word_data(client, 0xAA, htons(0x5600));
65 if (ret < 0)
66 dev_err(dev, "Sending boot command failed");
67
68 return ret;
69 }
70
--
0-DAY CI Kernel Test Service
https://01.org/lkp
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
reply other threads:[~2022-04-04 19:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202204050314.OPOaZ49I-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=manish.narani@xilinx.com \
--cc=monstr@monstr.eu \
--cc=piyush.mehta@xilinx.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 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.