mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
drm/nouveau/nvif: remove const attribute from nvif_mclass
Similar to commit 0bf8bf50ed
("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>
This commit is contained in:
parent
da71f0efe7
commit
c9fb2cc84c
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ struct nvif_mclass {
|
||||||
#define nvif_mclass(o,m) ({ \
|
#define nvif_mclass(o,m) ({ \
|
||||||
struct nvif_object *object = (o); \
|
struct nvif_object *object = (o); \
|
||||||
struct nvif_sclass *sclass; \
|
struct nvif_sclass *sclass; \
|
||||||
const typeof(m[0]) *mclass = (m); \
|
typeof(m[0]) *mclass = (m); \
|
||||||
int ret = -ENODEV; \
|
int ret = -ENODEV; \
|
||||||
int cnt, i, j; \
|
int cnt, i, j; \
|
||||||
\
|
\
|
||||||
|
|
Loading…
Reference in a new issue