Skip to contentSkip to conversation

Address some bad references to Kernel docs

PATCH Applied Mauro Carvalho Chehab 4 participants 10 messages Nov 16, 2021 – Nov 17, 2021

Subsystems (8)
lore
Share & tools
lore
#0 lore raw

cover Address some bad references to Kernel docs

Hi Jon,

It follows 4 patches addressing some issues during the 5.16 Kernel development cycle that were sent to the MLs but weren't merged yet.

They apply cleanly on the top of 5.16-rc1.

Regards,

Mauro Carvalho Chehab (4):
libbpf: update index.rst reference
docs: accounting: update delay-accounting.rst reference
Documentation: update vcpu-requests.rst reference Documentation/process: fix a cross reference

 Documentation/admin-guide/sysctl/kernel.rst  | 2 +-
 Documentation/bpf/index.rst                  | 2 +-
 Documentation/process/submitting-patches.rst | 4 ++--
 arch/riscv/kvm/vcpu.c                        | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)
Signature · 1 line
2.33.1
#3 lore raw

PATCH 3/4 Documentation: update vcpu-requests.rst reference

Changeset 2f5947dfcaec ("Documentation: move Documentation/virtual to Documentation/virt")
renamed: Documentation/virtual/kvm/vcpu-requests.rst
to: Documentation/virt/kvm/vcpu-requests.rst.

Update its cross-reference accordingly.

Fixes 2f5947dfcaec ("Documentation: move Documentation/virtual to Documentation/virt")

---

To mailbombing on a large number of people, only mailing lists were C/C on the cover. See [PATCH 0/4] at: https://lore.kernel.org/all/cover.1637064577.git.mchehab+huawei at kernel.org/

 arch/riscv/kvm/vcpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/kvm/vcpu.c +1 -1
index e3d3aed46184..fb84619df012 100644
@@ -740,7 +740,7 @@ int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu)
 		 * Ensure we set mode to IN_GUEST_MODE after we disable
 		 * interrupts and before the final VCPU requests check.
 		 * See the comment in kvm_vcpu_exiting_guest_mode() and
-		 * Documentation/virtual/kvm/vcpu-requests.rst
+		 * Documentation/virt/kvm/vcpu-requests.rst
 		 */
 		vcpu->mode = IN_GUEST_MODE;
 
Signature · 1 line
2.33.1
#8 lore raw

PATCH 4/4 Documentation/process: fix a cross reference

In reply to Mauro Carvalho Chehab

The cross-reference for the handbooks section works. However, it is meant to describe the path inside the Kernel's doc where the section is, but there's an space instead of a dash, plus it lacks the .rst at the end, which makes:

./scripts/documentation-file-ref-check

to complain.

Fixes 604370e106cc ("Documentation/process: Add maintainer handbooks section")

---

To mailbombing on a large number of people, only mailing lists were C/C on the cover. See [PATCH 0/4] at: https://lore.kernel.org/all/[email protected]/

 Documentation/process/submitting-patches.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/process/submitting-patches.rst +2 -2
index a0cc96923ea7..da085d63af9b 100644
@@ -22,8 +22,8 @@ use it, it will make your life as a kernel developer and in general much
 easier.
 
 Some subsystems and maintainer trees have additional information about
-their workflow and expectations, see :ref:`Documentation/process/maintainer
-handbooks <maintainer_handbooks_main>`.
+their workflow and expectations, see
+:ref:`Documentation/process/maintainer-handbooks.rst <maintainer_handbooks_main>`.
 
 Obtain a current source tree
 ----------------------------
Signature · 1 line
2.33.1
#2 lore raw

PATCH 2/4 docs: accounting: update delay-accounting.rst reference

In reply to Mauro Carvalho Chehab

The file name: accounting/delay-accounting.rst
should be, instead: Documentation/accounting/delay-accounting.rst.

Also, there's no need to use doc:foo, as automarkup.py will automatically handle plain text mentions to Documentation/ files.

So, update its cross-reference accordingly.

Fixes fcb501704554 ("delayacct: Document task_delayacct sysctl")
Fixes c3123552aad3 ("docs: accounting: convert to ReST")

---

To mailbombing on a large number of people, only mailing lists were C/C on the cover. See [PATCH 0/4] at: https://lore.kernel.org/all/[email protected]/

 Documentation/admin-guide/sysctl/kernel.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/admin-guide/sysctl/kernel.rst +1 -1
