public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c:63 amdgpu_gem_fault() warn: inconsistent indenting
@ 2022-05-27 15:17 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-05-27 15:17 UTC (permalink / raw)
  To: Thomas Zimmermann; +Cc: kbuild-all, linux-kernel, Christian König

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   7e284070abe53d448517b80493863595af4ab5f0
commit: 71df0368e9b66afeb1fdb92a88be1a98cc25f310 drm/amdgpu: Implement mmap as GEM object function
date:   1 year ago
config: arc-randconfig-m031-20220524 (https://download.01.org/0day-ci/archive/20220527/202205272322.o7pvBJIF-lkp@intel.com/config)
compiler: arceb-elf-gcc (GCC) 11.3.0

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

New smatch warnings:
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c:63 amdgpu_gem_fault() warn: inconsistent indenting

Old smatch warnings:
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c:824 amdgpu_gem_op_ioctl() warn: should 'robj->tbo.page_alignment << 14' be a 64 bit type?

vim +63 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c

    44	
    45	static vm_fault_t amdgpu_gem_fault(struct vm_fault *vmf)
    46	{
    47		struct ttm_buffer_object *bo = vmf->vma->vm_private_data;
    48		struct drm_device *ddev = bo->base.dev;
    49		vm_fault_t ret;
    50		int idx;
    51	
    52		ret = ttm_bo_vm_reserve(bo, vmf);
    53		if (ret)
    54			return ret;
    55	
    56		if (drm_dev_enter(ddev, &idx)) {
    57			ret = amdgpu_bo_fault_reserve_notify(bo);
    58			if (ret) {
    59				drm_dev_exit(idx);
    60				goto unlock;
    61			}
    62	
  > 63			 ret = ttm_bo_vm_fault_reserved(vmf, vmf->vma->vm_page_prot,
    64							TTM_BO_VM_NUM_PREFAULT, 1);
    65	
    66			 drm_dev_exit(idx);
    67		} else {
    68			ret = ttm_bo_vm_dummy_page(vmf, vmf->vma->vm_page_prot);
    69		}
    70		if (ret == VM_FAULT_RETRY && !(vmf->flags & FAULT_FLAG_RETRY_NOWAIT))
    71			return ret;
    72	
    73	unlock:
    74		dma_resv_unlock(bo->base.resv);
    75		return ret;
    76	}
    77	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

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

only message in thread, other threads:[~2022-05-27 15:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-27 15:17 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c:63 amdgpu_gem_fault() warn: inconsistent indenting kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox