From patchwork Thu Sep 5 12:32:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= X-Patchwork-Id: 11134589 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EDDD713B1 for ; Fri, 6 Sep 2019 07:01:54 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D0DA921928 for ; Fri, 6 Sep 2019 07:01:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D0DA921928 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 512AF6E182; Fri, 6 Sep 2019 07:01:06 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by gabe.freedesktop.org (Postfix) with ESMTPS id BF5976E0AD for ; Thu, 5 Sep 2019 12:32:05 +0000 (UTC) Received: by mail-wr1-x441.google.com with SMTP id h7so1560174wrw.8 for ; Thu, 05 Sep 2019 05:32:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=xuzP+vnCO2xAl32UsUr1yZq/4EL5LN563c95drnPuDA=; b=ea5Rxw9HDMfXs6GaXJ4JQ9RCXh70nzzLjjsQU9lcFkPN+6dCv6/7w1NPMhWobM2aCM cg4vR3VW9TR8vqhQ4dxH6hWUi/sBEePOh1DJ0pxZv4P6HrZjCqFtKiV1pn4yseV7Y064 8dHMKnDGj2gHani3XWDPiOKyyEuNiDAtNqtpMBu4VcG9Lbk58DiKCkM+3dL/As3kaKKg c5CpFyk0Gq80T7/+exbbYhNQBFVZfpvzN8k65ZfyA0ORYc8gGxlpEBZJh8W8ehQ2rtWM c29/yW+7y7Q/gdHWlt/cTxtsg5xdmcY5G5qbQHejTkzxOdbwY/L+C9p7pbAegnvGXUmd 2CuA== X-Gm-Message-State: APjAAAWqJ035CHnNKa3Dar+lU9E3QPif4M3ZLh2KsY0X+xfumBgKv0Bt qVcvcwNT0aFoiOV/FgJEPnA= X-Google-Smtp-Source: APXvYqyY5+R3jS7MmxUz3+8/IxXEe+qctgB4B9IZRZ+7x6oJRXKgAiEdvgW/q9wKkCY06WzNP26bjA== X-Received: by 2002:a5d:6585:: with SMTP id q5mr2323071wru.162.1567686724272; Thu, 05 Sep 2019 05:32:04 -0700 (PDT) Received: from localhost.localdomain (ip5b4096c3.dynamic.kabel-deutschland.de. [91.64.150.195]) by smtp.gmail.com with ESMTPSA id t203sm3184535wmf.42.2019.09.05.05.32.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Sep 2019 05:32:03 -0700 (PDT) From: Krzysztof Wilczynski To: David Airlie , Daniel Vetter , Kukjin Kim , Krzysztof Kozlowski Subject: [PATCH] drm/exynos: Move static keyword to the front of declaration Date: Thu, 5 Sep 2019 14:32:02 +0200 Message-Id: <20190905123202.28001-1-kw@linux.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 06 Sep 2019 07:01:00 +0000 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=xuzP+vnCO2xAl32UsUr1yZq/4EL5LN563c95drnPuDA=; b=YVHezsn8/40byllVUiMPUITf/cYMaBIGTm+rn+siVdtZq7jfAbSg54rrCLxSIfZImr qQu4WCFZdnotEBEJbisjCiY+i/D+GCLb3ZDxVSo0fj1NAzoEP1NHviR8krHYR28cHY4y HUgLTkdrkBDhYMxe58zH3odBfm0gQW4OAOofSJ8+nLQnLTUrkve4352kKie9+pD9vefQ w6Yur/wqZtUMjub7iHlynuc0UO/HmKG9gVgpSJR52Br+rOkNs7Jq0GuCuWjjuFUyMStm lMzdOzTZu6H3r+bEVzrCjsr3mUJZc2ZSkp4JuTitJbPKMyCTLUfme2l3NXI0TPgYzZzz thoA== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-samsung-soc@vger.kernel.org, Seung-Woo Kim , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Kyungmin Park , linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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 --- 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 },