]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd: Mark IP_BASE definition as __maybe_unused
authorIsabella Basso <isabbasso@riseup.net>
Wed, 8 Dec 2021 01:25:20 +0000 (22:25 -0300)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 13 Dec 2021 21:32:34 +0000 (16:32 -0500)
commit7a18bcddcfc6923a039462c058ee3effec0a05bd
treec7b59f988d90ec9f1be389350932fd70436ac004
parentdc4663d234d9d35b81cc5cf7f9ae674f138dbfd1
drm/amd: Mark IP_BASE definition as __maybe_unused

Silences 166 compile-time warnings like:

 warning: 'UVD0_BASE' defined but not used [-Wunused-const-variable=]
 129 | static const struct IP_BASE UVD0_BASE ={ { { { 0x00007800, 0x00007E00, 0, 0, 0 } },
     |                             ^~~~~~~~~
 warning: 'UMC0_BASE' defined but not used [-Wunused-const-variable=]
 123 | static const struct IP_BASE UMC0_BASE ={ { { { 0x00014000, 0, 0, 0, 0 } },
     |                             ^~~~~~~~~

Signed-off-by: Isabella Basso <isabbasso@riseup.net>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/include/cyan_skillfish_ip_offset.h
drivers/gpu/drm/amd/include/yellow_carp_offset.h