]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
drm/nouveau/nvif: remove const attribute from nvif_mclass
authorNick Desaulniers <ndesaulniers@google.com>
Fri, 15 Jun 2018 23:00:42 +0000 (16:00 -0700)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 16 Jul 2018 08:06:29 +0000 (18:06 +1000)
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>
drivers/gpu/drm/nouveau/include/nvif/object.h

index 20754d9e68838e167ad29a0fef9c2d4de66c9371..8407651f6ac6ef2b3327953d3114118f85d58acf 100644 (file)
@@ -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;                                                         \
                                                                                \