Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp67770imp; Wed, 20 Feb 2019 19:27:29 -0800 (PST) X-Google-Smtp-Source: AHgI3IY6H9IBRRePq1ud4LqDLzJi3iwmOMXM4gAiLOGeITqxrcRvBgt53BchWmTz6W+uh4aVFfVn X-Received: by 2002:a17:902:d708:: with SMTP id w8mr40662402ply.294.1550719649498; Wed, 20 Feb 2019 19:27:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550719649; cv=none; d=google.com; s=arc-20160816; b=Kxf2nKbkaJD5huXthsBshfd0G+2kAqIFP74kd2Jxn3FxvfR4oJestuyCKCL9/mtaxv etwW+jY3KP0thpAQvkr7afRPAcfG7X/Hqr4NLxmq1x/qdQzHS4rJS4mMqQCkJTwOr+31 xnY+T/aiVuYrx3nLiPs8iVdEC6219JmYNlQl8Ib04odKJnGRVrq2MYEjR2x8eyWYkRQO ZKznYwKFnTWmt3Q7sO+FqJO2B/x3dNXD+ooJnhe0izpESr7dOKPY4B894NvMUF6sn/V4 EgEjv5YOLRcNAl9htTkFFsYc1QzE7kVU+jXWnzUEbP0cBh2DhM2G5fnK9y7HsSru5ivQ kW7g== 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=VcVTRswIm+gV//Xcw7DzQ9Qv6soFwB2dsSjKaFRScgU=; b=IbBT/VsnENiAESXUpB8tciBzH4PWz0Ah+DPQiry6N+/lrqVsjh/Cf0Y/TtuMsmFY9f 14h/V1bIUmemP9QGPk5rtyxlxZq/jJ2jH5TVYzTtI/VhLRXgVtEDXTUU34ICMnw9Pw8A EN0fRbQK4CVlI7UDa+YAjAQzQyEsoEUH+u46pgocyXcFcIaR53GU4xEvf8Lsmch7c4Rm 3tdOoujhmM5jfzuMbNyUMlocaB/TZOY/5H7a1BE/MRwG1W2oK9qcEDik+JUnsODl/PsI jfeqxvQKS6/X4UjIyHw1Ecw9WxfCwvG5JI1HHJX8QUKzir+TGA3a0TBl65bmULXqGhtr lBtQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3si21081176plo.217.2019.02.20.19.27.13; Wed, 20 Feb 2019 19:27:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726592AbfBUDZZ (ORCPT + 99 others); Wed, 20 Feb 2019 22:25:25 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:3713 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726016AbfBUDZZ (ORCPT ); Wed, 20 Feb 2019 22:25:25 -0500 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 21F131D806D7DF1928D6; Thu, 21 Feb 2019 11:25:23 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.408.0; Thu, 21 Feb 2019 11:25:12 +0800 From: YueHaibing To: Ben Skeggs , David Airlie , "Daniel Vetter" CC: YueHaibing , , , , Subject: [PATCH -next] drm/nouveau/dmem: remove set but not used variable 'drm' Date: Thu, 21 Feb 2019 03:38:51 +0000 Message-ID: <20190221033851.70331-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/nouveau/nouveau_dmem.c: In function 'nouveau_dmem_free': drivers/gpu/drm/nouveau/nouveau_dmem.c:103:22: warning: variable 'drm' set but not used [-Wunused-but-set-variable] struct nouveau_drm *drm; ^ Signed-off-by: YueHaibing --- drivers/gpu/drm/nouveau/nouveau_dmem.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_dmem.c b/drivers/gpu/drm/nouveau/nouveau_dmem.c index aa9fec80492d..900a302b7ce9 100644 --- a/drivers/gpu/drm/nouveau/nouveau_dmem.c +++ b/drivers/gpu/drm/nouveau/nouveau_dmem.c @@ -100,12 +100,10 @@ static void nouveau_dmem_free(struct hmm_devmem *devmem, struct page *page) { struct nouveau_dmem_chunk *chunk; - struct nouveau_drm *drm; unsigned long idx; chunk = (void *)hmm_devmem_page_get_drvdata(page); idx = page_to_pfn(page) - chunk->pfn_first; - drm = chunk->drm; /* * FIXME: