Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1505064ybj; Fri, 8 May 2020 02:54:20 -0700 (PDT) X-Google-Smtp-Source: APiQypICtVve2j4oF7uwB1/V+pIFVJxQ1FgbXHsLAqW7xZkbuNnu/1TCX4IFY1DfMaz/6NrnxNUN X-Received: by 2002:aa7:cd7c:: with SMTP id ca28mr1406606edb.181.1588931660208; Fri, 08 May 2020 02:54:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588931660; cv=none; d=google.com; s=arc-20160816; b=xzEFkB4Z60U3QEtNOgSMhKExpdGgF8cE+9qv4WU7qoTLjxvFmNTxOadv9P5M44TGNc Uym/zAy1NmASCHQsyk3oN9cfGf5j3LUlJWFKqpBnqix2upZWIzcQIqCLOlgg3RUnneT3 2/sc2hzycCtTN9J+CA4YtlgbhKbRFA/nB3k+AJDDyKZAfMCL1tM9rcaQA7RiQBZpZXCP NyUDO35qrCoycekLc7JXCkXY/rLU+hmpTKDPH94g481TqNEgc5Ly0o3boLC1d+/1v7Dz DLm85GcRHQQ66AQ7lJCHXAYVvKix0zbA1liXNuNxMFUie0u+m3sSThWWDLUZoiwoNN3X AMQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=7+UwqgJFSyqgy4ecuYjO5gPXQnowA30yWCh3VTFkhuY=; b=PZfE+LF7xqzcwCWaBAhjXetdRG29PP4g0Rf+1qM8clXHNkNpyEt9Ud47yQfZur2FXP l33pi2+Du0S02AjlfPoCAB6soXL/sbkA1dcZykCYSLRGFMz5E9dnjZtLyNRYrgqzkHMY PQ/XrQqGuZWmwzPidnZNsWpHAAu84aNWlYSTYZIiR7qKYhDEg6gitimZ2kXkjXHnCqdO gVp15Zk5VDWpEehwfnEhPwpffjEd/2n9tDRkLGmThxzq94jOFrMxWewomXbLYsI7a5ur YqIiHBbUPGgliP/jgYxt3tlD4Ajj96dpq6QxCA5RijEjrZ57iQAbomNher9v/eJ2ctCx yoOA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rn23si683175ejb.331.2020.05.08.02.53.57; Fri, 08 May 2020 02:54:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726771AbgEHJwY (ORCPT + 99 others); Fri, 8 May 2020 05:52:24 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:59216 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725825AbgEHJwX (ORCPT ); Fri, 8 May 2020 05:52:23 -0400 X-IronPort-AV: E=Sophos;i="5.73,367,1583190000"; d="scan'208";a="348097894" Received: from palace.rsr.lip6.fr (HELO palace.lip6.fr) ([132.227.105.202]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/AES256-SHA256; 08 May 2020 11:52:21 +0200 From: Julia Lawall To: Jeremy Kerr Cc: kernel-janitors@vger.kernel.org, Arnd Bergmann , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Nic Volanschi Subject: [PATCH] powerpc/spufs: adjust list element pointer type Date: Fri, 8 May 2020 11:12:56 +0200 Message-Id: <1588929176-28527-1-git-send-email-Julia.Lawall@inria.fr> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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: c5fc8d2a92461 ("[CELL] cell: add placement computation for scheduling of affinity contexts") Signed-off-by: Julia Lawall --- arch/powerpc/platforms/cell/spufs/sched.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/cell/spufs/sched.c b/arch/powerpc/platforms/cell/spufs/sched.c index f18d5067cd0f..487fcb47f10d 100644 --- a/arch/powerpc/platforms/cell/spufs/sched.c +++ b/arch/powerpc/platforms/cell/spufs/sched.c @@ -344,8 +344,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;