]> git.baikalelectronics.ru Git - kernel.git/commitdiff
powerpc/spufs: adjust list element pointer type
authorJulia Lawall <Julia.Lawall@inria.fr>
Fri, 8 May 2020 09:12:56 +0000 (09:12 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 3 Feb 2022 10:40:32 +0000 (21:40 +1100)
Other uses of &gang->aff_list_head, eg in spufs_assert_affinity, indicate
that the list elements have type spu_context, not spu as used here.  Change
the type of tmp accordingly.

This has no impact on the execution, because tmp is not used in the body of
the loop.

Fixes: 310c413ae8ad7 ("[CELL] cell: add placement computation for scheduling of affinity contexts")
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
Reviewed-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/1588929176-28527-1-git-send-email-Julia.Lawall@inria.fr
arch/powerpc/platforms/cell/spufs/sched.c

index 369206489895a28cb15ab329aa7f11d1eb0610ee..d058f6233e667f4308847af87fa385f4b7c47f5e 100644 (file)
@@ -340,8 +340,7 @@ static struct spu *aff_ref_location(struct spu_context *ctx, int mem_aff,
 static void aff_set_ref_point_location(struct spu_gang *gang)
 {
        int mem_aff, gs, lowest_offset;
-       struct spu_context *ctx;
-       struct spu *tmp;
+       struct spu_context *tmp, *ctx;
 
        mem_aff = gang->aff_ref_ctx->flags & SPU_CREATE_AFFINITY_MEM;
        lowest_offset = 0;