From patchwork Thu Jun 5 17:30:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 4309331 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D86BB9F163 for ; Fri, 6 Jun 2014 00:33:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2161020268 for ; Fri, 6 Jun 2014 00:33:05 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 15BBA20222 for ; Fri, 6 Jun 2014 00:33:04 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 45EB86E9E6; Thu, 5 Jun 2014 17:32:54 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com [209.85.212.169]) by gabe.freedesktop.org (Postfix) with ESMTP id 508686E299 for ; Thu, 5 Jun 2014 10:31:14 -0700 (PDT) Received: by mail-wi0-f169.google.com with SMTP id hi2so10143102wib.2 for ; Thu, 05 Jun 2014 10:31:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=+ax1Dw9KW3vEOoulMpNShSXj7dVb2a+JOtG32DKhTa0=; b=iz1MuqNgBDwzjunu4NcdlpKJIpwXLX+bh0gEozL8sSdtbdW7Y2dcbHeowHP8Oq57Y2 V45dH5XLJhyRnfUfgyLCkiJPeHQZ7RTbGpviuwmeZVsAGoAQQGraH4W15R6d4cwpYScS L2VBrRqEcZ130bJeBGlt0efEe/8NSGEFrLopuoV5YXhOAnK272FUCsL9DNuTnbSe2pEs Keuf505RUjkZ5GzIr2sLZjTCv0h4f5b4fmjdgPf0NU5HManIoVK69Pz1oXbJ9BrSjpG1 s4DZBAEPw4YYjO/RHPk6u3hIKDr5rP/1+hHyfYJat1iNrrzTvqtYFW92kl6xLmXj+LBG USPg== X-Gm-Message-State: ALoCoQkajmEqwHmJle8HGiCU/nvP9Qt2+dUzmamGjZHevd25+I+bc22bRUnWvRG5tXYEPydgAuzA X-Received: by 10.180.212.77 with SMTP id ni13mr22292wic.5.1401989468868; Thu, 05 Jun 2014 10:31:08 -0700 (PDT) Received: from griffinp-ThinkPad-X1-Carbon-2nd.lan ([31.185.189.235]) by mx.google.com with ESMTPSA id em5sm16630376wic.23.2014.06.05.10.31.07 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 05 Jun 2014 10:31:07 -0700 (PDT) From: Peter Griffin To: linux-kernel@vger.kernel.org Subject: [PATCH 1/2] drm/plane-helper: storage class should be before const qualifier Date: Thu, 5 Jun 2014 18:30:57 +0100 Message-Id: <1401989458-450-1-git-send-email-peter.griffin@linaro.org> X-Mailer: git-send-email 1.9.1 X-Mailman-Approved-At: Thu, 05 Jun 2014 17:32:52 -0700 Cc: peter.griffin@linaro.org, lee.jones@linaro.org, dri-devel@lists.freedesktop.org, patches@linaro.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The C99 specification states in section 6.11.5: The placement of a storage-class specifier other than at the beginning of the declaration specifiers in a declaration is an obsolescent feature. Signed-off-by: Peter Griffin Cc: David Airlie Cc: dri-devel@lists.freedesktop.org Cc: linux-kernel@vger.kernel.org --- drivers/gpu/drm/drm_plane_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_plane_helper.c b/drivers/gpu/drm/drm_plane_helper.c index d2b1c03..88a6c49 100644 --- a/drivers/gpu/drm/drm_plane_helper.c +++ b/drivers/gpu/drm/drm_plane_helper.c @@ -36,7 +36,7 @@ * creating the primary plane. However drivers that still call * drm_plane_init() will use this minimal format list as the default. */ -const static uint32_t safe_modeset_formats[] = { +static const uint32_t safe_modeset_formats[] = { DRM_FORMAT_XRGB8888, DRM_FORMAT_ARGB8888, };