diff options
| author | Dave Airlie <airlied@redhat.com> | 2017-11-06 14:17:12 -0500 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2017-11-07 16:21:59 -0500 |
| commit | a4718a5bca77954ffaa5f828158c45aae40a7ec8 (patch) | |
| tree | 89484c9c66add7283e86aff20cac7a617a3a9bbc /drivers/gpu/drm/amd/display/dc/bios/dce112 | |
| parent | f05f1b3da5a531d1569194b24dd7eb33b4a067ca (diff) | |
amdgpu/dc: fix non-ansi function decls.
smatch reported:
drivers/gpu/drm/amd/amdgpu/../display/dc/bios/dce80/command_table_helper_dce80.c:351:71: warning: non-ANSI function declaration of function 'dal_cmd_tbl_helper_dce80_get_table'
drivers/gpu/drm/amd/amdgpu/../display/dc/bios/dce110/command_table_helper_dce110.c:361:72: warning: non-ANSI function declaration of function 'dal_cmd_tbl_helper_dce110_get_table'
drivers/gpu/drm/amd/amdgpu/../display/dc/bios/dce112/command_table_helper_dce112.c:415:72: warning: non-ANSI function declaration of function 'dal_cmd_tbl_helper_dce112_get_table'
drivers/gpu/drm/amd/amdgpu/../display/dc/bios/dce112/command_table_helper2_dce112.c:415:73: warning: non-ANSI function declaration of function 'dal_cmd_tbl_helper_dce112_get_table2'
drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_surface.c:148:34: warning: non-ANSI function declaration of function 'dc_create_gamma'
drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_surface.c:178:50: warning: non-ANSI function declaration of function 'dc_create_transfer_func'
This fixes them.
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/bios/dce112')
| -rw-r--r-- | drivers/gpu/drm/amd/display/dc/bios/dce112/command_table_helper2_dce112.c | 2 | ||||
| -rw-r--r-- | drivers/gpu/drm/amd/display/dc/bios/dce112/command_table_helper_dce112.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/bios/dce112/command_table_helper2_dce112.c b/drivers/gpu/drm/amd/display/dc/bios/dce112/command_table_helper2_dce112.c index d342cdecba11..0237ae575068 100644 --- a/drivers/gpu/drm/amd/display/dc/bios/dce112/command_table_helper2_dce112.c +++ b/drivers/gpu/drm/amd/display/dc/bios/dce112/command_table_helper2_dce112.c | |||
| @@ -412,7 +412,7 @@ static const struct command_table_helper command_table_helper_funcs = { | |||
| 412 | * const struct command_table_helper **h - [out] struct of functions | 412 | * const struct command_table_helper **h - [out] struct of functions |
| 413 | * | 413 | * |
| 414 | */ | 414 | */ |
| 415 | const struct command_table_helper *dal_cmd_tbl_helper_dce112_get_table2() | 415 | const struct command_table_helper *dal_cmd_tbl_helper_dce112_get_table2(void) |
| 416 | { | 416 | { |
| 417 | return &command_table_helper_funcs; | 417 | return &command_table_helper_funcs; |
| 418 | } | 418 | } |
diff --git a/drivers/gpu/drm/amd/display/dc/bios/dce112/command_table_helper_dce112.c b/drivers/gpu/drm/amd/display/dc/bios/dce112/command_table_helper_dce112.c index 48e59963dad4..452034f83e4c 100644 --- a/drivers/gpu/drm/amd/display/dc/bios/dce112/command_table_helper_dce112.c +++ b/drivers/gpu/drm/amd/display/dc/bios/dce112/command_table_helper_dce112.c | |||
| @@ -412,7 +412,7 @@ static const struct command_table_helper command_table_helper_funcs = { | |||
| 412 | * const struct command_table_helper **h - [out] struct of functions | 412 | * const struct command_table_helper **h - [out] struct of functions |
| 413 | * | 413 | * |
| 414 | */ | 414 | */ |
| 415 | const struct command_table_helper *dal_cmd_tbl_helper_dce112_get_table() | 415 | const struct command_table_helper *dal_cmd_tbl_helper_dce112_get_table(void) |
| 416 | { | 416 | { |
| 417 | return &command_table_helper_funcs; | 417 | return &command_table_helper_funcs; |
| 418 | } | 418 | } |
