]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amd/display: Fixed Silence complier warnings in dc
authorGaghik Khachatrian <gaghik.khachatrian@amd.com>
Mon, 9 Mar 2026 21:18:25 +0000 (17:18 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 30 Mar 2026 19:12:15 +0000 (15:12 -0400)
[Why]
Resolve compiler warnings by marking unused parameters explicitly.

[How]
In .c and .h function definitions, keep parameter names
in signatures and add a line with `(void)param;` in function body

Preserved function signatures and avoids breaking code paths that
may reference the parameter under conditional compilation.

Reviewed-by: Dillon Varone <dillon.varone@amd.com>
Reviewed-by: Austin Zheng <austin.zheng@amd.com>
Signed-off-by: Gaghik Khachatrian <gaghik.khachatrian@amd.com>
Signed-off-by: Chuanyu Tseng <chuanyu.tseng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
173 files changed:
drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c
drivers/gpu/drm/amd/display/dc/basics/vector.c
drivers/gpu/drm/amd/display/dc/bios/bios_parser.c
drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c
drivers/gpu/drm/amd/display/dc/bios/command_table2.c
drivers/gpu/drm/amd/display/dc/bios/dce110/command_table_helper_dce110.c
drivers/gpu/drm/amd/display/dc/bios/dce112/command_table_helper2_dce112.c
drivers/gpu/drm/amd/display/dc/bios/dce112/command_table_helper_dce112.c
drivers/gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn314/dcn314_clk_mgr.c
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/dcn315_clk_mgr.c
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn316/dcn316_clk_mgr.c
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn401/dcn401_clk_mgr.c
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn42/dcn42_clk_mgr.c
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
drivers/gpu/drm/amd/display/dc/core/dc_state.c
drivers/gpu/drm/amd/display/dc/core/dc_surface.c
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
drivers/gpu/drm/amd/display/dc/dc_helper.c
drivers/gpu/drm/amd/display/dc/dccg/dcn31/dcn31_dccg.c
drivers/gpu/drm/amd/display/dc/dccg/dcn32/dcn32_dccg.c
drivers/gpu/drm/amd/display/dc/dccg/dcn35/dcn35_dccg.c
drivers/gpu/drm/amd/display/dc/dccg/dcn401/dcn401_dccg.c
drivers/gpu/drm/amd/display/dc/dccg/dcn42/dcn42_dccg.c
drivers/gpu/drm/amd/display/dc/dce/dce_abm.c
drivers/gpu/drm/amd/display/dc/dce/dce_audio.c
drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c
drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.c
drivers/gpu/drm/amd/display/dc/dce/dce_i2c.c
drivers/gpu/drm/amd/display/dc/dce/dce_i2c_hw.c
drivers/gpu/drm/amd/display/dc/dce/dce_i2c_sw.c
drivers/gpu/drm/amd/display/dc/dce/dce_ipp.c
drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c
drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c
drivers/gpu/drm/amd/display/dc/dce/dce_opp.c
drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c
drivers/gpu/drm/amd/display/dc/dce/dce_transform.c
drivers/gpu/drm/amd/display/dc/dce/dmub_abm.c
drivers/gpu/drm/amd/display/dc/dce/dmub_abm_lcd.c
drivers/gpu/drm/amd/display/dc/dce/dmub_replay.c
drivers/gpu/drm/amd/display/dc/dce110/dce110_mem_input_v.c
drivers/gpu/drm/amd/display/dc/dce110/dce110_opp_csc_v.c
drivers/gpu/drm/amd/display/dc/dce110/dce110_opp_regamma_v.c
drivers/gpu/drm/amd/display/dc/dce110/dce110_timing_generator.c
drivers/gpu/drm/amd/display/dc/dce110/dce110_timing_generator_v.c
drivers/gpu/drm/amd/display/dc/dce110/dce110_transform_v.c
drivers/gpu/drm/amd/display/dc/dce112/dce112_compressor.c
drivers/gpu/drm/amd/display/dc/dce120/dce120_timing_generator.c
drivers/gpu/drm/amd/display/dc/dce80/dce80_timing_generator.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dwb.c
drivers/gpu/drm/amd/display/dc/dcn31/dcn31_apg.c
drivers/gpu/drm/amd/display/dc/dio/dcn10/dcn10_stream_encoder.c
drivers/gpu/drm/amd/display/dc/dio/dcn314/dcn314_dio_stream_encoder.c
drivers/gpu/drm/amd/display/dc/dio/dcn32/dcn32_dio_stream_encoder.c
drivers/gpu/drm/amd/display/dc/dio/dcn35/dcn35_dio_stream_encoder.c
drivers/gpu/drm/amd/display/dc/dio/dcn401/dcn401_dio_stream_encoder.c
drivers/gpu/drm/amd/display/dc/dio/virtual/virtual_link_encoder.c
drivers/gpu/drm/amd/display/dc/dio/virtual/virtual_stream_encoder.c
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c
drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c
drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c
drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c
drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c
drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c
drivers/gpu/drm/amd/display/dc/dml/dcn30/dcn30_fpu.c
drivers/gpu/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c
drivers/gpu/drm/amd/display/dc/dml/dcn30/display_rq_dlg_calc_30.c
drivers/gpu/drm/amd/display/dc/dml/dcn31/display_mode_vba_31.c
drivers/gpu/drm/amd/display/dc/dml/dcn31/display_rq_dlg_calc_31.c
drivers/gpu/drm/amd/display/dc/dml/dcn314/display_mode_vba_314.c
drivers/gpu/drm/amd/display/dc/dml/dcn314/display_rq_dlg_calc_314.c
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c
drivers/gpu/drm/amd/display/dc/dml/dcn35/dcn35_fpu.c
drivers/gpu/drm/amd/display/dc/dml/display_mode_lib.c
drivers/gpu/drm/amd/display/dc/dml/display_rq_dlg_helpers.c
drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c
drivers/gpu/drm/amd/display/dc/dpp/dcn10/dcn10_dpp.c
drivers/gpu/drm/amd/display/dc/dpp/dcn20/dcn20_dpp.c
drivers/gpu/drm/amd/display/dc/dpp/dcn20/dcn20_dpp_cm.c
drivers/gpu/drm/amd/display/dc/dpp/dcn30/dcn30_dpp.c
drivers/gpu/drm/amd/display/dc/dpp/dcn30/dcn30_dpp_cm.c
drivers/gpu/drm/amd/display/dc/dpp/dcn401/dcn401_dpp_cm.c
drivers/gpu/drm/amd/display/dc/dwb/dcn30/dcn30_dwb.c
drivers/gpu/drm/amd/display/dc/gpio/dcn42/hw_translate_dcn42.c
drivers/gpu/drm/amd/display/dc/gpio/hw_factory.c
drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.c
drivers/gpu/drm/amd/display/dc/gpio/hw_translate.c
drivers/gpu/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c
drivers/gpu/drm/amd/display/dc/hubbub/dcn35/dcn35_hubbub.c
drivers/gpu/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
drivers/gpu/drm/amd/display/dc/hubbub/dcn42/dcn42_hubbub.c
drivers/gpu/drm/amd/display/dc/hubp/dcn10/dcn10_hubp.c
drivers/gpu/drm/amd/display/dc/hubp/dcn20/dcn20_hubp.c
drivers/gpu/drm/amd/display/dc/hubp/dcn30/dcn30_hubp.c
drivers/gpu/drm/amd/display/dc/hubp/dcn35/dcn35_hubp.c
drivers/gpu/drm/amd/display/dc/hubp/dcn401/dcn401_hubp.c
drivers/gpu/drm/amd/display/dc/hubp/dcn42/dcn42_hubp.c
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
drivers/gpu/drm/amd/display/dc/hwss/dce120/dce120_hwseq.c
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
drivers/gpu/drm/amd/display/dc/hwss/dcn303/dcn303_hwseq.c
drivers/gpu/drm/amd/display/dc/hwss/dcn31/dcn31_hwseq.c
drivers/gpu/drm/amd/display/dc/hwss/dcn314/dcn314_hwseq.c
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
drivers/gpu/drm/amd/display/dc/hwss/dcn42/dcn42_hwseq.c
drivers/gpu/drm/amd/display/dc/irq/dce110/irq_service_dce110.c
drivers/gpu/drm/amd/display/dc/irq/dcn10/irq_service_dcn10.c
drivers/gpu/drm/amd/display/dc/irq/dcn20/irq_service_dcn20.c
drivers/gpu/drm/amd/display/dc/irq/dcn21/irq_service_dcn21.c
drivers/gpu/drm/amd/display/dc/irq/dcn30/irq_service_dcn30.c
drivers/gpu/drm/amd/display/dc/irq/dcn302/irq_service_dcn302.c
drivers/gpu/drm/amd/display/dc/irq/dcn303/irq_service_dcn303.c
drivers/gpu/drm/amd/display/dc/irq/dcn31/irq_service_dcn31.c
drivers/gpu/drm/amd/display/dc/irq/dcn314/irq_service_dcn314.c
drivers/gpu/drm/amd/display/dc/irq/dcn315/irq_service_dcn315.c
drivers/gpu/drm/amd/display/dc/irq/dcn32/irq_service_dcn32.c
drivers/gpu/drm/amd/display/dc/irq/dcn35/irq_service_dcn35.c
drivers/gpu/drm/amd/display/dc/irq/dcn351/irq_service_dcn351.c
drivers/gpu/drm/amd/display/dc/irq/dcn36/irq_service_dcn36.c
drivers/gpu/drm/amd/display/dc/irq/dcn401/irq_service_dcn401.c
drivers/gpu/drm/amd/display/dc/irq/dcn42/irq_service_dcn42.c
drivers/gpu/drm/amd/display/dc/link/accessories/link_dp_cts.c
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dpia.c
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_hpo_dp.c
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_hpo_fixed_vs_pe_retimer_dp.c
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_virtual.c
drivers/gpu/drm/amd/display/dc/link/link_detection.c
drivers/gpu/drm/amd/display/dc/link/link_validation.c
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_training.c
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_training_128b_132b.c
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_training_dpia.c
drivers/gpu/drm/amd/display/dc/link/protocols/link_dpcd.c
drivers/gpu/drm/amd/display/dc/mpc/dcn30/dcn30_mpc.c
drivers/gpu/drm/amd/display/dc/mpc/dcn32/dcn32_mpc.c
drivers/gpu/drm/amd/display/dc/opp/dcn10/dcn10_opp.c
drivers/gpu/drm/amd/display/dc/optc/dcn10/dcn10_optc.c
drivers/gpu/drm/amd/display/dc/optc/dcn20/dcn20_optc.c
drivers/gpu/drm/amd/display/dc/optc/dcn30/dcn30_optc.c
drivers/gpu/drm/amd/display/dc/optc/dcn31/dcn31_optc.c
drivers/gpu/drm/amd/display/dc/optc/dcn314/dcn314_optc.c
drivers/gpu/drm/amd/display/dc/optc/dcn32/dcn32_optc.c
drivers/gpu/drm/amd/display/dc/optc/dcn35/dcn35_optc.c
drivers/gpu/drm/amd/display/dc/resource/dce100/dce100_resource.c
drivers/gpu/drm/amd/display/dc/resource/dce110/dce110_resource.c
drivers/gpu/drm/amd/display/dc/resource/dce112/dce112_resource.c
drivers/gpu/drm/amd/display/dc/resource/dce120/dce120_resource.c
drivers/gpu/drm/amd/display/dc/resource/dce80/dce80_resource.c
drivers/gpu/drm/amd/display/dc/resource/dcn10/dcn10_resource.c
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
drivers/gpu/drm/amd/display/dc/resource/dcn21/dcn21_resource.c
drivers/gpu/drm/amd/display/dc/resource/dcn30/dcn30_resource.c
drivers/gpu/drm/amd/display/dc/resource/dcn301/dcn301_resource.c
drivers/gpu/drm/amd/display/dc/resource/dcn302/dcn302_resource.c
drivers/gpu/drm/amd/display/dc/resource/dcn303/dcn303_resource.c
drivers/gpu/drm/amd/display/dc/resource/dcn31/dcn31_resource.c
drivers/gpu/drm/amd/display/dc/resource/dcn314/dcn314_resource.c
drivers/gpu/drm/amd/display/dc/resource/dcn315/dcn315_resource.c
drivers/gpu/drm/amd/display/dc/resource/dcn316/dcn316_resource.c
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource_helpers.c
drivers/gpu/drm/amd/display/dc/resource/dcn42/dcn42_resource.c
drivers/gpu/drm/amd/display/dc/soc_and_ip_translator/dcn42/dcn42_soc_and_ip_translator.c

index 6073cadde76c7639093b567fc5865de008735666..fa10f85df3db4341e128610c955a76aac64f1f5e 100644 (file)
@@ -503,6 +503,7 @@ struct fixed31_32 dc_fixpt_from_int_dy(unsigned int int_value,
        unsigned int integer_bits,
        unsigned int fractional_bits)
 {
+       (void)integer_bits;
        struct fixed31_32 fixpt_value = dc_fixpt_from_int(int_value);
 
        fixpt_value.value |= (long long)frac_value << (FIXED31_32_BITS_PER_FRACTIONAL_PART - fractional_bits);
index a8b750ff85730a3a0e4970db4e497ed69c6f2db0..e8736c134b8d27bd34e049bf1479bca1b48cc0b0 100644 (file)
@@ -56,6 +56,7 @@ static bool dal_vector_presized_costruct(struct vector *vector,
                                         void *initial_value,
                                         uint32_t struct_size)
 {
+       (void)ctx;
        uint32_t i;
 
        vector->container = NULL;
index 578ed0666438deb84e72ffb5dbdc6e19586bb155..dd362071a6c9e799e7d5e20309a31d28f7cb5942 100644 (file)
@@ -2696,6 +2696,7 @@ static enum bp_result update_slot_layout_info(struct dc_bios *dcb,
                                              struct slot_layout_info *slot_layout_info,
                                              unsigned int record_offset)
 {
+       (void)i;
        unsigned int j;
        struct bios_parser *bp;
        ATOM_BRACKET_LAYOUT_RECORD *record;
index 94fddf22f5a9f77b7be09bd32f6c87b03877f357..a1c08e1cc411dff77ad1caf0e749c89b14678e1b 100644 (file)
@@ -205,6 +205,7 @@ static enum bp_result bios_parser_get_src_obj(struct dc_bios *dcb,
        struct graphics_object_id object_id, uint32_t index,
        struct graphics_object_id *src_object_id)
 {
+       (void)index;
        struct bios_parser *bp = BP_FROM_DCB(dcb);
        unsigned int i;
        enum bp_result bp_result = BP_RESULT_BADINPUT;
@@ -765,6 +766,7 @@ static enum bp_result bios_parser_get_device_tag(
        uint32_t device_tag_index,
        struct connector_device_tag_info *info)
 {
+       (void)device_tag_index;
        struct bios_parser *bp = BP_FROM_DCB(dcb);
        struct atom_display_object_path_v2 *object;
 
@@ -809,6 +811,7 @@ static enum bp_result get_ss_info_v4_1(
        uint32_t index,
        struct spread_spectrum_info *ss_info)
 {
+       (void)index;
        enum bp_result result = BP_RESULT_OK;
        struct atom_display_controller_info_v4_1 *disp_cntl_tbl = NULL;
        struct atom_smu_info_v3_3 *smu_info = NULL;
@@ -897,6 +900,7 @@ static enum bp_result get_ss_info_v4_2(
        uint32_t index,
        struct spread_spectrum_info *ss_info)
 {
+       (void)index;
        enum bp_result result = BP_RESULT_OK;
        struct atom_display_controller_info_v4_2 *disp_cntl_tbl = NULL;
        struct atom_smu_info_v3_1 *smu_info = NULL;
@@ -977,6 +981,7 @@ static enum bp_result get_ss_info_v4_5(
        uint32_t index,
        struct spread_spectrum_info *ss_info)
 {
+       (void)index;
        enum bp_result result = BP_RESULT_OK;
        struct atom_display_controller_info_v4_5 *disp_cntl_tbl = NULL;
 
@@ -1604,6 +1609,8 @@ static uint32_t bios_parser_get_ss_entry_number(
        struct dc_bios *dcb,
        enum as_signal_type signal)
 {
+       (void)dcb;
+       (void)signal;
        /* TODO: DAL2 atomfirmware implementation does not need this.
         * why DAL3 need this?
         */
@@ -3536,6 +3543,8 @@ static uint16_t bios_parser_pack_data_tables(
        struct dc_bios *dcb,
        void *dst)
 {
+       (void)dcb;
+       (void)dst;
        // TODO: There is data bytes alignment issue, disable it for now.
        return 0;
 }
index f2b1720a6a66006e62c82891fa127ff9fea376b2..17ef515c6c69364bb1757e75344adeaaf5880ea1 100644 (file)
@@ -783,6 +783,8 @@ static enum bp_result external_encoder_control_v3(
        struct bios_parser *bp,
        struct bp_external_encoder_control *cntl)
 {
+       (void)bp;
+       (void)cntl;
        /* TODO */
        return BP_RESULT_OK;
 }
index 3099128223df4f0bd2fc919a9b3a3c1dfd8960e1..cec61c9d7263120f73727de0d4387e9ddd576025 100644 (file)
@@ -94,6 +94,7 @@ static uint8_t hpd_sel_to_atom(enum hpd_source_id id)
 
 static uint8_t dig_encoder_sel_to_atom(enum engine_id id)
 {
+       (void)id;
        /* On any ASIC after DCE80, we manually program the DIG_FE
         * selection (see connect_dig_be_to_fe function of the link
         * encoder), so translation should always return 0 (no FE).
index 349f0e5d5856cfdd74ac731f796f530d624dc45c..478465fba2241ebe88df33f9676e2df39bec5d1a 100644 (file)
@@ -93,6 +93,7 @@ static uint8_t hpd_sel_to_atom(enum hpd_source_id id)
 
 static uint8_t dig_encoder_sel_to_atom(enum engine_id id)
 {
+       (void)id;
        /* On any ASIC after DCE80, we manually program the DIG_FE
         * selection (see connect_dig_be_to_fe function of the link
         * encoder), so translation should always return 0 (no FE).
index 1a5fefcde8af4f5198b7f057ff444b3ea093cff3..6b8a87f2c49e6f786d01ae515ebf5ff1002868db 100644 (file)
@@ -91,6 +91,7 @@ static uint8_t hpd_sel_to_atom(enum hpd_source_id id)
 
 static uint8_t dig_encoder_sel_to_atom(enum engine_id id)
 {
+       (void)id;
        /* On any ASIC after DCE80, we manually program the DIG_FE
         * selection (see connect_dig_be_to_fe function of the link
         * encoder), so translation should always return 0 (no FE).
index 2efa962eecfe8c5f925ba7e8077c450a2ed57b3d..880bce368238c542ad86b92161a94434e2b3eef3 100644 (file)
@@ -78,6 +78,7 @@ int clk_mgr_helper_get_active_plane_cnt(
                struct dc *dc,
                struct dc_state *context)
 {
+       (void)dc;
        int i, total_plane_count;
 
        total_plane_count = 0;
index fe0bb383ddc1966d73f919995e082e596dc97f5c..dcec9d0f8c340f91c5116eb82b4bb50e7fae042a 100644 (file)
@@ -521,6 +521,7 @@ void dcn3_clk_mgr_construct(
                struct pp_smu_funcs *pp_smu,
                struct dccg *dccg)
 {
+       (void)pp_smu;
        struct clk_state_registers_and_bypass s = { 0 };
 
        clk_mgr->base.ctx = ctx;
index 44bf48f961832f6b5bdb1d1c61688ab1ec3d418f..89fc482947effd24aef58bbff7363265820048b0 100644 (file)
@@ -329,6 +329,9 @@ bool dcn31_are_clock_states_equal(struct dc_clocks *a,
 static void dcn31_dump_clk_registers(struct clk_state_registers_and_bypass *regs_and_bypass,
                struct clk_mgr *clk_mgr_base, struct clk_log_info *log_info)
 {
+       (void)regs_and_bypass;
+       (void)clk_mgr_base;
+       (void)log_info;
        return;
 }
 
index c69ec7a0e0aeb47d255c4c3d9a8b83be6091a8a9..b08a70a2f571d3171d926737da8462e9ce097d4e 100644 (file)
@@ -395,6 +395,9 @@ bool dcn314_are_clock_states_equal(struct dc_clocks *a,
 static void dcn314_dump_clk_registers(struct clk_state_registers_and_bypass *regs_and_bypass,
                struct clk_mgr *clk_mgr_base, struct clk_log_info *log_info)
 {
+       (void)regs_and_bypass;
+       (void)clk_mgr_base;
+       (void)log_info;
        return;
 }
 
index 8d6949ad700dff84767156d7b16a14fb85fda08c..3a651c1a866d908063a4da62123946bcedc7f2a1 100644 (file)
@@ -247,6 +247,9 @@ static void dcn315_update_clocks(struct clk_mgr *clk_mgr_base,
 static void dcn315_dump_clk_registers(struct clk_state_registers_and_bypass *regs_and_bypass,
                struct clk_mgr *clk_mgr_base, struct clk_log_info *log_info)
 {
+       (void)regs_and_bypass;
+       (void)clk_mgr_base;
+       (void)log_info;
        return;
 }
 
index b858e21ca0707f7083bd011f059ef2dc19f84063..e9d492d8c8d49c542d06e4606028eb3abc5f2700 100644 (file)
@@ -255,6 +255,9 @@ static void dcn316_update_clocks(struct clk_mgr *clk_mgr_base,
 static void dcn316_dump_clk_registers(struct clk_state_registers_and_bypass *regs_and_bypass,
                struct clk_mgr *clk_mgr_base, struct clk_log_info *log_info)
 {
+       (void)regs_and_bypass;
+       (void)clk_mgr_base;
+       (void)log_info;
        return;
 }
 
index 4007ab353ffd2d39fa982be773f81d747a62752a..fda6cade30a8de356d748298debb5feb03d0a53b 100644 (file)
@@ -872,6 +872,7 @@ static uint32_t dcn32_get_vco_frequency_from_reg(struct clk_mgr_internal *clk_mg
 static void dcn32_dump_clk_registers(struct clk_state_registers_and_bypass *regs_and_bypass,
                struct clk_mgr *clk_mgr_base, struct clk_log_info *log_info)
 {
+       (void)log_info;
        struct clk_mgr_internal *clk_mgr = TO_CLK_MGR_INTERNAL(clk_mgr_base);
        uint32_t dprefclk_did = 0;
        uint32_t dcfclk_did = 0;
@@ -1145,6 +1146,7 @@ void dcn32_clk_mgr_construct(
                struct pp_smu_funcs *pp_smu,
                struct dccg *dccg)
 {
+       (void)pp_smu;
        struct clk_log_info log_info = {0};
 
        clk_mgr->base.ctx = ctx;
index 03464f21d11965bf9dc8c8da995a6029d3e8bdb5..82c1a55a2271096529b9ab6b0fbff9d2a91af250 100644 (file)
@@ -333,6 +333,7 @@ bool dcn401_is_dc_mode_present(struct clk_mgr *clk_mgr_base)
 static void dcn401_dump_clk_registers(struct clk_state_registers_and_bypass *regs_and_bypass,
                struct clk_mgr *clk_mgr_base, struct clk_log_info *log_info)
 {
+       (void)log_info;
                struct clk_mgr_internal *clk_mgr = TO_CLK_MGR_INTERNAL(clk_mgr_base);
                uint32_t dprefclk_did = 0;
                uint32_t dcfclk_did = 0;
@@ -525,6 +526,7 @@ static void dcn401_update_clocks_update_dtb_dto(struct clk_mgr_internal *clk_mgr
                        struct dc_state *context,
                        int ref_dtbclk_khz)
 {
+       (void)ref_dtbclk_khz;
        int i;
        struct dccg *dccg = clk_mgr->dccg;
        struct pipe_ctx *otg_master;
@@ -614,6 +616,7 @@ static void dcn401_update_clocks_update_dentist(
                struct clk_mgr_internal *clk_mgr,
                struct dc_state *context)
 {
+       (void)context;
        uint32_t new_disp_divider = 0;
        uint32_t new_dispclk_wdivider = 0;
        uint32_t dentist_dispclk_wdivider_readback = 0;
index 97f182bfc9ca933595d2b3cb6238a290f7956dec..ec888aed207d2ad7056ec9355ad7c1c3d72b12b9 100644 (file)
@@ -158,6 +158,9 @@ void dcn42_update_clocks_update_dtb_dto(struct clk_mgr_internal *clk_mgr,
                struct dc_state *context,
                int ref_dtbclk_khz)
 {
+       (void)clk_mgr;
+       (void)context;
+       (void)ref_dtbclk_khz;
        /* DCN42 does not implement set_dtbclk_dto function, so this is a no-op */
 }
 
@@ -835,6 +838,7 @@ void dcn42_set_low_power_state(struct clk_mgr *clk_mgr_base)
 
 void dcn42_exit_low_power_state(struct clk_mgr *clk_mgr_base)
 {
+       (void)clk_mgr_base;
 
 }
 
@@ -937,6 +941,7 @@ unsigned int dcn42_get_max_clock_khz(struct clk_mgr *clk_mgr_base, enum clk_type
 
 int dcn42_get_dispclk_from_dentist(struct clk_mgr *clk_mgr_base)
 {
+       (void)clk_mgr_base;
        struct clk_mgr_internal *clk_mgr = TO_CLK_MGR_INTERNAL(clk_mgr_base);
        uint32_t dispclk_wdivider;
        int disp_divider;
index 0aec8d01c036508ede8fa31bfb51c930a489892d..419f894c87b03ad1c56d7c8cbd2098c0d4c3fc6c 100644 (file)
@@ -1134,6 +1134,8 @@ static void disable_all_writeback_pipes_for_stream(
                struct dc_stream_state *stream,
                struct dc_state *context)
 {
+       (void)dc;
+       (void)context;
        int i;
 
        for (i = 0; i < stream->num_wb_info; i++)
@@ -1145,6 +1147,8 @@ static void apply_ctx_interdependent_lock(struct dc *dc,
                                          struct dc_stream_state *stream,
                                          bool lock)
 {
+       (void)dc;
+       (void)context;
        int i;
 
        /* Checks if interdependent update function pointer is NULL or not, takes care of DCE110 case */
@@ -3007,6 +3011,7 @@ static struct surface_update_descriptor det_surface_update(
  */
 static void force_immediate_gsl_plane_flip(struct dc *dc, struct dc_surface_update *updates, int surface_count)
 {
+       (void)dc;
        bool has_flip_immediate_plane = false;
        int i;
 
@@ -3285,6 +3290,7 @@ static void copy_stream_update_to_stream(struct dc *dc,
                                         struct dc_stream_state *stream,
                                         struct dc_stream_update *update)
 {
+       (void)context;
        struct dc_context *dc_ctx = dc->ctx;
 
        if (update == NULL || stream == NULL)
@@ -3889,6 +3895,7 @@ static void commit_planes_do_stream_update(struct dc *dc,
 
 static bool dc_dmub_should_send_dirty_rect_cmd(struct dc *dc, struct dc_stream_state *stream)
 {
+       (void)dc;
        if ((stream->link->psr_settings.psr_version == DC_PSR_VERSION_SU_1
                        || stream->link->psr_settings.psr_version == DC_PSR_VERSION_1)
                        && stream->ctx->dce_version >= DCN_VERSION_3_1)
@@ -4689,6 +4696,7 @@ static bool could_mpcc_tree_change_for_active_pipes(struct dc *dc,
                int surface_count,
                bool *is_plane_addition)
 {
+       (void)srf_updates;
 
        struct dc_stream_status *cur_stream_status = stream_get_status(dc->current_state, stream);
        bool force_minimal_pipe_splitting = false;
@@ -5543,6 +5551,7 @@ void dc_commit_updates_for_stream(struct dc *dc,
                struct dc_stream_update *stream_update,
                struct dc_state *state)
 {
+       (void)state;
        bool ret = false;
 
        dc_exit_ips_for_hw_access(dc);
@@ -5852,6 +5861,7 @@ void dc_lock_memory_clock_frequency(struct dc *dc)
 
 static void blank_and_force_memclk(struct dc *dc, bool apply, unsigned int memclk_mhz)
 {
+       (void)apply;
        struct dc_state *context = dc->current_state;
        struct hubp *hubp;
        struct pipe_ctx *pipe;
@@ -6526,6 +6536,7 @@ void dc_query_current_properties(struct dc *dc, struct dc_current_properties *pr
 void dc_set_edp_power(const struct dc *dc, struct dc_link *edp_link,
                                 bool powerOn)
 {
+       (void)dc;
        if (edp_link->connector_signal != SIGNAL_TYPE_EDP)
                return;
 
@@ -6652,6 +6663,7 @@ void dc_get_underflow_debug_data_for_otg(struct dc *dc, int primary_otg_inst,
 void dc_get_power_feature_status(struct dc *dc, int primary_otg_inst,
                                struct power_features *out_data)
 {
+       (void)primary_otg_inst;
        out_data->uclk_p_state = dc->current_state->clk_mgr->clks.p_state_change_support;
        out_data->fams = dc->current_state->bw_ctx.bw.dcn.clk.fw_based_mclk_switching;
 }
index 5b3695e72e196d451ae0a185fb0d5f4e4667c350..db86e346307cb8a3455f169ce02d035ad3a459ca 100644 (file)
@@ -249,6 +249,7 @@ void color_space_to_black_color(
        enum dc_color_space colorspace,
        struct tg_color *black_color)
 {
+       (void)dc;
        switch (colorspace) {
        case COLOR_SPACE_YCBCR601:
        case COLOR_SPACE_YCBCR709:
index e95d5b269738c18df19238dea7cbf4d070e48523..66597a1f5b7878584b9f17f07cf26af7ccd686ff 100644 (file)
@@ -1748,6 +1748,7 @@ enum dc_status resource_build_scaling_params_for_context(
        const struct dc  *dc,
        struct dc_state *context)
 {
+       (void)dc;
        int i;
 
        for (i = 0; i < MAX_PIPES; i++) {
@@ -1825,6 +1826,7 @@ int resource_find_free_pipe_used_as_sec_opp_head_by_cur_otg_master(
                struct resource_context *new_res_ctx,
                const struct pipe_ctx *cur_otg_master)
 {
+       (void)cur_res_ctx;
        const struct pipe_ctx *cur_sec_opp_head = cur_otg_master->next_odm_pipe;
        struct pipe_ctx *new_pipe;
        int free_pipe_idx = FREE_PIPE_INDEX_NOT_FOUND;
@@ -1846,6 +1848,7 @@ int resource_find_free_pipe_used_in_cur_mpc_blending_tree(
                struct resource_context *new_res_ctx,
                const struct pipe_ctx *cur_opp_head)
 {
+       (void)cur_res_ctx;
        const struct pipe_ctx *cur_sec_dpp = cur_opp_head->bottom_pipe;
        struct pipe_ctx *new_pipe;
        int free_pipe_idx = FREE_PIPE_INDEX_NOT_FOUND;
@@ -2941,6 +2944,7 @@ enum dc_status resource_add_otg_master_for_stream_output(struct dc_state *new_ct
                const struct resource_pool *pool,
                struct dc_stream_state *stream)
 {
+       (void)pool;
        struct dc *dc = stream->ctx->dc;
 
        return dc->res_pool->funcs->add_stream_to_ctx(dc, new_ctx, stream);
@@ -3023,6 +3027,7 @@ static bool add_plane_to_opp_head_pipes(struct pipe_ctx *otg_master_pipe,
                struct dc_plane_state *plane_state,
                struct dc_state *context)
 {
+       (void)context;
        struct pipe_ctx *opp_head_pipe = otg_master_pipe;
 
        while (opp_head_pipe) {
@@ -3615,6 +3620,7 @@ static struct hpo_dp_stream_encoder *find_first_free_match_hpo_dp_stream_enc_for
                const struct resource_pool *pool,
                struct dc_stream_state *stream)
 {
+       (void)stream;
        int i;
 
        for (i = 0; i < pool->hpo_dp_stream_enc_count; i++) {
@@ -3634,6 +3640,7 @@ static struct audio *find_first_free_audio(
                enum engine_id id,
                enum dce_version dc_version)
 {
+       (void)dc_version;
        int i, available_audio_count;
 
        if (id == ENGINE_ID_UNKNOWN)
index 13d334c2cb6b0fb9da6b01f504fa48fd0b634ef0..40f7aa732258126404dbd82f06ddd4ecccdf2671 100644 (file)
@@ -409,6 +409,7 @@ enum dc_status dc_state_add_stream(
                struct dc_state *state,
                struct dc_stream_state *stream)
 {
+       (void)dc;
        enum dc_status res;
 
        DC_LOGGER_INIT(dc->ctx->logger);
@@ -784,6 +785,7 @@ struct dc_plane_state *dc_state_create_phantom_plane(const struct dc *dc,
                struct dc_state *state,
                struct dc_plane_state *main_plane)
 {
+       (void)main_plane;
        struct dc_plane_state *phantom_plane = dc_create_plane_state(dc);
 
        DC_LOGGER_INIT(dc->ctx->logger);
index 5f12dcca7f71130af10a4b88832bd3e770c1893c..a59b176d8e552e6dae1a33a3f0605e1b881b8dff 100644 (file)
@@ -57,6 +57,7 @@ void dc_plane_construct(struct dc_context *ctx, struct dc_plane_state *plane_sta
 
 void dc_plane_destruct(struct dc_plane_state *plane_state)
 {
+       (void)plane_state;
        // no more pointers to free within dc_plane_state
 }
 
index 4256ba3e57193a6fa96a7704478785397b032166..79c8b4cab053bfd57df476ee9c65cb0ac2328545 100644 (file)
@@ -1085,6 +1085,7 @@ static void dc_build_cursor_attribute_update_payload1(
                struct dmub_cursor_attributes_cfg *pl_A, const uint8_t p_idx,
                const struct hubp *hubp, const struct dpp *dpp)
 {
+       (void)p_idx;
        /* Hubp */
        pl_A->aHubp.SURFACE_ADDR_HIGH = hubp->att.SURFACE_ADDR_HIGH;
        pl_A->aHubp.SURFACE_ADDR = hubp->att.SURFACE_ADDR;
index 04b8b798dfff66ebd868bb57743fff3170e7c853..77299767096ff8830dab36f78808b33485251636 100644 (file)
@@ -108,6 +108,7 @@ static void set_reg_field_values(struct dc_reg_value_masks *field_value_mask,
                uint8_t shift1, uint32_t mask1, uint32_t field_value1,
                va_list ap)
 {
+       (void)addr;
        uint32_t shift, mask, field_value;
        int i = 1;
 
index 7f58acfe1177d54f68630faa879c4e0a5c3251bb..a72bf413fad6b66715f695f72b047b055805ceaf 100644 (file)
@@ -165,6 +165,7 @@ void dccg31_set_dpstreamclk(
                int otg_inst,
                int dp_hpo_inst)
 {
+       (void)dp_hpo_inst;
        if (src == REFCLK)
                dccg31_disable_dpstreamclk(dccg, otg_inst);
        else
@@ -644,6 +645,7 @@ void dccg31_get_dccg_ref_freq(struct dccg *dccg,
                unsigned int xtalin_freq_inKhz,
                unsigned int *dccg_ref_freq_inKhz)
 {
+       (void)dccg;
        /*
         * Assume refclk is sourced from xtalin
         * expect 24MHz
index e817cd7c2b6a981fe12b4dab5691c8d8fcdc6e01..18b9c5ceed4373d19f4d2bad0b1cdb447bc1367b 100644 (file)
@@ -265,6 +265,7 @@ static void dccg32_get_dccg_ref_freq(struct dccg *dccg,
                unsigned int xtalin_freq_inKhz,
                unsigned int *dccg_ref_freq_inKhz)
 {
+       (void)dccg;
        /*
         * Assume refclk is sourced from xtalin
         * expect 100MHz
index 0b7908fbb1153f08190f0b024a5230fa6be05d3e..efac64165ccd6f549e2cb410a603242a6e5fb1b7 100644 (file)
@@ -558,6 +558,7 @@ static void dccg35_set_symclk32_se_src_new(
 static int
 dccg35_is_symclk32_se_src_functional_le_new(struct dccg *dccg, int symclk_32_se_inst, int symclk_32_le_inst)
 {
+       (void)symclk_32_se_inst;
        uint32_t en;
        uint32_t src_sel;
 
@@ -2373,6 +2374,7 @@ static void dccg35_disable_symclk_se_cb(
                        uint32_t stream_enc_inst,
                        uint32_t link_enc_inst)
 {
+       (void)link_enc_inst;
        dccg35_disable_symclk_fe_new(dccg, stream_enc_inst);
 
        /* DMU PHY sequence switches SYMCLK_BE (link_enc_inst) to ref clock once PHY is turned off */
index b6d2ead93345b18cdba6866d6a7d473ef37869ec..97605a416031bf6b343f373edd9d83f3780ef739 100644 (file)
@@ -161,6 +161,7 @@ void dccg401_set_pixel_rate_div(
                enum pixel_rate_div tmds_div,
                enum pixel_rate_div unused)
 {
+       (void)unused;
        struct dcn_dccg *dccg_dcn = TO_DCN_DCCG(dccg);
        uint32_t cur_tmds_div = PIXEL_RATE_DIV_NA;
        uint32_t dp_dto_int;
@@ -353,6 +354,7 @@ void dccg401_get_dccg_ref_freq(struct dccg *dccg,
                unsigned int xtalin_freq_inKhz,
                unsigned int *dccg_ref_freq_inKhz)
 {
+       (void)dccg;
        /*
         * Assume refclk is sourced from xtalin
         * expect 100MHz
@@ -721,6 +723,7 @@ void dccg401_init(struct dccg *dccg)
 
 void dccg401_set_dto_dscclk(struct dccg *dccg, uint32_t inst, uint32_t num_slices_h)
 {
+       (void)num_slices_h;
        struct dcn_dccg *dccg_dcn = TO_DCN_DCCG(dccg);
 
        switch (inst) {
@@ -838,6 +841,7 @@ void dccg401_enable_symclk_se(struct dccg *dccg, uint32_t stream_enc_inst, uint3
 
 void dccg401_disable_symclk_se(struct dccg *dccg, uint32_t stream_enc_inst, uint32_t link_enc_inst)
 {
+       (void)link_enc_inst;
        struct dcn_dccg *dccg_dcn = TO_DCN_DCCG(dccg);
 
        switch (stream_enc_inst) {
index 19dfc3fe5c3a4e28d661581740b7fdffe47506d0..b813310763e510ca6054b535ee9da258f52a478a 100644 (file)
@@ -186,6 +186,7 @@ void dccg42_set_pixel_rate_div(
                enum pixel_rate_div tmds_div,
                enum pixel_rate_div unused)
 {
+       (void)unused;
        struct dcn_dccg *dccg_dcn = TO_DCN_DCCG(dccg);
        uint32_t cur_tmds_div = PIXEL_RATE_DIV_NA;
        uint32_t dp_dto_int;
index 41169b42534c04092421319eae6b95fdc513420e..469b4b8f88a30eb032d5170ea6c7e53267934690 100644 (file)
@@ -57,6 +57,7 @@
 
 static bool dce_abm_set_pipe(struct abm *abm, uint32_t controller_id, uint32_t panel_inst)
 {
+       (void)panel_inst;
        struct dce_abm *abm_dce = TO_DCE_ABM(abm);
        uint32_t rampingBoundary = 0xFFFF;
 
index 0807d20985c7d6606950cd5853ba2df6fa92589b..77df61bfaf27ecdc5619c7fd8296076e3c2d289e 100644 (file)
@@ -350,6 +350,7 @@ static uint32_t calculate_required_audio_bw_in_symbols(
        uint32_t av_stream_map_lane_count,
        uint32_t audio_sdp_overhead)
 {
+       (void)channel_count;
        /* DP spec recommends between 1.05 to 1.1 safety margin to prevent sample under-run */
        struct fixed31_32 audio_sdp_margin = dc_fixpt_from_fraction(110, 100);
        struct fixed31_32 horizontal_line_freq_khz = dc_fixpt_from_fraction(
@@ -1027,6 +1028,7 @@ static void get_azalia_clock_info_hdmi(
        uint32_t actual_pixel_clock_100Hz,
        struct azalia_clock_info *azalia_clock_info)
 {
+       (void)crtc_pixel_clock_100hz;
        /* audio_dto_phase= 24 * 10,000;
         *   24MHz in [100Hz] units */
        azalia_clock_info->audio_dto_phase =
@@ -1043,6 +1045,7 @@ static void get_azalia_clock_info_dp(
        const struct audio_pll_info *pll_info,
        struct azalia_clock_info *azalia_clock_info)
 {
+       (void)requested_pixel_clock_100Hz;
        /* Reported dpDtoSourceClockInkhz value for
         * DCE8 already adjusted for SS, do not need any
         * adjustment here anymore
index 0791b9144b004fde06d3a8bd3c3645c8afe96e67..34e54fdb9d1377f320ee21ea78e717d30dc65f44 100644 (file)
@@ -539,6 +539,7 @@ static void dce112_get_pix_clk_dividers_helper (
                struct pll_settings *pll_settings,
                struct pixel_clk_params *pix_clk_params)
 {
+       (void)clk_src;
        uint32_t actual_pixel_clock_100hz;
 
        actual_pixel_clock_100hz = pix_clk_params->requested_pix_clk_100hz;
@@ -847,6 +848,7 @@ static bool dce110_program_pix_clk(
                enum dp_link_encoding encoding,
                struct pll_settings *pll_settings)
 {
+       (void)encoding;
        struct dce110_clk_src *clk_src = TO_DCE110_CLK_SRC(clock_source);
        struct bp_pixel_clock_parameters bp_pc_params = {0};
 
@@ -921,6 +923,7 @@ static bool dce112_program_pix_clk(
                enum dp_link_encoding encoding,
                struct pll_settings *pll_settings)
 {
+       (void)encoding;
        struct dce110_clk_src *clk_src = TO_DCE110_CLK_SRC(clock_source);
        struct bp_pixel_clock_parameters bp_pc_params = {0};
 
@@ -1070,6 +1073,7 @@ static bool dcn401_program_pix_clk(
                enum dp_link_encoding encoding,
                struct pll_settings *pll_settings)
 {
+       (void)encoding;
        struct dce110_clk_src *clk_src = TO_DCE110_CLK_SRC(clock_source);
        unsigned int inst = pix_clk_params->controller_id - CONTROLLER_ID_D0;
        const struct pixel_rate_range_table_entry *e =
index e871b72e43ef621b06bdb8aa9fc2c11f927ca0f5..25ebd8a52ae419263826f00c8d046012eb598abb 100644 (file)
@@ -71,6 +71,7 @@ static const uint32_t abm_gain_stepsize = 0x0060;
 
 static bool dce_dmcu_init(struct dmcu *dmcu)
 {
+       (void)dmcu;
        // Do nothing
        return true;
 }
index f5cd2392fc5f772ad3295058be102615c86031ee..f5261e8d76785cef3eec54979db4c06f34c0521e 100644 (file)
@@ -31,6 +31,7 @@ bool dce_i2c_oem_device_present(
        size_t slave_address
 )
 {
+       (void)pool;
        struct dc *dc = ddc->ctx->dc;
        struct dc_bios *dcb = dc->ctx->dc_bios;
        struct graphics_object_id id = {0};
index 365dd2e37aea60cb8e5967f0079a3f00cc7f2365..fe239a96121e2cb14adc41cfd8eeb1b916be2af1 100644 (file)
@@ -69,6 +69,7 @@ static enum i2c_channel_operation_result get_channel_status(
        struct dce_i2c_hw *dce_i2c_hw,
        uint8_t *returned_bytes)
 {
+       (void)returned_bytes;
        uint32_t i2c_sw_status = 0;
        uint32_t value =
                REG_GET(DC_I2C_SW_STATUS, DC_I2C_SW_STATUS, &i2c_sw_status);
@@ -631,6 +632,7 @@ bool dce_i2c_submit_command_hw(
        struct i2c_command *cmd,
        struct dce_i2c_hw *dce_i2c_hw)
 {
+       (void)ddc;
        uint8_t index_of_payload = 0;
        bool result;
 
index 2d73b94c515cafbe18aa0eff65ba467f3510df3e..52e05b9185f1fa519a0089e5e41de49fbb34c9fe 100644 (file)
@@ -67,6 +67,7 @@ static void release_engine_dce_sw(
        struct resource_pool *pool,
        struct dce_i2c_sw *dce_i2c_sw)
 {
+       (void)pool;
        dal_ddc_close(dce_i2c_sw->ddc);
        dce_i2c_sw->ddc = NULL;
 }
@@ -76,6 +77,7 @@ static bool wait_for_scl_high_sw(
        struct ddc *ddc,
        uint16_t clock_delay_div_4)
 {
+       (void)ctx;
        uint32_t scl_retry = 0;
        uint32_t scl_retry_max = I2C_SW_TIMEOUT_DELAY / clock_delay_div_4;
 
@@ -469,6 +471,7 @@ bool dce_i2c_submit_command_sw(
        struct i2c_command *cmd,
        struct dce_i2c_sw *dce_i2c_sw)
 {
+       (void)ddc;
        uint8_t index_of_payload = 0;
        bool result;
 
index 34bff9aef66cf24ecd5ee30c792411d08e247a53..ee55ec21d2706f21e0ddc5327f29d19b1b50e97e 100644 (file)
@@ -43,6 +43,7 @@ static void dce_ipp_cursor_set_position(
        const struct dc_cursor_position *position,
        const struct dc_cursor_mi_param *param)
 {
+       (void)param;
        struct dce_ipp *ipp_dce = TO_DCE_IPP(ipp);
 
        /* lock cursor registers */
index a368802ba51dbcd671b0c8a6d51fff89cf4ecb74..5f40ae9e3120f49008385d660e88493924ef6141 100644 (file)
@@ -847,6 +847,7 @@ bool dce110_link_encoder_validate_dp_output(
        const struct dce110_link_encoder *enc110,
        const struct dc_crtc_timing *crtc_timing)
 {
+       (void)enc110;
        if (crtc_timing->pixel_encoding == PIXEL_ENCODING_YCBCR420)
                return false;
 
index 1c2009e38aa125f67c0b72c18d7236abb9640fda..168c2d0a5eaa75a67b27a7abec71665ca49409f4 100644 (file)
@@ -317,6 +317,7 @@ static void dce_mi_program_display_marks(
        struct dce_watermarks urgent,
        uint32_t total_dest_line_time_ns)
 {
+       (void)stutter_enter;
        struct dce_mem_input *dce_mi = TO_DCE_MEM_INPUT(mi);
        uint32_t stutter_en = mi->ctx->dc->debug.disable_stutter ? 0 : 1;
 
@@ -370,6 +371,7 @@ static void dce112_mi_program_display_marks(struct mem_input *mi,
        struct dce_watermarks urgent,
        uint32_t total_dest_line_time_ns)
 {
+       (void)stutter_entry;
        struct dce_mem_input *dce_mi = TO_DCE_MEM_INPUT(mi);
        uint32_t stutter_en = mi->ctx->dc->debug.disable_stutter ? 0 : 1;
 
@@ -656,6 +658,8 @@ static void dce_mi_program_surface_config(
        struct dc_plane_dcc_param *dcc,
        bool horizontal_mirror)
 {
+       (void)dcc;
+       (void)horizontal_mirror;
        struct dce_mem_input *dce_mi = TO_DCE_MEM_INPUT(mi);
        REG_UPDATE(GRPH_ENABLE, GRPH_ENABLE, 1);
 
index f342da5a5e50f2a7819ae684d9f9444842e6602b..61d478cfca6d8a89821407c41f64be1d2e8b50e6 100644 (file)
@@ -600,6 +600,7 @@ void dce110_opp_set_dyn_expansion(
        enum dc_color_depth color_dpth,
        enum signal_type signal)
 {
+       (void)color_sp;
        struct dce110_opp *opp110 = TO_DCE110_OPP(opp);
 
        REG_UPDATE_2(FMT_DYNAMIC_EXP_CNTL,
index 87c19f17c799fc4dd323c087d7d1adfffb1e070c..ed407e779c12720ac53236fc2d57ad9ddb2d42a9 100644 (file)
@@ -271,6 +271,8 @@ static void dce110_stream_encoder_dp_set_stream_attribute(
        bool use_vsc_sdp_for_colorimetry,
        uint32_t enable_sdp_splitting)
 {
+       (void)use_vsc_sdp_for_colorimetry;
+       (void)enable_sdp_splitting;
        uint32_t h_active_start;
        uint32_t v_active_start;
        uint32_t misc0 = 0;
@@ -901,6 +903,7 @@ static void dce110_stream_encoder_dp_blank(
        struct dc_link *link,
        struct stream_encoder *enc)
 {
+       (void)link;
        struct dce110_stream_encoder *enc110 = DCE110STRENC_FROM_STRENC(enc);
        uint32_t  reg1 = 0;
        uint32_t max_retries = DP_BLANK_MAX_RETRY * 10;
@@ -951,6 +954,7 @@ static void dce110_stream_encoder_dp_unblank(
        struct stream_encoder *enc,
        const struct encoder_unblank_param *param)
 {
+       (void)link;
        struct dce110_stream_encoder *enc110 = DCE110STRENC_FROM_STRENC(enc);
 
        if (param->link_settings.link_rate != LINK_RATE_UNKNOWN) {
index 1ab5ae9b5ea51552d2fe3dc682f88170a3bc03ad..c1448ae473661c5ba60164f06e7ebaacbc80815b 100644 (file)
@@ -282,6 +282,7 @@ static void calculate_inits(
        const struct scaler_data *data,
        struct scl_ratios_inits *inits)
 {
+       (void)xfm_dce;
        struct fixed31_32 h_init;
        struct fixed31_32 v_init;
 
@@ -1240,6 +1241,7 @@ static void program_color_matrix(
        const struct out_csc_color_matrix *tbl_entry,
        enum grph_color_adjust_option options)
 {
+       (void)options;
        {
                REG_SET_2(OUTPUT_CSC_C11_C12, 0,
                        OUTPUT_CSC_C11, tbl_entry->regval[0],
index 967ffdfd60772cd87033ee7383b271e584057108..93550c5e4d02bfac9c644d3285ef6f1c62f9501f 100644 (file)
@@ -173,6 +173,7 @@ static bool dmub_abm_set_backlight_level_pwm_ex(struct abm *abm,
                unsigned int controller_id,
                unsigned int panel_inst)
 {
+       (void)controller_id;
        bool ret = false;
        unsigned int feature_support;
 
index a641ae04450c4ac4c4a292995f7fc0b3e4017d11..806b5709c9e7ff6ddbf0d655e51fc5613a9eaa52 100644 (file)
@@ -188,6 +188,7 @@ void dmub_abm_init_config(struct abm *abm,
 
 bool dmub_abm_set_pause(struct abm *abm, bool pause, unsigned int panel_inst, unsigned int stream_inst)
 {
+       (void)stream_inst;
        union dmub_rb_cmd cmd;
        struct dc_context *dc = abm->ctx;
        uint8_t panel_mask = 0x01 << panel_inst;
index 28a218149b8b4cc58416546561eca7b8e86c2a59..0af1b8e0a49ec68a17ba9bf9a805e44537256e68 100644 (file)
@@ -216,6 +216,7 @@ static void dmub_replay_set_coasting_vtotal(struct dmub_replay *dmub,
                uint8_t panel_inst,
                uint16_t frame_skip_number)
 {
+       (void)panel_inst;
        union dmub_rb_cmd cmd;
        struct dc_context *dc = dmub->ctx;
        struct dmub_rb_cmd_replay_set_coasting_vtotal *pCmd = NULL;
index 2c43c24226385d4cbd6911d75f69192c027811bb..b265a72eeb7031995a9fdb18d9d91170bf93f269 100644 (file)
@@ -40,6 +40,7 @@ static void set_flip_control(
        struct dce_mem_input *mem_input110,
        bool immediate)
 {
+       (void)immediate;
        uint32_t value = 0;
 
        value = dm_read_reg(
@@ -165,6 +166,7 @@ static void program_tiling(
        const struct dc_tiling_info *info,
        const enum surface_pixel_format pixel_format)
 {
+       (void)pixel_format;
        uint32_t value = 0;
 
        set_reg_field_value(value, info->gfx8.num_banks,
@@ -642,6 +644,8 @@ static void dce_mem_input_v_program_surface_config(
        struct dc_plane_dcc_param *dcc,
        bool horizotal_mirror)
 {
+       (void)dcc;
+       (void)horizotal_mirror;
        struct dce_mem_input *mem_input110 = TO_DCE_MEM_INPUT(mem_input);
 
        enable(mem_input110);
@@ -927,6 +931,7 @@ static void dce_mem_input_v_program_display_marks(
        struct dce_watermarks urgent,
        uint32_t total_dest_line_time_ns)
 {
+       (void)stutter_enter;
        program_urgency_watermark_l(
                mem_input->ctx,
                urgent,
@@ -970,6 +975,9 @@ static void dce110_allocate_mem_input_v(
        uint32_t pix_clk_khz,/* for current stream */
        uint32_t total_stream_num)
 {
+       (void)h_total;
+       (void)v_total;
+       (void)total_stream_num;
        uint32_t addr;
        uint32_t value;
        uint32_t pix_dur;
@@ -1009,6 +1017,8 @@ static void dce110_free_mem_input_v(
        struct mem_input *mi,
        uint32_t total_stream_num)
 {
+       (void)mi;
+       (void)total_stream_num;
 }
 
 static const struct mem_input_funcs dce110_mem_input_v_funcs = {
index e096d2b95ef9d49233333e7cff52ccab43de4162..cf63fac8283253686a949d150434e8bcfba22b0f 100644 (file)
@@ -110,6 +110,7 @@ static void program_color_matrix_v(
        const struct out_csc_color_matrix *tbl_entry,
        enum grph_color_adjust_option options)
 {
+       (void)options;
        struct dc_context *ctx = xfm_dce->base.ctx;
        uint32_t cntl_value = dm_read_reg(ctx, mmCOL_MAN_OUTPUT_CSC_CONTROL);
        bool use_set_a = (get_reg_field_value(cntl_value,
index 9b65b77e88232c976d41caa6c1e628c657d1831b..a4e76db46c9c96e0a7c9c1ef3afb599a199a3243 100644 (file)
@@ -551,5 +551,7 @@ void dce110_opp_set_regamma_mode_v(
        struct transform *xfm,
        enum opp_regamma mode)
 {
+       (void)xfm;
+       (void)mode;
        // TODO: need to implement the function
 }
index 61b0807693fb08d85d6396d0529afbf74d66fe65..b015b27cd1c64b0c3794397390ecfdcffcacee71 100644 (file)
@@ -66,6 +66,7 @@ static void dce110_timing_generator_apply_front_porch_workaround(
        struct timing_generator *tg,
        struct dc_crtc_timing *timing)
 {
+       (void)tg;
        if (timing->flags.INTERLACE == 1) {
                if (timing->v_front_porch < 2)
                        timing->v_front_porch = 2;
@@ -1115,6 +1116,7 @@ bool dce110_timing_generator_validate_timing(
        const struct dc_crtc_timing *timing,
        enum signal_type signal)
 {
+       (void)signal;
        uint32_t h_blank;
        uint32_t h_back_porch, hsync_offset, h_sync_start;
 
@@ -1490,6 +1492,7 @@ void dce110_timing_generator_enable_reset_trigger(
        struct timing_generator *tg,
        int source_tg_inst)
 {
+       (void)source_tg_inst;
        uint32_t value;
        uint32_t rising_edge = 0;
        uint32_t falling_edge = 0;
@@ -1959,6 +1962,12 @@ void dce110_tg_program_timing(struct timing_generator *tg,
        const enum signal_type signal,
        bool use_vbios)
 {
+       (void)vready_offset;
+       (void)vstartup_start;
+       (void)vupdate_offset;
+       (void)vupdate_width;
+       (void)pstate_keepout;
+       (void)signal;
        if (use_vbios)
                dce110_timing_generator_program_timing_generator(tg, timing);
        else
index 9837dec837ff27a9fcce74206edaa01233a6ab72..ba22c93acd81f81753f30a69aedde8232766b699 100644 (file)
@@ -442,6 +442,12 @@ static void dce110_timing_generator_v_program_timing(struct timing_generator *tg
        const enum signal_type signal,
        bool use_vbios)
 {
+       (void)vready_offset;
+       (void)vstartup_start;
+       (void)vupdate_offset;
+       (void)vupdate_width;
+       (void)pstate_keepout;
+       (void)signal;
        if (use_vbios)
                dce110_timing_generator_program_timing_generator(tg, timing);
        else
@@ -621,6 +627,7 @@ static void dce110_timing_generator_v_setup_global_swap_lock(
        struct timing_generator *tg,
        const struct dcp_gsl_params *gsl_params)
 {
+       (void)gsl_params;
        DC_LOG_ERROR("Timing Sync not supported on underlay pipe\n");
        return;
 }
@@ -629,6 +636,7 @@ static void dce110_timing_generator_v_enable_reset_trigger(
        struct timing_generator *tg,
        int source_tg_inst)
 {
+       (void)source_tg_inst;
        DC_LOG_ERROR("Timing Sync not supported on underlay pipe\n");
        return;
 }
@@ -650,6 +658,7 @@ static void dce110_timing_generator_v_tear_down_global_swap_lock(
 static void dce110_timing_generator_v_disable_vga(
        struct timing_generator *tg)
 {
+       (void)tg;
        return;
 }
 
index 28d3b2663cd3faf8e40eca0aa1bb8c01565ce107..6be18665b1f73b10885d1dc849a75d92974cc240 100644 (file)
@@ -371,6 +371,9 @@ static void calculate_inits(
        struct rect *luma_viewport,
        struct rect *chroma_viewport)
 {
+       (void)xfm_dce;
+       (void)luma_viewport;
+       (void)chroma_viewport;
        inits->h_int_scale_ratio_luma =
                dc_fixpt_u2d19(data->ratios.horz) << 5;
        inits->v_int_scale_ratio_luma =
@@ -619,6 +622,8 @@ static void dce110_xfmv_set_gamut_remap(
        struct transform *xfm,
        const struct xfm_grph_csc_adjustment *adjust)
 {
+       (void)xfm;
+       (void)adjust;
        /* DO NOTHING*/
 }
 
@@ -627,6 +632,7 @@ static void dce110_xfmv_set_pixel_storage_depth(
        enum lb_pixel_depth depth,
        const struct bit_depth_reduction_params *bit_depth_params)
 {
+       (void)bit_depth_params;
        struct dce_transform *xfm_dce = TO_DCE_TRANSFORM(xfm);
        int pixel_depth = 0;
        int expan_mode = 0;
index 187f45a7f5e1445331d21a2508cc6266056fb945..fe97d3946cab02ab32cc84f62e136f9afa3e8f71 100644 (file)
@@ -284,6 +284,7 @@ static uint32_t align_to_chunks_number_per_line(
        struct dce112_compressor *cp110,
        uint32_t pixels)
 {
+       (void)cp110;
        return 256 * ((pixels + 255) / 256);
 }
 
index 31c4f44ceaac31b4f2c5497f6e0d55a077794d17..70410ef0c291b0527ac279f71e555cc25b364f59 100644 (file)
@@ -304,6 +304,7 @@ static void dce120_timing_generator_enable_reset_trigger(
        struct timing_generator *tg,
        int source)
 {
+       (void)source;
        enum trigger_source_select trig_src_select = TRIGGER_SOURCE_SELECT_LOGIC_ZERO;
        struct dce110_timing_generator *tg110 = DCE110TG_FROM_TG(tg);
        uint32_t rising_edge = 0;
@@ -701,6 +702,12 @@ static void dce120_tg_program_timing(struct timing_generator *tg,
        const enum signal_type signal,
        bool use_vbios)
 {
+       (void)vready_offset;
+       (void)vstartup_start;
+       (void)vupdate_offset;
+       (void)vupdate_width;
+       (void)pstate_keepout;
+       (void)signal;
        if (use_vbios)
                dce110_timing_generator_program_timing_generator(tg, timing);
        else
index 88e7a1fc9a30e8bf7c9f60d041fe19ebe31c56d9..53c03364f5d48d87745a0926b9c18ffabf97a2a1 100644 (file)
@@ -115,6 +115,12 @@ static void dce80_timing_generator_program_timing(struct timing_generator *tg,
        const enum signal_type signal,
        bool use_vbios)
 {
+       (void)vready_offset;
+       (void)vstartup_start;
+       (void)vupdate_offset;
+       (void)vupdate_width;
+       (void)pstate_keepout;
+       (void)signal;
        if (!use_vbios)
                program_pix_dur(tg, timing->pix_clk_100hz);
 
index 365a3215f6d52fd6ad234a1845dd1029202f2569..e9efbb49586e136f5ec8b6ad983d8044cc01f9f5 100644 (file)
@@ -44,6 +44,7 @@
 
 static bool dwb1_get_caps(struct dwbc *dwbc, struct dwb_caps *caps)
 {
+       (void)dwbc;
        if (caps) {
                caps->adapter_id = 0;   /* we only support 1 adapter currently */
                caps->hw_version = DCN_VERSION_1_0;
@@ -63,6 +64,7 @@ static bool dwb1_get_caps(struct dwbc *dwbc, struct dwb_caps *caps)
 
 static bool dwb1_enable(struct dwbc *dwbc, struct dc_dwb_params *params)
 {
+       (void)params;
        struct dcn10_dwbc *dwbc10 = TO_DCN10_DWBC(dwbc);
 
        /* disable first. */
index 05aac3e444b4dc956a8c51ca67286fc16333968c..4c7e4fe3c68059cb7a71240e5e0d84f3ed7ddd47 100644 (file)
@@ -77,6 +77,7 @@ static void apg31_se_audio_setup(
        unsigned int az_inst,
        struct audio_info *audio_info)
 {
+       (void)az_inst;
        struct dcn31_apg *apg31 = DCN31_APG_FROM_APG(apg);
 
        ASSERT(audio_info);
index d928b4dcf6b814a132afdfd130cdb154b6819208..d913f065ecca1bb7ee37322b2bee1a3b80b00e05 100644 (file)
@@ -249,6 +249,7 @@ void enc1_stream_encoder_dp_set_stream_attribute(
        bool use_vsc_sdp_for_colorimetry,
        uint32_t enable_sdp_splitting)
 {
+       (void)enable_sdp_splitting;
        uint32_t h_active_start;
        uint32_t v_active_start;
        uint32_t misc0 = 0;
@@ -783,6 +784,7 @@ void enc1_stream_encoder_send_immediate_sdp_message(
        const uint8_t *custom_sdp_message,
        unsigned int sdp_message_size)
 {
+       (void)sdp_message_size;
        struct dcn10_stream_encoder *enc1 = DCN10STRENC_FROM_STRENC(enc);
        uint32_t value = 0;
 
index 3e85e9c3d2cb2578c3c3fa87c522560e3590c1e2..d1fd5462dca5b67885a71680e7ce914be53ce202 100644 (file)
@@ -394,6 +394,8 @@ void enc314_dp_set_dsc_config(struct stream_encoder *enc,
                                        uint32_t dsc_bytes_per_pixel,
                                        uint32_t dsc_slice_width)
 {
+       (void)dsc_bytes_per_pixel;
+       (void)dsc_slice_width;
        struct dcn10_stream_encoder *enc1 = DCN10STRENC_FROM_STRENC(enc);
 
        REG_UPDATE(DP_DSC_CNTL, DP_DSC_MODE, dsc_mode == OPTC_DSC_DISABLED ? 0 : 1);
index 3523d1cdc1a3593ed4bd44d6917698989ab39906..edafa3808455783565ba4c0809748a6b9ec810e4 100644 (file)
@@ -356,6 +356,8 @@ static void enc32_dp_set_dsc_config(struct stream_encoder *enc,
                                        uint32_t dsc_bytes_per_pixel,
                                        uint32_t dsc_slice_width)
 {
+       (void)dsc_bytes_per_pixel;
+       (void)dsc_slice_width;
        struct dcn10_stream_encoder *enc1 = DCN10STRENC_FROM_STRENC(enc);
 
        REG_UPDATE(DP_DSC_CNTL, DP_DSC_MODE, dsc_mode == OPTC_DSC_DISABLED ? 0 : 1);
index fd5d1dbf9dc6ca6f619ca4c623670c015e977d63..de24dcd27e6cea009a5de15e3574b858879450fc 100644 (file)
@@ -369,6 +369,7 @@ static void enc35_stream_encoder_map_to_link(
                uint32_t stream_enc_inst,
                uint32_t link_enc_inst)
 {
+       (void)stream_enc_inst;
        struct dcn10_stream_encoder *enc1 = DCN10STRENC_FROM_STRENC(enc);
 
        ASSERT(stream_enc_inst < 5 && link_enc_inst < 5);
index 99aab70ef3e114bb47e8348cdb52d9a2108c257e..2d33ed0c062ddcbfcc0a25598a7fc33e4339a096 100644 (file)
@@ -57,6 +57,8 @@ static void enc401_dp_set_odm_combine(
        struct stream_encoder *enc,
        bool odm_combine)
 {
+       (void)enc;
+       (void)odm_combine;
 }
 
 /* setup stream encoder in dvi mode */
@@ -710,6 +712,7 @@ void enc401_stream_encoder_map_to_link(
                uint32_t stream_enc_inst,
                uint32_t link_enc_inst)
 {
+       (void)stream_enc_inst;
        struct dcn10_stream_encoder *enc1 = DCN10STRENC_FROM_STRENC(enc);
 
        REG_UPDATE(STREAM_MAPPER_CONTROL,
index 2655bc194a3591153f5c6d1235ee94aa514274e5..5b2bba0eff0ec093c9cd8ce49c0d25eba4ea28fd 100644 (file)
 
 static bool virtual_link_encoder_validate_output_with_stream(
        struct link_encoder *enc,
-       const struct dc_stream_state *stream) { return true; }
+       const struct dc_stream_state *stream) {
+               (void)enc;
+               (void)stream;
+               return true;
+       }
 
-static void virtual_link_encoder_hw_init(struct link_encoder *enc) {}
+static void virtual_link_encoder_hw_init(struct link_encoder *enc)
+{
+       (void)enc;
+}
 
 static void virtual_link_encoder_setup(
-       struct link_encoder *enc,
-       enum signal_type signal) {}
+       struct link_encoder *enc, enum signal_type signal) {
+               (void)enc;
+               (void)signal;
+       }
 
 static void virtual_link_encoder_enable_tmds_output(
        struct link_encoder *enc,
        enum clock_source_id clock_source,
        enum dc_color_depth color_depth,
        enum signal_type signal,
-       uint32_t pixel_clock) {}
+       uint32_t pixel_clock) {
+               (void)enc;
+               (void)clock_source;
+               (void)color_depth;
+               (void)signal;
+               (void)pixel_clock;
+       }
 
 static void virtual_link_encoder_enable_dp_output(
        struct link_encoder *enc,
        const struct dc_link_settings *link_settings,
-       enum clock_source_id clock_source) {}
+       enum clock_source_id clock_source) {
+               (void)enc;
+               (void)link_settings;
+               (void)clock_source;
+       }
 
 static void virtual_link_encoder_enable_dp_mst_output(
        struct link_encoder *enc,
        const struct dc_link_settings *link_settings,
-       enum clock_source_id clock_source) {}
+       enum clock_source_id clock_source) {
+               (void)enc;
+               (void)link_settings;
+               (void)clock_source;
+       }
 
 static void virtual_link_encoder_disable_output(
        struct link_encoder *link_enc,
-       enum signal_type signal) {}
+       enum signal_type signal) {
+               (void)link_enc;
+               (void)signal;
+       }
 
 static void virtual_link_encoder_dp_set_lane_settings(
        struct link_encoder *enc,
        const struct dc_link_settings *link_settings,
-       const struct dc_lane_settings lane_settings[LANE_COUNT_DP_MAX]) {}
+       const struct dc_lane_settings lane_settings[LANE_COUNT_DP_MAX]) {
+               (void)enc;
+               (void)link_settings;
+               (void)lane_settings;
+       }
 
 static void virtual_link_encoder_dp_set_phy_pattern(
        struct link_encoder *enc,
-       const struct encoder_set_dp_phy_pattern_param *param) {}
+       const struct encoder_set_dp_phy_pattern_param *param) {
+               (void)enc;
+               (void)param;
+       }
 
 static void virtual_link_encoder_update_mst_stream_allocation_table(
        struct link_encoder *enc,
-       const struct link_mst_stream_allocation_table *table) {}
+       const struct link_mst_stream_allocation_table *table) {
+               (void)enc;
+               (void)table;
+       }
 
 static void virtual_link_encoder_connect_dig_be_to_fe(
        struct link_encoder *enc,
        enum engine_id engine,
-       bool connect) {}
+       bool connect) {
+               (void)enc;
+               (void)engine;
+               (void)connect;
+       }
 
 static void virtual_link_encoder_destroy(struct link_encoder **enc)
 {
@@ -86,6 +126,7 @@ static void virtual_link_encoder_destroy(struct link_encoder **enc)
 static void virtual_link_encoder_get_max_link_cap(struct link_encoder *enc,
                struct dc_link_settings *link_settings)
 {
+       (void)enc;
        /* Set Default link settings */
        struct dc_link_settings max_link_cap = {LANE_COUNT_FOUR, LINK_RATE_HIGH,
                                LINK_SPREAD_05_DOWNSPREAD_30KHZ, false, 0};
index a9c8857476acda7248cf61352c003f0930da384c..27448f2b24675a12c7d02a815ca8e5b0287cfe3c 100644 (file)
@@ -31,80 +31,127 @@ static void virtual_stream_encoder_dp_set_stream_attribute(
        struct dc_crtc_timing *crtc_timing,
        enum dc_color_space output_color_space,
        bool use_vsc_sdp_for_colorimetry,
-       uint32_t enable_sdp_splitting) {}
+       uint32_t enable_sdp_splitting) {
+               (void)enc;
+               (void)crtc_timing;
+               (void)output_color_space;
+               (void)use_vsc_sdp_for_colorimetry;
+               (void)enable_sdp_splitting;
+       }
 
 static void virtual_stream_encoder_hdmi_set_stream_attribute(
        struct stream_encoder *enc,
        struct dc_crtc_timing *crtc_timing,
        int actual_pix_clk_khz,
-       bool enable_audio) {}
+       bool enable_audio) {
+               (void)enc;
+               (void)crtc_timing;
+               (void)actual_pix_clk_khz;
+               (void)enable_audio;
+       }
 
 static void virtual_stream_encoder_dvi_set_stream_attribute(
        struct stream_encoder *enc,
        struct dc_crtc_timing *crtc_timing,
-       bool is_dual_link) {}
+       bool is_dual_link) {
+               (void)enc;
+               (void)crtc_timing;
+               (void)is_dual_link;
+       }
 
 static void virtual_stream_encoder_set_throttled_vcp_size(
        struct stream_encoder *enc,
-       struct fixed31_32 avg_time_slots_per_mtp)
-{}
+       struct fixed31_32 avg_time_slots_per_mtp) {
+               (void)enc;
+               (void)avg_time_slots_per_mtp;
+       }
 
 static void virtual_stream_encoder_update_hdmi_info_packets(
        struct stream_encoder *enc,
-       const struct encoder_info_frame *info_frame) {}
+       const struct encoder_info_frame *info_frame) {
+               (void)enc;
+               (void)info_frame;
+       }
 
 static void virtual_stream_encoder_stop_hdmi_info_packets(
-       struct stream_encoder *enc) {}
+       struct stream_encoder *enc) {
+               (void)enc;
+       }
 
 static void virtual_stream_encoder_set_avmute(
-       struct stream_encoder *enc,
-       bool enable) {}
+       struct stream_encoder *enc, bool enable) {
+               (void)enc;
+               (void)enable;
+       }
 static void virtual_stream_encoder_update_dp_info_packets(
        struct stream_encoder *enc,
-       const struct encoder_info_frame *info_frame) {}
+       const struct encoder_info_frame *info_frame) {
+               (void)enc;
+               (void)info_frame;
+       }
 
 static void virtual_stream_encoder_stop_dp_info_packets(
-       struct stream_encoder *enc) {}
+       struct stream_encoder *enc) {
+               (void)enc;
+       }
 
 static void virtual_stream_encoder_dp_blank(
        struct dc_link *link,
-       struct stream_encoder *enc) {}
+       struct stream_encoder *enc) {
+               (void)link;
+               (void)enc;
+       }
 
 static void virtual_stream_encoder_dp_unblank(
        struct dc_link *link,
        struct stream_encoder *enc,
-       const struct encoder_unblank_param *param) {}
+       const struct encoder_unblank_param *param) {
+               (void)enc;
+               (void)link;
+               (void)param;
+       }
 
 static void virtual_audio_mute_control(
-       struct stream_encoder *enc,
-       bool mute) {}
+       struct stream_encoder *enc, bool mute) {
+               (void)enc;
+               (void)mute;
+       }
 
 static void virtual_stream_encoder_reset_hdmi_stream_attribute(
-               struct stream_encoder *enc)
-{}
+       struct stream_encoder *enc)
+{
+       (void)enc;
+}
 
 static void virtual_enc_dp_set_odm_combine(
-       struct stream_encoder *enc,
-       bool odm_combine)
-{}
+       struct stream_encoder *enc, bool odm_combine) {
+               (void)enc;
+               (void)odm_combine;
+       }
 
 static void virtual_dig_connect_to_otg(
-               struct stream_encoder *enc,
-               int tg_inst)
-{}
+               struct stream_encoder *enc, int tg_inst) {
+               (void)enc;
+               (void)tg_inst;
+       }
 
 static void virtual_setup_stereo_sync(
-                       struct stream_encoder *enc,
-                       int tg_inst,
-                       bool enable)
-{}
+               struct stream_encoder *enc,
+               int tg_inst, bool enable) {
+               (void)enc;
+               (void)tg_inst;
+               (void)enable;
+       }
 
 static void virtual_stream_encoder_set_dsc_pps_info_packet(
-               struct stream_encoder *enc,
-               bool enable,
-               uint8_t *dsc_packed_pps,
-               bool immediate_update)
-{}
+       struct stream_encoder *enc, bool enable, uint8_t *dsc_packed_pps,
+       bool immediate_update)
+{
+       (void)enc;
+       (void)enable;
+       (void)dsc_packed_pps;
+       (void)immediate_update;
+}
 
 static const struct stream_encoder_funcs virtual_str_enc_funcs = {
        .dp_set_odm_combine =
index 74962791302f653ae83d0b632c8d00b85eaa4c78..61553e24d53e45abb29e0f49542ab2db6d91d1a1 100644 (file)
@@ -525,6 +525,7 @@ static void split_stream_across_pipes(
                struct pipe_ctx *primary_pipe,
                struct pipe_ctx *secondary_pipe)
 {
+       (void)res_ctx;
        int pipe_idx = secondary_pipe->pipe_idx;
 
        if (!primary_pipe->plane_state)
index ae34982b1b1c09bb23a750a53e28d2af27e68f54..887744d56d6aaf79f32b50e3553837ecf7c98676 100644 (file)
@@ -1316,6 +1316,7 @@ int dcn20_populate_dml_pipes_from_context(struct dc *dc,
                                          display_e2e_pipe_params_st *pipes,
                                          enum dc_validate_mode validate_mode)
 {
+       (void)validate_mode;
        int pipe_cnt, i;
        bool synchronized_vblank = true;
        struct resource_context *res_ctx = &context->res_ctx;
index 0c8c4a080c50e083e5df14c2d889e112fbe34dd0..f5f636afe33ceac2ca3f840ffb48589d1f9782bb 100644 (file)
@@ -501,6 +501,8 @@ static bool CalculatePrefetchSchedule(
                double *VUpdateWidthPix,
                double *VReadyOffsetPix)
 {
+       (void)mode_lib;
+
        bool MyError = false;
        unsigned int DPPCycles, DISPCLKCycles;
        double DSTTotalPixelsAfterScaler, TotalRepeaterDelayTime;
@@ -878,6 +880,7 @@ static unsigned int CalculateVMAndRowBytes(
                unsigned int *dpte_row_height,
                unsigned int *meta_row_height)
 {
+       (void)ViewportWidth;
        unsigned int MetaRequestHeight;
        unsigned int MetaRequestWidth;
        unsigned int MetaSurfWidth;
@@ -2953,6 +2956,7 @@ static double CalculateRemoteSurfaceFlipDelay(
                double *TInitXFill,
                double *TslvChk)
 {
+       (void)mode_lib;
        double TSlvSetup, AvgfillRate, result;
 
        *SrcActiveDrainRate = VRatio * SwathWidth * Bpp / LineTime;
index c935903b68e10e44f3a00d39ce60d8b7bbdb0fb5..95b0a350188063eb7a7489d32e4f552b1d0b46e3 100644 (file)
@@ -495,6 +495,7 @@ static bool CalculateDelayAfterScaler(
                double *DSTYAfterScaler
                )
 {
+       (void)ReturnBW;
        unsigned int DPPCycles, DISPCLKCycles;
        double DataFabricLineDeliveryTimeLuma;
        double DataFabricLineDeliveryTimeChroma;
@@ -592,6 +593,8 @@ static bool CalculatePrefetchSchedule(
                double *VUpdateWidthPix,
                double *VReadyOffsetPix)
 {
+       (void)mode_lib;
+
        bool MyError = false;
        double TotalRepeaterDelayTime;
        double Tdm, LineTime, Tsetup;
@@ -938,6 +941,7 @@ static unsigned int CalculateVMAndRowBytes(
                unsigned int *dpte_row_height,
                unsigned int *meta_row_height)
 {
+       (void)ViewportWidth;
        unsigned int MetaRequestHeight;
        unsigned int MetaRequestWidth;
        unsigned int MetaSurfWidth;
@@ -3026,6 +3030,7 @@ static double CalculateRemoteSurfaceFlipDelay(
                double *TInitXFill,
                double *TslvChk)
 {
+       (void)mode_lib;
        double TSlvSetup, AvgfillRate, result;
 
        *SrcActiveDrainRate = VRatio * SwathWidth * Bpp / LineTime;
index 9c58ff1069d6bcde1cea51e8f43209a08ec6a25d..591d9618bdc0bf4d1546fa33908f6af4897b544e 100644 (file)
@@ -126,6 +126,7 @@ static double get_refcyc_per_delivery(struct display_mode_lib *mode_lib,
                unsigned int delivery_width,
                unsigned int req_per_swath_ub)
 {
+       (void)mode_lib;
        double refcyc_per_delivery = 0.0;
 
        if (vratio <= 1.0) {
@@ -1538,6 +1539,9 @@ void dml20_rq_dlg_get_dlg_reg(struct display_mode_lib *mode_lib,
                const bool ignore_viewport_pos,
                const bool immediate_flip_support)
 {
+       (void)vm_en;
+       (void)ignore_viewport_pos;
+       (void)immediate_flip_support;
        display_rq_params_st rq_param = {0};
        display_dlg_sys_params_st dlg_sys_param = {0};
 
@@ -1588,6 +1592,7 @@ static void calculate_ttu_cursor(struct display_mode_lib *mode_lib,
                unsigned int cur_width,
                enum cursor_bpp cur_bpp)
 {
+       (void)mode_lib;
        unsigned int cur_src_width = cur_width;
        unsigned int cur_req_size = 0;
        unsigned int cur_req_width = 0;
index 570e6e39eb455da8f66eea90a4eeeac813a749ae..d4dddc9d535a21caab93b4b69e918154c232fe49 100644 (file)
@@ -126,6 +126,7 @@ static double get_refcyc_per_delivery(struct display_mode_lib *mode_lib,
                unsigned int delivery_width,
                unsigned int req_per_swath_ub)
 {
+       (void)mode_lib;
        double refcyc_per_delivery = 0.0;
 
        if (vratio <= 1.0) {
@@ -1539,6 +1540,9 @@ void dml20v2_rq_dlg_get_dlg_reg(struct display_mode_lib *mode_lib,
                const bool ignore_viewport_pos,
                const bool immediate_flip_support)
 {
+       (void)vm_en;
+       (void)ignore_viewport_pos;
+       (void)immediate_flip_support;
        display_rq_params_st rq_param = {0};
        display_dlg_sys_params_st dlg_sys_param = {0};
 
@@ -1589,6 +1593,7 @@ static void calculate_ttu_cursor(struct display_mode_lib *mode_lib,
                unsigned int cur_width,
                enum cursor_bpp cur_bpp)
 {
+       (void)mode_lib;
        unsigned int cur_src_width = cur_width;
        unsigned int cur_req_size = 0;
        unsigned int cur_req_width = 0;
index 48905ca39b706e92592d1d638b931baf1198211a..11570a0c9427206e6aabac3dd4425b64ff027641 100644 (file)
@@ -695,6 +695,9 @@ static bool CalculatePrefetchSchedule(
                double *VUpdateWidthPix,
                double *VReadyOffsetPix)
 {
+       (void)mode_lib;
+       (void)XFCEnabled;
+
        bool MyError = false;
        unsigned int DPPCycles, DISPCLKCycles;
        double DSTTotalPixelsAfterScaler, TotalRepeaterDelayTime;
@@ -1290,6 +1293,8 @@ static unsigned int CalculateVMAndRowBytes(
                unsigned int *DPDE0BytesFrame,
                unsigned int *MetaPTEBytesFrame)
 {
+       (void)SourcePixelFormat;
+       (void)ViewportWidth;
        unsigned int MPDEBytesFrame;
        unsigned int DCCMetaSurfaceBytes;
        unsigned int MacroTileSizeBytes;
@@ -3040,6 +3045,7 @@ static double CalculateRemoteSurfaceFlipDelay(
                double *TInitXFill,
                double *TslvChk)
 {
+       (void)mode_lib;
        double TSlvSetup, AvgfillRate, result;
 
        *SrcActiveDrainRate = VRatio * SwathWidth * Bpp / LineTime;
@@ -3187,6 +3193,7 @@ static void CalculateFlipSchedule(
                double *final_flip_bw,
                bool *ImmediateFlipSupportedForPipe)
 {
+       (void)mode_lib;
        double min_row_time = 0.0;
        unsigned int HostVMDynamicLevels;
        double TimeForFetchingMetaPTEImmediateFlip;
@@ -5294,6 +5301,15 @@ static void CalculateWatermarksAndDRAMSpeedChangeSupport(
                double *StutterEnterPlusExitWatermark,
                double *MinActiveDRAMClockChangeLatencySupported)
 {
+       (void)DPPCLK;
+       (void)SwathWidthSingleDPPY;
+       (void)DCFCLK;
+       (void)UrgentOutOfOrderReturn;
+       (void)ReturnBW;
+       (void)GPUVMEnable;
+       (void)dpte_group_bytes;
+       (void)MetaChunkSize;
+
        double EffectiveLBLatencyHidingY;
        double EffectiveLBLatencyHidingC;
        double DPPOutputBufferLinesY;
@@ -5885,6 +5901,9 @@ static void CalculateMetaAndPTETimes(
                double TimePerVMRequestVBlank[],
                double TimePerVMRequestFlip[])
 {
+       (void)VRatioPrefetchY;
+       (void)VRatioPrefetchC;
+
        unsigned int meta_chunk_width;
        unsigned int min_meta_chunk_width;
        unsigned int meta_chunk_per_row_int;
index f549da082c014b730c9f8cbc9024994e7f77d590..8a611b3bec331e6080df79556076ee04d128f89b 100644 (file)
@@ -102,6 +102,7 @@ static double get_refcyc_per_delivery(
                unsigned int delivery_width,
                unsigned int req_per_swath_ub)
 {
+       (void)mode_lib;
        double refcyc_per_delivery = 0.0;
 
        if (vratio <= 1.0) {
@@ -1647,6 +1648,9 @@ void dml21_rq_dlg_get_dlg_reg(
                const bool ignore_viewport_pos,
                const bool immediate_flip_support)
 {
+       (void)vm_en;
+       (void)ignore_viewport_pos;
+       (void)immediate_flip_support;
        display_rq_params_st rq_param = {0};
        display_dlg_sys_params_st dlg_sys_param = {0};
 
@@ -1702,6 +1706,7 @@ static void calculate_ttu_cursor(
                unsigned int cur_width,
                enum cursor_bpp cur_bpp)
 {
+       (void)mode_lib;
        unsigned int cur_src_width = cur_width;
        unsigned int cur_req_size = 0;
        unsigned int cur_req_width = 0;
index e5f5c0663750c0aeee2f702cd1322eb01e2b1007..0cdd60869ce1c225cee749dafed4a1e46dec4947 100644 (file)
@@ -571,6 +571,7 @@ void dcn30_fpu_update_bw_bounding_box(struct dc *dc,
        unsigned int *dcfclk_mhz,
        unsigned int *dram_speed_mts)
 {
+       (void)bw_params;
        unsigned int i;
 
        dc_assert_fp_enabled();
@@ -720,6 +721,7 @@ void dcn3_fpu_build_wm_range_table(struct clk_mgr *base)
 
 void patch_dcn30_soc_bounding_box(struct dc *dc, struct _vcs_dpi_soc_bounding_box_st *dcn3_0_ip)
 {
+       (void)dcn3_0_ip;
        dc_assert_fp_enabled();
 
        if (dc->ctx->dc_bios->funcs->get_soc_bb_info) {
index 1df3412be3465d0f8ae09e9c90aeb239e737e7c8..634982173190e0a559c3dc21abcb0b5ef89beea6 100644 (file)
@@ -778,6 +778,8 @@ static bool CalculatePrefetchSchedule(
                double *RequiredPrefetchPixDataBWChroma,
                bool *NotEnoughTimeForDynamicMetadata)
 {
+       (void)SwathWidthY;
+       (void)SwathWidthC;
        struct vba_vars_st *v = &mode_lib->vba;
        double DPPCLKDelaySubtotalPlusCNVCFormater = v->DPPCLKDelaySubtotal + v->DPPCLKDelayCNVCFormater;
        bool MyError = false;
@@ -1233,6 +1235,10 @@ static void CalculateDCCConfiguration(
                unsigned int *IndependentBlockLuma,
                unsigned int *IndependentBlockChroma)
 {
+       (void)SurfaceWidthChroma;
+       (void)SurfaceHeightChroma;
+       (void)BytePerPixelDETY;
+       (void)BytePerPixelDETC;
        int yuv420 = 0;
        int horz_div_l = 0;
        int horz_div_c = 0;
@@ -1595,6 +1601,7 @@ static unsigned int CalculateVMAndRowBytes(
                unsigned int *DPDE0BytesFrame,
                unsigned int *MetaPTEBytesFrame)
 {
+       (void)SourcePixelFormat;
        unsigned int MPDEBytesFrame = 0;
        unsigned int DCCMetaSurfaceBytes = 0;
        unsigned int MacroTileSizeBytes = 0;
@@ -3068,6 +3075,8 @@ double dml30_CalculateWriteBackDISPCLK(
                unsigned int HTotal,
                unsigned int WritebackLineBufferSize)
 {
+       (void)WritebackPixelFormat;
+       (void)WritebackVRatio;
        double DISPCLK_H = 0, DISPCLK_V = 0, DISPCLK_HB = 0;
 
        DISPCLK_H = PixelClock * dml_ceil(WritebackHTaps / 8.0, 1) / WritebackHRatio;
@@ -3086,6 +3095,8 @@ static double CalculateWriteBackDelay(
                long         WritebackSourceHeight,
                unsigned int HTotal)
 {
+       (void)WritebackPixelFormat;
+       (void)WritebackHRatio;
        double CalculateWriteBackDelay = 0;
        double Line_length = 0;
        double Output_lines_last_notclamped = 0;
@@ -3199,6 +3210,8 @@ static void CalculateFlipSchedule(
                double *final_flip_bw,
                bool *ImmediateFlipSupportedForPipe)
 {
+       (void)mode_lib;
+       (void)HostVMMinPageSize;
        double min_row_time = 0.0;
        unsigned int HostVMDynamicLevelsTrips = 0;
        double TimeForFetchingMetaPTEImmediateFlip = 0;
@@ -4968,6 +4981,10 @@ static void CalculateWatermarksAndDRAMSpeedChangeSupport(
                double BytePerPixelDETC[],
                enum clock_change_support *DRAMClockChangeSupport)
 {
+       (void)DCFCLK;
+       (void)ReturnBW;
+       (void)DPPCLK;
+       (void)DETBufferSizeC;
        struct vba_vars_st *v = &mode_lib->vba;
        double EffectiveLBLatencyHidingY = 0;
        double EffectiveLBLatencyHidingC = 0;
@@ -5212,6 +5229,8 @@ static void CalculateUrgentBurstFactor(
                double *UrgentBurstFactorChroma,
                bool *NotEnoughUrgentLatencyHiding)
 {
+       (void)DETBufferSizeInKByte;
+       (void)VRatioC;
        double LinesInDETLuma = 0;
        double LinesInDETChroma = 0;
        unsigned int LinesInCursorBuffer = 0;
@@ -5575,6 +5594,8 @@ static void CalculateVMGroupAndRequestTimes(
                double TimePerVMRequestVBlank[],
                double TimePerVMRequestFlip[])
 {
+       (void)dpte_row_width_luma_ub;
+       (void)dpte_row_width_chroma_ub;
        int num_group_per_lower_vm_stage = 0;
        int num_req_per_lower_vm_stage = 0;
        unsigned int k;
@@ -5857,6 +5878,7 @@ static void CalculateSwathAndDETConfiguration(
                bool ViewportSizeSupportPerPlane[],
                bool *ViewportSizeSupport)
 {
+       (void)HRatioChroma;
        int MaximumSwathHeightY[DC__NUM_DPP__MAX] = { 0 };
        int MaximumSwathHeightC[DC__NUM_DPP__MAX] = { 0 };
        int MinimumSwathHeightY = 0;
@@ -6039,6 +6061,7 @@ static void CalculateSwathWidth(
                unsigned int swath_width_luma_ub[],
                unsigned int swath_width_chroma_ub[])
 {
+       (void)BytePerPixY;
        unsigned int k, j;
        long surface_width_ub_l;
        long surface_height_ub_l;
index 4fb37df54d59f4a1f0097925a66cf02036109bb9..472ac5ee165f1e79308493dda13eb8db260b71aa 100644 (file)
@@ -50,6 +50,7 @@ static double get_refcyc_per_delivery(struct display_mode_lib *mode_lib,
        unsigned int delivery_width,
        unsigned int req_per_swath_ub)
 {
+       (void)mode_lib;
        double refcyc_per_delivery = 0.0;
 
        if (vratio <= 1.0) {
@@ -804,6 +805,7 @@ static void calculate_ttu_cursor(struct display_mode_lib *mode_lib,
        unsigned int cur_width,
        enum cursor_bpp cur_bpp)
 {
+       (void)mode_lib;
        unsigned int cur_src_width = cur_width;
        unsigned int cur_req_size = 0;
        unsigned int cur_req_width = 0;
@@ -896,6 +898,9 @@ static void dml_rq_dlg_get_dlg_params(struct display_mode_lib *mode_lib,
        const bool ignore_viewport_pos,
        const bool immediate_flip_support)
 {
+       (void)vm_en;
+       (void)ignore_viewport_pos;
+       (void)immediate_flip_support;
        const display_pipe_source_params_st *src = &e2e_pipe_param[pipe_idx].pipe.src;
        const display_pipe_dest_params_st *dst = &e2e_pipe_param[pipe_idx].pipe.dest;
        const display_output_params_st *dout = &e2e_pipe_param[pipe_idx].dout;
index ed59c77bc6f60a737071c98c38c2302c84286067..9833467722b937aaa265c89aac9222a8fdc04cf6 100644 (file)
@@ -873,6 +873,11 @@ static bool CalculatePrefetchSchedule(
                double *VUpdateWidthPix,
                double *VReadyOffsetPix)
 {
+       (void)mode_lib;
+       (void)HostVMMinPageSize;
+       (void)SwathWidthY;
+       (void)SwathWidthC;
+
        bool MyError = false;
        unsigned int DPPCycles, DISPCLKCycles;
        double DSTTotalPixelsAfterScaler;
@@ -1491,6 +1496,10 @@ static void CalculateDCCConfiguration(
                unsigned int *IndependentBlockLuma,
                unsigned int *IndependentBlockChroma)
 {
+       (void)SurfaceWidthChroma;
+       (void)SurfaceHeightChroma;
+       (void)BytePerPixelDETY;
+       (void)BytePerPixelDETC;
        int yuv420;
        int horz_div_l;
        int horz_div_c;
@@ -1823,6 +1832,7 @@ static unsigned int CalculateVMAndRowBytes(
                int *DPDE0BytesFrame,
                int *MetaPTEBytesFrame)
 {
+       (void)SourcePixelFormat;
        struct vba_vars_st *v = &mode_lib->vba;
        unsigned int MPDEBytesFrame;
        unsigned int DCCMetaSurfaceBytes;
@@ -3365,6 +3375,8 @@ double dml31_CalculateWriteBackDISPCLK(
                unsigned int HTotal,
                unsigned int WritebackLineBufferSize)
 {
+       (void)WritebackPixelFormat;
+       (void)WritebackVRatio;
        double DISPCLK_H, DISPCLK_V, DISPCLK_HB;
 
        DISPCLK_H = PixelClock * dml_ceil(WritebackHTaps / 8.0, 1) / WritebackHRatio;
@@ -3383,6 +3395,8 @@ static double CalculateWriteBackDelay(
                int WritebackSourceHeight,
                unsigned int HTotal)
 {
+       (void)WritebackPixelFormat;
+       (void)WritebackHRatio;
        double CalculateWriteBackDelay;
        double Line_length;
        double Output_lines_last_notclamped;
@@ -5566,6 +5580,9 @@ static void CalculateWatermarksAndDRAMSpeedChangeSupport(
                double *Z8StutterExitWatermark,
                double *Z8StutterEnterPlusExitWatermark)
 {
+       (void)DCFCLK;
+       (void)ReturnBW;
+       (void)DETBufferSizeC;
        struct vba_vars_st *v = &mode_lib->vba;
        double EffectiveLBLatencyHidingY;
        double EffectiveLBLatencyHidingC;
@@ -5831,6 +5848,7 @@ static void CalculateUrgentBurstFactor(
                double *UrgentBurstFactorChroma,
                bool *NotEnoughUrgentLatencyHiding)
 {
+       (void)VRatioC;
        double LinesInDETLuma;
        double LinesInDETChroma;
        unsigned int LinesInCursorBuffer;
@@ -6213,6 +6231,8 @@ static void CalculateVMGroupAndRequestTimes(
                double TimePerVMRequestVBlank[],
                double TimePerVMRequestFlip[])
 {
+       (void)dpte_row_width_luma_ub;
+       (void)dpte_row_width_chroma_ub;
        int num_group_per_lower_vm_stage;
        int num_req_per_lower_vm_stage;
        int k;
@@ -6350,6 +6370,8 @@ static void CalculateStutterEfficiency(
                int *Z8NumberOfStutterBurstsPerFrame,
                double *StutterPeriod)
 {
+       (void)ConfigReturnBufferSizeInKByte;
+
        struct vba_vars_st *v = &mode_lib->vba;
 
        double DETBufferingTimeY;
@@ -6649,6 +6671,7 @@ static void CalculateSwathAndDETConfiguration(
                bool ViewportSizeSupportPerPlane[],
                bool *ViewportSizeSupport)
 {
+       (void)HRatioChroma;
        int MaximumSwathHeightY[DC__NUM_DPP__MAX];
        int MaximumSwathHeightC[DC__NUM_DPP__MAX];
        int MinimumSwathHeightY;
@@ -6823,6 +6846,7 @@ static void CalculateSwathWidth(
                int swath_width_luma_ub[],
                int swath_width_chroma_ub[])
 {
+       (void)BytePerPixY;
        enum odm_combine_mode MainPlaneODMCombine;
        int j, k;
 
index bfeb01477f0c47fbfe4ac21e8ba4ae034751d028..dfa1bc31eb0a3da8c7586d112e3524cb77197df7 100644 (file)
@@ -51,6 +51,7 @@ static double get_refcyc_per_delivery(
                unsigned int delivery_width,
                unsigned int req_per_swath_ub)
 {
+       (void)mode_lib;
        double refcyc_per_delivery = 0.0;
 
        if (vratio <= 1.0) {
@@ -785,6 +786,7 @@ static void calculate_ttu_cursor(
                unsigned int cur_width,
                enum cursor_bpp cur_bpp)
 {
+       (void)mode_lib;
        unsigned int cur_src_width = cur_width;
        unsigned int cur_req_size = 0;
        unsigned int cur_req_width = 0;
@@ -859,6 +861,12 @@ static void dml_rq_dlg_get_dlg_params(
                const bool ignore_viewport_pos,
                const bool immediate_flip_support)
 {
+       (void)cstate_en;
+       (void)pstate_en;
+       (void)vm_en;
+       (void)ignore_viewport_pos;
+       (void)immediate_flip_support;
+       (void)dlg_sys_param;
        const display_pipe_source_params_st *src = &e2e_pipe_param[pipe_idx].pipe.src;
        const display_pipe_dest_params_st *dst = &e2e_pipe_param[pipe_idx].pipe.dest;
        const display_clocks_and_cfg_st *clks = &e2e_pipe_param[pipe_idx].clks_cfg;
index 9f3938a50240f3819e0cd78a0657c53db6ada19c..033fde774337f126b91b1eedb8441cf688251069 100644 (file)
@@ -891,6 +891,11 @@ static bool CalculatePrefetchSchedule(
                double *VUpdateWidthPix,
                double *VReadyOffsetPix)
 {
+       (void)mode_lib;
+       (void)HostVMMinPageSize;
+       (void)SwathWidthY;
+       (void)SwathWidthC;
+
        bool MyError = false;
        unsigned int DPPCycles, DISPCLKCycles;
        double DSTTotalPixelsAfterScaler;
@@ -1508,6 +1513,10 @@ static void CalculateDCCConfiguration(
                unsigned int *IndependentBlockLuma,
                unsigned int *IndependentBlockChroma)
 {
+       (void)SurfaceWidthChroma;
+       (void)SurfaceHeightChroma;
+       (void)BytePerPixelDETY;
+       (void)BytePerPixelDETC;
        int yuv420;
        int horz_div_l;
        int horz_div_c;
@@ -1840,6 +1849,7 @@ static unsigned int CalculateVMAndRowBytes(
                int *DPDE0BytesFrame,
                int *MetaPTEBytesFrame)
 {
+       (void)SourcePixelFormat;
        struct vba_vars_st *v = &mode_lib->vba;
        unsigned int MPDEBytesFrame;
        unsigned int DCCMetaSurfaceBytes;
@@ -3471,6 +3481,8 @@ double dml314_CalculateWriteBackDISPCLK(
                unsigned int HTotal,
                unsigned int WritebackLineBufferSize)
 {
+       (void)WritebackPixelFormat;
+       (void)WritebackVRatio;
        double DISPCLK_H, DISPCLK_V, DISPCLK_HB;
 
        DISPCLK_H = PixelClock * dml_ceil(WritebackHTaps / 8.0, 1) / WritebackHRatio;
@@ -3489,6 +3501,8 @@ static double CalculateWriteBackDelay(
                int WritebackSourceHeight,
                unsigned int HTotal)
 {
+       (void)WritebackPixelFormat;
+       (void)WritebackHRatio;
        double CalculateWriteBackDelay;
        double Line_length;
        double Output_lines_last_notclamped;
@@ -5660,6 +5674,9 @@ static void CalculateWatermarksAndDRAMSpeedChangeSupport(
                double *Z8StutterExitWatermark,
                double *Z8StutterEnterPlusExitWatermark)
 {
+       (void)DCFCLK;
+       (void)ReturnBW;
+       (void)DETBufferSizeC;
        struct vba_vars_st *v = &mode_lib->vba;
        double EffectiveLBLatencyHidingY;
        double EffectiveLBLatencyHidingC;
@@ -5925,6 +5942,7 @@ static void CalculateUrgentBurstFactor(
                double *UrgentBurstFactorChroma,
                bool *NotEnoughUrgentLatencyHiding)
 {
+       (void)VRatioC;
        double LinesInDETLuma;
        double LinesInDETChroma;
        unsigned int LinesInCursorBuffer;
@@ -6308,6 +6326,8 @@ static void CalculateVMGroupAndRequestTimes(
                double TimePerVMRequestVBlank[],
                double TimePerVMRequestFlip[])
 {
+       (void)dpte_row_width_luma_ub;
+       (void)dpte_row_width_chroma_ub;
        int num_group_per_lower_vm_stage;
        int num_req_per_lower_vm_stage;
        int k;
@@ -6445,6 +6465,8 @@ static void CalculateStutterEfficiency(
                int *Z8NumberOfStutterBurstsPerFrame,
                double *StutterPeriod)
 {
+       (void)ConfigReturnBufferSizeInKByte;
+
        struct vba_vars_st *v = &mode_lib->vba;
 
        double DETBufferingTimeY;
@@ -6743,6 +6765,7 @@ static void CalculateSwathAndDETConfiguration(
                bool ViewportSizeSupportPerPlane[],
                bool *ViewportSizeSupport)
 {
+       (void)HRatioChroma;
        int MaximumSwathHeightY[DC__NUM_DPP__MAX];
        int MaximumSwathHeightC[DC__NUM_DPP__MAX];
        int MinimumSwathHeightY;
@@ -6914,6 +6937,7 @@ static void CalculateSwathWidth(
                int swath_width_luma_ub[],
                int swath_width_chroma_ub[])
 {
+       (void)BytePerPixY;
        enum odm_combine_mode MainPlaneODMCombine;
        int j, k;
 
index 04df263ff65ed5be3fb9c948f043d0ef13ddf7a7..40a916c2a9c61b1d53559c884666b60f7f642546 100644 (file)
@@ -139,6 +139,7 @@ static double get_refcyc_per_delivery(
                unsigned int delivery_width,
                unsigned int req_per_swath_ub)
 {
+       (void)mode_lib;
        double refcyc_per_delivery = 0.0;
 
        if (vratio <= 1.0) {
@@ -872,6 +873,7 @@ static void calculate_ttu_cursor(
                unsigned int cur_width,
                enum cursor_bpp cur_bpp)
 {
+       (void)mode_lib;
        unsigned int cur_src_width = cur_width;
        unsigned int cur_req_size = 0;
        unsigned int cur_req_width = 0;
@@ -944,6 +946,12 @@ static void dml_rq_dlg_get_dlg_params(
                const bool ignore_viewport_pos,
                const bool immediate_flip_support)
 {
+       (void)cstate_en;
+       (void)pstate_en;
+       (void)vm_en;
+       (void)ignore_viewport_pos;
+       (void)immediate_flip_support;
+       (void)dlg_sys_param;
        const display_pipe_source_params_st *src = &e2e_pipe_param[pipe_idx].pipe.src;
        const display_pipe_dest_params_st *dst = &e2e_pipe_param[pipe_idx].pipe.dest;
        const display_clocks_and_cfg_st *clks = &e2e_pipe_param[pipe_idx].clks_cfg;
index 8a0f128722b05d21f00975c6e64af0005c8b51f5..e29497204df7602e8bd4cc6100265ee550c65789 100644 (file)
@@ -3488,6 +3488,7 @@ bool dcn32_allow_subvp_high_refresh_rate(struct dc *dc, struct dc_state *context
  */
 double dcn32_determine_max_vratio_prefetch(struct dc *dc, struct dc_state *context)
 {
+       (void)dc;
        double max_vratio_pre = __DML_MAX_BW_RATIO_PRE__; // Default value is 4
        int i;
 
@@ -3593,6 +3594,7 @@ bool dcn32_find_vactive_pipe(struct dc *dc, const struct dc_state *context, stru
 
 void dcn32_set_clock_limits(const struct _vcs_dpi_soc_bounding_box_st *soc_bb)
 {
+       (void)soc_bb;
        dc_assert_fp_enabled();
        dcn3_2_soc.clock_limits[0].dcfclk_mhz = 1200.0;
 }
index 19b142412a84bdde44c1612166528b23d5c488fc..5e72966a8daf8171f0c68d3b8f3d26aea077d055 100644 (file)
@@ -457,6 +457,7 @@ void dml32_CalculateSwathAndDETConfiguration(
                bool ViewportSizeSupportPerSurface[],
                bool *ViewportSizeSupport)
 {
+       (void)HRatioChroma;
        unsigned int MaximumSwathHeightY[DC__NUM_DPP__MAX];
        unsigned int MaximumSwathHeightC[DC__NUM_DPP__MAX];
        unsigned int RoundedUpMaxSwathSizeBytesY[DC__NUM_DPP__MAX] = { 0 };
@@ -716,6 +717,7 @@ void dml32_CalculateSwathWidth(
                unsigned int                    swath_width_luma_ub[], // per-pipe
                unsigned int                    swath_width_chroma_ub[]) // per-pipe
 {
+       (void)BytePerPixY;
        unsigned int k, j;
        enum odm_combine_mode MainSurfaceODMMode;
 
@@ -2304,6 +2306,7 @@ unsigned int dml32_CalculateVMAndRowBytes(
                unsigned int    *DPDE0BytesFrame,
                unsigned int    *MetaPTEBytesFrame)
 {
+       (void)SourcePixelFormat;
        unsigned int MPDEBytesFrame;
        unsigned int DCCMetaSurfaceBytes;
        unsigned int ExtraDPDEBytesFrame;
@@ -2745,6 +2748,7 @@ void dml32_CalculateUrgentBurstFactor(
                double *UrgentBurstFactorChroma,
                bool   *NotEnoughUrgentLatencyHiding)
 {
+       (void)VRatioC;
        double       LinesInDETLuma;
        double       LinesInDETChroma;
        unsigned int LinesInCursorBuffer;
@@ -2900,6 +2904,8 @@ double dml32_CalculateWriteBackDelay(
                unsigned int         WritebackSourceHeight,
                unsigned int HTotal)
 {
+       (void)WritebackPixelFormat;
+       (void)WritebackHRatio;
        double CalculateWriteBackDelay;
        double Line_length;
        double Output_lines_last_notclamped;
@@ -2977,6 +2983,9 @@ void dml32_UseMinimumDCFCLK(
                /* Output */
                double DCFCLKState[][2])
 {
+       (void)MaxAveragePercentOfIdealSDPPortBWDisplayCanUseInNormalSystemOperation;
+       (void)ReadBandwidthLuma;
+       (void)ReadBandwidthChroma;
        unsigned int i, j, k;
        unsigned int     dummy1;
        double dummy2, dummy3;
@@ -3447,6 +3456,8 @@ bool dml32_CalculatePrefetchSchedule(
                double   *VUpdateWidthPix,
                double   *VReadyOffsetPix)
 {
+       (void)SwathWidthY;
+       (void)SwathWidthC;
        double DPPCLKDelaySubtotalPlusCNVCFormater = v->DPPCLKDelaySubtotal + v->DPPCLKDelayCNVCFormater;
        bool MyError = false;
        unsigned int DPPCycles, DISPCLKCycles;
@@ -4145,6 +4156,7 @@ void dml32_CalculateFlipSchedule(
                double *final_flip_bw,
                bool *ImmediateFlipSupportedForPipe)
 {
+       (void)HostVMMinPageSize;
        double min_row_time = 0.0;
        unsigned int HostVMDynamicLevelsTrips;
        double TimeForFetchingMetaPTEImmediateFlip;
@@ -4287,6 +4299,8 @@ void dml32_CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport(
                bool *USRRetrainingSupport,
                double ActiveDRAMClockChangeLatencyMargin[])
 {
+       (void)DCFCLK;
+       (void)ReturnBW;
        unsigned int i, j, k;
        unsigned int SurfaceWithMinActiveFCLKChangeMargin = 0;
        unsigned int DRAMClockChangeSupportNumber = 0;
@@ -4655,6 +4669,8 @@ double dml32_CalculateWriteBackDISPCLK(
                unsigned int WritebackLineBufferSize,
                double DISPCLKDPPCLKVCOSpeed)
 {
+       (void)WritebackPixelFormat;
+       (void)WritebackVRatio;
        double DISPCLK_H, DISPCLK_V, DISPCLK_HB;
 
        DISPCLK_H = PixelClock * dml_ceil(WritebackHTaps / 8.0, 1) / WritebackHRatio;
@@ -5166,6 +5182,8 @@ void dml32_CalculateVMGroupAndRequestTimes(
                double      TimePerVMRequestVBlank[],
                double      TimePerVMRequestFlip[])
 {
+       (void)dpte_row_width_luma_ub;
+       (void)dpte_row_width_chroma_ub;
        unsigned int k;
        unsigned int   num_group_per_lower_vm_stage;
        unsigned int   num_req_per_lower_vm_stage;
@@ -5321,6 +5339,11 @@ void dml32_CalculateDCCConfiguration(
                unsigned int        *IndependentBlockLuma,
                unsigned int        *IndependentBlockChroma)
 {
+       (void)SurfaceWidthChroma;
+       (void)SurfaceHeightChroma;
+       (void)TilingFormat;
+       (void)BytePerPixelDETY;
+       (void)BytePerPixelDETC;
        typedef enum {
                REQ_256Bytes,
                REQ_128BytesNonContiguous,
index 6713cd8ba86ac7849bc37119dbbb7a9b8acadf69..7f40048dd67d5821a18ef369de0dd989d5dba8ec 100644 (file)
@@ -202,6 +202,7 @@ struct _vcs_dpi_soc_bounding_box_st dcn3_5_soc = {
 
 void dcn35_build_wm_range_table_fpu(struct clk_mgr *clk_mgr)
 {
+       (void)clk_mgr;
        //TODO
 }
 
index da0cfbb071e6a4bf67327c29eb48e50663a8950e..684779ee54a359a7813ab89bc42c8c68cd7e1e20 100644 (file)
@@ -162,6 +162,7 @@ void dml_log_pipe_params(
                display_e2e_pipe_params_st *pipes,
                int pipe_cnt)
 {
+       (void)mode_lib;
        display_pipe_source_params_st *pipe_src;
        display_pipe_dest_params_st   *pipe_dest;
        scaler_ratio_depth_st         *scale_ratio_depth;
index 12ff65b6a7e507b837070a3d5fed9f49c0288bbb..3f27293a41cb270584293cc77f491e58aea197ff 100644 (file)
@@ -49,6 +49,8 @@ void print__rq_params_st(struct display_mode_lib *mode_lib, const struct _vcs_dp
 
 void print__data_rq_sizing_params_st(struct display_mode_lib *mode_lib, const struct _vcs_dpi_display_data_rq_sizing_params_st *rq_sizing)
 {
+       (void)mode_lib;
+       (void)rq_sizing;
        dml_print("DML_RQ_DLG_CALC: =====================================\n");
        dml_print("DML_RQ_DLG_CALC: DISPLAY_DATA_RQ_SIZING_PARAM_ST\n");
        dml_print("DML_RQ_DLG_CALC:    chunk_bytes           = %0d\n", rq_sizing->chunk_bytes);
@@ -64,6 +66,8 @@ void print__data_rq_sizing_params_st(struct display_mode_lib *mode_lib, const st
 
 void print__data_rq_dlg_params_st(struct display_mode_lib *mode_lib, const struct _vcs_dpi_display_data_rq_dlg_params_st *rq_dlg_param)
 {
+       (void)mode_lib;
+       (void)rq_dlg_param;
        dml_print("DML_RQ_DLG_CALC: =====================================\n");
        dml_print("DML_RQ_DLG_CALC: DISPLAY_DATA_RQ_DLG_PARAM_ST\n");
        dml_print(
@@ -107,6 +111,8 @@ void print__data_rq_dlg_params_st(struct display_mode_lib *mode_lib, const struc
 
 void print__data_rq_misc_params_st(struct display_mode_lib *mode_lib, const struct _vcs_dpi_display_data_rq_misc_params_st *rq_misc_param)
 {
+       (void)mode_lib;
+       (void)rq_misc_param;
        dml_print("DML_RQ_DLG_CALC: =====================================\n");
        dml_print("DML_RQ_DLG_CALC: DISPLAY_DATA_RQ_MISC_PARAM_ST\n");
        dml_print(
@@ -124,6 +130,8 @@ void print__data_rq_misc_params_st(struct display_mode_lib *mode_lib, const stru
 
 void print__dlg_sys_params_st(struct display_mode_lib *mode_lib, const struct _vcs_dpi_display_dlg_sys_params_st *dlg_sys_param)
 {
+       (void)dlg_sys_param;
+       (void)mode_lib;
        dml_print("DML_RQ_DLG_CALC: =====================================\n");
        dml_print("DML_RQ_DLG_CALC: DISPLAY_RQ_DLG_PARAM_ST\n");
        dml_print("DML_RQ_DLG_CALC:    t_mclk_wm_us         = %3.2f\n", dlg_sys_param->t_mclk_wm_us);
@@ -144,6 +152,8 @@ void print__dlg_sys_params_st(struct display_mode_lib *mode_lib, const struct _v
 
 void print__data_rq_regs_st(struct display_mode_lib *mode_lib, const struct _vcs_dpi_display_data_rq_regs_st *rq_regs)
 {
+       (void)mode_lib;
+       (void)rq_regs;
        dml_print("DML_RQ_DLG_CALC: =====================================\n");
        dml_print("DML_RQ_DLG_CALC: DISPLAY_DATA_RQ_REGS_ST\n");
        dml_print("DML_RQ_DLG_CALC:    chunk_size              = 0x%0x\n", rq_regs->chunk_size);
@@ -179,6 +189,8 @@ void print__rq_regs_st(struct display_mode_lib *mode_lib, const struct _vcs_dpi_
 
 void print__dlg_regs_st(struct display_mode_lib *mode_lib, const struct _vcs_dpi_display_dlg_regs_st *dlg_regs)
 {
+       (void)dlg_regs;
+       (void)mode_lib;
        dml_print("DML_RQ_DLG_CALC: =====================================\n");
        dml_print("DML_RQ_DLG_CALC: DISPLAY_DLG_REGS_ST\n");
        dml_print(
@@ -316,6 +328,8 @@ void print__dlg_regs_st(struct display_mode_lib *mode_lib, const struct _vcs_dpi
 
 void print__ttu_regs_st(struct display_mode_lib *mode_lib, const struct _vcs_dpi_display_ttu_regs_st *ttu_regs)
 {
+       (void)mode_lib;
+       (void)ttu_regs;
        dml_print("DML_RQ_DLG_CALC: =====================================\n");
        dml_print("DML_RQ_DLG_CALC: DISPLAY_TTU_REGS_ST\n");
        dml_print(
index 88dc2b97e7bf5bd85b73bdea23436fba167defeb..cf194bcba45513ee960561ef80ac7a63c24b5ae3 100644 (file)
@@ -104,6 +104,7 @@ static double get_refcyc_per_delivery(
                unsigned int delivery_width,
                unsigned int req_per_swath_ub)
 {
+       (void)mode_lib;
        double refcyc_per_delivery = 0.0;
 
        if (vratio <= 1.0) {
@@ -133,6 +134,7 @@ static double get_vratio_pre(
                double vinit,
                double l_sw)
 {
+       (void)mode_lib;
        double prefill = dml_floor(vinit, 1);
        double vratio_pre = 1.0;
 
@@ -174,6 +176,7 @@ static void get_swath_need(
                unsigned int swath_height,
                double vinit)
 {
+       (void)mode_lib;
        double prefill = dml_floor(vinit, 1);
        unsigned int max_partial_sw_int;
 
index 0e70ffc784b19cfe7e0a8e7e50d00a5f469f9d10..ef605e0a75e389fa89dc933bb5c9d7050ab7dbeb 100644 (file)
@@ -288,6 +288,7 @@ void dpp1_cnv_setup (
                enum dc_color_space input_color_space,
                struct cnv_alpha_2bit_lut *alpha_2bit_lut)
 {
+       (void)alpha_2bit_lut;
        uint32_t pixel_format;
        uint32_t alpha_en;
        enum pixel_format_description fmt ;
index c433f4b876e9bea0de32ec1af1dbd03b9bb24e65..8d50007909040b0e543a7a4b3c49749254bef219 100644 (file)
@@ -92,7 +92,10 @@ void dpp2_power_on_obuf(
 void dpp2_dummy_program_input_lut(
                struct dpp *dpp_base,
                const struct dc_gamma *gamma)
-{}
+{
+       (void)dpp_base;
+       (void)gamma;
+}
 
 static void dpp2_cnv_setup (
                struct dpp *dpp_base,
@@ -369,7 +372,11 @@ void oppn20_dummy_program_regamma_pwl(
                struct dpp *dpp,
                const struct pwl_params *params,
                enum opp_regamma mode)
-{}
+{
+       (void)dpp;
+       (void)params;
+       (void)mode;
+}
 
 static struct dpp_funcs dcn20_dpp_funcs = {
        .dpp_read_state = dpp20_read_state,
index 31613372e214372f2638dde02f776d35e328b83a..26f9485f165dd92c50577eb5a800d650ec037acb 100644 (file)
@@ -1016,6 +1016,7 @@ static void dpp20_set_3dlut_mode(
                bool is_color_channel_12bits,
                bool is_lut_size17x17x17)
 {
+       (void)is_color_channel_12bits;
        uint32_t lut_mode;
        struct dcn20_dpp *dpp = TO_DCN20_DPP(dpp_base);
 
index 8a146968ee1563c8eb9a3683ccfa5822e1f7a9fe..e7880fc61b4aca23b41a2f3c4bbc925c0718c5f2 100644 (file)
@@ -1307,6 +1307,7 @@ static void dpp3_set_3dlut_mode(
                bool is_color_channel_12bits,
                bool is_lut_size17x17x17)
 {
+       (void)is_color_channel_12bits;
        uint32_t lut_mode;
        struct dcn3_dpp *dpp = TO_DCN30_DPP(dpp_base);
 
index 3284084ca7ad40cd220b8dfdc6a7d07e469f1b8d..8170a86ad0ea644e998820747fec3f4459825b9e 100644 (file)
@@ -80,6 +80,7 @@ static void dpp3_program_gammcor_lut(
                uint32_t num,
                bool is_ram_a)
 {
+       (void)is_ram_a;
        uint32_t i;
        struct dcn3_dpp *dpp = TO_DCN30_DPP(dpp_base);
        uint32_t last_base_value_red = rgb[num-1].red_reg + rgb[num-1].delta_red_reg;
index 62bf7cea21d82f8873df17f21bd70ed98c6b23f4..821d5173b59fc6850cbd36b0684833b69daefb05 100644 (file)
@@ -132,6 +132,9 @@ void dpp401_set_cursor_position(
        uint32_t width,
        uint32_t height)
 {
+       (void)param;
+       (void)width;
+       (void)height;
        struct dcn401_dpp *dpp = TO_DCN401_DPP(dpp_base);
        uint32_t cur_en = pos->enable ? 1 : 0;
 
@@ -237,6 +240,8 @@ void dpp401_set_cursor_matrix(
        enum dc_color_space color_space,
        struct dc_csc_transform cursor_csc_color_matrix)
 {
+       (void)color_space;
+       (void)cursor_csc_color_matrix;
        //Since we don't have cursor matrix information, force bypass mode by passing in unknown color space
        dpp401_program_cursor_csc(dpp_base, COLOR_SPACE_UNKNOWN, NULL);
 }
index bc058f6824385ef6477f5d3a0aef2f395fac50a7..0ee4f83a02ebec811f37e4891fc1ec8c0c2a91d4 100644 (file)
@@ -45,6 +45,7 @@
 
 static bool dwb3_get_caps(struct dwbc *dwbc, struct dwb_caps *caps)
 {
+       (void)dwbc;
        if (caps) {
                caps->adapter_id = 0;   /* we only support 1 adapter currently */
                caps->hw_version = DCN_VERSION_3_0;
index dcbcf6b85abff94200382c2f26ef66eb21f7bc71..e7e1d99798768bb7225862bc4d97c4b3423b931f 100644 (file)
@@ -45,6 +45,7 @@ static bool offset_to_id(
        enum gpio_id *id,
        uint32_t *en)
 {
+       (void)mask;
        switch (offset) {
        /* HPD */
        case REG(HPD0_DC_HPD_INT_STATUS):
index f3d562c8df4c919626788b49de0ad865a7939f3e..d81a71ac00d297a90d6a79ab4d4ed8b3605d3fde 100644 (file)
@@ -60,6 +60,7 @@ bool dal_hw_factory_init(
        enum dce_version dce_version,
        enum dce_environment dce_environment)
 {
+       (void)dce_environment;
        switch (dce_version) {
 #if defined(CONFIG_DRM_AMD_DC_SI)
        case DCE_VERSION_6_0:
index 660510842ecfbb6957f95e495513088e49ec4f0b..f0d40097289734d10a5d121530899e53056c0f39 100644 (file)
@@ -199,5 +199,6 @@ void dal_hw_gpio_construct(
 void dal_hw_gpio_destruct(
        struct hw_gpio *pin)
 {
+       (void)pin;
        ASSERT(!pin->base.opened);
 }
index 1c977fc4d0e36be4a5a9ae141a4e69311a9a00ca..e6e36a912b134461dce0dd2818842489aee348f7 100644 (file)
@@ -64,6 +64,7 @@ bool dal_hw_translate_init(
        enum dce_version dce_version,
        enum dce_environment dce_environment)
 {
+       (void)dce_environment;
        switch (dce_version) {
 #if defined(CONFIG_DRM_AMD_DC_SI)
        case DCE_VERSION_6_0:
index 5a03758e3de6f0ea7bd78affac0ddf88f37a8c39..3c298192f3596316eb3f0d6467a17a170e087d70 100644 (file)
@@ -943,6 +943,7 @@ static void hubbub31_get_dchub_ref_freq(struct hubbub *hubbub,
                unsigned int dccg_ref_freq_inKhz,
                unsigned int *dchub_ref_freq_inKhz)
 {
+       (void)dccg_ref_freq_inKhz;
        struct dcn20_hubbub *hubbub2 = TO_DCN20_HUBBUB(hubbub);
        uint32_t ref_div = 0;
        uint32_t ref_en = 0;
index 43ba399f48226491dbb51978f52b67df246f93f8..82d4e3e0e5e8f397b05a8f38fabe59ec5451089d 100644 (file)
@@ -259,6 +259,7 @@ void hubbub35_get_dchub_ref_freq(struct hubbub *hubbub,
                unsigned int dccg_ref_freq_inKhz,
                unsigned int *dchub_ref_freq_inKhz)
 {
+       (void)dccg_ref_freq_inKhz;
        struct dcn20_hubbub *hubbub2 = TO_DCN20_HUBBUB(hubbub);
        uint32_t ref_div = 0;
        uint32_t ref_en = 0;
index b0a4b68cf359a5a171a576a7398ad859d4c00da2..3b9542c08f3d619a63c8a4388c044ed4609c3788 100644 (file)
@@ -70,6 +70,7 @@ bool hubbub401_program_urgent_watermarks(
                unsigned int refclk_mhz,
                bool safe_to_lower)
 {
+       (void)refclk_mhz;
        struct dcn20_hubbub *hubbub2 = TO_DCN20_HUBBUB(hubbub);
        bool wm_pending = false;
 
@@ -188,6 +189,7 @@ bool hubbub401_program_stutter_watermarks(
                unsigned int refclk_mhz,
                bool safe_to_lower)
 {
+       (void)refclk_mhz;
        struct dcn20_hubbub *hubbub2 = TO_DCN20_HUBBUB(hubbub);
        bool wm_pending = false;
 
@@ -287,6 +289,7 @@ bool hubbub401_program_pstate_watermarks(
                unsigned int refclk_mhz,
                bool safe_to_lower)
 {
+       (void)refclk_mhz;
        struct dcn20_hubbub *hubbub2 = TO_DCN20_HUBBUB(hubbub);
        bool wm_pending = false;
 
@@ -414,6 +417,7 @@ bool hubbub401_program_usr_watermarks(
                unsigned int refclk_mhz,
                bool safe_to_lower)
 {
+       (void)refclk_mhz;
        struct dcn20_hubbub *hubbub2 = TO_DCN20_HUBBUB(hubbub);
        bool wm_pending = false;
 
index a436fa71d4b430ed9bddd9d64468ef3be9ddc2c6..73b6b0ffcb74156bc64ba1da2d7f17c432d66cdb 100644 (file)
@@ -488,6 +488,8 @@ static bool hubbub42_program_watermarks(
 
 static void hubbub42_set_request_limit(struct hubbub *hubbub, int memory_channel_count, int words_per_channel)
 {
+       (void)memory_channel_count;
+       (void)words_per_channel;
        struct dcn20_hubbub *hubbub2 = TO_DCN20_HUBBUB(hubbub);
        uint32_t request_limit = 96; //MAX(12 * memory_channel_count, 96);
 
index 6378e3fd72494c7d03f56d806e1def8368f60c40..7c97a774141ff045f16000084dc7641851d3f79e 100644 (file)
@@ -143,6 +143,7 @@ void hubp1_program_tiling(
        const struct dc_tiling_info *info,
        const enum surface_pixel_format pixel_format)
 {
+       (void)pixel_format;
        struct dcn10_hubp *hubp1 = TO_DCN10_HUBP(hubp);
 
        REG_UPDATE_6(DCSURF_ADDR_CONFIG,
@@ -563,6 +564,7 @@ void hubp1_program_surface_config(
        bool horizontal_mirror,
        unsigned int compat_level)
 {
+       (void)compat_level;
        hubp1_dcc_control(hubp, dcc->enable, dcc->independent_64b_blks);
        hubp1_program_tiling(hubp, tiling_info, format);
        hubp1_program_size(hubp, format, plane_size, dcc);
index 92288de4cc10c312959c6179dcb8251ec1e15ed6..ceee5165fd6ad838d2eb77e15af670bb16d5d4ab 100644 (file)
@@ -313,6 +313,7 @@ static void hubp2_program_tiling(
        const struct dc_tiling_info *info,
        const enum surface_pixel_format pixel_format)
 {
+       (void)pixel_format;
        REG_UPDATE_3(DCSURF_ADDR_CONFIG,
                        NUM_PIPES, log_2(info->gfx9.num_pipes),
                        PIPE_INTERLEAVE, info->gfx9.pipe_interleave,
@@ -557,6 +558,7 @@ void hubp2_program_surface_config(
        bool horizontal_mirror,
        unsigned int compat_level)
 {
+       (void)compat_level;
        struct dcn20_hubp *hubp2 = TO_DCN20_HUBP(hubp);
 
        hubp2_dcc_control(hubp, dcc->enable, dcc->independent_64b_blks);
index 0cc6f455898981e3f4c147c42641cc662b0d8227..e2708e30eb1ba7a1b32b983a1515a99d87fcb772 100644 (file)
@@ -321,6 +321,7 @@ void hubp3_program_tiling(
        const struct dc_tiling_info *info,
        const enum surface_pixel_format pixel_format)
 {
+       (void)pixel_format;
        REG_UPDATE_4(DCSURF_ADDR_CONFIG,
                NUM_PIPES, log_2(info->gfx9.num_pipes),
                PIPE_INTERLEAVE, info->gfx9.pipe_interleave,
@@ -418,6 +419,7 @@ void hubp3_program_surface_config(
        bool horizontal_mirror,
        unsigned int compat_level)
 {
+       (void)compat_level;
        struct dcn20_hubp *hubp2 = TO_DCN20_HUBP(hubp);
 
        hubp3_dcc_control_sienna_cichlid(hubp, dcc);
index 79c583e258c7891b252ddce1b56b3b4cf85e9608..c879f4901c7df84848ffb9821c87a7835dfa6a72 100644 (file)
@@ -179,6 +179,7 @@ void hubp35_program_surface_config(
        bool horizontal_mirror,
        unsigned int compat_level)
 {
+       (void)compat_level;
        struct dcn20_hubp *hubp2 = TO_DCN20_HUBP(hubp);
 
        hubp3_dcc_control_sienna_cichlid(hubp, dcc);
index 263e0c4d34f668653dad6204372d936872f51f9d..5a816442deee939907ed14435e2f9256ae4af37e 100644 (file)
@@ -657,6 +657,7 @@ void hubp401_program_tiling(
        const struct dc_tiling_info *info,
        const enum surface_pixel_format pixel_format)
 {
+       (void)pixel_format;
        /* DCSURF_ADDR_CONFIG still shows up in reg spec, but does not need to be programmed for DCN4x
         * All 4 fields NUM_PIPES, PIPE_INTERLEAVE, MAX_COMPRESSED_FRAGS and NUM_PKRS are irrelevant.
         *
@@ -671,6 +672,7 @@ void hubp401_program_size(
        const struct plane_size *plane_size,
        struct dc_plane_dcc_param *dcc)
 {
+       (void)dcc;
        struct dcn20_hubp *hubp2 = TO_DCN20_HUBP(hubp);
        uint32_t pitch, pitch_c;
        bool use_pitch_c = false;
@@ -709,6 +711,7 @@ void hubp401_program_surface_config(
        bool horizontal_mirror,
        unsigned int compat_level)
 {
+       (void)compat_level;
        struct dcn20_hubp *hubp2 = TO_DCN20_HUBP(hubp);
 
        hubp401_dcc_control(hubp, dcc);
index d85a4ab957a40f97724a7e514df968760308c6fd..ad6badcceb12a4c0b3cb1de93b27637c534f7d0d 100644 (file)
@@ -301,6 +301,7 @@ static void hubp42_program_surface_config(
        bool horizontal_mirror,
        unsigned int compat_level)
 {
+       (void)compat_level;
        struct dcn20_hubp *hubp2 = TO_DCN20_HUBP(hubp);
 
        hubp3_dcc_control_sienna_cichlid(hubp, dcc);
index 8f56f164d5677e3c1450af4a5b653df91457170a..5273ca09fe121e63f33540029bbdeafa98751ede 100644 (file)
@@ -201,6 +201,8 @@ static void enable_display_pipe_clock_gating(
        struct dc_context *ctx,
        bool clock_gating)
 {
+       (void)ctx;
+       (void)clock_gating;
        /*TODO*/
 }
 
@@ -284,6 +286,7 @@ static bool
 dce110_set_input_transfer_func(struct dc *dc, struct pipe_ctx *pipe_ctx,
                               const struct dc_plane_state *plane_state)
 {
+       (void)dc;
        struct input_pixel_processor *ipp = pipe_ctx->plane_res.ipp;
        const struct dc_transfer_func *tf = NULL;
        struct ipp_prescale_params prescale_params = { 0 };
@@ -607,6 +610,7 @@ static bool
 dce110_set_output_transfer_func(struct dc *dc, struct pipe_ctx *pipe_ctx,
                                const struct dc_stream_state *stream)
 {
+       (void)dc;
        struct transform *xfm = pipe_ctx->plane_res.xfm;
 
        xfm->funcs->opp_power_on_regamma_lut(xfm, true);
@@ -1539,6 +1543,7 @@ static enum dc_status dce110_enable_stream_timing(
                struct dc_state *context,
                struct dc *dc)
 {
+       (void)context;
        struct dc_stream_state *stream = pipe_ctx->stream;
        struct pipe_ctx *pipe_ctx_old = &dc->current_state->res_ctx.
                        pipe_ctx[pipe_ctx->pipe_idx];
@@ -2728,6 +2733,7 @@ static void program_gamut_remap(struct pipe_ctx *pipe_ctx)
 static void update_plane_addr(const struct dc *dc,
                struct pipe_ctx *pipe_ctx)
 {
+       (void)dc;
        struct dc_plane_state *plane_state = pipe_ctx->plane_state;
 
        if (plane_state == NULL)
@@ -2814,6 +2820,8 @@ static void dce110_enable_timing_synchronization(
                int group_size,
                struct pipe_ctx *grouped_pipes[])
 {
+       (void)state;
+       (void)group_index;
        struct dcp_gsl_params gsl_params = { 0 };
        int i;
        DC_LOGGER_INIT(dc->ctx);
@@ -2889,6 +2897,8 @@ static void dce110_enable_per_frame_crtc_position_reset(
 
 static void dce110_init_pipes(struct dc *dc, struct dc_state *context)
 {
+       (void)context;
+       (void)dc;
        // Do nothing
 }
 
@@ -3154,10 +3164,13 @@ static void dce110_post_unlock_program_front_end(
                struct dc *dc,
                struct dc_state *context)
 {
+       (void)dc;
+       (void)context;
 }
 
 static void dce110_power_down_fe(struct dc *dc, struct dc_state *state, struct pipe_ctx *pipe_ctx)
 {
+       (void)state;
        struct dce_hwseq *hws = dc->hwseq;
        int fe_idx = pipe_ctx->plane_res.mi ?
                pipe_ctx->plane_res.mi->inst : pipe_ctx->pipe_idx;
@@ -3178,6 +3191,9 @@ static void dce110_wait_for_mpcc_disconnect(
                struct resource_pool *res_pool,
                struct pipe_ctx *pipe_ctx)
 {
+       (void)dc;
+       (void)res_pool;
+       (void)pipe_ctx;
        /* do nothing*/
 }
 
@@ -3187,6 +3203,10 @@ static void program_output_csc(struct dc *dc,
                uint16_t *matrix,
                int opp_id)
 {
+       (void)dc;
+       (void)colorspace;
+       (void)matrix;
+       (void)opp_id;
        int i;
        struct out_csc_color_matrix tbl_entry;
 
@@ -3331,6 +3351,7 @@ void dce110_enable_lvds_link_output(struct dc_link *link,
                enum clock_source_id clock_source,
                uint32_t pixel_clock)
 {
+       (void)link_res;
        link->link_enc->funcs->enable_lvds_output(
                        link->link_enc,
                        clock_source,
@@ -3345,6 +3366,7 @@ void dce110_enable_tmds_link_output(struct dc_link *link,
                enum dc_color_depth color_depth,
                uint32_t pixel_clock)
 {
+       (void)link_res;
        link->link_enc->funcs->enable_tmds_output(
                        link->link_enc,
                        clock_source,
index 2a62f63d03572240700ac2998f0a823a455e7b7a..0689bbf12ad8cdd9ececbcae2236c7a131decc33 100644 (file)
@@ -154,6 +154,10 @@ static bool dce120_enable_display_power_gating(
        struct dc_bios *dcb,
        enum pipe_gating_control power_gating)
 {
+       (void)dc;
+       (void)controller_id;
+       (void)dcb;
+       (void)power_gating;
        /* disable for bringup */
 #if 0
        enum bp_result bp_result = BP_RESULT_OK;
index 996ec85f9727d478cd537bbec29c1968b6c7d9c1..756ce83795381c0fe5c5f90327b3be851314fad9 100644 (file)
@@ -86,6 +86,7 @@ static void print_microsec(struct dc_context *dc_ctx,
                           struct dc_log_buffer_ctx *log_ctx,
                           uint32_t ref_cycle)
 {
+       (void)log_ctx;
        const uint32_t ref_clk_mhz = dc_ctx->dc->res_pool->ref_clocks.dchub_ref_clock_inKhz / 1000;
        static const unsigned int frac = 1000;
        uint32_t us_x10 = (ref_cycle * frac) / ref_clk_mhz;
@@ -252,6 +253,7 @@ void dcn10_lock_all_pipes(struct dc *dc,
 static void log_mpc_crc(struct dc *dc,
        struct dc_log_buffer_ctx *log_ctx)
 {
+       (void)log_ctx;
        struct dc_context *dc_ctx = dc->ctx;
        struct dce_hwseq *hws = dc->hwseq;
 
@@ -450,6 +452,7 @@ static void dcn10_log_hubp_states(struct dc *dc, void *log_ctx)
 static void dcn10_log_color_state(struct dc *dc,
                                  struct dc_log_buffer_ctx *log_ctx)
 {
+       (void)log_ctx;
        struct dc_context *dc_ctx = dc->ctx;
        struct resource_pool *pool = dc->res_pool;
        bool is_gamut_remap_available = false;
@@ -813,6 +816,7 @@ void dcn10_log_hw_state(struct dc *dc,
 
 bool dcn10_did_underflow_occur(struct dc *dc, struct pipe_ctx *pipe_ctx)
 {
+       (void)dc;
        struct hubp *hubp = pipe_ctx->plane_res.hubp;
        struct timing_generator *tg = pipe_ctx->stream_res.tg;
 
@@ -1181,6 +1185,7 @@ enum dc_status dcn10_enable_stream_timing(
                struct dc_state *context,
                struct dc *dc)
 {
+       (void)context;
        struct dc_stream_state *stream = pipe_ctx->stream;
        enum dc_color_space color_space;
        struct tg_color black_color = {0};
@@ -1284,6 +1289,7 @@ static void dcn10_reset_back_end_for_pipe(
                struct pipe_ctx *pipe_ctx,
                struct dc_state *context)
 {
+       (void)context;
        int i;
        struct dc_link *link;
        DC_LOGGER_INIT(dc->ctx);
@@ -1551,6 +1557,7 @@ void dcn10_plane_atomic_disable(struct dc *dc, struct pipe_ctx *pipe_ctx)
 
 void dcn10_disable_plane(struct dc *dc, struct dc_state *state, struct pipe_ctx *pipe_ctx)
 {
+       (void)state;
        struct dce_hwseq *hws = dc->hwseq;
        DC_LOGGER_INIT(dc->ctx);
 
@@ -2004,6 +2011,7 @@ static bool patch_address_for_sbs_tb_stereo(
 
 void dcn10_update_plane_addr(const struct dc *dc, struct pipe_ctx *pipe_ctx)
 {
+       (void)dc;
        bool addr_patched = false;
        PHYSICAL_ADDRESS_LOC addr;
        struct dc_plane_state *plane_state = pipe_ctx->plane_state;
@@ -2030,6 +2038,7 @@ void dcn10_update_plane_addr(const struct dc *dc, struct pipe_ctx *pipe_ctx)
 bool dcn10_set_input_transfer_func(struct dc *dc, struct pipe_ctx *pipe_ctx,
                        const struct dc_plane_state *plane_state)
 {
+       (void)dc;
        struct dpp *dpp_base = pipe_ctx->plane_res.dpp;
        const struct dc_transfer_func *tf = NULL;
        bool result = true;
@@ -2472,6 +2481,7 @@ void dcn10_enable_vblanks_synchronization(
        int group_size,
        struct pipe_ctx *grouped_pipes[])
 {
+       (void)group_index;
        struct output_pixel_processor *opp;
        struct timing_generator *tg;
        int i, width = 0, height = 0, master;
@@ -2537,6 +2547,7 @@ void dcn10_enable_timing_synchronization(
        int group_size,
        struct pipe_ctx *grouped_pipes[])
 {
+       (void)group_index;
        struct output_pixel_processor *opp;
        struct timing_generator *tg;
        int i, width = 0, height = 0;
@@ -2641,6 +2652,7 @@ static void mmhub_read_vm_system_aperture_settings(struct dcn10_hubp *hubp1,
                struct vm_system_aperture_param *apt,
                struct dce_hwseq *hws)
 {
+       (void)hubp1;
        PHYSICAL_ADDRESS_LOC physical_page_number;
        uint32_t logical_addr_low;
        uint32_t logical_addr_high;
@@ -2666,6 +2678,7 @@ static void mmhub_read_vm_context0_settings(struct dcn10_hubp *hubp1,
                struct vm_context0_param *vm0,
                struct dce_hwseq *hws)
 {
+       (void)hubp1;
        PHYSICAL_ADDRESS_LOC fb_base;
        PHYSICAL_ADDRESS_LOC fb_offset;
        uint32_t fb_base_value;
@@ -2724,6 +2737,7 @@ static void dcn10_enable_plane(
        struct pipe_ctx *pipe_ctx,
        struct dc_state *context)
 {
+       (void)context;
        struct dce_hwseq *hws = dc->hwseq;
 
        if (dc->debug.sanity_checks) {
@@ -2821,6 +2835,8 @@ void dcn10_program_output_csc(struct dc *dc,
                uint16_t *matrix,
                int opp_id)
 {
+       (void)dc;
+       (void)opp_id;
        if (pipe_ctx->stream->csc_color_matrix.enable_adjustment == true) {
                if (pipe_ctx->plane_res.dpp->funcs->dpp_set_csc_adjustment != NULL) {
 
@@ -3586,6 +3602,10 @@ bool dcn10_dummy_display_power_gating(
        struct dc_bios *dcb,
        enum pipe_gating_control power_gating)
 {
+       (void)dc;
+       (void)controller_id;
+       (void)dcb;
+       (void)power_gating;
        return true;
 }
 
@@ -4052,6 +4072,7 @@ enum dc_status dcn10_set_clock(struct dc *dc,
                        uint32_t clk_khz,
                        uint32_t stepping)
 {
+       (void)stepping;
        struct dc_state *context = dc->current_state;
        struct dc_clock_config clock_cfg = {0};
        struct dc_clocks *current_clocks = &context->bw_ctx.bw.dcn.clk;
index a673ab0803a8f45d373ccc21df3da0613887c0cc..288e4edaa9a2bfe582e2abef0016f89c8fc137b7 100644 (file)
@@ -75,6 +75,7 @@
 void dcn20_log_color_state(struct dc *dc,
                           struct dc_log_buffer_ctx *log_ctx)
 {
+       (void)log_ctx;
        struct dc_context *dc_ctx = dc->ctx;
        struct resource_pool *pool = dc->res_pool;
        bool is_gamut_remap_available = false;
@@ -379,6 +380,7 @@ void dcn20_program_triple_buffer(
        struct pipe_ctx *pipe_ctx,
        bool enable_triple_buffer)
 {
+       (void)dc;
        if (pipe_ctx->plane_res.hubp && pipe_ctx->plane_res.hubp->funcs) {
                pipe_ctx->plane_res.hubp->funcs->hubp_enable_tripleBuffer(
                        pipe_ctx->plane_res.hubp,
@@ -1175,6 +1177,8 @@ bool dcn20_set_input_transfer_func(struct dc *dc,
 
 void dcn20_update_odm(struct dc *dc, struct dc_state *context, struct pipe_ctx *pipe_ctx)
 {
+       (void)context;
+       (void)dc;
        struct pipe_ctx *odm_pipe;
        int opp_cnt = 1;
        int opp_inst[MAX_PIPES] = { pipe_ctx->stream_res.opp->inst };
@@ -1297,6 +1301,7 @@ static void dcn20_power_on_plane_resources(
 void dcn20_enable_plane(struct dc *dc, struct pipe_ctx *pipe_ctx,
                               struct dc_state *context)
 {
+       (void)context;
        //if (dc->debug.sanity_checks) {
        //      dcn10_verify_allow_pstate_change_high(dc);
        //}
@@ -2652,6 +2657,7 @@ void dcn20_init_vm_ctx(
                struct dc_virtual_addr_space_config *va_config,
                int vmid)
 {
+       (void)hws;
        struct dcn_hubbub_virt_addr_config config;
 
        if (vmid == 0) {
@@ -2670,6 +2676,7 @@ void dcn20_init_vm_ctx(
 
 int dcn20_init_sys_ctx(struct dce_hwseq *hws, struct dc *dc, struct dc_phy_addr_space_config *pa_config)
 {
+       (void)hws;
        struct dcn_hubbub_phys_addr_config config;
 
        config.system_aperture.fb_top = pa_config->system_aperture.fb_top;
@@ -2799,6 +2806,7 @@ void dcn20_reset_back_end_for_pipe(
                struct pipe_ctx *pipe_ctx,
                struct dc_state *context)
 {
+       (void)context;
        struct dc_link *link = pipe_ctx->stream->link;
        const struct link_hwss *link_hwss = get_link_hwss(link, &pipe_ctx->link_res);
        struct dccg *dccg = dc->res_pool->dccg;
@@ -3245,6 +3253,7 @@ void dcn20_set_disp_pattern_generator(const struct dc *dc,
                const struct tg_color *solid_color,
                int width, int height, int offset)
 {
+       (void)dc;
        pipe_ctx->stream_res.opp->funcs->opp_set_disp_pattern_generator(pipe_ctx->stream_res.opp, test_pattern,
                        color_space, color_depth, solid_color, width, height, offset);
 }
index 34d4519b3a1714ae1a85f202446b9d68444a29ff..2aa0f1de810378c423706301df1268439d8668a6 100644 (file)
@@ -75,6 +75,7 @@
 void dcn30_log_color_state(struct dc *dc,
                           struct dc_log_buffer_ctx *log_ctx)
 {
+       (void)log_ctx;
        struct dc_context *dc_ctx = dc->ctx;
        struct resource_pool *pool = dc->res_pool;
        bool is_gamut_remap_available = false;
@@ -1183,6 +1184,7 @@ void dcn30_set_disp_pattern_generator(const struct dc *dc,
                const struct tg_color *solid_color,
                int width, int height, int offset)
 {
+       (void)dc;
        pipe_ctx->stream_res.opp->funcs->opp_set_disp_pattern_generator(pipe_ctx->stream_res.opp, test_pattern,
                        color_space, color_depth, solid_color, width, height, offset);
 }
@@ -1237,6 +1239,7 @@ void dcn30_get_underflow_debug_data(const struct dc *dc,
        struct timing_generator *tg,
        struct dc_underflow_debug_data *out_data)
 {
+       (void)tg;
        struct hubbub *hubbub = dc->res_pool->hubbub;
 
        if (hubbub) {
index 3bc56ac346f331c3820a86c32cab518afa177ae2..6e1877a8682d7438faeb362dd0fe16a96e6d5017 100644 (file)
 
 void dcn303_dpp_pg_control(struct dce_hwseq *hws, unsigned int dpp_inst, bool power_on)
 {
+       (void)dpp_inst;
+       (void)hws;
+       (void)power_on;
        /*DCN303 removes PG registers*/
 }
 
 void dcn303_hubp_pg_control(struct dce_hwseq *hws, unsigned int hubp_inst, bool power_on)
 {
+       (void)hubp_inst;
+       (void)hws;
+       (void)power_on;
        /*DCN303 removes PG registers*/
 }
 
 void dcn303_dsc_pg_control(struct dce_hwseq *hws, unsigned int dsc_inst, bool power_on)
 {
+       (void)dsc_inst;
+       (void)hws;
+       (void)power_on;
        /*DCN303 removes PG registers*/
 }
 
 void dcn303_enable_power_gating_plane(struct dce_hwseq *hws, bool enable)
 {
+       (void)enable;
+       (void)hws;
        /*DCN303 removes PG registers*/
 }
index 1fba44aecdd321845a1e193fe2b1a93aede93879..b4afb2bc4493442cccdd4ff3a9cc068a6b51d3cc 100644 (file)
@@ -484,6 +484,7 @@ void dcn31_hubp_pg_control(struct dce_hwseq *hws, unsigned int hubp_inst, bool p
 
 int dcn31_init_sys_ctx(struct dce_hwseq *hws, struct dc *dc, struct dc_phy_addr_space_config *pa_config)
 {
+       (void)hws;
        struct dcn_hubbub_phys_addr_config config = {0};
 
        config.system_aperture.fb_top = pa_config->system_aperture.fb_top;
@@ -511,6 +512,7 @@ static void dcn31_reset_back_end_for_pipe(
                struct pipe_ctx *pipe_ctx,
                struct dc_state *context)
 {
+       (void)context;
        struct dc_link *link;
 
        if (pipe_ctx->stream_res.stream_enc == NULL) {
index 3e239124c17d8b4f8d53dea135f600e9f6e87136..858a06b03b5773cb417bba891a42b8e452b34b54 100644 (file)
@@ -172,6 +172,7 @@ static unsigned int get_odm_config(struct pipe_ctx *pipe_ctx, unsigned int *opp_
 
 void dcn314_update_odm(struct dc *dc, struct dc_state *context, struct pipe_ctx *pipe_ctx)
 {
+       (void)context;
        struct pipe_ctx *odm_pipe;
        int opp_cnt = 0;
        int opp_inst[MAX_PIPES] = {0};
index ef08c98b11e9111efc834f000d572afd1294b93d..b45ceb570a5ca1c159ba04a8f744ef8a447a1b23 100644 (file)
@@ -570,6 +570,7 @@ bool dcn32_set_output_transfer_func(struct dc *dc,
                                struct pipe_ctx *pipe_ctx,
                                const struct dc_stream_state *stream)
 {
+       (void)dc;
        int mpcc_id = pipe_ctx->plane_res.hubp->inst;
        struct mpc *mpc = pipe_ctx->stream_res.opp->ctx->dc->res_pool->mpc;
        const struct pwl_params *params = NULL;
@@ -1143,6 +1144,7 @@ static unsigned int get_odm_config(struct pipe_ctx *pipe_ctx, unsigned int *opp_
 
 void dcn32_update_odm(struct dc *dc, struct dc_state *context, struct pipe_ctx *pipe_ctx)
 {
+       (void)context;
        struct pipe_ctx *odm_pipe;
        int opp_cnt = 0;
        int opp_inst[MAX_PIPES] = {0};
index 7c25911089b8b02e902187a6bf69543b20250842..f133b52ea958387712e5368e500bd672a1f8b8ab 100644 (file)
@@ -428,6 +428,7 @@ static unsigned int get_odm_config(struct pipe_ctx *pipe_ctx, unsigned int *opp_
 
 void dcn35_update_odm(struct dc *dc, struct dc_state *context, struct pipe_ctx *pipe_ctx)
 {
+       (void)context;
        struct pipe_ctx *odm_pipe;
        int opp_cnt = 0;
        int opp_inst[MAX_PIPES] = {0};
@@ -816,6 +817,7 @@ void dcn35_init_pipes(struct dc *dc, struct dc_state *context)
 void dcn35_enable_plane(struct dc *dc, struct pipe_ctx *pipe_ctx,
                               struct dc_state *context)
 {
+       (void)context;
        struct dpp *dpp = pipe_ctx->plane_res.dpp;
 
        /* enable DCFCLK current DCHUB */
index 60ad606c06ecd71de9c29876663c067fd0ff3317..7e6bdefb5471efda3f0a3ef8bf2becdcdbcb4cbb 100644 (file)
@@ -557,6 +557,7 @@ bool dcn401_set_output_transfer_func(struct dc *dc,
                                struct pipe_ctx *pipe_ctx,
                                const struct dc_stream_state *stream)
 {
+       (void)dc;
        int mpcc_id = pipe_ctx->plane_res.hubp->inst;
        struct mpc *mpc = pipe_ctx->stream_res.opp->ctx->dc->res_pool->mpc;
        const struct pwl_params *params = NULL;
@@ -618,6 +619,7 @@ static void enable_stream_timing_calc(
                struct drr_params *params,
                unsigned int *event_triggers)
 {
+       (void)dc;
        struct dc_stream_state *stream = pipe_ctx->stream;
        int i;
 
@@ -1395,6 +1397,7 @@ void dcn401_dmub_hw_control_lock(struct dc *dc,
                struct dc_state *context,
                bool lock)
 {
+       (void)context;
        /* use always for now */
        union dmub_inbox0_cmd_lock_hw hw_lock_cmd = { 0 };
 
@@ -1869,6 +1872,7 @@ void dcn401_reset_back_end_for_pipe(
                struct pipe_ctx *pipe_ctx,
                struct dc_state *context)
 {
+       (void)context;
        struct dc_link *link = pipe_ctx->stream->link;
        const struct link_hwss *link_hwss = get_link_hwss(link, &pipe_ctx->link_res);
 
@@ -3244,6 +3248,7 @@ void dcn401_update_writeback_sequence(
                struct dc_state *context,
                struct block_sequence_state *seq_state)
 {
+       (void)context;
        struct dwbc *dwb;
        struct mcif_wb *mcif_wb;
 
@@ -3449,6 +3454,7 @@ void dcn401_enable_plane_sequence(struct dc *dc, struct pipe_ctx *pipe_ctx,
                                 struct dc_state *context,
                                 struct block_sequence_state *seq_state)
 {
+       (void)context;
        struct dce_hwseq *hws = dc->hwseq;
        uint32_t org_ip_request_cntl = 0;
 
index ba1813eb3c6c85931ff868599e0106882097c508..46f2f9833d9e5a1eee8cee176dcbfa3299bd8347 100644 (file)
@@ -386,6 +386,7 @@ void dcn42_program_cm_hist(
        struct pipe_ctx *pipe_ctx,
        const struct dc_plane_state *plane_state)
 {
+       (void)dc;
        struct dpp *dpp = pipe_ctx->plane_res.dpp;
 
        if (dpp && dpp->funcs->dpp_cm_hist_control)
@@ -1000,6 +1001,7 @@ void dcn42_root_clock_control(struct dc *dc,
 }
 void dcn42_setup_stereo(struct pipe_ctx *pipe_ctx, struct dc *dc)
 {
+       (void)dc;
        struct crtc_stereo_flags flags = { 0 };
        struct dc_stream_state *stream = pipe_ctx->stream;
 
index 002b09740fc3fbeb31427d56223f6737c4cf75f1..015f3659cf77343a1ab469fcf8d425ae7fff0a49 100644 (file)
@@ -183,6 +183,7 @@ bool dal_irq_service_dummy_set(struct irq_service *irq_service,
                               const struct irq_source_info *info,
                               bool enable)
 {
+       (void)enable;
        DC_LOG_ERROR("%s: called for non-implemented irq source, src_id=%u, ext_id=%u\n",
                     __func__, info->src_id, info->ext_id);
 
@@ -328,6 +329,7 @@ enum dc_irq_source to_dal_irq_source_dce110(
                uint32_t src_id,
                uint32_t ext_id)
 {
+       (void)irq_service;
        switch (src_id) {
        case VISLANDS30_IV_SRCID_D1_VERTICAL_INTERRUPT0:
                return DC_IRQ_SOURCE_VBLANK1;
index 113bd76c95db107d11ad3b4a35a65491f4392898..0bdb62b883aa329ba6a3f297410aed35ee2a050a 100644 (file)
@@ -42,6 +42,9 @@ static enum dc_irq_source to_dal_irq_source_dcn10(struct irq_service *irq_servic
                                                  uint32_t src_id,
                                                  uint32_t ext_id)
 {
+       (void)irq_service;
+       (void)src_id;
+       (void)ext_id;
        switch (src_id) {
        case DCN_1_0__SRCID__DC_D1_OTG_VSTARTUP:
                return DC_IRQ_SOURCE_VBLANK1;
index 98eedcac124747d37e1864959a8e09bc5e25a69c..8a0f4b5d6956529a1c89c876ebcf4617fc76bb51 100644 (file)
@@ -43,6 +43,9 @@ static enum dc_irq_source to_dal_irq_source_dcn20(
                uint32_t src_id,
                uint32_t ext_id)
 {
+       (void)irq_service;
+       (void)src_id;
+       (void)ext_id;
        switch (src_id) {
        case DCN_1_0__SRCID__DC_D1_OTG_VSTARTUP:
                return DC_IRQ_SOURCE_VBLANK1;
index be02ca2861b384b4213f7fe6d7857035d6a4bc07..9d13c0cc91f07487826c0c7629647f8dcf1a5d50 100644 (file)
@@ -42,6 +42,9 @@ static enum dc_irq_source to_dal_irq_source_dcn21(struct irq_service *irq_servic
                                                  uint32_t src_id,
                                                  uint32_t ext_id)
 {
+       (void)irq_service;
+       (void)src_id;
+       (void)ext_id;
        switch (src_id) {
        case DCN_1_0__SRCID__DC_D1_OTG_VSTARTUP:
                return DC_IRQ_SOURCE_VBLANK1;
index fe830a55f3201398bea5ab1623ccc0dfd3412272..78338af86666579504651fe8e8e11b34dd3b5e61 100644 (file)
@@ -50,6 +50,9 @@ static enum dc_irq_source to_dal_irq_source_dcn30(
                uint32_t src_id,
                uint32_t ext_id)
 {
+       (void)irq_service;
+       (void)src_id;
+       (void)ext_id;
        switch (src_id) {
        case DCN_1_0__SRCID__DC_D1_OTG_VSTARTUP:
                return DC_IRQ_SOURCE_VBLANK1;
index d77d51ed57174b97c986d09cb389dfac9eccd082..2f47a9fbcd43765481f88886a3ace9144099fb65 100644 (file)
@@ -37,6 +37,9 @@
 
 static enum dc_irq_source to_dal_irq_source_dcn302(struct irq_service *irq_service, uint32_t src_id, uint32_t ext_id)
 {
+       (void)ext_id;
+       (void)irq_service;
+       (void)src_id;
        switch (src_id) {
        case DCN_1_0__SRCID__DC_D1_OTG_VSTARTUP:
                return DC_IRQ_SOURCE_VBLANK1;
index afe3d7d4a56f1c184a15ff578766a71fecbe0fb0..236a7278a8cf6390cefa73f374647b775f9cb56d 100644 (file)
@@ -38,6 +38,9 @@ static enum dc_irq_source to_dal_irq_source_dcn303(struct irq_service *irq_servi
                                                   uint32_t src_id,
                                                   uint32_t ext_id)
 {
+       (void)irq_service;
+       (void)src_id;
+       (void)ext_id;
        switch (src_id) {
        case DCN_1_0__SRCID__DC_D1_OTG_VSTARTUP:
                return DC_IRQ_SOURCE_VBLANK1;
index 5c86e950adfd82e2b116e5d4e6bb9d6a12807011..213e5da31b198608596f06f2077707da1bf4b6b7 100644 (file)
@@ -40,6 +40,9 @@ static enum dc_irq_source to_dal_irq_source_dcn31(struct irq_service *irq_servic
                                                  uint32_t src_id,
                                                  uint32_t ext_id)
 {
+       (void)irq_service;
+       (void)src_id;
+       (void)ext_id;
        switch (src_id) {
        case DCN_1_0__SRCID__DC_D1_OTG_VSTARTUP:
                return DC_IRQ_SOURCE_VBLANK1;
index 34aa7a0044547ce4c720d71e2a874e2ba15f5644..8aacc229b00246362014058d43873864f580209d 100644 (file)
@@ -42,6 +42,9 @@ static enum dc_irq_source to_dal_irq_source_dcn314(struct irq_service *irq_servi
                                                   uint32_t src_id,
                                                   uint32_t ext_id)
 {
+       (void)irq_service;
+       (void)src_id;
+       (void)ext_id;
        switch (src_id) {
        case DCN_1_0__SRCID__DC_D1_OTG_VSTARTUP:
                return DC_IRQ_SOURCE_VBLANK1;
index f63990a6c6c4f52ababdcf028e9bc5523a01fb42..b3bddc87afed1dddded80d619a8b7764648be946 100644 (file)
@@ -47,6 +47,9 @@ static enum dc_irq_source to_dal_irq_source_dcn315(
                uint32_t src_id,
                uint32_t ext_id)
 {
+       (void)irq_service;
+       (void)src_id;
+       (void)ext_id;
        switch (src_id) {
        case DCN_1_0__SRCID__DC_D1_OTG_VSTARTUP:
                return DC_IRQ_SOURCE_VBLANK1;
index 5d4d5ed0589ca288405827e5c227c086ef90b86a..f407ba72acdb8b946997a2f3a70ed7e1c77be065 100644 (file)
@@ -41,6 +41,9 @@ static enum dc_irq_source to_dal_irq_source_dcn32(
                uint32_t src_id,
                uint32_t ext_id)
 {
+       (void)irq_service;
+       (void)src_id;
+       (void)ext_id;
        switch (src_id) {
        case DCN_1_0__SRCID__DC_D1_OTG_VSTARTUP:
                return DC_IRQ_SOURCE_VBLANK1;
index 05aeb6ed676ecf375f75ac6abb088ec4c2892bf4..2f2985075f88959bf4646b668b843f8fcfc4886e 100644 (file)
@@ -39,6 +39,9 @@ static enum dc_irq_source to_dal_irq_source_dcn35(
                uint32_t src_id,
                uint32_t ext_id)
 {
+       (void)irq_service;
+       (void)src_id;
+       (void)ext_id;
        switch (src_id) {
        case DCN_1_0__SRCID__DC_D1_OTG_VSTARTUP:
                return DC_IRQ_SOURCE_VBLANK1;
index 9d835b6ffe1cb8400d1d5f9d91a139257ca6b32f..1ed75b53e131b3f3cb211ff0b87b141891473bd1 100644 (file)
@@ -18,6 +18,9 @@ static enum dc_irq_source to_dal_irq_source_dcn351(
                uint32_t src_id,
                uint32_t ext_id)
 {
+       (void)irq_service;
+       (void)src_id;
+       (void)ext_id;
        switch (src_id) {
        case DCN_1_0__SRCID__DC_D1_OTG_VSTARTUP:
                return DC_IRQ_SOURCE_VBLANK1;
index 3da9f01dd5119caca63ebc87268c0443df52aee5..4c321c26f02f65bb539006fde78758012545f831 100644 (file)
@@ -17,6 +17,9 @@ static enum dc_irq_source to_dal_irq_source_dcn36(
                uint32_t src_id,
                uint32_t ext_id)
 {
+       (void)irq_service;
+       (void)src_id;
+       (void)ext_id;
        switch (src_id) {
        case DCN_1_0__SRCID__DC_D1_OTG_VSTARTUP:
                return DC_IRQ_SOURCE_VBLANK1;
index a12bb3cc4c433699d945645ae08d3c5faf0127a9..059c5c636fd9ff47b105237a7882df5c301fcd51 100644 (file)
@@ -20,6 +20,9 @@ static enum dc_irq_source to_dal_irq_source_dcn401(
                uint32_t src_id,
                uint32_t ext_id)
 {
+       (void)irq_service;
+       (void)src_id;
+       (void)ext_id;
        switch (src_id) {
        case DCN_1_0__SRCID__DC_D1_OTG_VSTARTUP:
                return DC_IRQ_SOURCE_VBLANK1;
index bdf733d37a76f4f4498a8051f8fc5c0b157c176f..f4d1ce9079ded27dca3a0d9a9f77c4dc1a425f09 100644 (file)
@@ -19,6 +19,9 @@ static enum dc_irq_source to_dal_irq_source_dcn42(
        uint32_t src_id,
        uint32_t ext_id)
 {
+       (void)irq_service;
+       (void)src_id;
+       (void)ext_id;
        switch (src_id) {
        case DCN_1_0__SRCID__DC_D1_OTG_VSTARTUP:
                return DC_IRQ_SOURCE_VBLANK1;
index 693d852b1c40300d510f7a2c26c9463c7c394d54..060460abc3777ff7e07cfe10b1995cf112886518 100644 (file)
@@ -66,6 +66,7 @@ static void dp_retrain_link_dp_test(struct dc_link *link,
                        struct dc_link_settings *link_setting,
                        bool skip_video_pattern)
 {
+       (void)skip_video_pattern;
        struct pipe_ctx *pipes[MAX_PIPES];
        struct dc_state *state = link->dc->current_state;
        struct dc_stream_update stream_update = { 0 };
@@ -483,6 +484,7 @@ static void set_crtc_test_pattern(struct dc_link *link,
                                enum dp_test_pattern test_pattern,
                                enum dp_test_pattern_color_space test_pattern_color_space)
 {
+       (void)test_pattern_color_space;
        enum controller_dp_test_pattern controller_test_pattern;
        enum dc_color_depth color_depth = pipe_ctx->
                stream->timing.display_color_depth;
index 5d708039c7cf8170bf2c3da7b6cfebdeb65a07d3..2a87b23582f344b4930356db9d963385774c00c6 100644 (file)
@@ -81,6 +81,10 @@ static void set_dio_dpia_lane_settings(struct dc_link *link,
                const struct dc_link_settings *link_settings,
                const struct dc_lane_settings lane_settings[LANE_COUNT_DP_MAX])
 {
+       (void)link;
+       (void)link_res;
+       (void)link_settings;
+       (void)lane_settings;
 }
 
 static void enable_dpia_link_output(struct dc_link *link,
index cec68c5dba1322ff20159619c09449dc080ad933..dbbedeeed298363c0719922807b9e14e3a9a77ba 100644 (file)
@@ -110,6 +110,8 @@ void enable_hpo_dp_link_output(struct dc_link *link,
                enum clock_source_id clock_source,
                const struct dc_link_settings *link_settings)
 {
+       (void)signal;
+       (void)clock_source;
        if (!link_res->hpo_dp_link_enc) {
                DC_LOG_ERROR("%s: invalid hpo_dp_link_enc\n", __func__);
                return;
@@ -160,6 +162,7 @@ static void set_hpo_dp_lane_settings(struct dc_link *link,
                const struct dc_link_settings *link_settings,
                const struct dc_lane_settings lane_settings[LANE_COUNT_DP_MAX])
 {
+       (void)link;
        link_res->hpo_dp_link_enc->funcs->set_ffe(
                        link_res->hpo_dp_link_enc,
                        link_settings,
@@ -170,6 +173,7 @@ void update_hpo_dp_stream_allocation_table(struct dc_link *link,
                const struct link_resource *link_res,
                const struct link_mst_stream_allocation_table *table)
 {
+       (void)link;
        link_res->hpo_dp_link_enc->funcs->update_stream_allocation_table(
                        link_res->hpo_dp_link_enc,
                        table);
@@ -178,6 +182,7 @@ void update_hpo_dp_stream_allocation_table(struct dc_link *link,
 void setup_hpo_dp_audio_output(struct pipe_ctx *pipe_ctx,
                struct audio_output *audio_output, uint32_t audio_inst)
 {
+       (void)audio_output;
        pipe_ctx->stream_res.hpo_dp_stream_enc->funcs->dp_audio_setup(
                        pipe_ctx->stream_res.hpo_dp_stream_enc,
                        audio_inst,
@@ -218,6 +223,7 @@ static const struct link_hwss hpo_dp_link_hwss = {
 bool can_use_hpo_dp_link_hwss(const struct dc_link *link,
                const struct link_resource *link_res)
 {
+       (void)link;
        return link_res->hpo_dp_link_enc != NULL;
 }
 
index 55c5148de800a6ab3f57d00ac2637d0d58160c1c..6d5b7450b20576e61ff8cae5d7f769efc5ff6b5c 100644 (file)
@@ -74,6 +74,7 @@ static void dp_hpo_fixed_vs_pe_retimer_set_tx_ffe(struct dc_link *link,
 static void dp_hpo_fixed_vs_pe_retimer_program_override_test_pattern(struct dc_link *link,
                struct encoder_set_dp_phy_pattern_param *tp_params)
 {
+       (void)tp_params;
        uint8_t clk_src = 0xC4;
        uint8_t pattern = 0x4F; /* SQ128 */
 
index 64742c24f7e6e5b9363af3224111a699b7b76929..3aa1375cec719b81a7e3a3522596a3bd52740460 100644 (file)
 
 void virtual_setup_stream_encoder(struct pipe_ctx *pipe_ctx)
 {
+       (void)pipe_ctx;
 }
 
 void virtual_setup_stream_attribute(struct pipe_ctx *pipe_ctx)
 {
+       (void)pipe_ctx;
 }
 
 void virtual_reset_stream_encoder(struct pipe_ctx *pipe_ctx)
 {
+       (void)pipe_ctx;
 }
 
 static void virtual_disable_link_output(struct dc_link *link,
        const struct link_resource *link_res,
        enum signal_type signal)
 {
+       (void)link;
+       (void)link_res;
+       (void)signal;
 }
 
 static const struct link_hwss virtual_link_hwss = {
index b761f330311f35bc34f3addb0f1c2701d97a879c..59851924bfcd5b31085c03b1e8a36cc77bfe973f 100644 (file)
@@ -823,6 +823,7 @@ static void verify_link_capability_non_destructive(struct dc_link *link)
 static bool should_verify_link_capability_destructively(struct dc_link *link,
                enum dc_detect_reason reason)
 {
+       (void)reason;
        bool destrictive = false;
        struct dc_link_settings max_link_cap;
        bool is_link_enc_unavailable = false;
index acdc162de5353bc119721ecafcb97c3a1c2a7573..eb791285ed06a56239cc57bc7dffd92194005868 100644 (file)
@@ -391,6 +391,7 @@ static const struct dc_tunnel_settings *get_dp_tunnel_settings(const struct dc_s
  */
 enum dc_status link_validate_dp_tunnel_bandwidth(const struct dc *dc, const struct dc_state *new_ctx)
 {
+       (void)dc;
        struct dc_validation_dpia_set dpia_link_sets[MAX_DPIA_NUM] = { 0 };
        uint8_t link_count = 0;
        enum dc_status result = DC_OK;
index 08e2b572e0ff674d1742769088c969231c38bbda..ddff0db4ce706925a1f621792ca5a16431a198b6 100644 (file)
@@ -554,6 +554,7 @@ enum link_training_result dp_check_link_loss_status(
        struct dc_link *link,
        const struct link_training_settings *link_training_setting)
 {
+       (void)link_training_setting;
        enum link_training_result status = LINK_TRAINING_SUCCESS;
        union lane_status lane_status;
        union lane_align_status_updated dpcd_lane_status_updated;
@@ -1387,6 +1388,7 @@ bool dp_set_hw_training_pattern(
        enum dc_dp_training_pattern pattern,
        uint32_t offset)
 {
+       (void)offset;
        enum dp_test_pattern test_pattern = DP_TEST_PATTERN_UNSUPPORTED;
 
        switch (pattern) {
index 11565f187ac77e9c2a0897e71d5b8fe734806b48..1a6bfc45927dd85ceec8399715dd7d7eac139bd4 100644 (file)
@@ -158,6 +158,7 @@ static enum link_training_result dp_perform_128b_132b_cds_done_sequence(
                const struct link_resource *link_res,
                struct link_training_settings *lt_settings)
 {
+       (void)link_res;
        /* Assumption: assume hardware has transmitted eq pattern */
        enum dc_status status = DC_OK;
        enum link_training_result result = LINK_TRAINING_SUCCESS;
index 603537ffd1284df9aee0bfbbc2f7298c1570c633..34fa76d97b83538b7ea243da4897b2e4a02b86c6 100644 (file)
@@ -172,6 +172,7 @@ static uint8_t dpia_build_set_config_data(
                struct dc_link *link,
                struct link_training_settings *lt_settings)
 {
+       (void)link;
        union dpia_set_config_data data;
 
        data.raw = 0;
@@ -290,6 +291,7 @@ static enum link_training_result dpia_training_cr_non_transparent(
                struct link_training_settings *lt_settings,
                uint32_t hop)
 {
+       (void)link_res;
        enum link_training_result result = LINK_TRAINING_CR_FAIL_LANE0;
        uint8_t repeater_cnt = 0; /* Number of hops/repeaters in display path. */
        enum dc_status status = DC_ERROR_UNEXPECTED;
@@ -457,6 +459,7 @@ static enum link_training_result dpia_training_cr_transparent(
                const struct link_resource *link_res,
                struct link_training_settings *lt_settings)
 {
+       (void)link_res;
        enum link_training_result result = LINK_TRAINING_CR_FAIL_LANE0;
        enum dc_status status;
        uint32_t retries_cr = 0; /* Number of consecutive attempts with same VS or PE. */
@@ -585,6 +588,7 @@ static enum link_training_result dpia_training_eq_non_transparent(
                struct link_training_settings *lt_settings,
                uint32_t hop)
 {
+       (void)link_res;
        enum link_training_result result = LINK_TRAINING_EQ_FAIL_EQ;
        uint8_t repeater_cnt = 0; /* Number of hops/repeaters in display path. */
        uint32_t retries_eq = 0;
@@ -730,6 +734,7 @@ static enum link_training_result dpia_training_eq_transparent(
                const struct link_resource *link_res,
                struct link_training_settings *lt_settings)
 {
+       (void)link_res;
        enum link_training_result result = LINK_TRAINING_EQ_FAIL_EQ;
        uint32_t retries_eq = 0;
        enum dc_status status;
@@ -991,6 +996,7 @@ enum link_training_result dpia_perform_link_training(
        const struct dc_link_settings *link_setting,
        bool skip_video_pattern)
 {
+       (void)skip_video_pattern;
        enum link_training_result result;
        struct link_training_settings lt_settings = {0};
        uint8_t repeater_cnt = 0; /* Number of hops/repeaters in display path. */
index 584b9295a12afe4513158e37afcb03227c8f3f81..e4c2aa2bc364179af4da6728bc4e98f8e7c9e938 100644 (file)
@@ -180,6 +180,7 @@ static void dpcd_reduce_address_range(
                uint8_t * const reduced_data,
                const uint32_t reduced_size)
 {
+       (void)extended_size;
        const uint32_t offset = reduced_address - extended_address;
 
        /*
index 8b398b9a2b6bb5f4115dae40c1b53fe7c61cb9a7..4c7bb0522a8cb08e5368208e5d782b0c977b648e 100644 (file)
@@ -117,6 +117,9 @@ void mpc3_set_out_rate_control(
        bool rate_2x_mode,
        struct mpc_dwb_flow_control *flow_control)
 {
+       (void)enable;
+       (void)rate_2x_mode;
+       (void)flow_control;
        struct dcn30_mpc *mpc30 = TO_DCN30_MPC(mpc);
 
        /* Always disable mpc out rate and flow control.
@@ -908,6 +911,7 @@ static void mpc3_set_3dlut_mode(
                bool is_lut_size17x17x17,
                uint32_t rmu_idx)
 {
+       (void)is_color_channel_12bits;
        uint32_t lut_mode;
        struct dcn30_mpc *mpc30 = TO_DCN30_MPC(mpc);
 
index badcef027b84686669ea192a53b43b4c894b31ae..1f15ada109b6af8993b63f9d0cdb566e73b7a20e 100644 (file)
@@ -884,6 +884,7 @@ void mpc32_set_3dlut_mode(
                bool is_lut_size17x17x17,
                uint32_t mpcc_id)
 {
+       (void)is_color_channel_12bits;
        uint32_t lut_mode;
        struct dcn30_mpc *mpc30 = TO_DCN30_MPC(mpc);
 
index 45d418636d0c12007e31595da9b953b19fbabd82..b49bd155cad4c8e96c12ec2f23a3953e2f6d592a 100644 (file)
@@ -250,6 +250,7 @@ void opp1_set_dyn_expansion(
        enum dc_color_depth color_dpth,
        enum signal_type signal)
 {
+       (void)color_sp;
        struct dcn10_opp *oppn10 = TO_DCN10_OPP(opp);
 
        REG_UPDATE_2(FMT_DYNAMIC_EXP_CNTL,
index 6f7b0f816f2a89f096a6f158ed1857f22480846f..9e66b9b97c631ca41fc203a60f1ca637a5e27ba8 100644 (file)
@@ -164,6 +164,7 @@ void optc1_program_timing(
        const enum signal_type signal,
        bool use_vbios)
 {
+       (void)use_vbios;
        struct dc_crtc_timing patched_crtc_timing;
        uint32_t asic_blank_end;
        uint32_t asic_blank_start;
@@ -855,6 +856,8 @@ void optc1_set_early_control(
        struct timing_generator *optc,
        uint32_t early_cntl)
 {
+       (void)optc;
+       (void)early_cntl;
        /* asic design change, do not need this control
         * empty for share caller logic
         */
@@ -1249,6 +1252,7 @@ void optc1_get_crtc_scanoutpos(
 static void optc1_enable_stereo(struct timing_generator *optc,
        const struct dc_crtc_timing *timing, struct crtc_stereo_flags *flags)
 {
+       (void)timing;
        struct optc *optc1 = DCN10TG_FROM_TG(optc);
 
        if (flags) {
index e7a90a437fffb7db668ddc55c18d3992fe7b5374..39ce4d4a61a1c94070ea9cb8ddacabf02682a8de 100644 (file)
@@ -181,6 +181,7 @@ void optc2_set_odm_bypass(struct timing_generator *optc,
 void optc2_set_odm_combine(struct timing_generator *optc, int *opp_id, int opp_cnt,
                int segment_width, int last_segment_width)
 {
+       (void)last_segment_width;
        struct optc *optc1 = DCN10TG_FROM_TG(optc);
        uint32_t memory_mask;
 
@@ -261,6 +262,7 @@ static void optc2_align_vblanks(
        uint8_t master_clock_divider,
        uint8_t slave_clock_divider)
 {
+       (void)slave_clock_divider;
        /* accessing slave OTG registers */
        struct optc *optc1 = DCN10TG_FROM_TG(optc_slave);
 
index ee4665aa49e9f009cb9ea5e1dd33749b5570f353..d72574db1f07b517324c025699f116467fa843c9 100644 (file)
@@ -218,6 +218,7 @@ void optc3_set_odm_bypass(struct timing_generator *optc,
 void optc3_set_odm_combine(struct timing_generator *optc, int *opp_id, int opp_cnt,
                int segment_width, int last_segment_width)
 {
+       (void)last_segment_width;
        struct optc *optc1 = DCN10TG_FROM_TG(optc);
        uint32_t memory_mask = 0;
 
index 893d2aff1f8269296855abe7bd9b7cf44e09aeab..5f53f8747812a659cab8627045490216ddaedc5d 100644 (file)
@@ -43,6 +43,7 @@
 static void optc31_set_odm_combine(struct timing_generator *optc, int *opp_id, int opp_cnt,
                int segment_width, int last_segment_width)
 {
+       (void)last_segment_width;
        struct optc *optc1 = DCN10TG_FROM_TG(optc);
        uint32_t memory_mask = 0;
        int mem_count_per_opp = (segment_width + 2559) / 2560;
index 43ff957288b27fe424a4b99fd9b940aa6ce9b12e..a7cf34937b2f8d6af9e86aa279400f61da059e9b 100644 (file)
@@ -50,6 +50,7 @@
 static void optc314_set_odm_combine(struct timing_generator *optc, int *opp_id, int opp_cnt,
                int segment_width, int last_segment_width)
 {
+       (void)last_segment_width;
        struct optc *optc1 = DCN10TG_FROM_TG(optc);
        uint32_t memory_mask = 0;
        int h_active = segment_width * opp_cnt;
index 3dcb0d0c931cff720f90daac863e1ca2cdbdc8f6..60e546b69a05a4c271da5562f2bd61855fc567c2 100644 (file)
@@ -45,6 +45,7 @@
 static void optc32_set_odm_combine(struct timing_generator *optc, int *opp_id, int opp_cnt,
                int segment_width, int last_segment_width)
 {
+       (void)last_segment_width;
        struct optc *optc1 = DCN10TG_FROM_TG(optc);
        uint32_t memory_mask = 0;
        int h_active = segment_width * opp_cnt;
index 5aafd0eedf6684d05772a0f78ae125e22d0b23c6..a880e4a6d1659830a3c33382fafc6af36e86d74c 100644 (file)
@@ -58,6 +58,7 @@
 static void optc35_set_odm_combine(struct timing_generator *optc, int *opp_id, int opp_cnt,
                int segment_width, int last_segment_width)
 {
+       (void)last_segment_width;
        struct optc *optc1 = DCN10TG_FROM_TG(optc);
        uint32_t memory_mask = 0;
        int h_active = segment_width * opp_cnt;
index d83a6bed2ee0b15e44e7045596203bc8b3bf19b5..caafebe921299b28d2da4da4d006982100581778 100644 (file)
@@ -632,6 +632,7 @@ static struct link_encoder *dce100_link_encoder_create(
        struct dc_context *ctx,
        const struct encoder_init_data *enc_init_data)
 {
+       (void)ctx;
        struct dce110_link_encoder *enc110 =
                kzalloc_obj(struct dce110_link_encoder);
        int link_regs_id;
@@ -849,6 +850,7 @@ static enum dc_status build_mapped_resource(
                struct dc_state *context,
                struct dc_stream_state *stream)
 {
+       (void)dc;
        struct pipe_ctx *pipe_ctx = resource_get_otg_master_for_stream(&context->res_ctx, stream);
 
        if (!pipe_ctx)
@@ -866,6 +868,7 @@ enum dc_status dce100_validate_bandwidth(
        struct dc_state *context,
        enum dc_validate_mode validate_mode)
 {
+       (void)validate_mode;
        int i;
        bool at_least_one_pipe = false;
        struct dc_stream_state *stream = NULL;
@@ -926,6 +929,7 @@ enum dc_status dce100_validate_global(
                struct dc  *dc,
                struct dc_state *context)
 {
+       (void)dc;
        if (!dce100_validate_surface_sets(context))
                return DC_FAIL_SURFACE_VALIDATE;
 
@@ -961,6 +965,7 @@ static void dce100_destroy_resource_pool(struct resource_pool **pool)
 
 enum dc_status dce100_validate_plane(const struct dc_plane_state *plane_state, struct dc_caps *caps)
 {
+       (void)caps;
 
        if (plane_state->format < SURFACE_PIXEL_FORMAT_VIDEO_BEGIN)
                return DC_OK;
index ab71f645c90e3dbb52a9c4a51434f6bf4f6f2c4f..f83acfe7a15eefb3a813a2868909d70f4165d903 100644 (file)
@@ -667,6 +667,7 @@ static struct link_encoder *dce110_link_encoder_create(
        struct dc_context *ctx,
        const struct encoder_init_data *enc_init_data)
 {
+       (void)ctx;
        struct dce110_link_encoder *enc110 =
                kzalloc_obj(struct dce110_link_encoder);
        int link_regs_id;
@@ -971,6 +972,7 @@ static enum dc_status dce110_validate_bandwidth(
        struct dc_state *context,
        enum dc_validate_mode validate_mode)
 {
+       (void)validate_mode;
        bool result = false;
 
        DC_LOG_BANDWIDTH_CALCS(
@@ -1043,6 +1045,7 @@ static enum dc_status dce110_validate_bandwidth(
 static enum dc_status dce110_validate_plane(const struct dc_plane_state *plane_state,
                                            struct dc_caps *caps)
 {
+       (void)caps;
        if (((plane_state->dst_rect.width * 2) < plane_state->src_rect.width) ||
            ((plane_state->dst_rect.height * 2) < plane_state->src_rect.height))
                return DC_FAIL_SURFACE_VALIDATE;
@@ -1099,6 +1102,7 @@ static enum dc_status dce110_validate_global(
                struct dc *dc,
                struct dc_state *context)
 {
+       (void)dc;
        if (!dce110_validate_surface_sets(context))
                return DC_FAIL_SURFACE_VALIDATE;
 
@@ -1130,6 +1134,7 @@ static struct pipe_ctx *dce110_acquire_underlay(
                const struct resource_pool *pool,
                const struct pipe_ctx *opp_head_pipe)
 {
+       (void)cur_ctx;
        struct dc_stream_state *stream = opp_head_pipe->stream;
        struct dc *dc = stream->ctx->dc;
        struct dce_hwseq *hws = dc->hwseq;
@@ -1354,6 +1359,7 @@ static bool dce110_resource_construct(
        struct dce110_resource_pool *pool,
        struct hw_asic_id asic_id)
 {
+       (void)asic_id;
        unsigned int i;
        struct dc_context *ctx = dc->ctx;
        struct dc_bios *bp;
index 85af37c9d922adcbec084e4b5af8a11711e619bc..458b14e4cb97701adbbe7028106c978cdd4a5223 100644 (file)
@@ -628,6 +628,7 @@ static struct link_encoder *dce112_link_encoder_create(
        struct dc_context *ctx,
        const struct encoder_init_data *enc_init_data)
 {
+       (void)ctx;
        struct dce110_link_encoder *enc110 =
                kzalloc_obj(struct dce110_link_encoder);
        int link_regs_id;
@@ -852,6 +853,7 @@ static struct clock_source *find_matching_pll(
                const struct resource_pool *pool,
                const struct dc_stream_state *const stream)
 {
+       (void)res_ctx;
        switch (stream->link->link_enc->transmitter) {
        case TRANSMITTER_UNIPHY_A:
                return pool->clock_sources[DCE112_CLK_SRC_PLL0];
@@ -875,6 +877,7 @@ static enum dc_status build_mapped_resource(
                struct dc_state *context,
                struct dc_stream_state *stream)
 {
+       (void)dc;
        struct pipe_ctx *pipe_ctx = resource_get_otg_master_for_stream(&context->res_ctx, stream);
 
        if (!pipe_ctx)
@@ -892,6 +895,7 @@ enum dc_status dce112_validate_bandwidth(
        struct dc_state *context,
        enum dc_validate_mode validate_mode)
 {
+       (void)validate_mode;
        bool result = false;
 
        DC_LOG_BANDWIDTH_CALCS(
@@ -1037,6 +1041,7 @@ static enum dc_status dce112_validate_global(
                struct dc *dc,
                struct dc_state *context)
 {
+       (void)dc;
        if (!dce112_validate_surface_sets(context))
                return DC_FAIL_SURFACE_VALIDATE;
 
index 7d5c7dacaf05a6c013960d8de6bbaaacbae53403..56bbf9dc16912c476d24f501f33e26a139bbaa5a 100644 (file)
@@ -712,6 +712,7 @@ static struct link_encoder *dce120_link_encoder_create(
        struct dc_context *ctx,
        const struct encoder_init_data *enc_init_data)
 {
+       (void)ctx;
        struct dce110_link_encoder *enc110 =
                kzalloc_obj(struct dce110_link_encoder);
        int link_regs_id;
index fb18312554c7b7220721dc97a3bc8129357ba4f5..33be49b3c1b1785a30440bfe9c018d6be01df7f9 100644 (file)
@@ -734,6 +734,7 @@ static struct link_encoder *dce80_link_encoder_create(
        struct dc_context *ctx,
        const struct encoder_init_data *enc_init_data)
 {
+       (void)ctx;
        struct dce110_link_encoder *enc110 =
                kzalloc_obj(struct dce110_link_encoder);
        int link_regs_id;
index cd4d703e101873feae63dc5be31faeb31b28d149..250c3975b9e982dd97f2800f104974d0ec0e5c76 100644 (file)
@@ -736,6 +736,7 @@ static struct link_encoder *dcn10_link_encoder_create(
        struct dc_context *ctx,
        const struct encoder_init_data *enc_init_data)
 {
+       (void)ctx;
        struct dcn10_link_encoder *enc10 =
                kzalloc_obj(struct dcn10_link_encoder);
        int link_regs_id;
@@ -1049,6 +1050,7 @@ static enum dc_status build_mapped_resource(
                struct dc_state *context,
                struct dc_stream_state *stream)
 {
+       (void)dc;
        struct pipe_ctx *pipe_ctx = resource_get_otg_master_for_stream(&context->res_ctx, stream);
 
        if (!pipe_ctx)
@@ -1083,6 +1085,7 @@ static struct pipe_ctx *dcn10_acquire_free_pipe_for_layer(
                const struct resource_pool *pool,
                const struct pipe_ctx *opp_head_pipe)
 {
+       (void)cur_ctx;
        struct resource_context *res_ctx = &new_ctx->res_ctx;
        struct pipe_ctx *head_pipe = resource_get_otg_master_for_stream(res_ctx, opp_head_pipe->stream);
        struct pipe_ctx *idle_pipe = resource_find_free_secondary_pipe_legacy(res_ctx, pool, head_pipe);
index 5ba67e3c2f8fcde313e1fed992159ca0fb987f77..bd5c18ee35e769d8157a742550fb05dedffe9131 100644 (file)
@@ -916,6 +916,7 @@ struct link_encoder *dcn20_link_encoder_create(
        struct dc_context *ctx,
        const struct encoder_init_data *enc_init_data)
 {
+       (void)ctx;
        struct dcn20_link_encoder *enc20 =
                kzalloc_obj(struct dcn20_link_encoder);
        int link_regs_id;
@@ -1310,6 +1311,7 @@ static enum dc_status build_pipe_hw_param(struct pipe_ctx *pipe_ctx)
 
 enum dc_status dcn20_build_mapped_resource(const struct dc *dc, struct dc_state *context, struct dc_stream_state *stream)
 {
+       (void)dc;
        enum dc_status status = DC_OK;
        struct pipe_ctx *pipe_ctx = resource_get_otg_master_for_stream(&context->res_ctx, stream);
 
@@ -1537,6 +1539,7 @@ void dcn20_split_stream_for_mpc(
                struct pipe_ctx *primary_pipe,
                struct pipe_ctx *secondary_pipe)
 {
+       (void)res_ctx;
        int pipe_idx = secondary_pipe->pipe_idx;
        struct pipe_ctx *sec_bot_pipe = secondary_pipe->bottom_pipe;
 
@@ -1682,6 +1685,7 @@ struct pipe_ctx *dcn20_find_secondary_pipe(struct dc *dc,
                const struct resource_pool *pool,
                const struct pipe_ctx *primary_pipe)
 {
+       (void)pool;
        struct pipe_ctx *secondary_pipe = NULL;
 
        if (dc && primary_pipe) {
@@ -2161,6 +2165,7 @@ struct pipe_ctx *dcn20_acquire_free_pipe_for_layer(
                const struct resource_pool *pool,
                const struct pipe_ctx *opp_head)
 {
+       (void)cur_ctx;
        struct resource_context *res_ctx = &new_ctx->res_ctx;
        struct pipe_ctx *otg_master = resource_get_otg_master_for_stream(res_ctx, opp_head->stream);
        struct pipe_ctx *sec_dpp_pipe = resource_find_free_secondary_pipe_legacy(res_ctx, pool, otg_master);
@@ -2343,6 +2348,7 @@ static struct _vcs_dpi_ip_params_st *get_asic_rev_ip_params(
 
 static enum dml_project get_dml_project_version(uint32_t hw_internal_rev)
 {
+       (void)hw_internal_rev;
        return DML_PROJECT_NAVI10v2;
 }
 
index 3a5dc8ca14572d1337cb3211cbc5b278a874a319..bd19168a3f773f91d3e7dbe120b543ec9a17b19f 100644 (file)
@@ -1299,6 +1299,7 @@ static struct link_encoder *dcn21_link_encoder_create(
        struct dc_context *ctx,
        const struct encoder_init_data *enc_init_data)
 {
+       (void)ctx;
        struct dcn21_link_encoder *enc21 =
                kzalloc_obj(struct dcn21_link_encoder);
        int link_regs_id;
index 8468c0fe37376b3073659587ffa11f5b8c7e4f0c..5742effef7ae261107ae46d0d5c23e432178092d 100644 (file)
@@ -924,6 +924,7 @@ static struct link_encoder *dcn30_link_encoder_create(
        struct dc_context *ctx,
        const struct encoder_init_data *enc_init_data)
 {
+       (void)ctx;
        struct dcn20_link_encoder *enc20 =
                kzalloc_obj(struct dcn20_link_encoder);
 
index 0a110be2b9dadc322c0412d2388d8dc1da19b101..9773896e0801815752894a706c5c95043136012d 100644 (file)
@@ -880,6 +880,7 @@ static struct link_encoder *dcn301_link_encoder_create(
        struct dc_context *ctx,
        const struct encoder_init_data *enc_init_data)
 {
+       (void)ctx;
        struct dcn20_link_encoder *enc20 =
                kzalloc_obj(struct dcn20_link_encoder);
 
index 0b2fc8464ef7b676cbf0b996c3d76ebc95040b4d..d9f12a6f225fd0cb98b1676786e17878b6a1ec25 100644 (file)
@@ -894,6 +894,7 @@ static struct link_encoder *dcn302_link_encoder_create(
        struct dc_context *ctx,
        const struct encoder_init_data *enc_init_data)
 {
+       (void)ctx;
        struct dcn20_link_encoder *enc20 = kzalloc_obj(struct dcn20_link_encoder);
 
        if (!enc20 || enc_init_data->hpd_source >= ARRAY_SIZE(link_enc_hpd_regs))
index a5000134cd97e37563ec0f236dea50d2af9852ea..f0c75db81b2c98f3714df3946e9dec11bf661add 100644 (file)
@@ -839,6 +839,7 @@ static struct link_encoder *dcn303_link_encoder_create(
        struct dc_context *ctx,
        const struct encoder_init_data *enc_init_data)
 {
+       (void)ctx;
        struct dcn20_link_encoder *enc20 = kzalloc_obj(struct dcn20_link_encoder);
 
        if (!enc20 || enc_init_data->hpd_source >= ARRAY_SIZE(link_enc_hpd_regs))
index 4920bc136282f7d766020e1fdcc52ae098f0b425..afcc4dff6abcf6033bf3083793bf4d2fbf14dfbb 100644 (file)
@@ -1090,6 +1090,7 @@ static struct link_encoder *dcn31_link_encoder_create(
        struct dc_context *ctx,
        const struct encoder_init_data *enc_init_data)
 {
+       (void)ctx;
        struct dcn20_link_encoder *enc20 =
                kzalloc_obj(struct dcn20_link_encoder);
 
@@ -2243,6 +2244,7 @@ enum dc_status dcn31_update_dc_state_for_encoder_switch(struct dc_link *link,
        struct pipe_ctx *pipes,
        struct audio_output *audio_output)
 {
+       (void)link_setting;
        struct dc_state *state = link->dc->current_state;
        int i;
 
index b74a167ae5f74d57e9187423f6f1910e94afb8ed..654b4e97807e9fdaca17930d5fb35d662ede9dde 100644 (file)
@@ -1148,6 +1148,7 @@ static struct link_encoder *dcn31_link_encoder_create(
        struct dc_context *ctx,
        const struct encoder_init_data *enc_init_data)
 {
+       (void)ctx;
        struct dcn20_link_encoder *enc20 =
                kzalloc_obj(struct dcn20_link_encoder);
 
index d9818bc2dfdb645f359e20d1b4b851386c9e8973..f424fd4d5a457626ff0e254094881c0ac3390c32 100644 (file)
@@ -1089,6 +1089,7 @@ static struct link_encoder *dcn31_link_encoder_create(
        struct dc_context *ctx,
        const struct encoder_init_data *enc_init_data)
 {
+       (void)ctx;
        struct dcn20_link_encoder *enc20 =
                kzalloc_obj(struct dcn20_link_encoder);
 
index c20521d0dd1e3c52bb519eed2c7d7a2ea2b7b982..e0dc8aaaaaa1d39f8227b8cf9a0919103feabb2c 100644 (file)
@@ -1082,6 +1082,7 @@ static struct link_encoder *dcn31_link_encoder_create(
        struct dc_context *ctx,
        const struct encoder_init_data *enc_init_data)
 {
+       (void)ctx;
        struct dcn20_link_encoder *enc20 =
                kzalloc_obj(struct dcn20_link_encoder);
 
index f5a4e97c40ced260157fe1aef6b11015b43d98fa..4808c793590f708bd93b3f172991dce56770290f 100644 (file)
@@ -41,6 +41,7 @@ uint32_t dcn32_helper_calculate_mall_bytes_for_cursor(
                struct pipe_ctx *pipe_ctx,
                bool ignore_cursor_buf)
 {
+       (void)dc;
        struct hubp *hubp = pipe_ctx->plane_res.hubp;
        uint32_t cursor_size = hubp->curs_attr.pitch * hubp->curs_attr.height;
        uint32_t cursor_mall_size_bytes = 0;
index b9532ebcced4fdc6b10ea0321a2c8a516a4977d7..c0d37f00fed91f7b4d655425ae772499d9fa0714 100644 (file)
@@ -1698,6 +1698,7 @@ static struct dc_cap_funcs cap_funcs = {
 
 static void dcn42_update_bw_bounding_box_fpu(struct dc *dc, struct clk_bw_params *bw_params)
 {
+       (void)bw_params;
        dc_assert_fp_enabled();
 
        if (dc->current_state && dc->current_state->bw_ctx.dml2)
@@ -1774,6 +1775,8 @@ static unsigned int dcn42_get_max_hw_cursor_size(const struct dc *dc,
                        struct dc_state *state,
                        const struct dc_stream_state *stream)
 {
+       (void)state;
+       (void)stream;
        return dc->caps.max_cursor_size;
 }
 static struct resource_funcs dcn42_res_pool_funcs = {
index 1c04171b296c2402faf8041a697c8afcc91abaf6..146a6e47934b658cb110db22de440d6450cfc7ee 100644 (file)
@@ -159,6 +159,7 @@ static void dcn42_update_soc_bb_with_values_from_clk_mgr(struct dml2_soc_bb *soc
 
 static void apply_soc_bb_updates(struct dml2_soc_bb *soc_bb, const struct dc *dc, const struct dml2_configuration_options *config)
 {
+       (void)config;
        /* Individual modification can be overwritten even if it was obtained by a previous function.
         * Modifications are acquired in order of priority (lowest to highest).
         */