All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mm: fix Documentation/vm/hmm.rst Sphinx warnings
@ 2019-05-20 21:24 Randy Dunlap
  2019-05-21  8:21 ` Mike Rapoport
  0 siblings, 1 reply; 3+ messages in thread
From: Randy Dunlap @ 2019-05-20 21:24 UTC (permalink / raw)
  To: Linux MM, Andrew Morton; +Cc: Jérôme Glisse

From: Randy Dunlap <rdunlap@infradead.org>

Fix Sphinx warnings in Documentation/vm/hmm.rst by using "::"
notation and inserting a blank line.  Also add a missing ';'.

Documentation/vm/hmm.rst:292: WARNING: Unexpected indentation.
Documentation/vm/hmm.rst:300: WARNING: Unexpected indentation.

Fixes: 023a019a9b4e ("mm/hmm: add default fault flags to avoid the need to pre-fill pfns arrays")

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Jérôme Glisse <jglisse@redhat.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
---
 Documentation/vm/hmm.rst |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

--- lnx-52-rc1.orig/Documentation/vm/hmm.rst
+++ lnx-52-rc1/Documentation/vm/hmm.rst
@@ -288,15 +288,17 @@ For instance if the device flags for dev
     WRITE (1 << 62)
 
 Now let say that device driver wants to fault with at least read a range then
-it does set:
-    range->default_flags = (1 << 63)
+it does set::
+
+    range->default_flags = (1 << 63);
     range->pfn_flags_mask = 0;
 
 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);



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] mm: fix Documentation/vm/hmm.rst Sphinx warnings
  2019-05-20 21:24 [PATCH] mm: fix Documentation/vm/hmm.rst Sphinx warnings Randy Dunlap
@ 2019-05-21  8:21 ` Mike Rapoport
  2019-05-21 16:35   ` Jerome Glisse
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Rapoport @ 2019-05-21  8:21 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: Linux MM, Andrew Morton, Jérôme Glisse

On Mon, May 20, 2019 at 02:24:01PM -0700, Randy Dunlap wrote:
> From: Randy Dunlap <rdunlap@infradead.org>
> 
> Fix Sphinx warnings in Documentation/vm/hmm.rst by using "::"
> notation and inserting a blank line.  Also add a missing ';'.
> 
> Documentation/vm/hmm.rst:292: WARNING: Unexpected indentation.
> Documentation/vm/hmm.rst:300: WARNING: Unexpected indentation.
> 
> Fixes: 023a019a9b4e ("mm/hmm: add default fault flags to avoid the need to pre-fill pfns arrays")
> 
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> Cc: Jérôme Glisse <jglisse@redhat.com>
> Cc: Andrew Morton <akpm@linux-foundation.org>

Reviewed-by: Mike Rapoport <rppt@linux.ibm.com>

> ---
>  Documentation/vm/hmm.rst |    8 +++++---
>  1 file changed, 5 insertions(+), 3 deletions(-)
> 
> --- lnx-52-rc1.orig/Documentation/vm/hmm.rst
> +++ lnx-52-rc1/Documentation/vm/hmm.rst
> @@ -288,15 +288,17 @@ For instance if the device flags for dev
>      WRITE (1 << 62)
> 
>  Now let say that device driver wants to fault with at least read a range then
> -it does set:
> -    range->default_flags = (1 << 63)
> +it does set::
> +
> +    range->default_flags = (1 << 63);
>      range->pfn_flags_mask = 0;
> 
>  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);
> 
> 

-- 
Sincerely yours,
Mike.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] mm: fix Documentation/vm/hmm.rst Sphinx warnings
  2019-05-21  8:21 ` Mike Rapoport
@ 2019-05-21 16:35   ` Jerome Glisse
  0 siblings, 0 replies; 3+ messages in thread
From: Jerome Glisse @ 2019-05-21 16:35 UTC (permalink / raw)
  To: Mike Rapoport; +Cc: Randy Dunlap, Linux MM, Andrew Morton

On Tue, May 21, 2019 at 11:21:18AM +0300, Mike Rapoport wrote:
> On Mon, May 20, 2019 at 02:24:01PM -0700, Randy Dunlap wrote:
> > From: Randy Dunlap <rdunlap@infradead.org>
> > 
> > Fix Sphinx warnings in Documentation/vm/hmm.rst by using "::"
> > notation and inserting a blank line.  Also add a missing ';'.
> > 
> > Documentation/vm/hmm.rst:292: WARNING: Unexpected indentation.
> > Documentation/vm/hmm.rst:300: WARNING: Unexpected indentation.
> > 
> > Fixes: 023a019a9b4e ("mm/hmm: add default fault flags to avoid the need to pre-fill pfns arrays")
> > 
> > Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> > Cc: Jérôme Glisse <jglisse@redhat.com>
> > Cc: Andrew Morton <akpm@linux-foundation.org>
> 
> Reviewed-by: Mike Rapoport <rppt@linux.ibm.com>

Reviewed-by: Jérôme Glisse <jglisse@redhat.com>


> 
> > ---
> >  Documentation/vm/hmm.rst |    8 +++++---
> >  1 file changed, 5 insertions(+), 3 deletions(-)
> > 
> > --- lnx-52-rc1.orig/Documentation/vm/hmm.rst
> > +++ lnx-52-rc1/Documentation/vm/hmm.rst
> > @@ -288,15 +288,17 @@ For instance if the device flags for dev
> >      WRITE (1 << 62)
> > 
> >  Now let say that device driver wants to fault with at least read a range then
> > -it does set:
> > -    range->default_flags = (1 << 63)
> > +it does set::
> > +
> > +    range->default_flags = (1 << 63);
> >      range->pfn_flags_mask = 0;
> > 
> >  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);
> > 
> > 
> 
> -- 
> Sincerely yours,
> Mike.
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-05-21 16:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-20 21:24 [PATCH] mm: fix Documentation/vm/hmm.rst Sphinx warnings Randy Dunlap
2019-05-21  8:21 ` Mike Rapoport
2019-05-21 16:35   ` Jerome Glisse

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.