public inbox for linux-arm-kernel@lists.infradead.org 
 help / color / mirror / Atom feed
From: Krzysztof Wilczynski <kw@linux•com>
To: David Airlie <airlied@linux•ie>, Daniel Vetter <daniel@ffwll•ch>,
	Kukjin Kim <kgene@kernel•org>,
	Krzysztof Kozlowski <krzk@kernel•org>
Cc: linux-samsung-soc@vger•kernel.org,
	Joonyoung Shim <jy0922.shim@samsung•com>,
	Seung-Woo Kim <sw0312.kim@samsung•com>,
	linux-kernel@vger•kernel.org, dri-devel@lists•freedesktop.org,
	Inki Dae <inki.dae@samsung•com>,
	Kyungmin Park <kyungmin.park@samsung•com>,
	linux-arm-kernel@lists•infradead.org
Subject: [PATCH] drm/exynos: Move static keyword to the front of declaration
Date: Thu,  5 Sep 2019 14:32:02 +0200	[thread overview]
Message-ID: <20190905123202.28001-1-kw@linux.com> (raw)

Move the static keyword to the front of declaration of modes,
and resolve the following compiler warning that can be seen
when building with warnings enabled (W=1):

drivers/gpu/drm/exynos/exynos_mixer.c:1074:2: warning:
  ‘static’ is not at beginning of declaration [-Wold-style-declaration]

Signed-off-by: Krzysztof Wilczynski <kw@linux•com>
---
Related: https://lore.kernel.org/r/20190827233017.GK9987@google.com

 drivers/gpu/drm/exynos/exynos_mixer.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/exynos/exynos_mixer.c b/drivers/gpu/drm/exynos/exynos_mixer.c
index 7b24338fad3c..6cfdb95fef2f 100644
--- a/drivers/gpu/drm/exynos/exynos_mixer.c
+++ b/drivers/gpu/drm/exynos/exynos_mixer.c
@@ -1069,9 +1069,9 @@ static bool mixer_mode_fixup(struct exynos_drm_crtc *crtc,
 	struct mixer_context *ctx = crtc->ctx;
 	int width = mode->hdisplay, height = mode->vdisplay, i;
 
-	struct {
+	static const struct {
 		int hdisplay, vdisplay, htotal, vtotal, scan_val;
-	} static const modes[] = {
+	} modes[] = {
 		{ 720, 480, 858, 525, MXR_CFG_SCAN_NTSC | MXR_CFG_SCAN_SD },
 		{ 720, 576, 864, 625, MXR_CFG_SCAN_PAL | MXR_CFG_SCAN_SD },
 		{ 1280, 720, 1650, 750, MXR_CFG_SCAN_HD_720 | MXR_CFG_SCAN_HD },
-- 
2.22.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists•infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

                 reply	other threads:[~2019-09-05 12:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20190905123202.28001-1-kw@linux.com \
    --to=kw@linux$(echo .)com \
    --cc=airlied@linux$(echo .)ie \
    --cc=daniel@ffwll$(echo .)ch \
    --cc=dri-devel@lists$(echo .)freedesktop.org \
    --cc=inki.dae@samsung$(echo .)com \
    --cc=jy0922.shim@samsung$(echo .)com \
    --cc=kgene@kernel$(echo .)org \
    --cc=krzk@kernel$(echo .)org \
    --cc=kyungmin.park@samsung$(echo .)com \
    --cc=linux-arm-kernel@lists$(echo .)infradead.org \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linux-samsung-soc@vger$(echo .)kernel.org \
    --cc=sw0312.kim@samsung$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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