Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp489133ybl; Wed, 14 Aug 2019 01:01:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqxGE0c7qNEorcQ2v5KfF5/BSbatWO11znkyXacJYZno4SWVXnD3Z28XoIgl1joRozK/Uvfo X-Received: by 2002:a65:6406:: with SMTP id a6mr32475722pgv.393.1565769706244; Wed, 14 Aug 2019 01:01:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565769706; cv=none; d=google.com; s=arc-20160816; b=rBVyGH6O9s6oNBk9a0c8sKsC5QXKfg5SfHyScdRsx5eKjXiE9NrZqD3Cf/BSSpv00u yLwqNQRLP24UeODc53zO8MjXP/9gDu4eI6RVcvWq6kJC6FqZ/H0HgufXa4pPXEO43fGJ OAkNsORgci7qmK/Hw+Bz7LX/4iagKkI4/ld5tCeAgtpZ6QEldSQtvy4F3F5tgr0N7Y1R J4HYJkNhTnFXsA5MlJc2UFxyA4zR+kIoFnnVETlRSMeiPpynSPLo+eDlxTMS+YrLYQn+ B1hGkZqIKxccEP2OLuaYxbHEAree3nk4H+4ny7hOfNYyzQGzZDWYQxFrucA13Mzcaphv cZFw== 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=aAnmSRph1c1Gu2+S0Bf5dmihLUaL6lE7+YQ+WyB/8Io=; b=ggukM7c6sEYcwIXr254AUm3VGrZf5BzJdKafFXMWCxS0fp6k90p+6FFX/OnTx6r9HZ 6wfYXQ6qv45G9b5Lv1CV7q4LbX2xMfG4peXwIGJTGOW9mKfVRO0BHo8aploljpKZHL4c 0g7kZQTlUBHOIFFuxqXKvwltj2Y8n3kSr1AXfETYXlNVFeK4oqE+vzhpvYt3K0HkeAXN J2s/fMJBjAngoPl68FcGhjAx/Hw0zVR4Y+SM/CnWyJsLoEKGpksUkgq2vQsmMI/cQhfA L6wGPK/96L/7wadRlFnPaPQNDsB2XjP4YwircsvfGB+qOtzsxd4ePOZxGNMbSZaJ8FYL 9qvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=bM+YSebv; 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 y11si197442pjp.54.2019.08.14.01.01.29; Wed, 14 Aug 2019 01:01:46 -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=bM+YSebv; 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 S1727623AbfHNIAL (ORCPT + 99 others); Wed, 14 Aug 2019 04:00:11 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:40274 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727411AbfHNIAK (ORCPT ); Wed, 14 Aug 2019 04:00:10 -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=aAnmSRph1c1Gu2+S0Bf5dmihLUaL6lE7+YQ+WyB/8Io=; b=bM+YSebvWYi9TWCoNWvznDU4rK PbGYSC1kDL4lM+HJPv/XKvL+1+89tZCp9zpByE9sGHwJjWDQjUUyETZEtrYJ2ZVWr+nImLnODGhGr Px7VZx/459JkWE+617Z320wbe59gs70dEAfTZFkf7gxjUpz+comcBvRsHIs/2/wp7d/28TxxQGeaC QnxdelxFLgpddzI4JUuX9iBWcEcI3jEaTh983n/LE0kJUerNxqxQekySl+oWl/1d+10zpd/blkhvt 1FKMaw1LL9eaVdr02KhYgcBEOpEj61YaLSReU27GR2//wmzBVDoKxKWf4VXSE3L6wcQsGyle3EMmm WVu8ZTag==; Received: from [2001:4bb8:180:1ec3:c70:4a89:bc61:2] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hxoCP-0008Bl-UL; Wed, 14 Aug 2019 08:00:02 +0000 From: Christoph Hellwig To: =?UTF-8?q?J=C3=A9r=C3=B4me=20Glisse?= , Jason Gunthorpe , Ben Skeggs Cc: Ralph Campbell , Bharata B Rao , Andrew Morton , linux-mm@kvack.org, nouveau@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 10/10] mm: remove CONFIG_MIGRATE_VMA_HELPER Date: Wed, 14 Aug 2019 09:59:28 +0200 Message-Id: <20190814075928.23766-11-hch@lst.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190814075928.23766-1-hch@lst.de> References: <20190814075928.23766-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 CONFIG_MIGRATE_VMA_HELPER guards helpers that are required for proper devic private memory support. Remove the option and just check for CONFIG_DEVICE_PRIVATE instead. Signed-off-by: Christoph Hellwig --- drivers/gpu/drm/nouveau/Kconfig | 1 - mm/Kconfig | 3 --- mm/migrate.c | 4 ++-- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/nouveau/Kconfig b/drivers/gpu/drm/nouveau/Kconfig index df4352c279ba..3558df043592 100644 --- a/drivers/gpu/drm/nouveau/Kconfig +++ b/drivers/gpu/drm/nouveau/Kconfig @@ -89,7 +89,6 @@ config DRM_NOUVEAU_SVM depends on MMU depends on STAGING select HMM_MIRROR - select MIGRATE_VMA_HELPER select MMU_NOTIFIER default n help diff --git a/mm/Kconfig b/mm/Kconfig index 563436dc1f24..2fe4902ad755 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -669,9 +669,6 @@ config ZONE_DEVICE If FS_DAX is enabled, then say Y. -config MIGRATE_VMA_HELPER - bool - config DEV_PAGEMAP_OPS bool diff --git a/mm/migrate.c b/mm/migrate.c index 33e063c28c1b..993386cb5335 100644 --- a/mm/migrate.c +++ b/mm/migrate.c @@ -2117,7 +2117,7 @@ int migrate_misplaced_transhuge_page(struct mm_struct *mm, #endif /* CONFIG_NUMA */ -#if defined(CONFIG_MIGRATE_VMA_HELPER) +#ifdef CONFIG_DEVICE_PRIVATE static int migrate_vma_collect_hole(unsigned long start, unsigned long end, struct mm_walk *walk) @@ -2942,4 +2942,4 @@ void migrate_vma_finalize(struct migrate_vma *migrate) } } EXPORT_SYMBOL(migrate_vma_finalize); -#endif /* defined(MIGRATE_VMA_HELPER) */ +#endif /* CONFIG_DEVICE_PRIVATE */ -- 2.20.1