public inbox for [email protected]
 help / color / mirror / Atom feed
From: kernel test robot <[email protected]>
To: Ammar Faizi <[email protected]>,
	GNU/Weeb Mailing List <[email protected]>
Cc: [email protected]
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)
Date: Sat, 16 Jul 2022 23:19:46 +0800	[thread overview]
Message-ID: <[email protected]> (raw)

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/[email protected]/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 <[email protected]>


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

                 reply	other threads:[~2022-07-16 15:20 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 \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    /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