index 426162009ce9..0e486f41185e 100644
@@ -1099,7 +1099,7 @@ task_delayacct
 ===============
 
 Enables/disables task delay accounting (see
-:doc:`accounting/delay-accounting.rst`). Enabling this feature incurs
+Documentation/accounting/delay-accounting.rst. Enabling this feature incurs
 a small amount of overhead in the scheduler but is useful for debugging
 and performance tuning. It is required by some tools such as iotop.
 
Signature · 1 line
2.33.1
#1 lore raw

PATCH 1/4 libbpf: update index.rst reference

In reply to Mauro Carvalho Chehab

Changeset d20b41115ad5 ("libbpf: Rename libbpf documentation index file")
renamed: Documentation/bpf/libbpf/libbpf.rst
to: Documentation/bpf/libbpf/index.rst.

Update its cross-reference accordingly.

Fixes d20b41115ad5 ("libbpf: Rename libbpf documentation index file")

---

To mailbombing on a large number of people, only mailing lists were C/C on the cover. See [PATCH 0/4] at: https://lore.kernel.org/all/[email protected]/

 Documentation/bpf/index.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/bpf/index.rst +1 -1
index 37f273a7e8b6..610450f59e05 100644
@@ -15,7 +15,7 @@ that goes into great technical depth about the BPF Architecture.
 libbpf
 ======
 
-Documentation/bpf/libbpf/libbpf.rst is a userspace library for loading and interacting with bpf programs.
+Documentation/bpf/libbpf/index.rst is a userspace library for loading and interacting with bpf programs.
 
 BPF Type Format (BTF)
 =====================
Signature · 1 line
2.33.1
maintainer Acked-by on v1 3/4
#4 lore raw

Re: [PATCH 3/4] Documentation: update vcpu-requests.rst reference

In reply to Mauro Carvalho Chehab
Quoted 23 lines · Mauro Carvalho Chehab

Changeset 2f5947dfcaec ("Documentation: move Documentation/virtual to Documentation/virt")
renamed: Documentation/virtual/kvm/vcpu-requests.rst
to: Documentation/virt/kvm/vcpu-requests.rst.

Update its cross-reference accordingly.

Fixes 2f5947dfcaec ("Documentation: move Documentation/virtual to Documentation/virt")

---

To mailbombing on a large number of people, only mailing lists were C/C on the cover. See [PATCH 0/4] at: https://lore.kernel.org/all/cover.1637064577.git.mchehab+huawei at kernel.org/

  arch/riscv/kvm/vcpu.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/kvm/vcpu.c +0 -0
index e3d3aed46184..fb84619df012 100644

arch/riscv/kvm/vcpu.c int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu) · line 746

Quoted 8 lines
arch/riscv/kvm/vcpu.c +1 -1
@@ -740,7 +740,7 @@ int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu)
  		 * Ensure we set mode to IN_GUEST_MODE after we disable
  		 * interrupts and before the final VCPU requests check.
  		 * See the comment in kvm_vcpu_exiting_guest_mode() and
-		 * Documentation/virtual/kvm/vcpu-requests.rst
+		 * Documentation/virt/kvm/vcpu-requests.rst
  		 */
  		vcpu->mode = IN_GUEST_MODE;
 

Thanks,

Paolo

maintainer
#5 lore raw

Re: [PATCH 3/4] Documentation: update vcpu-requests.rst reference

Quoted 19 lines · Paolo Bonzini
Quoted 17 lines · Mauro Carvalho Chehab

Changeset 2f5947dfcaec ("Documentation: move Documentation/virtual to Documentation/virt")
renamed: Documentation/virtual/kvm/vcpu-requests.rst
to: Documentation/virt/kvm/vcpu-requests.rst.

Update its cross-reference accordingly.

Fixes 2f5947dfcaec ("Documentation: move Documentation/virtual to Documentation/virt")

---

To mailbombing on a large number of people, only mailing lists were C/C on the cover. See [PATCH 0/4] at: https://lore.kernel.org/all/cover.1637064577.git.mchehab+huawei at kernel.org/

  arch/riscv/kvm/vcpu.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 16 lines
Quoted 6 lines
arch/riscv/kvm/vcpu.c +0 -0
index e3d3aed46184..fb84619df012 100644

arch/riscv/kvm/vcpu.c int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu) · line 746

Quoted 8 lines
arch/riscv/kvm/vcpu.c +1 -1
@@ -740,7 +740,7 @@ int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu)
               * Ensure we set mode to IN_GUEST_MODE after we disable
               * interrupts and before the final VCPU requests check.
               * See the comment in kvm_vcpu_exiting_guest_mode() and
