drm/amd: append missing includes
authorIsabella Basso <isabbasso@riseup.net>
Wed, 8 Dec 2021 01:25:26 +0000 (22:25 -0300)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 13 Dec 2021 21:32:34 +0000 (16:32 -0500)
This fixes warnings caused by global functions lacking prototypes:, such as:

 warning: no previous prototype for 'dcn303_hw_sequencer_construct'
 [-Wmissing-prototypes]
 12 | void dcn303_hw_sequencer_construct(struct dc *dc)
    |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 ...
 warning: no previous prototype for ‘amdgpu_has_atpx’
 [-Wmissing-prototypes]
 76 | bool amdgpu_has_atpx(void) {
    |      ^~~~~~~~~~~~~~~

Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Isabella Basso <isabbasso@riseup.net>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/rv1_clk_mgr_vbios_smu.c
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_init.c
drivers/gpu/drm/amd/display/dc/dcn21/dcn21_init.c
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_init.c
drivers/gpu/drm/amd/display/dc/dcn301/dcn301_init.c
drivers/gpu/drm/amd/display/dc/dcn302/dcn302_init.c
drivers/gpu/drm/amd/display/dc/dcn303/dcn303_init.c
drivers/gpu/drm/amd/display/dc/dcn31/dcn31_init.c

index c2be6ad623083ebd99da7aa1332b16e879a6affe..d6d986be906a963b3e95aba7f9033f6e02f1b6d7 100644 (file)
@@ -11,6 +11,7 @@
 #include <linux/pci.h>
 #include <linux/delay.h>
 
+#include "amdgpu.h"
 #include "amd_acpi.h"
 
 #define AMDGPU_PX_QUIRK_FORCE_ATPX  (1 << 0)
index fe18bb9e19aa56bf86731b6bdde229344e22e04c..06bab24d8e270c36c4f4673cca92b85052feb33e 100644 (file)
@@ -28,6 +28,8 @@
 #include "reg_helper.h"
 #include <linux/delay.h>
 
+#include "rv1_clk_mgr_vbios_smu.h"
+
 #define MAX_INSTANCE   5
 #define MAX_SEGMENT            5
 
index 9f7eed6688c4b5d662ccf153e1907e23f236d773..bdb4f10ad24919af7766b6b3f598b086b61f73a2 100644 (file)
@@ -33,6 +33,8 @@
 #include "mp/mp_12_0_0_offset.h"
 #include "mp/mp_12_0_0_sh_mask.h"
 
+#include "rn_clk_mgr_vbios_smu.h"
+
 #define REG(reg_name) \
        (MP0_BASE.instance[0].segment[mm ## reg_name ## _BASE_IDX] + mm ## reg_name)
 
index a6bc3c7673babbcd118fb12e0d1bde4485410b63..abef132fa01619274ceab56dbcc799e399fc9039 100644 (file)
@@ -69,6 +69,8 @@
 
 #include "dcn10/dcn10_hw_sequencer.h"
 
+#include "dce110_hw_sequencer.h"
+
 #define GAMMA_HW_POINTS_NUM 256
 
 /*
index 5cfd4b0afea5b7594213f07244d7d68b3e78144f..91e4885b743e837ca9464b5d0fca74e961c98ba2 100644 (file)
@@ -27,6 +27,8 @@
 #include "dcn10/dcn10_hw_sequencer.h"
 #include "dcn20_hwseq.h"
 
+#include "dcn20_init.h"
+
 static const struct hw_sequencer_funcs dcn20_funcs = {
        .program_gamut_remap = dcn10_program_gamut_remap,
        .init_hw = dcn10_init_hw,
index 54c11ba550ae64db1eebd04a3e7561c96a5e7b38..b270f0b194dcb69905f587c7365fd846f5b90dcd 100644 (file)
@@ -28,6 +28,8 @@
 #include "dcn20/dcn20_hwseq.h"
 #include "dcn21_hwseq.h"
 
+#include "dcn21_init.h"
+
 static const struct hw_sequencer_funcs dcn21_funcs = {
        .program_gamut_remap = dcn10_program_gamut_remap,
        .init_hw = dcn10_init_hw,
index 93f32a312fee89142462de41ce5c788b8db8940b..4926771ddeeeaf785ee1e948155052c38d71ef70 100644 (file)
@@ -29,6 +29,8 @@
 #include "dcn21/dcn21_hwseq.h"
 #include "dcn30_hwseq.h"
 
+#include "dcn30_init.h"
+
 static const struct hw_sequencer_funcs dcn30_funcs = {
        .program_gamut_remap = dcn10_program_gamut_remap,
        .init_hw = dcn30_init_hw,
index e85b695f23518c3a3efb04b811ec7540243e98b4..3d42a1a337ec1189fac5488380cf2022556c729a 100644 (file)
@@ -30,6 +30,8 @@
 #include "dcn30/dcn30_hwseq.h"
 #include "dcn301_hwseq.h"
 
+#include "dcn301_init.h"
+
 static const struct hw_sequencer_funcs dcn301_funcs = {
        .program_gamut_remap = dcn10_program_gamut_remap,
        .init_hw = dcn10_init_hw,
index d88b9011c5021bc8477f2f52011bb8eb2fc72c77..eb375f30f5bca68f7149203776b753662088298d 100644 (file)
@@ -29,6 +29,8 @@
 
 #include "dc.h"
 
+#include "dcn302_init.h"
+
 void dcn302_hw_sequencer_construct(struct dc *dc)
 {
        dcn30_hw_sequencer_construct(dc);
index aa5dbbade2bd19d7b55e8019f9a9adf43064c741..f499f8ab5e47f2971be6d997420e0e3cb3311f81 100644 (file)
@@ -9,6 +9,8 @@
 #include "dcn30/dcn30_init.h"
 #include "dc.h"
 
+#include "dcn303_init.h"
+
 void dcn303_hw_sequencer_construct(struct dc *dc)
 {
        dcn30_hw_sequencer_construct(dc);
index e175b6cc01254a965ba81eb27e9c711182fb4f99..e5885f62a7646d1c0e59884304b2ce7c0f077394 100644 (file)
@@ -31,6 +31,8 @@
 #include "dcn301/dcn301_hwseq.h"
 #include "dcn31/dcn31_hwseq.h"
 
+#include "dcn31_init.h"
+
 static const struct hw_sequencer_funcs dcn31_funcs = {
        .program_gamut_remap = dcn10_program_gamut_remap,
        .init_hw = dcn31_init_hw,