Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4272700ybi; Mon, 29 Jul 2019 22:58:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqytr3PutEE+5i0BUJP4aLvqfLqDH8V8In9/pLC4Gtv9ebd7w6uXFWyc8P0VaS02KBSJCsk8 X-Received: by 2002:aa7:97b7:: with SMTP id d23mr41744431pfq.203.1564466306939; Mon, 29 Jul 2019 22:58:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564466306; cv=none; d=google.com; s=arc-20160816; b=ubEp2M7boQ4+x1ZgnKLSFT13spQDw3sW4SEHY+kcqnqZeqqNQ10BnzurmewQn1UPNS QzdQlGAjhTB2I4yuVRxJ/JLwU0e00mwb3xkssAvH/fm2wgX1zukFdFPxYhnyxskh5qmv sGk1ksggig3LuwUBSjVp3vyFYh5pEikunHf07PPL3pKFdwWbvmDPsMBldAqE7W5kCNc9 xdzmqalkDeyScuoUiGDjeOSAmqXs9oK2MK3ckbEABY9fRZKJqTdd1qA1n8y8MlR1jM5q 3pqtPdJ9qLZLMJUAMv7bpuD7h1JbQaIgbfhn81RMb8iX1g7OIRSRV7sKRIKFXl5Pq+q5 7zMA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=MiAJz6/LGZ9crHwvj8CLjPFMqAcUr7sr54tyumAelRs=; b=dnoTkd7nOlScQtTq2/kzRc8qpSHKqZ3B7J10hZ0Xt5QvwlQGXaVRXGTj84wO6F5pH2 bXprNBcODJ8rX+o5OiAYCsWaQfxp6ZMgw31nXb86XyJX8wU0O28OYyIYQGQX/l7LJ2tg sdo+8F6g1UFC3u6ifQFTTWakT4lp75eMX4ZdQlYWJ+XL2lZWwzX5nqJCFJfzFp16UQIF cRu7TxEv2Cp3bIbpgZV+MDIxlMJm4qb9YBIdfLQciDEtdGytdQCwB5snJDlU6ocnlx3h oOL2xkSIO5wcSz9Ddyv3ln53/qBzU0DN5SIBFVD9GYEQ8dWReM0cBlrvWUyo6NYQ/y/n oKUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Rg7K55yo; 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 h26si25419450pgl.398.2019.07.29.22.58.12; Mon, 29 Jul 2019 22:58:26 -0700 (PDT) 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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Rg7K55yo; 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 S1728087AbfG3FwY (ORCPT + 99 others); Tue, 30 Jul 2019 01:52:24 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:46118 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726225AbfG3FwX (ORCPT ); Tue, 30 Jul 2019 01:52:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=MiAJz6/LGZ9crHwvj8CLjPFMqAcUr7sr54tyumAelRs=; b=Rg7K55yowl6k/ZPgtgKzOFotco EVRGBimUYALuPVAK+Kd0lIYGAgz8qtzz4r7Rt2jsMd0MtpQWT8xWTjMhSpjmP6B+WzSAt0NQxsH3z +abmLHxfsepvGEZ16JG88WTk4KK/xmmi/835FUkRt3rJXl5jFfuGcN+T4XXHJZr+nfh2bJRDlW3PY pEOwZbQr5FVYHNr00EG+63WsoZ6aeTTX2HHITa6njQqVgFg/XDoSqkAj0N5KDOYMSp9n85MUhgF5D whhEQ2w7Jug4LOPnVeW4QA+7KPrsRNLvw5OSVDmss722pMK5UEW5tPkequZrhaCLygy8OXTJOT9po zeDCXljw==; Received: from [195.167.85.94] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hsL3c-00015E-DZ; Tue, 30 Jul 2019 05:52:20 +0000 From: Christoph Hellwig To: =?UTF-8?q?J=C3=A9r=C3=B4me=20Glisse?= , Jason Gunthorpe , Ben Skeggs , Felix Kuehling Cc: Ralph Campbell , linux-mm@kvack.org, nouveau@lists.freedesktop.org, dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 02/13] amdgpu: don't initialize range->list in amdgpu_hmm_init_range Date: Tue, 30 Jul 2019 08:51:52 +0300 Message-Id: <20190730055203.28467-3-hch@lst.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190730055203.28467-1-hch@lst.de> References: <20190730055203.28467-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The list is used to add the range to another list as an entry in the core hmm code, so there is no need to initialize it in a driver. Signed-off-by: Christoph Hellwig --- drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c index b698b423b25d..60b9fc9561d7 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c @@ -484,6 +484,5 @@ void amdgpu_hmm_init_range(struct hmm_range *range) range->flags = hmm_range_flags; range->values = hmm_range_values; range->pfn_shift = PAGE_SHIFT; - INIT_LIST_HEAD(&range->list); } } -- 2.20.1