Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1136518pxk; Thu, 10 Sep 2020 07:56:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEUptSW4G2PLvi8NNBZMb2YBNtbqzHGEYNxSbN5348+OqK1ClYzzi6i5oX5kJU1PxulHG9 X-Received: by 2002:aa7:d4d2:: with SMTP id t18mr9536567edr.55.1599749772783; Thu, 10 Sep 2020 07:56:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599749772; cv=none; d=google.com; s=arc-20160816; b=fXONM5rHN0DGsmv219yjTxF0O6EBvRZNNUXDvDPgndNrF8hL1K90TdlQKP4H5zjnRW 8abjuaBAcj6P1ZWGsKv+hjlA9lyaNY+Ia50U4xbeeYdUa2JPao97CZXS4QRPu84ac20C I5g5tlGrOfBQY2QOS+9sHxDDxc6Q1qIlNlZ1TYIsiPJT0ffCrF/KOEy14K1NAgdz8U0r Mc9eCL+kzLgqN9scwyFvieGhTz4vXEi3PfMWwXP02rlBWUvb/ik5ZmuUABNWmzgM8FMP mOMD7qHMqozofMDFV+3td1mEQ8BFFegve3whd5onFZ0hxJoWHobcPIX8k8JuiWFZZ+ZK yFoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=z5Se8VzOVjP/0OqFF3CdL01gxCznORST0gj54tkGX48=; b=e2RjJMU83K8X7lSXu29OqFSH4tPHqylcsnqFtFQj+f5yxyB7Z2HdLSfi25MGBOOhz6 mbAKoQY0KVn0ob9oK2Hv/onG4SPnUlq3voz+g0Xn0D3aG74heW87Et3buKcAHe+nqYYl jdzeNw52yVae4upprzG9raoGMnYbXTuZRg8ihqim8hRXvQb9TFa4PbdpjQtQt0TJjz9d AL+B9eJltP9nNiv7BDDNDfrIAphc/Toue2COiWcOQanRh4H9ft6h1kdOXp8siwWMzbYO PWuP0ixRN1Or9e9BPYtlykWvve68dlYVnBxV/cYqb0g+ePs3AUqmqXWK4Zqf/1Ka/s8p rr0A== 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 p1si3749544ejd.570.2020.09.10.07.55.49; Thu, 10 Sep 2020 07:56:12 -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 S1730077AbgIJOy4 (ORCPT + 99 others); Thu, 10 Sep 2020 10:54:56 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:38644 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730261AbgIJOyO (ORCPT ); Thu, 10 Sep 2020 10:54:14 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id CFA006BE360D71439816; Thu, 10 Sep 2020 22:05:06 +0800 (CST) Received: from huawei.com (10.175.127.227) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.487.0; Thu, 10 Sep 2020 22:04:56 +0800 From: Jason Yan To: , , , , , CC: Jason Yan , Hulk Robot Subject: [PATCH] soc: fsl: dpio: remove set but not used 'addr_cena' Date: Thu, 10 Sep 2020 22:04:15 +0800 Message-ID: <20200910140415.1132266-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.175.127.227] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This addresses the following gcc warning with "make W=1": drivers/soc/fsl/dpio/qbman-portal.c: In function ‘qbman_swp_enqueue_multiple_direct’: drivers/soc/fsl/dpio/qbman-portal.c:650:11: warning: variable ‘addr_cena’ set but not used [-Wunused-but-set-variable] 650 | uint64_t addr_cena; | ^~~~~~~~~ Reported-by: Hulk Robot Signed-off-by: Jason Yan --- 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/qbman-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_swp *s, const uint32_t *cl = (uint32_t *)d; uint32_t eqcr_ci, eqcr_pi, half_mask, full_mask; int i, num_enqueued = 0; - uint64_t addr_cena; spin_lock(&s->access_spinlock); half_mask = (s->eqcr.pi_ci_mask>>1); @@ -701,7 +700,6 @@ int qbman_swp_enqueue_multiple_direct(struct qbman_swp *s, /* Flush all the cacheline without load/store in between */ eqcr_pi = s->eqcr.pi; - addr_cena = (size_t)s->addr_cena; for (i = 0; i < num_enqueued; i++) eqcr_pi++; s->eqcr.pi = eqcr_pi & full_mask; -- 2.25.4