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

drm/amd/display: cleanup extern usage in function definition

Smatch reports this issue
hdcp1_execution.c:500:29: warning: function
'mod_hdcp_hdcp1_dp_execution' with external linkage
has definition

The storage-class-specifier extern is not needed in a
definition, so remove it.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Tom Rix and committed by
Alex Deucher
dac1655c 9b6a1ec7

+3 -3
+3 -3
drivers/gpu/drm/amd/display/modules/hdcp/hdcp1_execution.c
··· 497 497 return status; 498 498 } 499 499 500 - extern enum mod_hdcp_status mod_hdcp_hdcp1_dp_execution(struct mod_hdcp *hdcp, 501 - struct mod_hdcp_event_context *event_ctx, 502 - struct mod_hdcp_transition_input_hdcp1 *input) 500 + enum mod_hdcp_status mod_hdcp_hdcp1_dp_execution(struct mod_hdcp *hdcp, 501 + struct mod_hdcp_event_context *event_ctx, 502 + struct mod_hdcp_transition_input_hdcp1 *input) 503 503 { 504 504 enum mod_hdcp_status status = MOD_HDCP_STATUS_SUCCESS; 505 505