* [PATCH] drm/tilcdc: make tilcdc_mode_hvtotal() static
@ 2017-12-02 11:24 Xiongwei Song
2017-12-04 8:10 ` Jyri Sarha
0 siblings, 1 reply; 2+ messages in thread
From: Xiongwei Song @ 2017-12-02 11:24 UTC (permalink / raw)
To: jsarha, tomi.valkeinen, airlied; +Cc: dri-devel, linux-kernel
The function tilcdc_mode_hvtotal is local to the source and does not need
to be in global scope, so make it static.
drivers/gpu/drm/tilcdc/tilcdc_crtc.c:297:6: warning: no previous prototype for 'tilcdc_mode_hvtotal' [-Wmissing-prototypes]
uint tilcdc_mode_hvtotal(const struct drm_display_mode *mode)
Signed-off-by: Xiongwei Song <sxwjean@gmail.com>
---
drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c
index 6ef4d1a..c4804d9 100644
--- a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c
+++ b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c
@@ -294,7 +294,7 @@ static void tilcdc_crtc_set_clk(struct drm_crtc *crtc)
LCDC_V2_CORE_CLK_EN);
}
-uint tilcdc_mode_hvtotal(const struct drm_display_mode *mode)
+static uint tilcdc_mode_hvtotal(const struct drm_display_mode *mode)
{
return (uint) div_u64(1000llu * mode->htotal * mode->vtotal,
mode->clock);
--
2.9.5
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] drm/tilcdc: make tilcdc_mode_hvtotal() static
2017-12-02 11:24 [PATCH] drm/tilcdc: make tilcdc_mode_hvtotal() static Xiongwei Song
@ 2017-12-04 8:10 ` Jyri Sarha
0 siblings, 0 replies; 2+ messages in thread
From: Jyri Sarha @ 2017-12-04 8:10 UTC (permalink / raw)
To: Xiongwei Song, tomi.valkeinen, airlied; +Cc: dri-devel, linux-kernel
On 12/02/17 13:24, Xiongwei Song wrote:
> The function tilcdc_mode_hvtotal is local to the source and does not need
> to be in global scope, so make it static.
>
> drivers/gpu/drm/tilcdc/tilcdc_crtc.c:297:6: warning: no previous prototype for 'tilcdc_mode_hvtotal' [-Wmissing-prototypes]
> uint tilcdc_mode_hvtotal(const struct drm_display_mode *mode)
>
> Signed-off-by: Xiongwei Song <sxwjean@gmail.com>
Thanks, I'll pick this up for the next pull request.
Best regards,
Jyri
> ---
> drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c
> index 6ef4d1a..c4804d9 100644
> --- a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c
> +++ b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c
> @@ -294,7 +294,7 @@ static void tilcdc_crtc_set_clk(struct drm_crtc *crtc)
> LCDC_V2_CORE_CLK_EN);
> }
>
> -uint tilcdc_mode_hvtotal(const struct drm_display_mode *mode)
> +static uint tilcdc_mode_hvtotal(const struct drm_display_mode *mode)
> {
> return (uint) div_u64(1000llu * mode->htotal * mode->vtotal,
> mode->clock);
>
--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-12-04 8:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-02 11:24 [PATCH] drm/tilcdc: make tilcdc_mode_hvtotal() static Xiongwei Song
2017-12-04 8:10 ` Jyri Sarha
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®