linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Lee Jones <lee.jones@linaro.org>
To: lee.jones@linaro.org
Cc: linux-kernel@vger.kernel.org,
	"Alex Deucher" <alexander.deucher@amd.com>,
	"Christian König" <christian.koenig@amd.com>,
	"David Airlie" <airlied@linux.ie>,
	"Daniel Vetter" <daniel@ffwll.ch>,
	amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org
Subject: [PATCH 02/19] drm/radeon/r600: Move 'evergreen_rlc_resume()'s prototype to shared header
Date: Wed, 11 Nov 2020 18:35:28 +0000	[thread overview]
Message-ID: <20201111183545.1756994-3-lee.jones@linaro.org> (raw)
In-Reply-To: <20201111183545.1756994-1-lee.jones@linaro.org>

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

 drivers/gpu/drm/radeon/evergreen.c:4380:5: warning: no previous prototype for ‘evergreen_rlc_resume’ [-Wmissing-prototypes]
 4380 | int evergreen_rlc_resume(struct radeon_device *rdev)
 | ^~~~~~~~~~~~~~~~~~~~

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>
---
 drivers/gpu/drm/radeon/evergreen.h | 1 +
 drivers/gpu/drm/radeon/r600.c      | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/radeon/evergreen.h b/drivers/gpu/drm/radeon/evergreen.h
index eb46ac7776951..f8d772e612a48 100644
--- a/drivers/gpu/drm/radeon/evergreen.h
+++ b/drivers/gpu/drm/radeon/evergreen.h
@@ -48,5 +48,6 @@ void evergreen_gpu_pci_config_reset(struct radeon_device *rdev);
 u32 evergreen_get_number_of_dram_channels(struct radeon_device *rdev);
 void evergreen_print_gpu_status_regs(struct radeon_device *rdev);
 u32 evergreen_gpu_check_soft_reset(struct radeon_device *rdev);
+int evergreen_rlc_resume(struct radeon_device *rdev);
 
 #endif				/* __RADEON_EVERGREEN_H__ */
diff --git a/drivers/gpu/drm/radeon/r600.c b/drivers/gpu/drm/radeon/r600.c
index 94e8815e5067d..b44e0c607b1b1 100644
--- a/drivers/gpu/drm/radeon/r600.c
+++ b/drivers/gpu/drm/radeon/r600.c
@@ -39,6 +39,7 @@
 
 #include "atom.h"
 #include "avivod.h"
+#include "evergreen.h"
 #include "r600.h"
 #include "r600d.h"
 #include "rv770.h"
@@ -113,7 +114,6 @@ static void r600_gpu_init(struct radeon_device *rdev);
 void r600_fini(struct radeon_device *rdev);
 void r600_irq_disable(struct radeon_device *rdev);
 static void r600_pcie_gen2_enable(struct radeon_device *rdev);
-extern int evergreen_rlc_resume(struct radeon_device *rdev);
 
 /*
  * Indirect registers accessor
-- 
2.25.1


  parent reply	other threads:[~2020-11-11 18:36 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-11 18:35 [PATCH 00/19] [Set 5] Rid W=1 warnings from GPU Lee Jones
2020-11-11 18:35 ` [PATCH 01/19] drm/radeon/evergreen_dma: Move 'evergreen_gpu_check_soft_reset()'s prototype to shared header Lee Jones
2020-11-11 18:35 ` Lee Jones [this message]
2020-11-11 18:35 ` [PATCH 03/19] drm/radeon/ni_dma: Move 'cayman_gpu_check_soft_reset()'s " Lee Jones
2020-11-11 18:35 ` [PATCH 04/19] drm/radeon/radeon_atombios: Move 'radeon_add_atom_encoder()'s " Lee Jones
2020-11-11 18:35 ` [PATCH 05/19] drm/radeon/radeon_encoders: Move 'radeon_atom_backlight_init's " Lee Jones
2020-11-11 18:35 ` [PATCH 06/19] drm/radeon/ci_dpm: Move 'ci_*()'s prototypes " Lee Jones
2020-11-11 18:35 ` [PATCH 07/19] drm/radeon/si_dpm: Move 'si_mc_load_microcode()'s prototype " Lee Jones
2020-11-11 18:35 ` [PATCH 08/19] drm/radeon/si_dma: Move 'si_gpu_check_soft_reset()'s " Lee Jones
2020-11-11 18:35 ` [PATCH 09/19] drm/radeon/cik: Move 'si_*()'s prototypes " Lee Jones
2020-11-11 18:35 ` [PATCH 10/19] drm/radeon/btc_dpm: Move 'evergreen_get_pi's prototype " Lee Jones
2020-11-11 18:35 ` [PATCH 11/19] drm/radeon/radeon_audio: Move 'dce6_*()'s prototypes " Lee Jones
2020-11-11 18:35 ` [PATCH 12/19] drm/radeon/evergreen: Move 'si_get_csb_*()'s " Lee Jones
2020-11-11 18:35 ` [PATCH 13/19] drm/radeon/cik_sdma: Move 'amdgpu_cik_gpu_check_soft_reset()'s prototype " Lee Jones
2020-11-11 18:35 ` [PATCH 14/19] drm/radeon/evergreen: Move 'cik_*()'s prototypes " Lee Jones
2020-11-11 18:35 ` [PATCH 15/19] drm/radeon/ci_dpm: Move 'si_*()'s " Lee Jones
2020-11-11 18:35 ` [PATCH 16/19] drm/radeon/cik: Move 'Move 'cik_sdma_*()'s " Lee Jones
2020-11-11 18:35 ` [PATCH 17/19] drm/radeon/si_dpm: Move 'vce_v1_0_enable_mgcg()'s prototype " Lee Jones
2020-11-11 18:35 ` [PATCH 18/19] drm/radeon/cik: Move 'vce_v2_0_enable_mgcg()'s " Lee Jones
2020-11-11 18:35 ` [PATCH 19/19] drm/radeon/evergreen_cs: Move 'r600_dma_cs_next_reloc()'s " Lee Jones

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=20201111183545.1756994-3-lee.jones@linaro.org \
    --to=lee.jones@linaro.org \
    --cc=airlied@linux.ie \
    --cc=alexander.deucher@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=christian.koenig@amd.com \
    --cc=daniel@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=linux-kernel@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).