summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/include
diff options
context:
space:
mode:
authorNick Desaulniers2018-06-16 01:00:42 +0200
committerBen Skeggs2018-07-16 10:06:29 +0200
commitc9fb2cc84c31910e710cdd8d67a01473170ea67d (patch)
tree8a8c0d70cc8e9922f2515cc4d0bb38cf2e741c6a /drivers/gpu/drm/nouveau/include
parentdrm/nouveau/hwmon: potential uninitialized variables (diff)
downloadkernel-qcow2-linux-c9fb2cc84c31910e710cdd8d67a01473170ea67d.tar.gz
kernel-qcow2-linux-c9fb2cc84c31910e710cdd8d67a01473170ea67d.tar.xz
kernel-qcow2-linux-c9fb2cc84c31910e710cdd8d67a01473170ea67d.zip
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. Signed-off-by: Nick Desaulniers <ndesaulniers@google.com> Reviewed-by: Matthias Kaehlcke <mka@chromium.org> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/include')
-rw-r--r--drivers/gpu/drm/nouveau/include/nvif/object.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/include/nvif/object.h b/drivers/gpu/drm/nouveau/include/nvif/object.h
index 20754d9e6883..8407651f6ac6 100644
--- a/drivers/gpu/drm/nouveau/include/nvif/object.h
+++ b/drivers/gpu/drm/nouveau/include/nvif/object.h
@@ -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; \
\