Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Dave Airlie and committed by
Alex Deucher
a4718a5b f05f1b3d

+6 -6
+1 -1
drivers/gpu/drm/amd/display/dc/bios/dce110/command_table_helper_dce110.c
··· 358 358 * const struct command_table_helper **h - [out] struct of functions 359 359 * 360 360 */ 361 - const struct command_table_helper *dal_cmd_tbl_helper_dce110_get_table() 361 + const struct command_table_helper *dal_cmd_tbl_helper_dce110_get_table(void) 362 362 { 363 363 return &command_table_helper_funcs; 364 364 }
+1 -1
drivers/gpu/drm/amd/display/dc/bios/dce112/command_table_helper2_dce112.c
··· 412 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 417 return &command_table_helper_funcs; 418 418 }
+1 -1
drivers/gpu/drm/amd/display/dc/bios/dce112/command_table_helper_dce112.c
··· 412 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 417 return &command_table_helper_funcs; 418 418 }
+1 -1
drivers/gpu/drm/amd/display/dc/bios/dce80/command_table_helper_dce80.c
··· 348 348 dal_cmd_table_helper_encoder_mode_bp_to_atom, 349 349 }; 350 350 351 - const struct command_table_helper *dal_cmd_tbl_helper_dce80_get_table() 351 + const struct command_table_helper *dal_cmd_tbl_helper_dce80_get_table(void) 352 352 { 353 353 return &command_table_helper_funcs; 354 354 }
+2 -2
drivers/gpu/drm/amd/display/dc/core/dc_surface.c
··· 145 145 *gamma = NULL; 146 146 } 147 147 148 - struct dc_gamma *dc_create_gamma() 148 + struct dc_gamma *dc_create_gamma(void) 149 149 { 150 150 struct dc_gamma *gamma = kzalloc(sizeof(*gamma), GFP_KERNEL); 151 151 ··· 175 175 kref_put(&tf->refcount, dc_transfer_func_free); 176 176 } 177 177 178 - struct dc_transfer_func *dc_create_transfer_func() 178 + struct dc_transfer_func *dc_create_transfer_func(void) 179 179 { 180 180 struct dc_transfer_func *tf = kzalloc(sizeof(*tf), GFP_KERNEL); 181 181