[radeon-alex:drm-next-4.12-wip 33/40] drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h:68:30: warning: left shift count >= width of type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   git://people.freedesktop.org/~agd5f/linux.git drm-next-4.12-wip
head:   d32ff0ea8e22964abcc6406e00a0646f2bfb94c7
commit: 7958b9959ea9dd544675adebddab255f7c536da7 [33/40] drm/amdgpu: add basic PRT support (v2)
config: parisc-allmodconfig (attached as .config)
compiler: hppa-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 7958b9959ea9dd544675adebddab255f7c536da7
        # save the attached .config to linux build tree
        make.cross ARCH=parisc 

All warnings (new ones prefixed by >>):

   In file included from drivers/gpu/drm/amd/amdgpu/amdgpu.h:58:0,
                    from drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c:31:
   drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c: In function 'amdgpu_vm_free_mapping':
>> drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h:68:30: warning: left shift count >= width of type [-Wshift-count-overflow]
    #define AMDGPU_PTE_PRT  (1UL << 63)
                                 ^
>> drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c:1222:24: note: in expansion of macro 'AMDGPU_PTE_PRT'
     if ((mapping->flags & AMDGPU_PTE_PRT) &&
                           ^~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c: In function 'amdgpu_vm_bo_map':
>> drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h:68:30: warning: left shift count >= width of type [-Wshift-count-overflow]
    #define AMDGPU_PTE_PRT  (1UL << 63)
                                 ^
   drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c:1379:14: note: in expansion of macro 'AMDGPU_PTE_PRT'
     if (flags & AMDGPU_PTE_PRT) {
                 ^~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c: In function 'amdgpu_vm_fini':
>> drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h:68:30: warning: left shift count >= width of type [-Wshift-count-overflow]
    #define AMDGPU_PTE_PRT  (1UL << 63)
                                 ^
   drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c:1701:24: note: in expansion of macro 'AMDGPU_PTE_PRT'
      if (mapping->flags & AMDGPU_PTE_PRT)
                           ^~~~~~~~~~~~~~

vim +68 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h

    52	
    53	/* LOG2 number of continuous pages for the fragment field */
    54	#define AMDGPU_LOG2_PAGES_PER_FRAG 4
    55	
    56	#define AMDGPU_PTE_VALID	(1 << 0)
    57	#define AMDGPU_PTE_SYSTEM	(1 << 1)
    58	#define AMDGPU_PTE_SNOOPED	(1 << 2)
    59	
    60	/* VI only */
    61	#define AMDGPU_PTE_EXECUTABLE	(1 << 4)
    62	
    63	#define AMDGPU_PTE_READABLE	(1 << 5)
    64	#define AMDGPU_PTE_WRITEABLE	(1 << 6)
    65	
    66	#define AMDGPU_PTE_FRAG(x)	((x & 0x1f) << 7)
    67	
  > 68	#define AMDGPU_PTE_PRT		(1UL << 63)
    69	
    70	/* How to programm VM fault handling */
    71	#define AMDGPU_VM_FAULT_STOP_NEVER	0
    72	#define AMDGPU_VM_FAULT_STOP_FIRST	1
    73	#define AMDGPU_VM_FAULT_STOP_ALWAYS	2
    74	
    75	struct amdgpu_vm_pt {
    76		struct amdgpu_bo	*bo;

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel

[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux