From: Nick Desaulniers Subject: [PATCH] drm/nouveau/nvif: remove const attribute from nvif_mclass Date: Fri, 15 Jun 2018 15:56:04 -0700 Message-ID: <20180615225606.185324-1-ndesaulniers@google.com> Return-path: Sender: linux-kernel-owner@vger.kernel.org To: bskeggs@redhat.com, airlied@linux.ie Cc: mka@chromium.org, jeyu@kernel.org, Nick Desaulniers , Philippe Ombredanne , Thomas Gleixner , Greg Kroah-Hartman , dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org List-Id: dri-devel@lists.freedesktop.org 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 --- drivers/gpu/drm/nouveau/include/nvif/object.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/include/nvif/object.h b/drivers/gpu/drm/nouveau/include/nvif/object.h index a2d5244ff2b7..7f188f66931e 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; \ \ -- 2.18.0.rc1.244.gcf134e6275-goog