]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
drm/amd/display: add missing void parameter to dc_create_transfer_func
authorColin Ian King <colin.king@canonical.com>
Tue, 31 Jul 2018 10:42:54 +0000 (11:42 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 31 Jul 2018 21:58:22 +0000 (16:58 -0500)
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>
drivers/gpu/drm/amd/display/dc/core/dc_surface.c

index 815dfb50089b82917bde8223a82c2733a1bb2056..8fb3aefd195ca3e384babcac8e002106f5cb9e1a 100644 (file)
@@ -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);