From patchwork Fri Jul 23 09:16:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 484591 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp1145264jao; Fri, 23 Jul 2021 02:16:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxswfMD/lsGeApOyULu79oWweStJP3bnYGIxSbeTjax/5Wf776r9em1cXxzBbjDfYvl6kxv X-Received: by 2002:a05:6a00:1352:b029:331:afed:38b5 with SMTP id k18-20020a056a001352b0290331afed38b5mr3585369pfu.5.1627031809727; Fri, 23 Jul 2021 02:16:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627031809; cv=none; d=google.com; s=arc-20160816; b=H8ax0YC59caSE0VqXIjtzDBj5vPnhqHzqdQxXfh7WINblIb9WJYK/OXt8D2Bf0DqB2 iIVxQwiJLU1fNr7CFPT2fZ0wOWHkR9uUgEESKb/MZ889hnmwokAuHGSWztNehXU871El x2w2M9yPmXqmjflZlm7FH7XmoxRHFIUbd1KK5m4I+tWJrU87kcKwqeTrajzeAa9wmSKn Ev4940hiloDtQHCbOFB/pxtY+RhoRlad/Cj+Bvp/Qva+Tu2zMc3WuhyBSYR322C4PLlg 2tRbLvjx/cpiIqiCB458Q1RAx5Dl058GBLMFR3k+j1KI500w6IjZccjJSqOncc0QgPLW PU6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature :delivered-to; bh=WAGTe2+9wVcXGgaGrrovd1Df4YgL/sUFPic2Hbkx0iM=; b=zPQA2vGkJcwVTIb2GU0VV2zy5Jdyl8rWtDrM3lTUMJmB2WBsD0WXu8t022dgODmV4/ WmBAig8vxjy+UkO5GCh51BjfDfwO9ZupQdV3gJwelpvwt0ypIr0Xl9CPKNeGpBdR3ZTk XymJPGI4hMYqQooUE4MdjqAV818reLUmCnH4XYAI5PDUswzusdCO3VFP6jLi/HzQY+YC Hg3Jm3qgPNtvowrv4C1GkZC/qVDhT7F6TimfFV+Nw2x9DaAOKk8CoQzRKofwvhIRbJAp s/IV/vsJN5BSGaQEevGldjP4jZhpZy7J1GLNYB3oWdor7VhlxviClQuwh0efQia05rNX 4ZFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b="NTuP/2oG"; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id gp4si467350pjb.22.2021.07.23.02.16.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Jul 2021 02:16:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b="NTuP/2oG"; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A79F56F8F5; Fri, 23 Jul 2021 09:16:48 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by gabe.freedesktop.org (Postfix) with ESMTPS id 327706F8F5 for ; Fri, 23 Jul 2021 09:16:48 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id A589860EC0; Fri, 23 Jul 2021 09:16:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627031808; bh=au86PxqA2mC/AGbvba2BAcsU2LvEED9SySjD6r/5nJU=; h=From:To:Cc:Subject:Date:From; b=NTuP/2oGEHlnpXXX2Sfr75Vdi8CfXzGaW3DQULzfVypPu7mZl9Vo0xkmG34ozA9UN 0UROrUFybVrf5gBjGFLTcHA+WBQ98WsOGpuTZP5AKVaHJ6GR6hF27q8T5X7+zw9iyC Onht6Vn5+zS/Bvfhnz8pZpCJAk3PcKoczwQR5SJCVwSuAQJdKwbAsDvY12EoYEtIsO JRicpjEwIKl4N0V296sOE6UVdz9aD+lofQjbKc3WUuQXju+slkKX4l4LP1w/OUj1n0 tCcESe20bHMtcO/GubgitJ0Jp3K8CzPis09mgjTFuSyF/EdN+ODF1sFYbdBrMlTDsg YjMdh3nL3JB3Q== From: Arnd Bergmann To: Xinliang Liu , Tian Tao , David Airlie , Daniel Vetter , Thomas Zimmermann , Maxime Ripard Subject: [PATCH] drm/hisilicon/hibmc: remove an unused variable Date: Fri, 23 Jul 2021 11:16:34 +0200 Message-Id: <20210723091643.1768874-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Arnd Bergmann , Chen Feng , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Xinwei Kong , Sam Ravnborg Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Arnd Bergmann A recent patch left an unused variable in place that needs to be removed: drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c: In function 'hibmc_unload': drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c:252:35: error: unused variable 'priv' [-Werror=unused-variable] 252 | struct hibmc_drm_private *priv = to_hibmc_drm_private(dev); Fixes: 39a364a19e03 ("drm/hisilicon/hibmc: Convert to Linux IRQ interfaces") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 1 - 1 file changed, 1 deletion(-) -- 2.29.2 diff --git a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c index f73a8e0ea12e..610fc8e135f9 100644 --- a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c +++ b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c @@ -249,7 +249,6 @@ static int hibmc_hw_init(struct hibmc_drm_private *priv) static int hibmc_unload(struct drm_device *dev) { - struct hibmc_drm_private *priv = to_hibmc_drm_private(dev); struct pci_dev *pdev = to_pci_dev(dev->dev); drm_atomic_helper_shutdown(dev);