From: Jyri Sarha <jsarha@ti.com>
To: Xiongwei Song <sxwjean@gmail.com>, <tomi.valkeinen@ti.com>,
<airlied@linux.ie>
Cc: <dri-devel@lists.freedesktop.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] drm/tilcdc: make tilcdc_mode_hvtotal() static
Date: Mon, 4 Dec 2017 10:10:40 +0200 [thread overview]
Message-ID: <e54e3cd2-4e8b-2576-0d51-c860be6cb414@ti.com> (raw)
In-Reply-To: <20171202112422.11176-1-sxwjean@gmail.com>
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
prev parent reply other threads:[~2017-12-04 8:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-02 11:24 Xiongwei Song
2017-12-04 8:10 ` Jyri Sarha [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=e54e3cd2-4e8b-2576-0d51-c860be6cb414@ti.com \
--to=jsarha@ti.com \
--cc=airlied@linux.ie \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sxwjean@gmail.com \
--cc=tomi.valkeinen@ti.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
all inboxes | Powered by JetHome®