]> 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)
commitf2bb726202f50ee7c583c28f140c50ec6f3aa57e
treeb54d4089f08c2b31be05316d36e76357ff795bd7
parenta3b3ba06d800d7c145fa7149b5d5098910380292
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: 4933e7af1d61f ("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