OpenCloudOS-Kernel/drivers/gpu/drm/amd/include
Lee Jones 1b98bc5dea drm/amd/include/vega10_ip_offset: Mark _BASE structs as __maybe_unused
This patch fixes nearly 400 warnings!

These structures are too widely used in too many varying
configurations to be split-up into different headers or moved into
source files.

Instead, we'll mark them as __maybe_unused which tells the compiler
that we're aware they're being included into source files which do not
make use of them - but we've looked into it, and it's okay.

Let's tidy-up whilst were here.  Just alignment stuff.

Fixes the following W=1 kernel build warning(s):

 In file included from drivers/gpu/drm/amd/amdgpu/navi14_reg_init.c:27:
 drivers/gpu/drm/amd/amdgpu/../include/navi14_ip_offset.h:179:29: warning: ‘USB0_BASE’ defined but not used [-Wunused-const-variable=]
 179 | static const struct IP_BASE USB0_BASE ={ { { { 0x0242A800, 0x05B00000, 0, 0, 0 } },
 | ^~~~~~~~~
 drivers/gpu/drm/amd/amdgpu/../include/navi14_ip_offset.h:172:29: warning: ‘UMC_BASE’ defined but not used [-Wunused-const-variable=]
 172 | static const struct IP_BASE UMC_BASE ={ { { { 0x00014000, 0x02425800, 0, 0, 0 } },
 | ^~~~~~~~
 drivers/gpu/drm/amd/amdgpu/../include/navi14_ip_offset.h:151:29: warning: ‘SDMA_BASE’ defined but not used [-Wunused-const-variable=]
 151 | static const struct IP_BASE SDMA_BASE ={ { { { 0x00001260, 0x0000A000, 0x02402C00, 0, 0 } },
 | ^~~~~~~~~
 drivers/gpu/drm/amd/amdgpu/../include/navi14_ip_offset.h:144:29: warning: ‘PCIE0_BASE’ defined but not used [-Wunused-const-variable=]
 144 | static const struct IP_BASE PCIE0_BASE ={ { { { 0x00000000, 0x00000014, 0x00000D20, 0x00010400, 0x0241B000 } },
 | ^~~~~~~~~~

NB: Snipped for brevity

Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: "Christian König" <christian.koenig@amd.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: amd-gfx@lists.freedesktop.org
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2020-11-13 17:29:46 -05:00
..
asic_reg drm/amdgpu: Add and use seperate reg headers for dcn302 2020-11-10 14:15:08 -05:00
ivsrcid drm/amdgpu: add sdma2 and sdma3 irqsrc header files for sienna_cichlid (v2) 2020-06-03 13:52:03 -04:00
amd_acpi.h drm/amd: Query and use ACPI backlight caps 2018-11-26 15:54:39 -05:00
amd_pcie.h drm/amdgpu: update amd_pcie.h to include gen4 speeds 2018-07-05 16:39:59 -05:00
amd_pcie_helpers.h
amd_shared.h drm/amdgpu: Add GFX Fine Grain Clock Gating flag 2020-11-04 17:08:08 -05:00
arct_ip_offset.h drm/amd/include: adjust base offset of SMUIO and THM for Arcturus 2019-07-30 23:48:34 -05:00
atom-bits.h
atom-names.h
atom-types.h
atombios.h drm/amd/pm: correct VR shared rail info 2020-10-27 11:58:57 -04:00
atomfirmware.h drm/amdgpu: drop CONFIG_DRM_AMD_DC_DCN3_01 from atomfirmware.h 2020-10-30 01:02:10 -04:00
atomfirmwareid.h
cgs_common.h drm/amdgpu: retire indirect mmio reg support from cgs 2020-04-09 10:43:18 -04:00
cik_structs.h drm/amdkfd: Shift sdma_engine_id and sdma_queue_id in mqd 2019-05-24 12:21:01 -05:00
dimgrey_cavefish_ip_offset.h drm/amdgpu: initialize IP offset for dimgrey_cavefish 2020-10-12 14:00:20 -04:00
discovery.h drm/amdgpu/discovery: reserve discovery data at the top of VRAM 2019-10-15 15:48:46 -04:00
displayobject.h
dm_pp_interface.h drm/amd/pp: Remove the same struct define in powerplay 2018-07-05 16:40:02 -05:00
kgd_kfd_interface.h drm next for 5.10-rc1 2020-10-15 10:46:16 -07:00
kgd_pp_interface.h drm/amdgpu: add amdgpu_gfx_state_change_set() set gfx power change entry (v2) 2020-11-13 17:29:45 -05:00
navi10_enum.h drm/amdgpu: add navi10 enums header 2019-06-20 15:54:46 -05:00
navi10_ip_offset.h drm/amdgpu: add navi10 ip offset header 2019-06-20 15:54:53 -05:00
navi12_ip_offset.h drm/amdgpu: Fix a typo in the include header guard of 'navi12_ip_offset.h' 2019-08-21 22:16:55 -05:00
navi14_ip_offset.h drm/amdgpu/soc15: initialize reg base for navi14 (v2) 2019-07-18 14:17:58 -05:00
pptable.h
renoir_ip_offset.h drm/amd/display: Add DCN_BASE regs 2019-10-17 16:27:27 -04:00
sienna_cichlid_ip_offset.h drm/amdgpu: initialize IP offset for sienna_cichlid (v2) 2020-06-03 13:52:00 -04:00
soc15_hw_ip.h drm/amdgpu: add navi10 ip offset header 2019-06-20 15:54:53 -05:00
soc15_ih_clientid.h drm/amdgpu: correct SDMA3 IH clinet id for sienna_cichlid 2020-06-03 13:52:04 -04:00
v9_structs.h drm/amdkfd: Extend CU mask to 8 SEs (v3) 2019-08-02 10:19:11 -05:00
v10_structs.h drm/amdgpu: add v10 structs header (v2) 2019-06-20 21:16:37 -05:00
vangogh_ip_offset.h drm/amdgpu: add vangogh_reg_base_init function for van gogh 2020-10-05 15:14:02 -04:00
vega10_enum.h drm/amdgpu: Support new arcturus mtype 2019-09-13 17:35:48 -05:00
vega10_ip_offset.h drm/amd/include/vega10_ip_offset: Mark _BASE structs as __maybe_unused 2020-11-13 17:29:46 -05:00
vega20_ip_offset.h drm/amd/include/vg20: adjust VCE_BASE to reuse vce 4.0 header files 2018-05-17 10:13:09 -05:00
vi_structs.h drm/amdkfd: Shift sdma_engine_id and sdma_queue_id in mqd 2019-05-24 12:21:01 -05:00