OSDN Git Service

drm/amdgpu: display_mode_vba_21: remove uint typedef
authorArnd Bergmann <arnd@arndb.de>
Wed, 2 Oct 2019 12:01:24 +0000 (14:01 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 3 Oct 2019 14:11:06 +0000 (09:11 -0500)
commite3aaf0e1744e988ebd10144a36eb5619da2f4b7b
tree205e9333ec264c92a496d814a72d58f0e7b61d02
parent324fb7adf61f6dc57cfcefc9783363e35ef9234b
drm/amdgpu: display_mode_vba_21: remove uint typedef

The type definition for 'uint' clashes with the generic kernel
headers:

drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn21/display_mode_vba_21.c:43:22: error: redefinition of typedef 'uint' is a C11 feature [-Werror,-Wtypedef-redefinition]
include/linux/types.h:92:23: note: previous definition is here

Just remove this type and use plain 'unsigned int' consistently,
as it is already use almost everywhere in this file.

Fixes: b04641a3f4c5 ("drm/amd/display: Add Renoir DML")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c