From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by gnuweeb.org (Postfix) with ESMTPS id AB1BC7E317 for ; Sat, 16 Jul 2022 15:20:20 +0000 (UTC) Authentication-Results: gnuweeb.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=LzP7MA2Q; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657984820; x=1689520820; h=date:from:to:cc:subject:message-id:mime-version; bh=gKXBd8ekHkDS06nKZ1QhxmNPwT7UVE2GB0p1NZBRX1U=; b=LzP7MA2QVs7nTdczeoByOuhnSV9QKmLXXNDPqyJWlXtu8ECd5yoC4ofA Dby7x8XZ0n0DdaHIpBhqmugT38qI3hEep8AI/jADYM4ptNw/gQx6jzKdG KyB2Ewe8ozazIArg0pLbqw2oKSHHEcLIcoCE0MuXy7GYvHi5vGeVEQbI3 6DmeyLZ0DF4Nx4sP45LZj4msYD03/GGnvZNyjhwBjuPpiLSQr2Hfpm4K1 E1c2hqys9ukYczMXG2emc6NhRb1fYKpEkdyQNWci9wYYA3F+GDokHosDT DNQ3x/TJAFT27mHpBfDTa3atibNA4UYIvWYOjEuhviloT9Eq3I51Rd7HF g==; X-IronPort-AV: E=McAfee;i="6400,9594,10410"; a="287124821" X-IronPort-AV: E=Sophos;i="5.92,277,1650956400"; d="scan'208";a="287124821" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jul 2022 08:20:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,277,1650956400"; d="scan'208";a="594031909" Received: from lkp-server02.sh.intel.com (HELO ff137eb26ff1) ([10.239.97.151]) by orsmga007.jf.intel.com with ESMTP; 16 Jul 2022 08:20:18 -0700 Received: from kbuild by ff137eb26ff1 with local (Exim 4.95) (envelope-from ) id 1oCjac-0001iY-69; Sat, 16 Jul 2022 15:20:18 +0000 Date: Sat, 16 Jul 2022 23:19:46 +0800 From: kernel test robot To: Ammar Faizi , GNU/Weeb Mailing List Cc: kbuild-all@lists.01.org Subject: [ammarfaizi2-block:google/android/kernel/common/deprecated/android-4.4-p-release 8216/9922] drivers/gpu/drm/virtio/virtgpu_plane.c:80:46: sparse: sparse: incorrect type in argument 6 (different base types) Message-ID: <202207162319.IEVU0IRl-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline List-Id: tree: https://github.com/ammarfaizi2/linux-block google/android/kernel/common/deprecated/android-4.4-p-release head: c159ade87311501e4e4b40eb2f35aa5607732957 commit: c5707dc8d27359f9eb999d3e757ec106e8bb727b [8216/9922] UPSTREAM: drm: virtio-gpu: transfer dumb buffers to host on plane update config: i386-allmodconfig (https://download.01.org/0day-ci/archive/20220716/202207162319.IEVU0IRl-lkp@intel.com/config) compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0 reproduce: # apt-get install sparse # sparse version: v0.6.4-39-gce1a6720-dirty # https://github.com/ammarfaizi2/linux-block/commit/c5707dc8d27359f9eb999d3e757ec106e8bb727b git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block google/android/kernel/common/deprecated/android-4.4-p-release git checkout c5707dc8d27359f9eb999d3e757ec106e8bb727b # save the config file mkdir build_dir && cp config build_dir/.config make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 SHELL=/bin/bash drivers/cpufreq/ drivers/gpu/drm/virtio/ drivers/staging/android/ drivers/vhost/ drivers/virtio/ fs/f2fs/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> drivers/gpu/drm/virtio/virtgpu_plane.c:80:46: sparse: sparse: incorrect type in argument 6 (different base types) @@ expected restricted __le32 [usertype] x @@ got signed int [usertype] crtc_x @@ drivers/gpu/drm/virtio/virtgpu_plane.c:80:46: sparse: expected restricted __le32 [usertype] x drivers/gpu/drm/virtio/virtgpu_plane.c:80:46: sparse: got signed int [usertype] crtc_x >> drivers/gpu/drm/virtio/virtgpu_plane.c:80:68: sparse: sparse: incorrect type in argument 7 (different base types) @@ expected restricted __le32 [usertype] y @@ got signed int [usertype] crtc_y @@ drivers/gpu/drm/virtio/virtgpu_plane.c:80:68: sparse: expected restricted __le32 [usertype] y drivers/gpu/drm/virtio/virtgpu_plane.c:80:68: sparse: got signed int [usertype] crtc_y cc1: warning: include/drm: No such file or directory [-Wmissing-include-dirs] In file included from include/linux/kasan.h:4:0, from include/linux/slab.h:113, from include/linux/vringh.h:29, from include/linux/virtio.h:11, from drivers/gpu/drm/virtio/virtgpu_drv.h:29, from drivers/gpu/drm/virtio/virtgpu_plane.c:26: include/linux/sched.h:1211:1: warning: type qualifiers ignored on function return type [-Wignored-qualifiers] const struct sched_group_energy * const(*sched_domain_energy_f)(int cpu); ^~~~~ In file included from arch/x86/include/asm/pgalloc.h:6:0, from include/drm/drmP.h:61, from drivers/gpu/drm/virtio/virtgpu_drv.h:34, from drivers/gpu/drm/virtio/virtgpu_plane.c:26: include/linux/pagemap.h: In function 'fault_in_multipages_readable': include/linux/pagemap.h:632:16: warning: variable 'c' set but not used [-Wunused-but-set-variable] volatile char c; ^ vim +80 drivers/gpu/drm/virtio/virtgpu_plane.c 60 61 static void virtio_gpu_plane_atomic_update(struct drm_plane *plane, 62 struct drm_plane_state *old_state) 63 { 64 struct drm_device *dev = plane->dev; 65 struct virtio_gpu_device *vgdev = dev->dev_private; 66 struct virtio_gpu_output *output = drm_crtc_to_virtio_gpu_output(plane->crtc); 67 struct virtio_gpu_framebuffer *vgfb; 68 struct virtio_gpu_object *bo; 69 uint32_t handle; 70 71 if (plane->state->fb) { 72 vgfb = to_virtio_gpu_framebuffer(plane->state->fb); 73 bo = gem_to_virtio_gpu_obj(vgfb->obj); 74 handle = bo->hw_res_handle; 75 if (bo->dumb) { 76 virtio_gpu_cmd_transfer_to_host_2d 77 (vgdev, handle, 0, 78 cpu_to_le32(plane->state->crtc_w), 79 cpu_to_le32(plane->state->crtc_h), > 80 plane->state->crtc_x, plane->state->crtc_y, NULL); 81 } 82 } else { 83 handle = 0; 84 } 85 86 DRM_DEBUG("handle 0x%x, crtc %dx%d+%d+%d\n", handle, 87 plane->state->crtc_w, plane->state->crtc_h, 88 plane->state->crtc_x, plane->state->crtc_y); 89 virtio_gpu_cmd_set_scanout(vgdev, output->index, handle, 90 plane->state->crtc_w, 91 plane->state->crtc_h, 92 plane->state->crtc_x, 93 plane->state->crtc_y); 94 virtio_gpu_cmd_resource_flush(vgdev, handle, 95 plane->state->crtc_x, 96 plane->state->crtc_y, 97 plane->state->crtc_w, 98 plane->state->crtc_h); 99 } 100 -- 0-DAY CI Kernel Test Service https://01.org/lkp