-              * Documentation/virtual/kvm/vcpu-requests.rst
+              * Documentation/virt/kvm/vcpu-requests.rst
               */
              vcpu->mode = IN_GUEST_MODE;
 

Thanks Paolo, let me know if you want me to include this patch as part of the fixes I have collected.

Regards,
Anup

Quoted 10 lines

Thanks,

Paolo

--
kvm-riscv mailing list
kvm-riscv at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kvm-riscv

maintainer
#6 lore raw

Re: [PATCH 3/4] Documentation: update vcpu-requests.rst reference

Quoted 37 lines · Anup Patel
Quoted 19 lines · Paolo Bonzini
Quoted 17 lines · Mauro Carvalho Chehab

Changeset 2f5947dfcaec ("Documentation: move Documentation/virtual to Documentation/virt")
renamed: Documentation/virtual/kvm/vcpu-requests.rst
to: Documentation/virt/kvm/vcpu-requests.rst.

Update its cross-reference accordingly.

Fixes 2f5947dfcaec ("Documentation: move Documentation/virtual to Documentation/virt")

---

To mailbombing on a large number of people, only mailing lists were C/C on the cover. See [PATCH 0/4] at: https://lore.kernel.org/all/cover.1637064577.git.mchehab+huawei at kernel.org/

   arch/riscv/kvm/vcpu.c | 2 +-
   1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 16 lines
Quoted 6 lines
arch/riscv/kvm/vcpu.c +0 -0
index e3d3aed46184..fb84619df012 100644

arch/riscv/kvm/vcpu.c int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu) · line 746

Quoted 8 lines
arch/riscv/kvm/vcpu.c +1 -1
@@ -740,7 +740,7 @@ int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu)
                * Ensure we set mode to IN_GUEST_MODE after we disable
                * interrupts and before the final VCPU requests check.
                * See the comment in kvm_vcpu_exiting_guest_mode() and
-              * Documentation/virtual/kvm/vcpu-requests.rst
+              * Documentation/virt/kvm/vcpu-requests.rst
                */
               vcpu->mode = IN_GUEST_MODE;
 
Quoted 2 lines

Thanks Paolo, let me know if you want me to include this patch as part of the fixes I have collected.

I think Mauro will handle it, but you can pick it as well.

Paolo

maintainer
#7 lore raw

Re: [PATCH 3/4] Documentation: update vcpu-requests.rst reference

Quoted 39 lines · Paolo Bonzini
Quoted 37 lines · Anup Patel
Quoted 35 lines · Paolo Bonzini
Quoted 23 lines · Mauro Carvalho Chehab

Changeset 2f5947dfcaec ("Documentation: move Documentation/virtual to Documentation/virt")
renamed: Documentation/virtual/kvm/vcpu-requests.rst
to: Documentation/virt/kvm/vcpu-requests.rst.

Update its cross-reference accordingly.

Fixes 2f5947dfcaec ("Documentation: move Documentation/virtual to Documentation/virt")

---

To mailbombing on a large number of people, only mailing lists were C/C on the cover. See [PATCH 0/4] at: https://lore.kernel.org/all/cover.1637064577.git.mchehab+huawei at kernel.org/

   arch/riscv/kvm/vcpu.c | 2 +-
   1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/kvm/vcpu.c +0 -0
index e3d3aed46184..fb84619df012 100644

arch/riscv/kvm/vcpu.c int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu) · line 746

Quoted 8 lines
arch/riscv/kvm/vcpu.c +1 -1
@@ -740,7 +740,7 @@ int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu)
                * Ensure we set mode to IN_GUEST_MODE after we disable
                * interrupts and before the final VCPU requests check.
                * See the comment in kvm_vcpu_exiting_guest_mode() and
-              * Documentation/virtual/kvm/vcpu-requests.rst
+              * Documentation/virt/kvm/vcpu-requests.rst
                */
               vcpu->mode = IN_GUEST_MODE;
 
Quoted 4 lines
Quoted 2 lines

Thanks Paolo, let me know if you want me to include this patch as part of the fixes I have collected.

I think Mauro will handle it, but you can pick it as well.

Okay, I will let Mauro handle it.

Thanks,
Anup

Quoted 3 lines

Paolo

maintainer Applied
#9 lore raw
In reply to Mauro Carvalho Chehab
Quoted 6 lines · Mauro Carvalho Chehab

Hi Jon,

It follows 4 patches addressing some issues during the 5.16 Kernel development cycle that were sent to the MLs but weren't merged yet.

They apply cleanly on the top of 5.16-rc1.

I've applied the set, thanks.

jon