[radeon-alex:amd-staging-drm-next 625/639] drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c:1513:28: error: 'DRM_ROTATE_0' undeclared

kbuild test robot fengguang.wu at intel.com
Wed Jul 12 04:05:16 UTC 2017


tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head:   57f5c7f15032e48265fb4302cf8eb62ec7ce3246
commit: 24ede71be1fefa780f3e8c3ad7e9b65a5d4fd4c2 [625/639] drm/amd/display: Create dm_plane_state.
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 6.2.0
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 24ede71be1fefa780f3e8c3ad7e9b65a5d4fd4c2
        # save the attached .config to linux build tree
        make.cross ARCH=ia64 

Note: the radeon-alex/amd-staging-drm-next HEAD 57f5c7f15032e48265fb4302cf8eb62ec7ce3246 builds fine.
      It only hurts bisectibility.

All errors (new ones prefixed by >>):

   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c: In function 'dm_drm_plane_reset':
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c:1513:28: error: 'DRM_ROTATE_0' undeclared (first use in this function)
      plane->state->rotation = DRM_ROTATE_0;
                               ^~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c:1513:28: note: each undeclared identifier is reported only once for each function it appears in

vim +/DRM_ROTATE_0 +1513 drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c

  1499	
  1500	static void dm_drm_plane_reset(struct drm_plane *plane)
  1501	{
  1502		struct dm_plane_state *amdgpu_state = NULL;
  1503		struct amdgpu_device *adev = plane->dev->dev_private;
  1504	
  1505		if (plane->state)
  1506			plane->funcs->atomic_destroy_state(plane, plane->state);
  1507	
  1508		amdgpu_state = kzalloc(sizeof(*amdgpu_state), GFP_KERNEL);
  1509	
  1510		if (amdgpu_state) {
  1511			plane->state = &amdgpu_state->base;
  1512			plane->state->plane = plane;
> 1513			plane->state->rotation = DRM_ROTATE_0;
  1514	
  1515			amdgpu_state->dc_surface = dc_create_surface(adev->dm.dc);
  1516			WARN_ON(!amdgpu_state->dc_surface);
  1517		}
  1518		else
  1519			WARN_ON(1);
  1520	}
  1521	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 47749 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20170712/a02452fc/attachment-0001.gz>


More information about the dri-devel mailing list