Skip to contentSkip to conversation

drm/nouveau/mmu/gp100: remove unused variable

PATCH In review Karol Herbst 2 participants 2 messages Oct 12, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/nouveau/mmu/gp100: remove unused variable

Fixes a compilation issue introduced because I forgot to test with WERROR enabled.

Cc Stephen Rothwell <[email protected]>
Fixes 404046cf4805 ("drm/nouveau/mmu/gp100-: drop unneeded assignment in the if condition.")
---
 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgp100.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgp100.c +1 -1
index 2b21f43069aa..17899fc95b2d 100644
@@ -488,7 +488,7 @@ gp100_vmm_fault_cancel(struct nvkm_vmm *vmm, void *argv, u32 argc)
 		struct gp100_vmm_fault_cancel_v0 v0;
 	} *args = argv;
 	int ret = -ENOSYS;
-	u32 inst, aper;
+	u32 aper;
 
 	if ((ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, false)))
 		return ret;
Signature · 1 line
2.31.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Karol Herbst

Fixes a compilation issue introduced because I forgot to test with WERROR enabled.

Cc Stephen Rothwell <[email protected]>
Fixes 404046cf4805 ("drm/nouveau/mmu/gp100-: drop unneeded assignment in the if condition.")
Quoted 20 lines
---
 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgp100.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgp100.c +1 -2
index 2b21f43069aa..17899fc95b2d 100644
@@ -488,7 +488,7 @@ gp100_vmm_fault_cancel(struct nvkm_vmm *vmm, void *argv, u32 argc)
                struct gp100_vmm_fault_cancel_v0 v0;
        } *args = argv;
        int ret = -ENOSYS;
-       u32 inst, aper;
+       u32 aper;
 
        if ((ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, false)))
                return ret;
--

2.31.1