Commit 0e2a82a3 authored by Isabella Basso's avatar Isabella Basso Committed by Alex Deucher

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: default avatarIsabella Basso <isabbasso@riseup.net>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 85a774d9
...@@ -25,15 +25,15 @@ ...@@ -25,15 +25,15 @@
#define MAX_SEGMENT 5 #define MAX_SEGMENT 5
struct IP_BASE_INSTANCE struct IP_BASE_INSTANCE
{ {
unsigned int segment[MAX_SEGMENT]; unsigned int segment[MAX_SEGMENT];
}; } __maybe_unused;
struct IP_BASE struct IP_BASE
{ {
struct IP_BASE_INSTANCE instance[MAX_INSTANCE]; struct IP_BASE_INSTANCE instance[MAX_INSTANCE];
}; } __maybe_unused;
static const struct IP_BASE ATHUB_BASE ={ { { { 0x00000C00, 0, 0, 0, 0 } }, static const struct IP_BASE ATHUB_BASE ={ { { { 0x00000C00, 0, 0, 0, 0 } },
......
...@@ -9,12 +9,12 @@ ...@@ -9,12 +9,12 @@
struct IP_BASE_INSTANCE struct IP_BASE_INSTANCE
{ {
unsigned int segment[MAX_SEGMENT]; unsigned int segment[MAX_SEGMENT];
}; } __maybe_unused;
struct IP_BASE struct IP_BASE
{ {
struct IP_BASE_INSTANCE instance[MAX_INSTANCE]; struct IP_BASE_INSTANCE instance[MAX_INSTANCE];
}; } __maybe_unused;
static const struct IP_BASE ACP_BASE = { { { { 0x02403800, 0x00480000, 0, 0, 0, 0 } }, static const struct IP_BASE ACP_BASE = { { { { 0x02403800, 0x00480000, 0, 0, 0, 0 } },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment