Skip to contentSkip to conversation

docs: Fix various build warnings/errors

PATCH Superseded Tobin C. Harding 5 participants 25 messages Mar 7, 2019 – Mar 25, 2019

Subsystems (7)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover docs: Fix various build warnings/errors

Hi,

I had a few hours to spare so I thought I'd clear some Sphinx build warnings/errors. There isn't anything too controversial here. The only interesting thing I hit was in patch 7 (docs: Remove unknown 'hint' directive), I couldn't work out if this was a serious directive, a joke, or a typo. Please review that patch more carefully than the others.

Patch 4 adds :ref: and raises an issue I've come across a few times now, could I have your opinion on it please (if you have the time/inclination to share it)

:ref:/Documentation/path/to/file.rst <label>

vs

:ref:label

Undeniably the second is better in HTML. The first is, on one hand, arguable better to parse when reading the textual file (since you can see which file it refers to) but on the other hand kinda looks ugly since it often line wraps poorly and is a bit cluttered if all you want to see is the path. Having only the label doesn't _really_ make it worse in text because often you already know (or don't care) what the path is (e.g. when there are multiple refs to the same label) and if you do care you can just grep the docs for the label.

Do you have an opinion on this?

Oh also, do you have a script by any chance that does a clean build of the docs, saves stderr output, applies a patch, cleanly re-builds the docs and then diffs the two outputs? Then rinse-and-repeat for a whole patch series. Thought I'd ask before I write one.

thanks,
Tobin.

Tobin C. Harding (9):
docs: Fix spelling mistake
docs: Add colon clearing sphinx warning
docs: Remove unnecessary reference link title
docs: Use reference to link to rst file
docs: Replace backtick with apostrophe.
docs: Use correct list markup character
docs: Remove unknown 'hint' directive
docs: Fix Title underline too short warning
docs: Add blank line after SPDX licence identifier

 .../admin-guide/mm/numa_memory_policy.rst     |  9 ++-
 .../driver-api/dmaengine/dmatest.rst          |  4 +-
 Documentation/driver-api/gpio/board.rst       |  5 +-
 Documentation/filesystems/path-lookup.rst     | 24 ++++----
 Documentation/laptops/lg-laptop.rst           | 13 +++--
 Documentation/misc-devices/ibmvmc.rst         |  1 +
 Documentation/networking/snmp_counter.rst     | 58 +++++++++----------
 Documentation/process/howto.rst               |  2 +-
 Documentation/vm/numa.rst                     |  4 +-
 Documentation/vm/slub.rst                     |  2 +-
 include/linux/kernel.h                        |  2 +-
 include/linux/wait.h                          |  2 +-
 12 files changed, 64 insertions(+), 62 deletions(-)
Signature · 1 line
2.21.0
#1 lore raw

PATCH 1/9 docs: Fix spelling mistake

Documentation contains a spelling mistake / typo.

s/descibed/described/

Fix spelling mistake.

---
 Documentation/process/howto.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/process/howto.rst +1 -1
index 58b2f46c4f98..5cac67f8fb17 100644
@@ -62,7 +62,7 @@ Legal Issues
 The Linux kernel source code is released under the GPL.  Please see the file
 COPYING in the main directory of the source tree. The Linux kernel licensing
 rules and how to use `SPDX <https://spdx.org/>`_ identifiers in source code are
-descibed in :ref:`Documentation/process/license-rules.rst <kernel_licensing>`.
+described in :ref:`Documentation/process/license-rules.rst <kernel_licensing>`.
 If you have further questions about the license, please contact a lawyer, and do
 not ask on the Linux kernel mailing list.  The people on the mailing lists are
 not lawyers, and you should not rely on their statements on legal matters.
Signature · 1 line
2.21.0
#2 lore raw

PATCH 2/9 docs: Add colon clearing sphinx warning

In reply to Tobin C. Harding

Sphinx emits various warnings all caused by missing colons before code blocks:

WARNING: Inline emphasis start-string without end-string.
WARNING: Block quote ends without a blank line; unexpected unindent.
ERROR: Unexpected indentation.
WARNING: Block quote ends without a blank line; unexpected unindent.

Add the colon, clearing sphinx warnings.

---
 Documentation/vm/slub.rst | 2 +-
 include/linux/wait.h      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Documentation/vm/slub.rst +1 -1
index 195928808bac..610510d90c33 100644
@@ -66,7 +66,7 @@ Trying to find an issue in the dentry cache? Try::
 to only enable debugging on the dentry cache.  You may use an asterisk at the
 end of the slab name, in order to cover all slabs with the same prefix.  For
 example, here's how you can poison the dentry cache as well as all kmalloc
