From patchwork Tue Nov 3 15:28:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 11878159 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 96DB7C2D0A3 for ; Tue, 3 Nov 2020 15:40:30 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2ABFC20756 for ; Tue, 3 Nov 2020 15:40:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="x27GynNd"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="JaziDNI2" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2ABFC20756 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=otISuxJ06DK/R078oO/WDHa6mZrH4rBt7is5zF56enY=; b=x27GynNdb41l6IrtekKG2oHwq mtd4M5B0sNctC4zDa0At5J119oU2nmBI42+kl3iIC6kcMXLXrCIxr9HiWAQObkf5EZrfPWua99iE+ JCeIbT9m01KYy/KCGpYlDbcPMUBNVeclmOXiapivkSQcrDsARObhxDqFcAU5IjfsdgBtyPxIR0Byh wJ+q7jXxRuHlwEqprSLvEvl0S/BUeEM4sXSnMM/eZTDjXrUfzFmgMT5xWz3ImGP8zL1vTbJaFeJsM XumCTfRCJ1be7oWkAbX8VBmA1Ybu4KDY/xfHsfzrpG+E3JtGn+cSNcj4d4ZroJ7IaKeyPcngV3Z5B RKT7GyAHw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kZyPN-0000Ll-CL; Tue, 03 Nov 2020 15:39:41 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kZyFj-0001xN-N6 for linux-arm-kernel@lists.infradead.org; Tue, 03 Nov 2020 15:29:47 +0000 Received: by mail-wr1-x442.google.com with SMTP id e6so1756659wro.1 for ; Tue, 03 Nov 2020 07:29:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=qtstZ8Ss1ZAgmytvl8BCDCnRUt17GN9LrR/wkx5bkhc=; b=JaziDNI2dZRnNVL5YCwTqVWJum+QZWTUU+vs6VYmxJT7BLEQH5posc6/WC0AWBKwwX 4EA5q8jb1aDG1Qx8mSIZIvnF38Fmo9qbDB+CflrTNa5NulvbCNZXnBF9VEZQT8KG7DxU 6+3I7zAk4NLRGqNIWxSsf7NVHdlBanIQn/093/L5uzkRt/gwwkBjtCbRLH8IZ9FOlvIe 4mAv1E7ipUbKi6Ug07SR2idrs0IX2STzlguTxLvcvRsHMYITCo9255Iv6zU2eRFF1R3e NrSz765fBbjXJUk3Nfjy2gOSshWI1nJKMnhi+SZ6rf/XcpwkS7M6bwWro1jkNr6bymOa aDZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=qtstZ8Ss1ZAgmytvl8BCDCnRUt17GN9LrR/wkx5bkhc=; b=B3KRiKmrD/jYQGObAlzBLjkvCjSuj+mNzswctJkm2kUCeLYCC6x0u+GQvBo6pCR4nu wSUAqdkTgBm2IdUZbdEvIgobjXp+I+UsB6U0I2gEvxA+Zm80ze86zLvWpQl9ZYvYlccW lE4BWIS9lip+jbeKL/0J2FP4XF1J0ZKpi727aHQ4nLsNtOFR8JfebvSEL0qmZ1F1D92F km/6mzFHcDsuth8s4WpPPqcwN9An6N2NCOIXYh1Zf9IkvVhLECj40nweqd3hL7jXx6vj UXokrqXhVAOmOOMTRwtwaqklu7dk45wtxeyQsZ00/3+yZ0UjKKKTkLxdd34rsjFA4jet WOog== X-Gm-Message-State: AOAM533eEwXmpdgjQ2P2ZuXbPtZgwKDspFSmyPWi8j4MZjpZbT72+eOn 02PgbMQJKrP4FDAWoJFnfCTW1/U4Py5u5E/R X-Google-Smtp-Source: ABdhPJwfFIvO98y22nwny1fM75XJYeVuQtBFhjTRJDvug6VV5vIaDlVpdV8Lsm6ohJKNfWsYSxQtRg== X-Received: by 2002:adf:c101:: with SMTP id r1mr25707250wre.87.1604417382870; Tue, 03 Nov 2020 07:29:42 -0800 (PST) Received: from dell.default ([91.110.221.242]) by smtp.gmail.com with ESMTPSA id j127sm3491779wma.31.2020.11.03.07.29.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Nov 2020 07:29:42 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 25/25] soc: fsl: qbman: qman: Remove unused variable 'dequeue_wq' Date: Tue, 3 Nov 2020 15:28:38 +0000 Message-Id: <20201103152838.1290217-26-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201103152838.1290217-1-lee.jones@linaro.org> References: <20201103152838.1290217-1-lee.jones@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201103_102946_157814_3CCC183B X-CRM114-Status: GOOD ( 15.53 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linuxppc-dev@lists.ozlabs.org, YueHaibing , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Li Yang Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Fixes the following W=1 kernel build warning(s): drivers/soc/fsl/qbman/qman.c: In function ‘qman_shutdown_fq’: drivers/soc/fsl/qbman/qman.c:2700:8: warning: variable ‘dequeue_wq’ set but not used [-Wunused-but-set-variable] Cc: Li Yang Cc: YueHaibing Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Lee Jones --- drivers/soc/fsl/qbman/qman.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/soc/fsl/qbman/qman.c b/drivers/soc/fsl/qbman/qman.c index 9888a70618730..62b182c3a8b04 100644 --- a/drivers/soc/fsl/qbman/qman.c +++ b/drivers/soc/fsl/qbman/qman.c @@ -2622,7 +2622,7 @@ int qman_shutdown_fq(u32 fqid) union qm_mc_command *mcc; union qm_mc_result *mcr; int orl_empty, drain = 0, ret = 0; - u32 channel, wq, res; + u32 channel, res; u8 state; p = get_affine_portal(); @@ -2655,7 +2655,7 @@ int qman_shutdown_fq(u32 fqid) DPAA_ASSERT((mcr->verb & QM_MCR_VERB_MASK) == QM_MCR_VERB_QUERYFQ); /* Need to store these since the MCR gets reused */ channel = qm_fqd_get_chan(&mcr->queryfq.fqd); - wq = qm_fqd_get_wq(&mcr->queryfq.fqd); + qm_fqd_get_wq(&mcr->queryfq.fqd); if (channel < qm_channel_pool1) { channel_portal = get_portal_for_channel(channel); @@ -2697,7 +2697,6 @@ int qman_shutdown_fq(u32 fqid) * to dequeue from the channel the FQ is scheduled on */ int found_fqrn = 0; - u16 dequeue_wq = 0; /* Flag that we need to drain FQ */ drain = 1; @@ -2705,11 +2704,8 @@ int qman_shutdown_fq(u32 fqid) if (channel >= qm_channel_pool1 && channel < qm_channel_pool1 + 15) { /* Pool channel, enable the bit in the portal */ - dequeue_wq = (channel - - qm_channel_pool1 + 1)<<4 | wq; } else if (channel < qm_channel_pool1) { /* Dedicated channel */ - dequeue_wq = wq; } else { dev_err(dev, "Can't recover FQ 0x%x, ch: 0x%x", fqid, channel);