Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2688931pxk; Sun, 20 Sep 2020 13:21:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJziJ8f9CD8o0zRKQRIoltQw/dKnhYEimFukwQWWzoz1th/aDCXvtlSMO9BwbC8jc7aXy+5q X-Received: by 2002:a50:e3c4:: with SMTP id c4mr50520124edm.90.1600633282154; Sun, 20 Sep 2020 13:21:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600633282; cv=none; d=google.com; s=arc-20160816; b=uZxtEl4g3Ujb8VlY8MKXtaK9PMXo2xzLxV8q4ZcXAqwXz9sI0RDP7Om4C7xWsSKe2d QyLhHyWYHJHsdVxcUHGduHzVjVSnx1q+f5XUp41TIyLCy5LCKzQqbqM8P5BHr/e5w9K5 mAKgDMcopI30NH4rQTkVVmV8e2nbzygQR2nKpwewGluiOFmbesxRuWpsJKmFsOBLQcbr TzGirQPd94fDADGw6r8OSfpkR/vJXfKEzU0K3dQXUxW3oukqZYR6GV3xLDprI66scb2+ a9DYfo3KmlLSordAYqiYAxIA4kIz9wcnMFzCq58t7NQjCqbg+k3gqlISEpKdffv01Aij qsTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=7T2Qt0lOsM5iNc0v+fz23sYoDZrFFobTsjkO8Pgb0DA=; b=QREwb1V0M0ENQjEGze0/slGb+wG1p2+fzmMwBG6mppekKbur6JQiQim/8xrZvQCKna tSBTKa/LZ598Z7L9TDh6A/a07IvwrsSi+avi46df/ZcGtC4/WFch5ucyYq4kbYUuKgYn lzXNjaQU68ckwMCC8cUpc7SKhjItNwJLRtzhlUJJdoi2dtmpITXIELURqd47MSqnMNvO WTK4M5I16Q96vanMN0pOGX3UAUMKdnBOKmx/DLDcCkrQkqGLQPjojnv0DjdmEyplp5E0 7bu6xknAjwqIeK/3VQYJfijt7BTROYDnXBHOHPj1c7acazeMCLmB/2jbFEv8GWysbMW+ tNXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ovAyCNee; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g15si7153973ejd.257.2020.09.20.13.20.57; Sun, 20 Sep 2020 13:21:22 -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; dkim=pass header.i=@kernel.org header.s=default header.b=ovAyCNee; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726239AbgITUTv (ORCPT + 99 others); Sun, 20 Sep 2020 16:19:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:47344 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726151AbgITUTv (ORCPT ); Sun, 20 Sep 2020 16:19:51 -0400 Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6EDA120874 for ; Sun, 20 Sep 2020 20:19:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600633190; bh=tEYZWaBgSpMov9mzVr3tGK3tHnfa7SQH05Xon68mJR4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ovAyCNeeUSd3NZnEeh5eCA9mpVIaA8QFF7tGlC3YpLtwcdzFtMF3Rt544ERHqox7N fQ7yvB1Q0nRvaxpjBqMEM3lITWhcLqBshrgNgZ7XYU5WT8FO/ZVzXPIGthP4Sic2XW p3aLGnx29ctbCW6oomdHtiFO/iQ2Zohb6jWpntOs= Received: by mail-ed1-f44.google.com with SMTP id g4so10940311edk.0 for ; Sun, 20 Sep 2020 13:19:50 -0700 (PDT) X-Gm-Message-State: AOAM530Fcpfi6/src+iJ2rBAFQL1ZZ7NLnoUFO2PGtENGbGVhZPRdJi4 KbnTvbQLG62rRKyZOSWK0OOUEEc7mh4ETPfuqoo= X-Received: by 2002:aa7:da16:: with SMTP id r22mr50413600eds.132.1600633188982; Sun, 20 Sep 2020 13:19:48 -0700 (PDT) MIME-Version: 1.0 References: <20200910140415.1132266-1-yanaijie@huawei.com> In-Reply-To: <20200910140415.1132266-1-yanaijie@huawei.com> From: Krzysztof Kozlowski Date: Sun, 20 Sep 2020 22:19:37 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] soc: fsl: dpio: remove set but not used 'addr_cena' To: Jason Yan Cc: Roy.Pledge@nxp.com, leoyang.li@nxp.com, youri.querry_1@nxp.com, "linux-kernel@vger.kernel.org" , linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, Hulk Robot Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 10 Sep 2020 at 16:57, Jason Yan wrote: > > This addresses the following gcc warning with "make W=3D1": > > drivers/soc/fsl/dpio/qbman-portal.c: In function > =E2=80=98qbman_swp_enqueue_multiple_direct=E2=80=99: > drivers/soc/fsl/dpio/qbman-portal.c:650:11: warning: variable > =E2=80=98addr_cena=E2=80=99 set but not used [-Wunused-but-set-variable] > 650 | uint64_t addr_cena; > | ^~~~~~~~~ > > Reported-by: Hulk Robot > Signed-off-by: Jason Yan This was already reported: Reported-by: kernel test robot https://lkml.org/lkml/2020/6/12/290 Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof > --- > drivers/soc/fsl/dpio/qbman-portal.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/soc/fsl/dpio/qbman-portal.c b/drivers/soc/fsl/dpio/q= bman-portal.c > index 0ab85bfb116f..659b4a570d5b 100644 > --- a/drivers/soc/fsl/dpio/qbman-portal.c > +++ b/drivers/soc/fsl/dpio/qbman-portal.c > @@ -647,7 +647,6 @@ int qbman_swp_enqueue_multiple_direct(struct qbman_sw= p *s, > const uint32_t *cl =3D (uint32_t *)d; > uint32_t eqcr_ci, eqcr_pi, half_mask, full_mask; > int i, num_enqueued =3D 0; > - uint64_t addr_cena; > > spin_lock(&s->access_spinlock); > half_mask =3D (s->eqcr.pi_ci_mask>>1); > @@ -701,7 +700,6 @@ int qbman_swp_enqueue_multiple_direct(struct qbman_sw= p *s, > > /* Flush all the cacheline without load/store in between */ > eqcr_pi =3D s->eqcr.pi; > - addr_cena =3D (size_t)s->addr_cena; > for (i =3D 0; i < num_enqueued; i++) > eqcr_pi++; > s->eqcr.pi =3D eqcr_pi & full_mask; > -- > 2.25.4 >