-slabs:
+slabs::
 
 	slub_debug=P,kmalloc-*,dentry
 
include/linux/wait.h +1 -1
index ed7c122cb31f..deedfe2b9ffe 100644
@@ -101,7 +101,7 @@ init_waitqueue_func_entry(struct wait_queue_entry *wq_entry, wait_queue_func_t f
  * lead to sporadic and non-obvious failure.
  *
  * Use either while holding wait_queue_head::lock or when used for wakeups
- * with an extra smp_mb() like:
+ * with an extra smp_mb() like::
  *
  *      CPU0 - waker                    CPU1 - waiter
  *
Signature · 1 line
2.21.0
#3 lore raw

PATCH 3/9 docs: Remove unnecessary reference link title

In reply to Tobin C. Harding

Labels that precede a heading use the heading as the link title. Explicitly adding the link title defeats the purpose of this feature i.e. makes the reference less maintainable.

Remove unnecessary reference link title.

---
 Documentation/admin-guide/mm/numa_memory_policy.rst | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
Documentation/admin-guide/mm/numa_memory_policy.rst +4 -5
index d78c5b315f72..1ef0146eaa4d 100644
@@ -20,8 +20,7 @@ which is an administrative mechanism for restricting the nodes from which
 memory may be allocated by a set of processes. Memory policies are a
 programming interface that a NUMA-aware application can take advantage of.  When
 both cpusets and policies are applied to a task, the restrictions of the cpuset
-takes priority.  See :ref:`Memory Policies and cpusets <mem_pol_and_cpusets>`
-below for more details.
+takes priority.  See :ref:`mem_pol_and_cpusets` below for more details.
 
 Memory Policy Concepts
 ======================
@@ -56,7 +55,7 @@ Task/Process Policy
 	[clone() w/o the CLONE_VM flag] and exec*().  This allows a parent task
 	to establish the task policy for a child task exec()'d from an
 	executable image that has no awareness of memory policy.  See the
-	:ref:`Memory Policy APIs <memory_policy_apis>` section,
+	:ref:`memory_policy_apis` section,
 	below, for an overview of the system call
 	that a task may use to set/change its task/process policy.
 
@@ -77,7 +76,7 @@ VMA Policy
 	A "VMA" or "Virtual Memory Area" refers to a range of a task's
 	virtual address space.  A task may define a specific policy for a range
 	of its virtual address space.   See the
-	:ref:`Memory Policy APIs <memory_policy_apis>` section,
+	:ref:`memory_policy_apis` section,
 	below, for an overview of the mbind() system call used to set a VMA
 	policy.
 
@@ -142,7 +141,7 @@ Shared Policy
 	Although hugetlbfs segments now support lazy allocation, their support
 	for shared policy has not been completed.
 
-	As mentioned above in :ref:`VMA policies <vma_policy>` section,
+	As mentioned above in :ref:`vma_policy` section,
 	allocations of page cache pages for regular files mmap()ed
 	with MAP_SHARED ignore any VMA policy installed on the virtual
 	address range backed by the shared file mapping.  Rather,
Signature · 1 line
2.21.0
#4 lore raw

PATCH 4/9 docs: Use reference to link to rst file

In reply to Tobin C. Harding

Current document includes the path to an RST doc file. Since this is an RST file we can make this a link. Keeps the path as the link title since that what the original author wrote.

Use reference to link to rst file.

---
 Documentation/vm/numa.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/vm/numa.rst +2 -2
index 185d8a568168..5cae13e9a08b 100644
@@ -109,8 +109,8 @@ System administrators and application designers can restrict a task's migration
 to improve NUMA locality using various CPU affinity command line interfaces,
 such as taskset(1) and numactl(1), and program interfaces such as
 sched_setaffinity(2).  Further, one can modify the kernel's default local
-allocation behavior using Linux NUMA memory policy.
-[see Documentation/admin-guide/mm/numa_memory_policy.rst.]
+allocation behavior using Linux NUMA memory policy. [see
+:ref:`Documentation/admin-guide/mm/numa_memory_policy.rst <numa_memory_policy>`].
 
 System administrators can restrict the CPUs and nodes' memories that a non-
 privileged user can specify in the scheduling or NUMA commands and functions
Signature · 1 line
2.21.0
#5 lore raw

PATCH 5/9 docs: Replace backtick with apostrophe.

In reply to Tobin C. Harding

Sphinx emits:

WARNING: Inline interpreted text or phrase reference start-string without end-string.

This is caused by a spurious backtick.

Replace backtick with apostrophe.

---
 include/linux/kernel.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/kernel.h +1 -1
index 8f0e68e250a7..59c16c763086 100644
@@ -134,7 +134,7 @@
  * Rounds @x up to next multiple of @y. If @y will always be a power
  * of 2, consider using the faster round_up().
  *
- * The `const' here prevents gcc-3.3 from calling __divdi3
+ * The 'const' here prevents gcc-3.3 from calling __divdi3
  */
 #define roundup(x, y) (					\
 {							\
Signature · 1 line
2.21.0
reviewer
#6 lore raw

Re: [PATCH 5/9] docs: Replace backtick with apostrophe.

Quoted 20 lines · Tobin C. Harding

Sphinx emits:

WARNING: Inline interpreted text or phrase reference start-string without end-string.

This is caused by a spurious backtick.

Replace backtick with apostrophe.

---
 include/linux/kernel.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/kernel.h +0 -0
index 8f0e68e250a7..59c16c763086 100644

include/linux/kernel.h line 140

Quoted 8 lines
include/linux/kernel.h +1 -1
@@ -134,7 +134,7 @@
  * Rounds @x up to next multiple of @y. If @y will always be a power
  * of 2, consider using the faster round_up().
  *
- * The `const' here prevents gcc-3.3 from calling __divdi3
+ * The 'const' here prevents gcc-3.3 from calling __divdi3
  */
 #define roundup(x, y) (					\
 {							\

That line is being removed completely since gcc 3.3 is no longer supported.

Signature · 1 line
~Randy
#7 lore raw

PATCH 6/9 docs: Use correct list markup character

In reply to Tobin C. Harding

Sphinx uses a star not a hyphen for lists.

Use correct list markup character.

---
 Documentation/driver-api/gpio/board.rst |  5 +++--
 Documentation/laptops/lg-laptop.rst     | 12 ++++++------
 2 files changed, 9 insertions(+), 8 deletions(-)
Documentation/driver-api/gpio/board.rst +3 -2
index a0f294e2e250..a5d5c22ab610 100644
@@ -204,8 +204,9 @@ between a caller and a respective .get/set_multiple() callback of a GPIO chip.
 
 In order to qualify for fast bitmap processing, the array must meet the
 following requirements:
-- pin hardware number of array member 0 must also be 0,
-- pin hardware numbers of consecutive array members which belong to the same
+
+* pin hardware number of array member 0 must also be 0.
+* pin hardware numbers of consecutive array members which belong to the same
   chip as member 0 does must also match their array indexes.
 
 Otherwise fast bitmap processing path is not used in order to avoid consecutive
Documentation/laptops/lg-laptop.rst +6 -6
index e486fe7ddc35..d9e560dfd045 100644
@@ -9,12 +9,12 @@ Hotkeys
 -------
 
 The following FN keys are ignored by the kernel without this driver:
-- FN-F1 (LG control panel)   - Generates F15
-- FN-F5 (Touchpad toggle)    - Generates F13
-- FN-F6 (Airplane mode)      - Generates RFKILL
-- FN-F8 (Keyboard backlight) - Generates F16.
-  This key also changes keyboard backlight mode.
-- FN-F9 (Reader mode)        - Generates F14
+
+* FN-F1 (LG control panel)   - Generates F15
+* FN-F5 (Touchpad toggle)    - Generates F13
+* FN-F6 (Airplane mode)      - Generates RFKILL
+* FN-F8 (Keyboard backlight) - Generates F16 (This key also changes keyboard backlight mode)
+* FN-F9 (Reader mode)        - Generates F14
 
 The rest of the FN key work without a need for a special driver.
 
Signature · 1 line
2.21.0
reviewer
#8 lore raw

Re: [PATCH 6/9] docs: Use correct list markup character

Quoted 5 lines · Tobin C. Harding

Sphinx uses a star not a hyphen for lists.

Use correct list markup character.

Hi Tobin,

The blank line insertions are all that is needed.
And I have already sent a patch for that.

Also, a list can begin with any of:
"A text block which begins with a "*", "+", "-", "•", "‣", or "⁃", followed by whitespace, is a bullet list item (a.k.a. "unordered" list item)."

from http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#bullet-lists

Quoted 45 lines
---
 Documentation/driver-api/gpio/board.rst |  5 +++--
 Documentation/laptops/lg-laptop.rst     | 12 ++++++------
 2 files changed, 9 insertions(+), 8 deletions(-)
Documentation/driver-api/gpio/board.rst +3 -2
index a0f294e2e250..a5d5c22ab610 100644
@@ -204,8 +204,9 @@ between a caller and a respective .get/set_multiple() callback of a GPIO chip.
 
 In order to qualify for fast bitmap processing, the array must meet the
 following requirements:
-- pin hardware number of array member 0 must also be 0,
-- pin hardware numbers of consecutive array members which belong to the same
+
+* pin hardware number of array member 0 must also be 0.
+* pin hardware numbers of consecutive array members which belong to the same
   chip as member 0 does must also match their array indexes.
 
 Otherwise fast bitmap processing path is not used in order to avoid consecutive
Documentation/laptops/lg-laptop.rst +6 -6
index e486fe7ddc35..d9e560dfd045 100644
@@ -9,12 +9,12 @@ Hotkeys
 -------
 
 The following FN keys are ignored by the kernel without this driver:
-- FN-F1 (LG control panel)   - Generates F15
-- FN-F5 (Touchpad toggle)    - Generates F13
-- FN-F6 (Airplane mode)      - Generates RFKILL
-- FN-F8 (Keyboard backlight) - Generates F16.
-  This key also changes keyboard backlight mode.
-- FN-F9 (Reader mode)        - Generates F14
+
+* FN-F1 (LG control panel)   - Generates F15
+* FN-F5 (Touchpad toggle)    - Generates F13
+* FN-F6 (Airplane mode)      - Generates RFKILL
+* FN-F8 (Keyboard backlight) - Generates F16 (This key also changes keyboard backlight mode)
+* FN-F9 (Reader mode)        - Generates F14
 
 The rest of the FN key work without a need for a special driver.
 
Signature · 1 line
~Randy
#9 lore raw

Re: [PATCH 6/9] docs: Use correct list markup character

Quoted 7 lines · Randy Dunlap
Quoted 5 lines · Tobin C. Harding

Sphinx uses a star not a hyphen for lists.

Use correct list markup character.

Quoted 7 lines

Hi Tobin,

The blank line insertions are all that is needed.
And I have already sent a patch for that.

Also, a list can begin with any of:
"A text block which begins with a "*", "+", "-", "•", "‣", or "⁃", followed by whitespace, is a bullet list item (a.k.a. "unordered" list item)."

Oh, cool. I didn't realise. Thanks Randy.

Tobin

#10 lore raw

PATCH 7/9 docs: Remove unknown 'hint' directive

In reply to Tobin C. Harding

Current RST file contains an unknown directive causing Sphinx to emit

ERROR: Unexpected indentation.

Use normal language construct instead.

---
 Documentation/driver-api/dmaengine/dmatest.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/driver-api/dmaengine/dmatest.rst +2 -2
index 8d81f1a7169b..25eecd2769b0 100644
@@ -59,8 +59,8 @@ parameter, that specific channel is requested using the dmaengine and a thread
 is created with the existing parameters. This thread is set as pending
 and will be executed once run is set to 1. Any parameters set after the thread
 is created are not applied.
-.. hint::
-  available channel list could be extracted by running the following command::
+
+Hint: available channel list could be extracted by running the following command::
 
     % ls -1 /sys/class/dma/
 
Signature · 1 line
2.21.0
reviewer
#11 lore raw

Re: [PATCH 7/9] docs: Remove unknown 'hint' directive

Quoted 7 lines · Tobin C. Harding

Current RST file contains an unknown directive causing Sphinx to emit

ERROR: Unexpected indentation.

Use normal language construct instead.

This is a good idea. My previous patch eliminated the warning but the ..hint is not presented very well in the generated output. :)

Thanks.

Quoted 20 lines
---
 Documentation/driver-api/dmaengine/dmatest.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/driver-api/dmaengine/dmatest.rst +2 -2
index 8d81f1a7169b..25eecd2769b0 100644
@@ -59,8 +59,8 @@ parameter, that specific channel is requested using the dmaengine and a thread
 is created with the existing parameters. This thread is set as pending
 and will be executed once run is set to 1. Any parameters set after the thread
 is created are not applied.
-.. hint::
-  available channel list could be extracted by running the following command::
+
+Hint: available channel list could be extracted by running the following command::
 
     % ls -1 /sys/class/dma/
 
Signature · 1 line
~Randy
#12 lore raw

Re: [PATCH 7/9] docs: Remove unknown 'hint' directive

Am 08.03.19 um 04:51 schrieb Randy Dunlap:

Quoted 18 lines · Tobin C. Harding
Quoted 7 lines

Current RST file contains an unknown directive causing Sphinx to emit

ERROR: Unexpected indentation.

Use normal language construct instead.

This is a good idea. My previous patch eliminated the warning but the ..hint is not presented very well in the generated output. :)

