All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alex Deucher <alexdeucher@gmail.com>
To: isabbasso@riseup.net
Cc: "Kuehling, Felix" <Felix.Kuehling@amd.com>,
	"Siqueira, Rodrigo" <Rodrigo.Siqueira@amd.com>,
	amd-gfx list <amd-gfx@lists.freedesktop.org>,
	~lkcamp/patches@lists.sr.ht, Daniel Vetter <daniel@ffwll.ch>,
	"Deucher, Alexander" <alexander.deucher@amd.com>,
	"Wentland, Harry" <harry.wentland@amd.com>,
	Christian Koenig <christian.koenig@amd.com>
Subject: Re: [PATCH 01/10] drm/amd: Mark IP_BASE definition as __maybe_unused
Date: Wed, 8 Dec 2021 14:37:15 -0500	[thread overview]
Message-ID: <CADnq5_P+yvpSBVt1WeMSR8qXTN5eUTD1HQ6EDy8G-ZVSppdXPw@mail.gmail.com> (raw)
In-Reply-To: <20211208012529.372478-2-isabbasso@riseup.net>

On Tue, Dec 7, 2021 at 10:17 PM Isabella Basso <isabbasso@riseup.net> wrote:
>
> 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>

Applied.  Thanks.

Alex

> ---
>  drivers/gpu/drm/amd/include/cyan_skillfish_ip_offset.h | 10 +++++-----
>  drivers/gpu/drm/amd/include/yellow_carp_offset.h       |  4 ++--
>  2 files changed, 7 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/include/cyan_skillfish_ip_offset.h b/drivers/gpu/drm/amd/include/cyan_skillfish_ip_offset.h
> index 9cb5f3631c60..ce79e5de8ce3 100644
> --- a/drivers/gpu/drm/amd/include/cyan_skillfish_ip_offset.h
> +++ b/drivers/gpu/drm/amd/include/cyan_skillfish_ip_offset.h
> @@ -25,15 +25,15 @@
>  #define MAX_SEGMENT                                        5
>
>
> -struct IP_BASE_INSTANCE
> +struct IP_BASE_INSTANCE
>  {
>      unsigned int segment[MAX_SEGMENT];
> -};
> -
> -struct IP_BASE
> +} __maybe_unused;
> +
> +struct IP_BASE
>  {
>      struct IP_BASE_INSTANCE instance[MAX_INSTANCE];
> -};
> +} __maybe_unused;
>
>
>  static const struct IP_BASE ATHUB_BASE            ={ { { { 0x00000C00, 0, 0, 0, 0 } },
> diff --git a/drivers/gpu/drm/amd/include/yellow_carp_offset.h b/drivers/gpu/drm/amd/include/yellow_carp_offset.h
> index 76b9eb3f441d..28a56b56bcaf 100644
> --- a/drivers/gpu/drm/amd/include/yellow_carp_offset.h
> +++ b/drivers/gpu/drm/amd/include/yellow_carp_offset.h
> @@ -9,12 +9,12 @@
>  struct IP_BASE_INSTANCE
>  {
>      unsigned int segment[MAX_SEGMENT];
> -};
> +} __maybe_unused;
>
>  struct IP_BASE
>  {
>      struct IP_BASE_INSTANCE instance[MAX_INSTANCE];
> -};
> +} __maybe_unused;
>
>
>  static const struct IP_BASE ACP_BASE = { { { { 0x02403800, 0x00480000, 0, 0, 0, 0 } },
> --
> 2.34.1
>

  reply	other threads:[~2021-12-08 19:37 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-08  1:25 [PATCH 00/10] drm/amd: fix various compilation warnings Isabella Basso
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 [this message]
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=CADnq5_P+yvpSBVt1WeMSR8qXTN5eUTD1HQ6EDy8G-ZVSppdXPw@mail.gmail.com \
    --to=alexdeucher@gmail.com \
    --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=isabbasso@riseup.net \
    --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.