Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp48783ybi; Wed, 29 May 2019 16:25:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqzXFF/jwo8G2d1SbTkOnrNrUhxfVHbHSZXQXBopvZGH5t+7+p5VkgYnhMigSAN6knlSwlLm X-Received: by 2002:a65:62cc:: with SMTP id m12mr650702pgv.237.1559172354636; Wed, 29 May 2019 16:25:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559172354; cv=none; d=google.com; s=arc-20160816; b=Gbpnfuozi7O505TuaglxN3Z3wx3sT9f5y7mZD9zh3dUv7gFLMp3PGFFBAE+22jXnEX eoQNzSIidRyDuxsx7Gveg+kAbozzFOKRy9TpZfeDaA5p5D1eBSH8yT73+TPeQ0cJRoZo NzDELA1HY1ENXEk78WtAQpJprkqe6c0gJtNuaV1Awm9llRjSD4YrU06x1/heQptKTzCe xDHu1U2bYE68IHJd9adiMNhSgrD1m2J8rce8ByyOeb3m+xstDtN7bWfzwXRlGHh3n8C0 sqEbIGunzlZ5VG5xQgvqywRGGQwzsUbtKjL2NLT3W+aQ9y15B4wcgl78YHDv1+7d62Ww M0BA== 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=uegJiDhnQxQaXlYd/KXlqxqemOhHfM+yEvioj3JsN+U=; b=dhGxMu/XY6IVgTumLJlVROrifBhuu/ZFw8QF9u9/f1+gKfHZBEfzM8Ly2ymrdsnsfa 04x4ASAz66y0+5wSC+4MY6nwc7l2bGt095ClqwWtOaoGLdQqUMaTvnjF9VmUzssgx/Ta qBeP/4Vow036gn/5Nobn/xnooID3b3cvv7+bvKxaKoHv8JnZYtgNJ7Syf9HLLFcHR2Vi OJT4RHut519wD0bDyrYAtzXRcArcyBci4ICzP5xFAkFkU8m5yxIUwgbEKZVz8ZoxUU+z +Er0E4vy8EBqdcWWQAAIunIa1dtYk64YmJQO7xv2cSPC0vX/wF74Fm6uUOM/qII62XiJ Yqng== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="Vy03dE/f"; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z4si1257951pgp.307.2019.05.29.16.25.38; Wed, 29 May 2019 16:25:54 -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="Vy03dE/f"; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726744AbfE2XYE (ORCPT + 99 others); Wed, 29 May 2019 19:24:04 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:49090 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726454AbfE2XYA (ORCPT ); Wed, 29 May 2019 19:24:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Sender:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: 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=uegJiDhnQxQaXlYd/KXlqxqemOhHfM+yEvioj3JsN+U=; b=Vy03dE/fJC/z0esPCU5AkbkHF3 iycmVoQXfI5JtgYWXdqkS/XOFIeUCCHZQloefUcIwvw/F9RID6w9JNTPlWLHVEAZMTcvhCuRDSlbG cTKg4kpk3xo67RR7YBdbuKoBzgMGnuR2OveRkdoAYSHL4SbPOEViLAvVOqGYPNB8S3srQBohoTvSM 7Fln1mBeg7rufpwrymh3qF3m1/5FvbK0JOe5icvAQjJhqkZ0vr+mdRhWzeQoMLcd8cGZkrc4KiMBN r90mkuns5FaOpxt6Hy6mjCY2ZpaLtj6iqi2cI8edLXWL8UDTwQRKhd7t0VjpUbp2NerkecL5xH6H0 Y190lk7A==; Received: from 177.132.232.81.dynamic.adsl.gvt.net.br ([177.132.232.81] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hW7vL-0005Rm-7i; Wed, 29 May 2019 23:23:59 +0000 Received: from mchehab by bombadil.infradead.org with local (Exim 4.92) (envelope-from ) id 1hW7vI-0007xc-Rb; Wed, 29 May 2019 20:23:56 -0300 From: Mauro Carvalho Chehab To: Linux Doc Mailing List Cc: Mauro Carvalho Chehab , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Jonathan Corbet , =?UTF-8?q?J=C3=A9r=C3=B4me=20Glisse?= , linux-mm@kvack.org Subject: [PATCH 14/22] docs: vm: hmm.rst: fix some warnings Date: Wed, 29 May 2019 20:23:45 -0300 Message-Id: <59ddc30af749c0123af8b0dc04d3670133af5f8d.1559171394.git.mchehab+samsung@kernel.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Documentation/vm/hmm.rst:292: WARNING: Unexpected indentation. Documentation/vm/hmm.rst:300: WARNING: Unexpected indentation. Signed-off-by: Mauro Carvalho Chehab --- Documentation/vm/hmm.rst | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Documentation/vm/hmm.rst b/Documentation/vm/hmm.rst index ec1efa32af3c..1ab609ca7835 100644 --- a/Documentation/vm/hmm.rst +++ b/Documentation/vm/hmm.rst @@ -283,12 +283,14 @@ The hmm_range struct has 2 fields default_flags and pfn_flags_mask that allows to set fault or snapshot policy for a whole range instead of having to set them for each entries in the range. -For instance if the device flags for device entries are: +For instance if the device flags for device entries are:: + VALID (1 << 63) WRITE (1 << 62) Now let say that device driver wants to fault with at least read a range then -it does set: +it does set:: + range->default_flags = (1 << 63) range->pfn_flags_mask = 0; @@ -296,7 +298,8 @@ and calls hmm_range_fault() as described above. This will fill fault all page in the range with at least read permission. Now let say driver wants to do the same except for one page in the range for -which its want to have write. Now driver set: +which its want to have write. Now driver set:: + range->default_flags = (1 << 63); range->pfn_flags_mask = (1 << 62); range->pfns[index_of_write] = (1 << 62); -- 2.21.0