Thanks.

Quoted 4 lines
---
  Documentation/driver-api/dmaengine/dmatest.rst | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
Quoted 8 lines

Documentation/driver-api/dmaengine/dmatest.rst parameter, that specific channel is requested using the dmaengine and a thread · line 61

Quoted 8 lines
Documentation/driver-api/dmaengine/dmatest.rst +0 -0
index 8d81f1a7169b..25eecd2769b0 100644
@@ -59,8 +59,8 @@ parameter, that specific channel is requested using the dmaengine and a thread
  is created with the existing parameters. This thread is set as pending
  and will be executed once run is set to 1. Any parameters set after the thread
  is created are not applied.

Here a blank line is missed. Thats while '.. hint:' directive is not detected well. Without the blank line the '.. hint:` string is a part of the section above.

Quoted 6 lines

Documentation/driver-api/dmaengine/dmatest.rst parameter, that specific channel is requested using the dmaengine and a thread · line 65

Quoted 6 lines
Documentation/driver-api/dmaengine/dmatest.rst +2 -2
-.. hint::
-  available channel list could be extracted by running the following command::
+
+Hint: available channel list could be extracted by running the following command::
 
      % ls -1 /sys/class/dma/

-- Markus --

reviewer
#13 lore raw

Re: [PATCH 7/9] docs: Remove unknown 'hint' directive

