LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH v2] drm/rockchip: cdn-dp-core: Fix cdn_dp_resume unused warning
@ 2021-09-11 3:43 Palmer Dabbelt
2021-09-21 9:12 ` Heiko Stuebner
0 siblings, 1 reply; 4+ messages in thread
From: Palmer Dabbelt @ 2021-09-11 3:43 UTC (permalink / raw)
To: hjc, heiko, Arnd Bergmann
Cc: airlied, daniel, dri-devel, linux-arm-kernel, linux-rockchip,
linux-kernel, kernel-team, Palmer Dabbelt, Geert Uytterhoeven
From: Palmer Dabbelt <palmerdabbelt@google.com>
cdn_dp_resume is only used under PM_SLEEP, and now that it's static an
unused function warning is triggered undner !PM_SLEEP. This marks the
function as possibly unused, to avoid triggering compiler warnings.
Fixes: 7c49abb4c2f8 ("drm/rockchip: cdn-dp-core: Make cdn_dp_core_suspend/resume static")
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
---
This is breaking my builds and looks like it'll land after -rc1, so I've put it
on a shared tag for-rockchip-cdn_dp_resume-v2 which will let me pull it in to
my fixes. LMK if you guys want me to send this up on my own, but I'm assuming
that the drm/rockchip folks will handle it.
---
drivers/gpu/drm/rockchip/cdn-dp-core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/rockchip/cdn-dp-core.c b/drivers/gpu/drm/rockchip/cdn-dp-core.c
index 8ab3247dbc4a..13c6b857158f 100644
--- a/drivers/gpu/drm/rockchip/cdn-dp-core.c
+++ b/drivers/gpu/drm/rockchip/cdn-dp-core.c
@@ -1123,7 +1123,7 @@ static int cdn_dp_suspend(struct device *dev)
return ret;
}
-static int cdn_dp_resume(struct device *dev)
+static __maybe_unused int cdn_dp_resume(struct device *dev)
{
struct cdn_dp_device *dp = dev_get_drvdata(dev);
--
2.33.0.309.g3052b89438-goog
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] drm/rockchip: cdn-dp-core: Fix cdn_dp_resume unused warning
2021-09-11 3:43 [PATCH v2] drm/rockchip: cdn-dp-core: Fix cdn_dp_resume unused warning Palmer Dabbelt
@ 2021-09-21 9:12 ` Heiko Stuebner
2021-09-21 15:04 ` Palmer Dabbelt
0 siblings, 1 reply; 4+ messages in thread
From: Heiko Stuebner @ 2021-09-21 9:12 UTC (permalink / raw)
To: Arnd Bergmann, hjc, Palmer Dabbelt
Cc: Heiko Stuebner, kernel-team, dri-devel, Geert Uytterhoeven,
airlied, linux-arm-kernel, Palmer Dabbelt, linux-kernel,
linux-rockchip, daniel
On Fri, 10 Sep 2021 20:43:18 -0700, Palmer Dabbelt wrote:
> cdn_dp_resume is only used under PM_SLEEP, and now that it's static an
> unused function warning is triggered undner !PM_SLEEP. This marks the
> function as possibly unused, to avoid triggering compiler warnings.
Applied, thanks!
[1/1] drm/rockchip: cdn-dp-core: Fix cdn_dp_resume unused warning
commit: f7c57a4566115657c16fd6603b6ef8a21bae5194
Best regards,
--
Heiko Stuebner <heiko@sntech.de>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] drm/rockchip: cdn-dp-core: Fix cdn_dp_resume unused warning
2021-09-21 9:12 ` Heiko Stuebner
@ 2021-09-21 15:04 ` Palmer Dabbelt
2021-09-21 19:29 ` Heiko Stübner
0 siblings, 1 reply; 4+ messages in thread
From: Palmer Dabbelt @ 2021-09-21 15:04 UTC (permalink / raw)
To: heiko
Cc: Arnd Bergmann, hjc, heiko, kernel-team, dri-devel, geert+renesas,
airlied, linux-arm-kernel, linux-kernel, linux-rockchip, daniel
On Tue, 21 Sep 2021 02:12:17 PDT (-0700), heiko@sntech.de wrote:
> On Fri, 10 Sep 2021 20:43:18 -0700, Palmer Dabbelt wrote:
>> cdn_dp_resume is only used under PM_SLEEP, and now that it's static an
>> unused function warning is triggered undner !PM_SLEEP. This marks the
>> function as possibly unused, to avoid triggering compiler warnings.
>
> Applied, thanks!
>
> [1/1] drm/rockchip: cdn-dp-core: Fix cdn_dp_resume unused warning
> commit: f7c57a4566115657c16fd6603b6ef8a21bae5194
I'm not quite sure where that lives, but is it applied on top of
something or is it merged from the tag? Like I said a bit below this in
the original patch, this has started to break the build for me and I'd
like to pull it in as soon as possible.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] drm/rockchip: cdn-dp-core: Fix cdn_dp_resume unused warning
2021-09-21 15:04 ` Palmer Dabbelt
@ 2021-09-21 19:29 ` Heiko Stübner
0 siblings, 0 replies; 4+ messages in thread
From: Heiko Stübner @ 2021-09-21 19:29 UTC (permalink / raw)
To: Palmer Dabbelt
Cc: Arnd Bergmann, hjc, kernel-team, dri-devel, geert+renesas,
airlied, linux-arm-kernel, linux-kernel, linux-rockchip, daniel
Hi,
Am Dienstag, 21. September 2021, 17:04:10 CEST schrieb Palmer Dabbelt:
> On Tue, 21 Sep 2021 02:12:17 PDT (-0700), heiko@sntech.de wrote:
> > On Fri, 10 Sep 2021 20:43:18 -0700, Palmer Dabbelt wrote:
> >> cdn_dp_resume is only used under PM_SLEEP, and now that it's static an
> >> unused function warning is triggered undner !PM_SLEEP. This marks the
> >> function as possibly unused, to avoid triggering compiler warnings.
> >
> > Applied, thanks!
> >
> > [1/1] drm/rockchip: cdn-dp-core: Fix cdn_dp_resume unused warning
> > commit: f7c57a4566115657c16fd6603b6ef8a21bae5194
>
> I'm not quite sure where that lives, but is it applied on top of
> something or is it merged from the tag? Like I said a bit below this in
> the original patch, this has started to break the build for me and I'd
> like to pull it in as soon as possible.
The patch now lives here:
https://cgit.freedesktop.org/drm/drm-misc/commit/?h=drm-misc-fixes&id=f7c57a4566115657c16fd6603b6ef8a21bae5194
This is the drm-misc tree, with the patch living in the drm-misc-fixes
branch, which targets the current rc-kernels.
drm-misc-* moves into the core drm tree and from there on to Linus.
Hope that helps
Heiko
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-09-21 19:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-11 3:43 [PATCH v2] drm/rockchip: cdn-dp-core: Fix cdn_dp_resume unused warning Palmer Dabbelt
2021-09-21 9:12 ` Heiko Stuebner
2021-09-21 15:04 ` Palmer Dabbelt
2021-09-21 19:29 ` Heiko Stübner
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).