All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: Re: [PATCH] Virtio-balloon: add user space API for sizing
Date: Tue, 15 Feb 2022 10:10:52 +0800	[thread overview]
Message-ID: <202202151007.9aaQbvQc-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 4436 bytes --]

CC: kbuild-all(a)lists.01.org
In-Reply-To: <20220214195908.4070138-1-kalutes@google.com>
References: <20220214195908.4070138-1-kalutes@google.com>
TO: Kameron Lutes <kalutes@google.com>
TO: "Michael S . Tsirkin" <mst@redhat.com>
TO: David Hildenbrand <david@redhat.com>
TO: Jason Wang <jasowang@redhat.com>
TO: virtualization(a)lists.linux-foundation.org
TO: linux-kernel(a)vger.kernel.org
TO: virtio-dev(a)lists.oasis-open.org
TO: kvm(a)vger.kernel.org
CC: Suleiman Souhlal <suleiman@chromium.org>
CC: Charles William Dick <cwd@google.com>
CC: Kameron Lutes <kalutes@google.com>

Hi Kameron,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v5.17-rc4 next-20220214]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Kameron-Lutes/Virtio-balloon-add-user-space-API-for-sizing/20220215-050844
base:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git d567f5db412ed52de0b3b3efca4a451263de6108
:::::: branch date: 5 hours ago
:::::: commit date: 5 hours ago
config: arm-randconfig-s031-20220214 (https://download.01.org/0day-ci/archive/20220215/202202151007.9aaQbvQc-lkp(a)intel.com/config)
compiler: arm-linux-gnueabi-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/0day-ci/linux/commit/1ad8c1ce7ded6001b74fd4b7cc40957fb5bf05e6
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Kameron-Lutes/Virtio-balloon-add-user-space-API-for-sizing/20220215-050844
        git checkout 1ad8c1ce7ded6001b74fd4b7cc40957fb5bf05e6
        # 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=arm SHELL=/bin/bash drivers/virtio/

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/virtio/virtio_balloon.c:892:9: sparse: sparse: no generic selection for 'restricted __le32 virtio_cread_v'
>> drivers/virtio/virtio_balloon.c:892:9: sparse: sparse: incompatible types in comparison expression (different base types):
>> drivers/virtio/virtio_balloon.c:892:9: sparse:    bad type *
   drivers/virtio/virtio_balloon.c:892:9: sparse:    unsigned int *
>> drivers/virtio/virtio_balloon.c:892:9: sparse: sparse: no generic selection for 'restricted __le32 [addressable] virtio_cread_v'

vim +892 drivers/virtio/virtio_balloon.c

71994620bb25a8 Wei Wang      2018-08-16  880  
1ad8c1ce7ded60 Kameron Lutes 2022-02-14  881  static ssize_t balloon_size_show(struct device *dev,
1ad8c1ce7ded60 Kameron Lutes 2022-02-14  882  				 struct device_attribute *attr, char *buf)
1ad8c1ce7ded60 Kameron Lutes 2022-02-14  883  {
1ad8c1ce7ded60 Kameron Lutes 2022-02-14  884  	struct virtio_device *vdev = container_of(dev, struct virtio_device, dev);
1ad8c1ce7ded60 Kameron Lutes 2022-02-14  885  	u32 num_pages;
1ad8c1ce7ded60 Kameron Lutes 2022-02-14  886  
1ad8c1ce7ded60 Kameron Lutes 2022-02-14  887  	/*
1ad8c1ce7ded60 Kameron Lutes 2022-02-14  888  	 * Read the size directly from the balloon's configuration.
1ad8c1ce7ded60 Kameron Lutes 2022-02-14  889  	 * The caller expects the balloon size enforced by the host,
1ad8c1ce7ded60 Kameron Lutes 2022-02-14  890  	 * not the actual balloon size
1ad8c1ce7ded60 Kameron Lutes 2022-02-14  891  	 */
1ad8c1ce7ded60 Kameron Lutes 2022-02-14 @892  	virtio_cread(vdev, struct virtio_balloon_config, num_pages,
1ad8c1ce7ded60 Kameron Lutes 2022-02-14  893  		     &num_pages);
1ad8c1ce7ded60 Kameron Lutes 2022-02-14  894  
1ad8c1ce7ded60 Kameron Lutes 2022-02-14  895  	return sprintf(buf, "0x%x", num_pages);
1ad8c1ce7ded60 Kameron Lutes 2022-02-14  896  }
1ad8c1ce7ded60 Kameron Lutes 2022-02-14  897  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

             reply	other threads:[~2022-02-15  2:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-15  2:10 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-02-14 19:59 [PATCH] Virtio-balloon: add user space API for sizing Kameron Lutes
2022-02-15 11:42 ` David Hildenbrand
2022-02-15 11:42   ` David Hildenbrand

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=202202151007.9aaQbvQc-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild@lists.01.org \
    /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.