AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Christian König" <ckoenig.leichtzumerken@gmail.com>
To: jiadong.zhu@amd.com, amd-gfx@lists.freedesktop.org
Cc: kernel test robot <lkp@intel.com>
Subject: Re: [PATCH] drm/amdgpu: Make amdgpu_ring_mux functions as static
Date: Mon, 5 Dec 2022 09:31:00 +0100	[thread overview]
Message-ID: <2fb37eb8-80e2-a4c4-39ad-96d16a20d613@gmail.com> (raw)
In-Reply-To: <20221205022744.1024401-1-jiadong.zhu@amd.com>

Am 05.12.22 um 03:27 schrieb jiadong.zhu@amd.com:
> From: Jiadong Zhu <Jiadong.Zhu@amd.com>
>
> lkp robot reported missing-prototypes and unused-but-set-variable warnings on
> some functions of amdgpu_mcbp_mux.c. Make them static and remove the unused
> variable.
>
> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: Jiadong Zhu <Jiadong.Zhu@amd.com>

Reviewed-by: Christian König <christian.koenig@amd.com>

> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_ring_mux.c | 8 +++-----
>   1 file changed, 3 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring_mux.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring_mux.c
> index 3348337379da..62079f0e3ee8 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring_mux.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring_mux.c
> @@ -350,7 +350,7 @@ unsigned int amdgpu_sw_ring_priority(int idx)
>   }
>   
>   /*Scan on low prio rings to have unsignaled fence and high ring has no fence.*/
> -int amdgpu_mcbp_scan(struct amdgpu_ring_mux *mux)
> +static int amdgpu_mcbp_scan(struct amdgpu_ring_mux *mux)
>   {
>   	struct amdgpu_ring *ring;
>   	int i, need_preempt;
> @@ -370,7 +370,7 @@ int amdgpu_mcbp_scan(struct amdgpu_ring_mux *mux)
>   }
>   
>   /* Trigger Mid-Command Buffer Preemption (MCBP) and find if we need to resubmit. */
> -int amdgpu_mcbp_trigger_preempt(struct amdgpu_ring_mux *mux)
> +static int amdgpu_mcbp_trigger_preempt(struct amdgpu_ring_mux *mux)
>   {
>   	int r;
>   
> @@ -434,7 +434,7 @@ void amdgpu_ring_mux_start_ib(struct amdgpu_ring_mux *mux, struct amdgpu_ring *r
>   
>   static void scan_and_remove_signaled_chunk(struct amdgpu_ring_mux *mux, struct amdgpu_ring *ring)
>   {
> -	uint32_t last_seq, size = 0;
> +	uint32_t last_seq = 0;
>   	struct amdgpu_mux_entry *e;
>   	struct amdgpu_mux_chunk *chunk, *tmp;
>   
> @@ -450,8 +450,6 @@ static void scan_and_remove_signaled_chunk(struct amdgpu_ring_mux *mux, struct a
>   		if (chunk->sync_seq <= last_seq) {
>   			list_del(&chunk->entry);
>   			kmem_cache_free(amdgpu_mux_chunk_slab, chunk);
> -		} else {
> -			size++;
>   		}
>   	}
>   }


      reply	other threads:[~2022-12-05  8:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-05  2:27 [PATCH] drm/amdgpu: Make amdgpu_ring_mux functions as static jiadong.zhu
2022-12-05  8:31 ` Christian König [this message]

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=2fb37eb8-80e2-a4c4-39ad-96d16a20d613@gmail.com \
    --to=ckoenig.leichtzumerken@gmail.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=jiadong.zhu@amd.com \
    --cc=lkp@intel.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox