drm/plane-helper: storage class should be before const qualifier
Subsystems (3)
PATCH 1/2 drm/plane-helper: storage class should be before const qualifier
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.
--- drivers/gpu/drm/drm_plane_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/drm_plane_helper.c +1 -1
@@ -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 , };
Signature · 1 line
1.9.1
PATCH 2/2 drm/msm: storage class should be before const qualifier
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.
--- drivers/gpu/drm/msm/msm_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/msm/msm_drv.c +1 -1
@@ -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, }, {
Signature · 1 line
1.9.1
Quoted 5 lines · Peter Griffin
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
Quoted 29 lines
Signed-off-by Peter Griffin <[email protected]>Cc David Airlie <[email protected]>--- drivers/gpu/drm/drm_plane_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/drm_plane_helper.c +1
-1@@ -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 , };Signature · 6 lines
1.9.1 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
Signature · 5 lines
Matt Roper Graphics Software Engineer IoTG Platform Enabling & Development Intel Corporation (916) 356-2795