* [PATCH 1/2] drm/plane-helper: storage class should be before const qualifier
@ 2014-06-05 17:30 Peter Griffin
2014-06-05 17:30 ` [PATCH 2/2] drm/msm: " Peter Griffin
2014-06-06 20:51 ` [PATCH 1/2] drm/plane-helper: " Matt Roper
0 siblings, 2 replies; 3+ messages in thread
From: Peter Griffin @ 2014-06-05 17:30 UTC (permalink / raw)
To: linux-kernel; +Cc: peter.griffin, patches, lee.jones, David Airlie, dri-devel
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 <peter.griffin@linaro.org>
Cc: David Airlie <airlied@linux.ie>
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,
};
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] drm/msm: storage class should be before const qualifier
2014-06-05 17:30 [PATCH 1/2] drm/plane-helper: storage class should be before const qualifier Peter Griffin
@ 2014-06-05 17:30 ` Peter Griffin
2014-06-06 20:51 ` [PATCH 1/2] drm/plane-helper: " Matt Roper
1 sibling, 0 replies; 3+ messages in thread
From: Peter Griffin @ 2014-06-05 17:30 UTC (permalink / raw)
To: linux-kernel; +Cc: peter.griffin, patches, lee.jones, David Airlie, dri-devel
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 <peter.griffin@linaro.org>
Cc: David Airlie <airlied@linux.ie>
Cc: dri-devel@lists.freedesktop.org
Cc: linux-kernel@vger.kernel.org
---
drivers/gpu/drm/msm/msm_drv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c
index f9de156..407975d 100644
--- a/drivers/gpu/drm/msm/msm_drv.c
+++ b/drivers/gpu/drm/msm/msm_drv.c
@@ -159,7 +159,7 @@ static int msm_unload(struct drm_device *dev)
static int get_mdp_ver(struct platform_device *pdev)
{
#ifdef CONFIG_OF
- const static struct of_device_id match_types[] = { {
+ static const struct of_device_id match_types[] = { {
.compatible = "qcom,mdss_mdp",
.data = (void *)5,
}, {
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] drm/plane-helper: storage class should be before const qualifier
2014-06-05 17:30 [PATCH 1/2] drm/plane-helper: storage class should be before const qualifier Peter Griffin
2014-06-05 17:30 ` [PATCH 2/2] drm/msm: " Peter Griffin
@ 2014-06-06 20:51 ` Matt Roper
1 sibling, 0 replies; 3+ messages in thread
From: Matt Roper @ 2014-06-06 20:51 UTC (permalink / raw)
To: Peter Griffin; +Cc: linux-kernel, lee.jones, dri-devel, patches
On Thu, Jun 05, 2014 at 06:30:57PM +0100, Peter Griffin wrote:
> 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.
This is definitely the right change to make, but I believe Thierry
already included a fix for this in patch
http://cgit.freedesktop.org/~airlied/linux/commit/?h=drm-next&id=233fd4ec92b90a2d3bb5104d17835072ba2fde4b
which also cleans up some whitespace problems.
Matt
>
> Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
> Cc: David Airlie <airlied@linux.ie>
> 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,
> };
> --
> 1.9.1
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
--
Matt Roper
Graphics Software Engineer
IoTG Platform Enabling & Development
Intel Corporation
(916) 356-2795
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-06-06 20:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-05 17:30 [PATCH 1/2] drm/plane-helper: storage class should be before const qualifier Peter Griffin
2014-06-05 17:30 ` [PATCH 2/2] drm/msm: " Peter Griffin
2014-06-06 20:51 ` [PATCH 1/2] drm/plane-helper: " Matt Roper
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox