CC: [email protected] In-Reply-To: <[email protected]> References: <[email protected]> TO: Kameron Lutes <[email protected]> TO: "Michael S . Tsirkin" <[email protected]> TO: David Hildenbrand <[email protected]> TO: Jason Wang <[email protected]> TO: [email protected] TO: [email protected] TO: [email protected] TO: [email protected] CC: Suleiman Souhlal <[email protected]> CC: Charles William Dick <[email protected]> CC: Kameron Lutes <[email protected]>
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/[email protected]/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 <[email protected]> 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/[email protected] _______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
