aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/core/dc_surface.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-07-31 11:42:54 +0100
committerAlex Deucher <alexander.deucher@amd.com>2018-07-31 16:58:22 -0500
commit7ac7aebe85d3b3b57a58efefcdde2bd5d398550d (patch)
tree4ea6ff2f6572563d6fec71d5a617b7f7ccdd5638 /drivers/gpu/drm/amd/display/dc/core/dc_surface.c
parentdrm/radeon: Replace ttm_bo_unref with ttm_bo_put (diff)
downloadlinux-dev-7ac7aebe85d3b3b57a58efefcdde2bd5d398550d.tar.xz
linux-dev-7ac7aebe85d3b3b57a58efefcdde2bd5d398550d.zip
drm/amd/display: add missing void parameter to dc_create_transfer_func
Add a missing void parameter to function dc_create_transfer_func, fixes sparse warning: warning: non-ANSI function declaration of function 'dc_create_transfer_func' Signed-off-by: Colin Ian King <colin.king@canonical.com> Reviewed-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/core/dc_surface.c')
-rw-r--r--drivers/gpu/drm/amd/display/dc/core/dc_surface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_surface.c b/drivers/gpu/drm/amd/display/dc/core/dc_surface.c
index 815dfb50089b..8fb3aefd195c 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc_surface.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc_surface.c
@@ -192,7 +192,7 @@ void dc_transfer_func_release(struct dc_transfer_func *tf)
kref_put(&tf->refcount, dc_transfer_func_free);
}
-struct dc_transfer_func *dc_create_transfer_func()
+struct dc_transfer_func *dc_create_transfer_func(void)
{
struct dc_transfer_func *tf = kvzalloc(sizeof(*tf), GFP_KERNEL);