From patchwork Wed Jul 8 12:57:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 1325216 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4B1zsj3w9qz9s1x for ; Wed, 8 Jul 2020 22:59:37 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=bqCkYlhY; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4B1zsj2NTYzDqc8 for ; Wed, 8 Jul 2020 22:59:37 +1000 (AEST) X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linaro.org (client-ip=2a00:1450:4864:20::442; helo=mail-wr1-x442.google.com; envelope-from=lee.jones@linaro.org; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=bqCkYlhY; dkim-atps=neutral Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4B1zq65115zDqHp for ; Wed, 8 Jul 2020 22:57:22 +1000 (AEST) Received: by mail-wr1-x442.google.com with SMTP id k6so48902031wrn.3 for ; Wed, 08 Jul 2020 05:57:21 -0700 (PDT) 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=TTuqyVT9cnuWmuZkR2avkoolSz/GKaORVGbqfOTz7Tw=; b=bqCkYlhYnCpQAHR1jCpg4zDsmvF7/yYY+dW4Ry8hSQ0ol6hlgM9RxlvgkLto7NQu5s SXp/EDHEhxl+WtlnQE+xeWiBsEgbG0avYbPfKcs3fKh90TWTpl3657DTRoFlcHS0lmrv 7ERcbYLCIBCB+dlVGHCMZm8/s+8PcLN6rNLnhsJGomxu6akKrsW1Gs3MzNUg8R2DM8Uw P4YHkaMvjJqDKUr8l0a0yYdnA22JvmDESt/jJJtoE/+ULkUzyKAzorUCP8nUCaZtRmWV 8JGxbZEPcoL+95Lp48vw6qXXBAJdLR8xqZGilGjfZ5k6ZeZQ5cnVFZ5cITwpJahCk7JF HJFg== 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=TTuqyVT9cnuWmuZkR2avkoolSz/GKaORVGbqfOTz7Tw=; b=PVsy0avwlAA/vlXV90WxnA9m2QiVcxuVUatsph+RoQtUpizyCfJxzkO0ZLRFNLSuvB 0ajGZlN6qSsQMDRI3JfUEB9DMFLH964/mJpk9TMSoj7nkkr0ytBQ16nFf38jd1a4ry8F 0G42FEqcavBLrz4w3Hw+zg3Saeujs3575T+8uZHoUSG9rbpvuw6G0+fC/8fpTGzlPMyj xGGyJWfKPyYBwJd+DgAkr+htwyUED/UnwERysz+WYppPsSDITWpww91nag6JkUHavi0s PuJgscJx9G4IlEOrP+Sw2IbRcbMA30omNQyM5/lJccWVkvXEJTVWhvJ3/tJLkqVlETNF RsgA== X-Gm-Message-State: AOAM530TyvfgHICbW1ybWlMzWa3TpGzT0/VgMYJHAh9QG9K0SGKKblQg UnHKOA+ejZICmQGa/HkOwWArGQ== X-Google-Smtp-Source: ABdhPJxIHdPTQ+3Fj8EaoAnC4n0L/dO6qJOdSZK1Vn9FBMjAc28ucuEaecvFE3uBbNM6QZPL88lZuw== X-Received: by 2002:adf:f8cb:: with SMTP id f11mr61733966wrq.358.1594213037108; Wed, 08 Jul 2020 05:57:17 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id v9sm6993885wri.3.2020.07.08.05.57.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jul 2020 05:57:16 -0700 (PDT) From: Lee Jones To: arnd@arndb.de, gregkh@linuxfoundation.org Subject: [PATCH 3/3] misc: cxl: flash: Remove unused variable 'drc_index' Date: Wed, 8 Jul 2020 13:57:11 +0100 Message-Id: <20200708125711.3443569-4-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200708125711.3443569-1-lee.jones@linaro.org> References: <20200708125711.3443569-1-lee.jones@linaro.org> MIME-Version: 1.0 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Frederic Barrat , linuxppc-dev@lists.ozlabs.org, Lee Jones , linux-kernel@vger.kernel.org, Andrew Donnellan Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" Keeping the pointer increment though. Fixes the following W=1 kernel build warning: drivers/misc/cxl/flash.c: In function ‘update_devicetree’: drivers/misc/cxl/flash.c:178:16: warning: variable ‘drc_index’ set but not used [-Wunused-but-set-variable] 178 | __be32 *data, drc_index, phandle; | ^~~~~~~~~ Cc: Frederic Barrat Cc: Andrew Donnellan Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Lee Jones Acked-by: Andrew Donnellan Reported-by: kernel test robot --- drivers/misc/cxl/flash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/misc/cxl/flash.c b/drivers/misc/cxl/flash.c index cb9cca35a2263..774d582ddd70b 100644 --- a/drivers/misc/cxl/flash.c +++ b/drivers/misc/cxl/flash.c @@ -175,7 +175,7 @@ static int update_devicetree(struct cxl *adapter, s32 scope) struct update_nodes_workarea *unwa; u32 action, node_count; int token, rc, i; - __be32 *data, drc_index, phandle; + __be32 *data, phandle; char *buf; token = rtas_token("ibm,update-nodes"); @@ -213,7 +213,7 @@ static int update_devicetree(struct cxl *adapter, s32 scope) break; case OPCODE_ADD: /* nothing to do, just move pointer */ - drc_index = *data++; + *data++; break; } }