All of lore.kernel.org
 help / color / mirror / Atom feed
* [krzk-github:for-next/samsung-exynos-name-v2-rebased 8034/9999] drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_smi_events.c:68:14: sparse: sparse: incorrect type in assignment (different base types)
@ 2020-06-24  3:08 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-06-24  3:08 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://github.com/krzk/linux for-next/samsung-exynos-name-v2-rebased
head:   748bafe8cc1319b0f269069626fecc1bab7b33f3
commit: 663c90614dde92594bd881357e2da74f20ac759c [8034/9999] drm/amdkfd: Provide SMI events watch
config: x86_64-randconfig-s021-20200623 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.2-dirty
        git checkout 663c90614dde92594bd881357e2da74f20ac759c
        # save the attached .config to linux build tree
        make W=1 C=1 ARCH=x86_64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

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/gpu/drm/amd/amdgpu/../amdkfd/kfd_smi_events.c:68:14: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __poll_t [usertype] mask @@     got int @@
>> drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_smi_events.c:68:14: sparse:     expected restricted __poll_t [usertype] mask
>> drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_smi_events.c:68:14: sparse:     got int

vim +68 drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_smi_events.c

    58	
    59	static __poll_t kfd_smi_ev_poll(struct file *filep,
    60					struct poll_table_struct *wait)
    61	{
    62		__poll_t mask;
    63		struct kfd_smi_client *client = filep->private_data;
    64	
    65		poll_wait(filep, &client->wait_queue, wait);
    66	
    67		spin_lock(&client->lock);
  > 68		mask = kfifo_is_empty(&client->fifo) ? 0 : POLLIN | POLLRDNORM;
    69		spin_unlock(&client->lock);
    70	
    71		return mask;
    72	}
    73	

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 30841 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-06-24  3:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-24  3:08 [krzk-github:for-next/samsung-exynos-name-v2-rebased 8034/9999] drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_smi_events.c:68:14: sparse: sparse: incorrect type in assignment (different base types) kernel test robot

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.