Quoted 20 lines · Markus Heiser

Am 08.03.19 um 04:51 schrieb Randy Dunlap:

Quoted 18 lines · Tobin C. Harding
Quoted 7 lines

Current RST file contains an unknown directive causing Sphinx to emit

    ERROR: Unexpected indentation.

Use normal language construct instead.

This is a good idea.  My previous patch eliminated the warning but the ..hint is not presented very well in the generated output.  :)

Thanks.

Quoted 4 lines

---
  Documentation/driver-api/dmaengine/dmatest.rst | 4 ++--

  1 file changed, 2 insertions(+), 2 deletions(-)
Quoted 13 lines
Quoted 8 lines
Quoted 8 lines
Documentation/driver-api/dmaengine/dmatest.rst +0 -0
index 8d81f1a7169b..25eecd2769b0 100644
@@ -59,8 +59,8 @@ parameter, that specific channel is requested using the dmaengine and a thread

  is created with the existing parameters. This thread is set as pending and will be executed once run is set to 1. Any parameters set after the thread is created are not applied.

Here a blank line is missed. Thats while '.. hint:' directive is not detected well.  Without the blank line the '.. hint:` string is a part of the section above.

I added a blank line and the ..hint still is not handled in any special manner. That's why I prefer Tobin's patch.

Quoted 8 lines
Quoted 5 lines
Quoted 5 lines

-.. hint::
-  available channel list could be extracted by running the following command::

Documentation/driver-api/dmaengine/dmatest.rst +2 -0
+
+Hint: available channel list could be extracted by running the following command::

        % ls -1 /sys/class/dma/

  -- Markus --

Signature · 1 line
~Randy
reviewer
#14 lore raw

Re: [PATCH 7/9] docs: Remove unknown 'hint' directive

Quoted 35 lines · Randy Dunlap
Quoted 20 lines · Markus Heiser

Am 08.03.19 um 04:51 schrieb Randy Dunlap:

Quoted 18 lines · Tobin C. Harding
Quoted 7 lines

Current RST file contains an unknown directive causing Sphinx to emit

    ERROR: Unexpected indentation.

Use normal language construct instead.

This is a good idea.  My previous patch eliminated the warning but the ..hint is not presented very well in the generated output.  :)

Thanks.

Quoted 4 lines

---
  Documentation/driver-api/dmaengine/dmatest.rst | 4 ++--

  1 file changed, 2 insertions(+), 2 deletions(-)
Quoted 13 lines
Quoted 8 lines
Quoted 8 lines
Documentation/driver-api/dmaengine/dmatest.rst +0 -0
index 8d81f1a7169b..25eecd2769b0 100644
@@ -59,8 +59,8 @@ parameter, that specific channel is requested using the dmaengine and a thread

  is created with the existing parameters. This thread is set as pending and will be executed once run is set to 1. Any parameters set after the thread is created are not applied.

Here a blank line is missed. Thats while '.. hint:' directive is not detected well.  Without the blank line the '.. hint:` string is a part of the section above.

Quoted 2 lines

I added a blank line and the ..hint still is not handled in any special manner. That's why I prefer Tobin's patch.

Nak. :(
I had looked at the wrong output file.
With my "blank line patch" applied, the ..hint directive does work, so only the blank line is needed, as Markus said.

Quoted 10 lines
Quoted 8 lines
Quoted 5 lines
Quoted 5 lines

-.. hint::
-  available channel list could be extracted by running the following command::

Documentation/driver-api/dmaengine/dmatest.rst +2 -0
+
+Hint: available channel list could be extracted by running the following command::

        % ls -1 /sys/class/dma/

  -- Markus --

Signature · 1 line
~Randy
#15 lore raw

PATCH 8/9 docs: Fix Title underline too short warning

In reply to Tobin C. Harding

Sphinx emits a bunch of 'Title underline too short' warnings. We can fix these by using the correct length underlines.

Fix Title underline too short warning by amending heading underline.

---
 Documentation/filesystems/path-lookup.rst | 24 +++++-----
 Documentation/networking/snmp_counter.rst | 58 +++++++++++------------
 2 files changed, 41 insertions(+), 41 deletions(-)
Documentation/filesystems/path-lookup.rst +12 -12
index 9d6b68853f5b..80e22eda4132 100644
@@ -344,7 +344,7 @@ In particular it is held while scanning chains in the dcache hash
 table, and the mount point hash table.
 
 Bringing it together with ``struct nameidata``
---------------------------------------------
+----------------------------------------------
 
 .. _First edition Unix: http://minnie.tuhs.org/cgi-bin/utree.pl?file=V1/u2.s
 
@@ -355,7 +355,7 @@ converts a "name" to an "inode".  ``struct nameidata`` contains (among
 other fields):
 
 ``struct path path``
-~~~~~~~~~~~~~~~~~~
+~~~~~~~~~~~~~~~~~~~~
 
 A ``path`` contains a ``struct vfsmount`` (which is
 embedded in a ``struct mount``) and a ``struct dentry``.  Together these
@@ -366,13 +366,13 @@ step.  A reference through ``d_lockref`` and ``mnt_count`` is always
 held.
 
 ``struct qstr last``
-~~~~~~~~~~~~~~~~~~
+~~~~~~~~~~~~~~~~~~~~
 
 This is a string together with a length (i.e. _not_ ``nul`` terminated)
 that is the "next" component in the pathname.
 
 ``int last_type``
-~~~~~~~~~~~~~~~
+~~~~~~~~~~~~~~~~~
 
 This is one of ``LAST_NORM``, ``LAST_ROOT``, ``LAST_DOT``, ``LAST_DOTDOT``, or
 ``LAST_BIND``.  The ``last`` field is only valid if the type is
@@ -381,7 +381,7 @@ components of the symlink have been processed yet.  Others should be
 fairly self-explanatory.
 
 ``struct path root``
-~~~~~~~~~~~~~~~~~~
+~~~~~~~~~~~~~~~~~~~~
 
 This is used to hold a reference to the effective root of the
 filesystem.  Often that reference won't be needed, so this field is
@@ -510,7 +510,7 @@ potentially interesting things about these dentries corresponding
 to three different flags that might be set in ``dentry->d_flags``:
 
 ``DCACHE_MANAGE_TRANSIT``
-~~~~~~~~~~~~~~~~~~~~~~~
+~~~~~~~~~~~~~~~~~~~~~~~~~
 
 If this flag has been set, then the filesystem has requested that the
 ``d_manage()`` dentry operation be called before handling any possible
@@ -529,7 +529,7 @@ filesystem, which will then give it a special pass through
 ``d_manage()`` by returning ``-EISDIR``.
 
 ``DCACHE_MOUNTED``
-~~~~~~~~~~~~~~~~
+~~~~~~~~~~~~~~~~~~
 
 This flag is set on every dentry that is mounted on.  As Linux
 supports multiple filesystem namespaces, it is possible that the
@@ -542,7 +542,7 @@ If this flag is set, and ``d_manage()`` didn't return ``-EISDIR``,
 and a new ``dentry`` (both with counted references).
 
 ``DCACHE_NEED_AUTOMOUNT``
-~~~~~~~~~~~~~~~~~~~~~~~
+~~~~~~~~~~~~~~~~~~~~~~~~~
 
 If ``d_manage()`` allowed us to get this far, and ``lookup_mnt()`` didn't
 find a mount point, then this flag causes the ``d_automount()`` dentry
@@ -698,7 +698,7 @@ With that little refresher on seqlocks out of the way we can look at
 the bigger picture of how RCU-walk uses seqlocks.
 
 ``mount_lock`` and ``nd->m_seq``
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 We already met the ``mount_lock`` seqlock when REF-walk used it to
 ensure that crossing a mount point is performed safely.  RCU-walk uses
@@ -727,7 +727,7 @@ results would have been the same.  This ensures the invariant holds,
 at least for vfsmount structures.
 
 ``dentry->d_seq`` and ``nd->seq``
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 In place of taking a count or lock on ``d_reflock``, RCU-walk samples
 the per-dentry ``d_seq`` seqlock, and stores the sequence number in the
@@ -774,7 +774,7 @@ getting a counted reference to the new dentry before dropping that for
 the old dentry which we saw in REF-walk.
 
 No ``inode->i_rwsem`` or even ``rename_lock``
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 A semaphore is a fairly heavyweight lock that can only be taken when it is
 permissible to sleep.  As ``rcu_read_lock()`` forbids sleeping,
@@ -796,7 +796,7 @@ locking.  This neatly handles all cases, so adding extra checks on
 rename_lock would bring no significant value.
 
 ``unlazy walk()`` and ``complete_walk()``
--------------------------------------
+-----------------------------------------
 
 That "dropping down to REF-walk" typically involves a call to
 ``unlazy_walk()``, so named because "RCU-walk" is also sometimes
Documentation/networking/snmp_counter.rst +29 -29

228 lines not on this page · raw message

Signature · 1 line
2.21.0
reviewer
#16 lore raw

Re: [PATCH 8/9] docs: Fix Title underline too short warning

Quoted 10 lines · Tobin C. Harding

Sphinx emits a bunch of 'Title underline too short' warnings. We can fix these by using the correct length underlines.

Fix Title underline too short warning by amending heading underline.

---
 Documentation/filesystems/path-lookup.rst | 24 +++++-----
 Documentation/networking/snmp_counter.rst | 58 +++++++++++------------
 2 files changed, 41 insertions(+), 41 deletions(-)

Hi,

These are already fixed. Did you try the pending docs tree (for which a pull request was sent a few hours ago)?

thanks,

Signature · 1 line
~Randy
#17 lore raw

Re: [PATCH 8/9] docs: Fix Title underline too short warning

Quoted 12 lines · Randy Dunlap
Quoted 10 lines · Tobin C. Harding

Sphinx emits a bunch of 'Title underline too short' warnings. We can fix these by using the correct length underlines.

Fix Title underline too short warning by amending heading underline.

---
 Documentation/filesystems/path-lookup.rst | 24 +++++-----
 Documentation/networking/snmp_counter.rst | 58 +++++++++++------------
 2 files changed, 41 insertions(+), 41 deletions(-)
Quoted 4 lines

Hi,

These are already fixed. Did you try the pending docs tree (for which a pull request was sent a few hours ago)?

Oh man, - face palm. I've been hacking on mm lately and they use mainline, thanks for response.

Tobin

#18 lore raw

PATCH 9/9 docs: Add blank line after SPDX licence identifier

In reply to Tobin C. Harding

Sphinx emits warning

WARNING: Explicit markup ends without a blank line; unexpected unindent.

This is caused by a missing line after the SPDX license identifier.

Add blank line after SPDX licence identifier.

---
 Documentation/laptops/lg-laptop.rst   | 1 +
 Documentation/misc-devices/ibmvmc.rst | 1 +
 2 files changed, 2 insertions(+)
Documentation/laptops/lg-laptop.rst +1 -0
index d9e560dfd045..f2012d2dcb9d 100644
@@ -1,4 +1,5 @@
 .. SPDX-License-Identifier: GPL-2.0+
+
 LG Gram laptop extra features
 =============================
 
Documentation/misc-devices/ibmvmc.rst +1 -0
index 46ded79554d4..b46df4ea2b81 100644
@@ -1,4 +1,5 @@
 .. SPDX-License-Identifier: GPL-2.0+
+
 ======================================================
 IBM Virtual Management Channel Kernel Driver (IBMVMC)
 ======================================================
Signature · 1 line
2.21.0
reviewer
#19 lore raw

Re: [PATCH 9/9] docs: Add blank line after SPDX licence identifier

Quoted 10 lines · Tobin C. Harding

Sphinx emits warning

WARNING: Explicit markup ends without a blank line; unexpected unindent.

This is caused by a missing line after the SPDX license identifier.

Add blank line after SPDX licence identifier.

These are also already fixed.

Quoted 26 lines
---
 Documentation/laptops/lg-laptop.rst   | 1 +
 Documentation/misc-devices/ibmvmc.rst | 1 +
 2 files changed, 2 insertions(+)
Documentation/laptops/lg-laptop.rst +1 -0
index d9e560dfd045..f2012d2dcb9d 100644
@@ -1,4 +1,5 @@
 .. SPDX-License-Identifier: GPL-2.0+
+
 LG Gram laptop extra features
 =============================
 
Documentation/misc-devices/ibmvmc.rst +1 -0
index 46ded79554d4..b46df4ea2b81 100644
@@ -1,4 +1,5 @@
 .. SPDX-License-Identifier: GPL-2.0+
+
 ======================================================
 IBM Virtual Management Channel Kernel Driver (IBMVMC)
 ======================================================
Signature · 1 line
~Randy
#20 lore raw
In reply to Tobin C. Harding

Am 07.03.19 um 22:11 schrieb Tobin C. Harding:

Quoted 7 lines

Hi,

I had a few hours to spare so I thought I'd clear some Sphinx build warnings/errors. There isn't anything too controversial here. The only interesting thing I hit was in patch 7 (docs: Remove unknown 'hint' directive), I couldn't work out if this was a serious directive, a joke, or a typo.

Hi Tobin,

the problem was a missing empty line (see my comment on this patch).

The reST primer from sphinx-doc is always a good reference for the daily work

http://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html#directives

-- Markus --

#21 lore raw
Quoted 10 lines · Markus Heiser

Am 07.03.19 um 22:11 schrieb Tobin C. Harding:

Quoted 7 lines

Hi,

I had a few hours to spare so I thought I'd clear some Sphinx build warnings/errors. There isn't anything too controversial here. The only interesting thing I hit was in patch 7 (docs: Remove unknown 'hint' directive), I couldn't work out if this was a serious directive, a joke, or a typo.

Quoted 7 lines

Hi Tobin,

the problem was a missing empty line (see my comment on this patch).

The reST primer from sphinx-doc is always a good reference for the daily work

http://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html#directives

Thanks Marcus, that's actually how I came to the conclusion that they should by asterisks.

http://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html#lists-and-quote-like-blocks

Anyways, as usual LKML sorted me out :)

thanks,
Tobin.

#22 lore raw

Am 08.03.19 um 21:16 schrieb Tobin C. Harding:

Quoted 6 lines
Quoted 6 lines

Hi Tobin,

the problem was a missing empty line (see my comment on this patch).

The reST primer from sphinx-doc is always a good reference for the daily work

Quoted 7 lines
Quoted 1 line

http://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html#directives

Thanks Marcus, that's actually how I came to the conclusion that they should by asterisks.

http://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html#lists-and-quote-like-blocks

Anyways, as usual LKML sorted me out :)

Its only a 'primer', a reduced introduction. But it gives also some "(ref)"s to the docutils origin where the refernce of reST is located.

E.g. the first "(ref)" of the chapter "Lists and Quote-like blocks" (you linked above) points to the bullet list reference at:

http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#bullet-lists

"""A text block which begins with a "*", "+", "-", "•", "‣", or "⁃", followed by whitespace, is a bullet list item"""

-- Markus --

maintainer
#23 lore raw
In reply to Tobin C. Harding
Quoted 2 lines · On Fri, 8 Mar 2019 08:11:44 +1100 "Tobin C. Harding" <[email protected]> wrote:

I had a few hours to spare so I thought I'd clear some Sphinx build warnings/errors.

So there were comments on various parts of this series; were you planning to respin it with those taken into account? Certainly we're all in favor of fewer warnings!

Thanks,

jon

#24 lore raw
Quoted 9 lines · Jonathan Corbet
Quoted 2 lines · On Fri, 8 Mar 2019 08:11:44 +1100 "Tobin C. Harding" <[email protected]> wrote:

I had a few hours to spare so I thought I'd clear some Sphinx build warnings/errors.

So there were comments on various parts of this series; were you planning to respin it with those taken into account? Certainly we're all in favor of fewer warnings!

Oh I thought this was dead. I was under the impression that because I'd worked off the wrong tree Randy had fixed all these already.

I'll go back and check if any of these fixes are useful still.

Thanks,
Tobin.