From: Isabella Basso <isabbasso@riseup.net>
To: alexander.deucher@amd.com, christian.koenig@amd.com,
daniel@ffwll.ch, harry.wentland@amd.com,
Rodrigo.Siqueira@amd.com, Felix.Kuehling@amd.com
Cc: ~lkcamp/patches@lists.sr.ht,
Isabella Basso <isabbasso@riseup.net>,
amd-gfx@lists.freedesktop.org
Subject: [PATCH 00/10] drm/amd: fix various compilation warnings
Date: Tue, 7 Dec 2021 22:25:19 -0300 [thread overview]
Message-ID: <20211208012529.372478-1-isabbasso@riseup.net> (raw)
This patchset aims at fixing various compilation warnings in the AMD GPU
driver. All warnings were generated using gcc and the W=1 flag. I
decided to deal with them in the same order as the issues were presented
in the log, with the exception of those that were about the lack of
protypes, which were gathered by a script [1].
[1] - https://pad.riseup.net/p/ZMkzoeO89Kt7R_IC4iAo-keep
Isabella Basso (10):
drm/amd: Mark IP_BASE definition as __maybe_unused
drm/amd: fix improper docstring syntax
drm/amdgpu: add missing function prototype for
amdgpu_ras_mca_query_error_status
drm/amdgpu: fix function scopes
drm/amdkfd: fix function scopes
drm/amd/display: fix function scopes
drm/amd: append missing includes
drm/amdgpu: fix location of prototype for amdgpu_kms_compat_ioctl
drm/amdgpu: remove unnecessary variables
drm/amdgpu: re-format file header comments
drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 -
.../gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c | 4 +-
.../gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c | 3 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.h | 3 +
drivers/gpu/drm/amd/amdgpu/amdgpu_ioc32.c | 16 +++---
drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | 2 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c | 2 +
.../gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c | 4 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 6 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h | 4 ++
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c | 1 -
drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c | 4 +-
drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c | 2 -
drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c | 2 -
drivers/gpu/drm/amd/amdkfd/kfd_migrate.c | 4 +-
.../drm/amd/amdkfd/kfd_packet_manager_vi.c | 4 +-
drivers/gpu/drm/amd/amdkfd/kfd_process.c | 5 +-
drivers/gpu/drm/amd/amdkfd/kfd_svm.c | 10 +++-
.../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 19 +++++--
.../amd/display/amdgpu_dm/amdgpu_dm_color.c | 4 ++
.../gpu/drm/amd/display/dc/calcs/dcn_calcs.c | 4 +-
.../display/dc/clk_mgr/dcn10/rv1_clk_mgr.c | 2 +-
.../dc/clk_mgr/dcn10/rv1_clk_mgr_vbios_smu.c | 2 +
.../display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c | 2 +-
.../dc/clk_mgr/dcn201/dcn201_clk_mgr.c | 9 +--
.../amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c | 14 ++---
.../dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c | 6 +-
.../display/dc/clk_mgr/dcn301/dcn301_smu.c | 6 +-
.../display/dc/clk_mgr/dcn301/vg_clk_mgr.c | 10 ++--
.../display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c | 9 +--
.../amd/display/dc/clk_mgr/dcn31/dcn31_smu.c | 6 +-
drivers/gpu/drm/amd/display/dc/core/dc_link.c | 3 +-
.../display/dc/dce110/dce110_hw_sequencer.c | 2 +
.../gpu/drm/amd/display/dc/dcn10/dcn10_dpp.c | 2 +-
.../drm/amd/display/dc/dcn10/dcn10_dpp_dscl.c | 5 +-
.../amd/display/dc/dcn10/dcn10_hw_sequencer.c | 16 +++---
.../gpu/drm/amd/display/dc/dcn10/dcn10_opp.c | 5 +-
.../gpu/drm/amd/display/dc/dcn10/dcn10_optc.c | 8 +--
.../drm/amd/display/dc/dcn10/dcn10_resource.c | 21 ++++---
.../gpu/drm/amd/display/dc/dcn20/dcn20_dpp.c | 5 +-
.../drm/amd/display/dc/dcn20/dcn20_dwb_scl.c | 4 +-
.../gpu/drm/amd/display/dc/dcn20/dcn20_hubp.c | 7 +--
.../drm/amd/display/dc/dcn20/dcn20_hwseq.c | 6 +-
.../gpu/drm/amd/display/dc/dcn20/dcn20_init.c | 2 +
.../gpu/drm/amd/display/dc/dcn20/dcn20_mpc.c | 8 +--
.../gpu/drm/amd/display/dc/dcn20/dcn20_optc.c | 21 ++++---
.../drm/amd/display/dc/dcn201/dcn201_dccg.c | 3 +-
.../drm/amd/display/dc/dcn201/dcn201_hubp.c | 7 +--
.../display/dc/dcn201/dcn201_link_encoder.c | 7 ++-
.../amd/display/dc/dcn201/dcn201_resource.c | 19 +++----
.../drm/amd/display/dc/dcn21/dcn21_hubbub.c | 2 +-
.../gpu/drm/amd/display/dc/dcn21/dcn21_hubp.c | 16 +++---
.../gpu/drm/amd/display/dc/dcn21/dcn21_init.c | 2 +
.../amd/display/dc/dcn21/dcn21_link_encoder.c | 9 ++-
.../drm/amd/display/dc/dcn21/dcn21_resource.c | 34 +++++------
.../dc/dcn30/dcn30_dio_stream_encoder.c | 8 +--
.../gpu/drm/amd/display/dc/dcn30/dcn30_dpp.c | 27 ++++-----
.../gpu/drm/amd/display/dc/dcn30/dcn30_init.c | 2 +
.../drm/amd/display/dc/dcn30/dcn30_mmhubbub.c | 2 +-
.../gpu/drm/amd/display/dc/dcn30/dcn30_mpc.c | 2 +-
.../drm/amd/display/dc/dcn30/dcn30_resource.c | 13 ++---
.../drm/amd/display/dc/dcn301/dcn301_init.c | 2 +
.../amd/display/dc/dcn301/dcn301_panel_cntl.c | 10 ++--
.../amd/display/dc/dcn301/dcn301_resource.c | 56 +++++++++----------
.../drm/amd/display/dc/dcn302/dcn302_init.c | 2 +
.../drm/amd/display/dc/dcn303/dcn303_init.c | 2 +
.../gpu/drm/amd/display/dc/dcn31/dcn31_dccg.c | 2 +-
.../display/dc/dcn31/dcn31_dio_link_encoder.c | 2 +-
.../gpu/drm/amd/display/dc/dcn31/dcn31_init.c | 2 +
.../amd/display/dc/dcn31/dcn31_panel_cntl.c | 10 ++--
.../drm/amd/display/dc/dcn31/dcn31_resource.c | 4 +-
.../dc/dml/dcn21/display_rq_dlg_calc_21.c | 3 +-
.../display/dc/irq/dcn10/irq_service_dcn10.c | 7 +--
.../dc/irq/dcn201/irq_service_dcn201.c | 7 +--
.../display/dc/irq/dcn21/irq_service_dcn21.c | 7 +--
.../display/dc/irq/dcn31/irq_service_dcn31.c | 7 +--
.../amd/include/cyan_skillfish_ip_offset.h | 10 ++--
.../gpu/drm/amd/include/yellow_carp_offset.h | 4 +-
drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c | 2 +-
80 files changed, 303 insertions(+), 279 deletions(-)
--
2.34.1
next reply other threads:[~2021-12-08 3:16 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-08 1:25 Isabella Basso [this message]
2021-12-08 1:25 ` [PATCH 01/10] drm/amd: Mark IP_BASE definition as __maybe_unused Isabella Basso
2021-12-08 19:37 ` Alex Deucher
2021-12-08 1:25 ` [PATCH 02/10] drm/amd: fix improper docstring syntax Isabella Basso
2021-12-08 19:40 ` Alex Deucher
2021-12-08 1:25 ` [PATCH 03/10] drm/amdgpu: add missing function prototype for amdgpu_ras_mca_query_error_status Isabella Basso
2021-12-08 19:42 ` Alex Deucher
2021-12-08 1:25 ` [PATCH 04/10] drm/amdgpu: fix function scopes Isabella Basso
2021-12-08 19:44 ` Alex Deucher
2021-12-08 1:25 ` [PATCH 05/10] drm/amdkfd: " Isabella Basso
2021-12-08 19:46 ` Alex Deucher
2021-12-08 1:25 ` [PATCH 06/10] drm/amd/display: " Isabella Basso
2021-12-08 14:59 ` Rodrigo Siqueira Jordao
2021-12-08 1:25 ` [PATCH 07/10] drm/amd: append missing includes Isabella Basso
2021-12-08 15:10 ` Rodrigo Siqueira Jordao
2021-12-08 19:48 ` Alex Deucher
2021-12-08 1:25 ` [PATCH 08/10] drm/amdgpu: fix location of prototype for amdgpu_kms_compat_ioctl Isabella Basso
2021-12-08 19:50 ` Alex Deucher
2021-12-08 1:25 ` [PATCH 09/10] drm/amdgpu: remove unnecessary variables Isabella Basso
2021-12-08 15:08 ` Rodrigo Siqueira Jordao
2021-12-08 18:20 ` Felix Kuehling
2021-12-08 1:25 ` [PATCH 10/10] drm/amdgpu: re-format file header comments Isabella Basso
2021-12-08 19:52 ` Alex Deucher
2021-12-08 15:13 ` [PATCH 00/10] drm/amd: fix various compilation warnings Rodrigo Siqueira Jordao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211208012529.372478-1-isabbasso@riseup.net \
--to=isabbasso@riseup.net \
--cc=Felix.Kuehling@amd.com \
--cc=Rodrigo.Siqueira@amd.com \
--cc=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=christian.koenig@amd.com \
--cc=daniel@ffwll.ch \
--cc=harry.wentland@amd.com \
--cc=~lkcamp/patches@lists.sr.ht \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.