drm/nouveau/nvif: remove const attribute from nvif_mclass
Subsystems (3)
PATCH 1/1 drm/nouveau/nvif: remove const attribute from nvif_mclass
Similar to commit 0bf8bf50eddc ("module: Remove const attribute from alias for MODULE_DEVICE_TABLE")
Fixes many -Wduplicate-decl-specifier warnings due to the combination of const typeof() of already const variables.
--- drivers/gpu/drm/nouveau/include/nvif/object.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/nouveau/include/nvif/object.h +1 -1
@@ -78,7 +78,7 @@ struct nvif_mclass {#define nvif_mclass (o,m) ({ \ struct nvif_object *object = (o); \ struct nvif_sclass *sclass; \ - const typeof(m[0]) *mclass = (m); \ + typeof(m[0]) *mclass = (m); \ int ret = -ENODEV; \ int cnt, i, j; \ \
Signature · 1 line
2.18.0.rc1.244.gcf134e6275-goog
Quoted 17 lines · Nick Desaulniers
Similar to commit
0bf8bf50eddc("module: Remove const attribute from alias forMODULE_DEVICE_TABLE")Fixes many -Wduplicate-decl-specifier warnings due to the combination of const
typeof()of already const variables.Signed-off-by Nick Desaulniers <[email protected]>--- drivers/gpu/drm/nouveau/include/nvif/object.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/nouveau/include/nvif/object.h +0
-0
drivers/gpu/drm/nouveau/include/nvif/object.h struct nvif_mclass { · line 81
Quoted 5 lines
drivers/gpu/drm/nouveau/include/nvif/object.h +1
-1@@ -78,7 +78,7 @@ struct nvif_mclass {#define nvif_mclass (o,m) ({ \ struct nvif_object *object = (o); \ struct nvif_sclass *sclass; \ - const typeof(m[0]) *mclass = (m); \ + typeof(m[0]) *mclass = (m); \
Sorry, this messes up the spaces at the end, will send a v2.
Quoted 6 lines
drivers/gpu/drm/nouveau/include/nvif/object.h +0
-1int ret = -ENODEV ; \int cnt, i, j; \ \ --2.18.0.rc1.244.gcf134e6275-goog
Signature · 2 lines
Thanks, ~Nick Desaulniers
PATCH v2 1/1 drm/nouveau/nvif: remove const attribute from nvif_mclass
Similar to commit 0bf8bf50eddc ("module: Remove const attribute from alias for MODULE_DEVICE_TABLE")
Fixes many -Wduplicate-decl-specifier warnings due to the combination of const typeof() of already const variables.
---
Changes since v1: added additional space after statements.
drivers/gpu/drm/nouveau/include/nvif/object.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/nouveau/include/nvif/object.h +1 -1
@@ -78,7 +78,7 @@ struct nvif_mclass {#define nvif_mclass (o,m) ({ \ struct nvif_object *object = (o); \ struct nvif_sclass *sclass; \ - const typeof(m[0]) *mclass = (m); \ + typeof(m[0]) *mclass = (m); \ int ret = -ENODEV; \ int cnt, i, j; \ \
Signature · 1 line
2.18.0.rc1.244.gcf134e6275-goog
Quoted 7 lines · Nick Desaulniers
Similar to commit
0bf8bf50eddc("module: Remove const attribute from alias forMODULE_DEVICE_TABLE")Fixes many -Wduplicate-decl-specifier warnings due to the combination of const
typeof()of already const variables.Signed-off-by Nick Desaulniers <[email protected]>
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel