]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Use less generic enum definitions
authorGuenter Roeck <linux@roeck-us.net>
Thu, 4 May 2017 06:49:18 +0000 (23:49 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 5 May 2017 22:14:32 +0000 (18:14 -0400)
commitcc97c81547f144a03d06e8afbb7eac0c087b9d2e
treeb54d4089f08c2b31be05316d36e76357ff795bd7
parent7d1bb3a40d9a8cf2ba5bbbef6fcfc6986aa1fd5f
drm/amdgpu: Use less generic enum definitions

alpha:allmodconfig fails to build as follows.

drivers/gpu/drm/amd/amdgpu/amdgpu.h:1006:2: error:
expected identifier before '(' token
drivers/gpu/drm/amd/amdgpu/amdgpu.h:1011:28: error:
'NGG_BUF_MAX' undeclared here

The problem is not really the enum definition of NGG_BUF_MAX but PARAM,
which happens to be defined differently for alpha and a couple of other
architectures.

Use less generic defines for NGG enums to solve the problem.

Fixes: 1ce078dbdb27a ("drm/amdgpu: add NGG parameters")
Cc: Christian König <christian.koenig@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c