Skip to content

Commit dddcbc1

Browse files
committed
Merge tag 'docs-5.9-2' of git://git.lwn.net/linux
Pull documentation fixes from Jonathan Corbet: "A handful of obvious fixes that wandered in during the merge window" * tag 'docs-5.9-2' of git://git.lwn.net/linux: Documentation/locking/locktypes: fix the typo doc/zh_CN: resolve undefined label warning in admin-guide index doc/zh_CN: fix title heading markup in admin-guide cpu-load docs: remove the 2.6 "Upgrading I2C Drivers" guide docs: Correct the release date of 5.2 stable mailmap: Update comments for with format and more detalis docs: cdrom: Fix a typo and rst markup Doc: admin-guide: use correct legends in kernel-parameters.txt Documentation/features: refresh RISC-V arch support files documentation: coccinelle: Improve command example for make C={1,2} Core-api: Documentation: Replace deprecated :c:func: Usage Dev-tools: Documentation: Replace deprecated :c:func: Usage Filesystems: Documentation: Replace deprecated :c:func: Usage docs: trace: fix a typo
2 parents 990f227 + 1edcd46 commit dddcbc1

File tree

18 files changed

+105
-379
lines changed

18 files changed

+105
-379
lines changed

.mailmap

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,16 @@
22
# This list is used by git-shortlog to fix a few botched name translations
33
# in the git archive, either because the author's full name was messed up
44
# and/or not always written the same way, making contributions from the
5-
# same person appearing not to be so or badly displayed.
5+
# same person appearing not to be so or badly displayed. Also allows for
6+
# old email addresses to map to new email addresses.
67
#
8+
# For format details, see "MAPPING AUTHORS" in "man git-shortlog".
9+
#
10+
# Please keep this list dictionary sorted.
11+
#
12+
# This comment is parsed by git-shortlog:
713
# repo-abbrev: /pub/scm/linux/kernel/git/
814
#
9-
1015
Aaron Durbin <[email protected]>
1116
Adam Oldham <[email protected]>
1217
Adam Radford <[email protected]>

Documentation/admin-guide/kernel-parameters.txt

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@
724724
memory region [offset, offset + size] for that kernel
725725
image. If '@offset' is omitted, then a suitable offset
726726
is selected automatically.
727-
[KNL, x86_64] select a region under 4G first, and
727+
[KNL, X86-64] Select a region under 4G first, and
728728
fall back to reserve region above 4G when '@offset'
729729
hasn't been specified.
730730
See Documentation/admin-guide/kdump/kdump.rst for further details.
@@ -737,14 +737,14 @@
737737
Documentation/admin-guide/kdump/kdump.rst for an example.
738738

739739
crashkernel=size[KMG],high
740-
[KNL, x86_64] range could be above 4G. Allow kernel
740+
[KNL, X86-64] range could be above 4G. Allow kernel
741741
to allocate physical memory region from top, so could
742742
be above 4G if system have more than 4G ram installed.
743743
Otherwise memory region will be allocated below 4G, if
744744
available.
745745
It will be ignored if crashkernel=X is specified.
746746
crashkernel=size[KMG],low
747-
[KNL, x86_64] range under 4G. When crashkernel=X,high
747+
[KNL, X86-64] range under 4G. When crashkernel=X,high
748748
is passed, kernel could allocate physical memory region
749749
above 4G, that cause second kernel crash on system
750750
that require some amount of low memory, e.g. swiotlb
@@ -1427,7 +1427,7 @@
14271427

14281428
gamma= [HW,DRM]
14291429

1430-
gart_fix_e820= [X86_64] disable the fix e820 for K8 GART
1430+
gart_fix_e820= [X86-64] disable the fix e820 for K8 GART
14311431
Format: off | on
14321432
default: on
14331433

@@ -1814,15 +1814,15 @@
18141814
Format: 0 | 1
18151815
Default set by CONFIG_INIT_ON_FREE_DEFAULT_ON.
18161816

1817-
init_pkru= [x86] Specify the default memory protection keys rights
1817+
init_pkru= [X86] Specify the default memory protection keys rights
18181818
register contents for all processes. 0x55555554 by
18191819
default (disallow access to all but pkey 0). Can
18201820
override in debugfs after boot.
18211821

18221822
inport.irq= [HW] Inport (ATI XL and Microsoft) busmouse driver
18231823
Format: <irq>
18241824

1825-
int_pln_enable [x86] Enable power limit notification interrupt
1825+
int_pln_enable [X86] Enable power limit notification interrupt
18261826

18271827
integrity_audit=[IMA]
18281828
Format: { "0" | "1" }
@@ -1840,7 +1840,7 @@
18401840
bypassed by not enabling DMAR with this option. In
18411841
this case, gfx device will use physical address for
18421842
DMA.
1843-
forcedac [x86_64]
1843+
forcedac [X86-64]
18441844
With this option iommu will not optimize to look
18451845
for io virtual address below 32-bit forcing dual
18461846
address cycle on pci bus for cards supporting greater
@@ -1925,7 +1925,7 @@
19251925
strict regions from userspace.
19261926
relaxed
19271927

1928-
iommu= [x86]
1928+
iommu= [X86]
19291929
off
19301930
force
19311931
noforce
@@ -1935,8 +1935,8 @@
19351935
merge
19361936
nomerge
19371937
soft
1938-
pt [x86]
1939-
nopt [x86]
1938+
pt [X86]
1939+
nopt [X86]
19401940
nobypass [PPC/POWERNV]
19411941
Disable IOMMU bypass, using IOMMU for PCI devices.
19421942

@@ -2079,21 +2079,21 @@
20792079

20802080
iucv= [HW,NET]
20812081

2082-
ivrs_ioapic [HW,X86_64]
2082+
ivrs_ioapic [HW,X86-64]
20832083
Provide an override to the IOAPIC-ID<->DEVICE-ID
20842084
mapping provided in the IVRS ACPI table. For
20852085
example, to map IOAPIC-ID decimal 10 to
20862086
PCI device 00:14.0 write the parameter as:
20872087
ivrs_ioapic[10]=00:14.0
20882088

2089-
ivrs_hpet [HW,X86_64]
2089+
ivrs_hpet [HW,X86-64]
20902090
Provide an override to the HPET-ID<->DEVICE-ID
20912091
mapping provided in the IVRS ACPI table. For
20922092
example, to map HPET-ID decimal 0 to
20932093
PCI device 00:14.0 write the parameter as:
20942094
ivrs_hpet[0]=00:14.0
20952095

2096-
ivrs_acpihid [HW,X86_64]
2096+
ivrs_acpihid [HW,X86-64]
20972097
Provide an override to the ACPI-HID:UID<->DEVICE-ID
20982098
mapping provided in the IVRS ACPI table. For
20992099
example, to map UART-HID:UID AMD0020:0 to
@@ -2370,7 +2370,7 @@
23702370
lapic [X86-32,APIC] Enable the local APIC even if BIOS
23712371
disabled it.
23722372

2373-
lapic= [x86,APIC] "notscdeadline" Do not use TSC deadline
2373+
lapic= [X86,APIC] "notscdeadline" Do not use TSC deadline
23742374
value for LAPIC timer one-shot implementation. Default
23752375
back to the programmable timer unit in the LAPIC.
23762376

@@ -3188,12 +3188,12 @@
31883188
register save and restore. The kernel will only save
31893189
legacy floating-point registers on task switch.
31903190

3191-
nohugeiomap [KNL,x86,PPC] Disable kernel huge I/O mappings.
3191+
nohugeiomap [KNL,X86,PPC] Disable kernel huge I/O mappings.
31923192

31933193
nosmt [KNL,S390] Disable symmetric multithreading (SMT).
31943194
Equivalent to smt=1.
31953195

3196-
[KNL,x86] Disable symmetric multithreading (SMT).
3196+
[KNL,X86] Disable symmetric multithreading (SMT).
31973197
nosmt=force: Force disable SMT, cannot be undone
31983198
via the sysfs control file.
31993199

@@ -3955,7 +3955,7 @@
39553955
pt. [PARIDE]
39563956
See Documentation/admin-guide/blockdev/paride.rst.
39573957

3958-
pti= [X86_64] Control Page Table Isolation of user and
3958+
pti= [X86-64] Control Page Table Isolation of user and
39593959
kernel address spaces. Disabling this feature
39603960
removes hardening, but improves performance of
39613961
system calls and interrupts.
@@ -3967,7 +3967,7 @@
39673967

39683968
Not specifying this option is equivalent to pti=auto.
39693969

3970-
nopti [X86_64]
3970+
nopti [X86-64]
39713971
Equivalent to pti=off
39723972

39733973
pty.legacy_count=

Documentation/cdrom/cdrom-standard.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ phase. Currently, the capabilities are any of::
557557
CDC_DRIVE_STATUS /* driver implements drive status */
558558

559559
The capability flag is declared *const*, to prevent drivers from
560-
accidentally tampering with the contents. The capability fags actually
560+
accidentally tampering with the contents. The capability flags actually
561561
inform `cdrom.c` of what the driver can do. If the drive found
562562
by the driver does not have the capability, is can be masked out by
563563
the *cdrom_device_info* variable *mask*. For instance, the SCSI CD-ROM
@@ -736,7 +736,7 @@ Description of routines in `cdrom.c`
736736

737737
Only a few routines in `cdrom.c` are exported to the drivers. In this
738738
new section we will discuss these, as well as the functions that `take
739-
over' the CD-ROM interface to the kernel. The header file belonging
739+
over` the CD-ROM interface to the kernel. The header file belonging
740740
to `cdrom.c` is called `cdrom.h`. Formerly, some of the contents of this
741741
file were placed in the file `ucdrom.h`, but this file has now been
742742
merged back into `cdrom.h`.

Documentation/core-api/idr.rst

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,48 +20,48 @@ only ID allocation, and as a result is much more memory-efficient.
2020
IDR usage
2121
=========
2222

23-
Start by initialising an IDR, either with :c:func:`DEFINE_IDR`
24-
for statically allocated IDRs or :c:func:`idr_init` for dynamically
23+
Start by initialising an IDR, either with DEFINE_IDR()
24+
for statically allocated IDRs or idr_init() for dynamically
2525
allocated IDRs.
2626

27-
You can call :c:func:`idr_alloc` to allocate an unused ID. Look up
28-
the pointer you associated with the ID by calling :c:func:`idr_find`
29-
and free the ID by calling :c:func:`idr_remove`.
27+
You can call idr_alloc() to allocate an unused ID. Look up
28+
the pointer you associated with the ID by calling idr_find()
29+
and free the ID by calling idr_remove().
3030

3131
If you need to change the pointer associated with an ID, you can call
32-
:c:func:`idr_replace`. One common reason to do this is to reserve an
32+
idr_replace(). One common reason to do this is to reserve an
3333
ID by passing a ``NULL`` pointer to the allocation function; initialise the
3434
object with the reserved ID and finally insert the initialised object
3535
into the IDR.
3636

3737
Some users need to allocate IDs larger than ``INT_MAX``. So far all of
3838
these users have been content with a ``UINT_MAX`` limit, and they use
39-
:c:func:`idr_alloc_u32`. If you need IDs that will not fit in a u32,
39+
idr_alloc_u32(). If you need IDs that will not fit in a u32,
4040
we will work with you to address your needs.
4141

4242
If you need to allocate IDs sequentially, you can use
43-
:c:func:`idr_alloc_cyclic`. The IDR becomes less efficient when dealing
43+
idr_alloc_cyclic(). The IDR becomes less efficient when dealing
4444
with larger IDs, so using this function comes at a slight cost.
4545

4646
To perform an action on all pointers used by the IDR, you can
47-
either use the callback-based :c:func:`idr_for_each` or the
48-
iterator-style :c:func:`idr_for_each_entry`. You may need to use
49-
:c:func:`idr_for_each_entry_continue` to continue an iteration. You can
50-
also use :c:func:`idr_get_next` if the iterator doesn't fit your needs.
47+
either use the callback-based idr_for_each() or the
48+
iterator-style idr_for_each_entry(). You may need to use
49+
idr_for_each_entry_continue() to continue an iteration. You can
50+
also use idr_get_next() if the iterator doesn't fit your needs.
5151

52-
When you have finished using an IDR, you can call :c:func:`idr_destroy`
52+
When you have finished using an IDR, you can call idr_destroy()
5353
to release the memory used by the IDR. This will not free the objects
5454
pointed to from the IDR; if you want to do that, use one of the iterators
5555
to do it.
5656

57-
You can use :c:func:`idr_is_empty` to find out whether there are any
57+
You can use idr_is_empty() to find out whether there are any
5858
IDs currently allocated.
5959

6060
If you need to take a lock while allocating a new ID from the IDR,
6161
you may need to pass a restrictive set of GFP flags, which can lead
6262
to the IDR being unable to allocate memory. To work around this,
63-
you can call :c:func:`idr_preload` before taking the lock, and then
64-
:c:func:`idr_preload_end` after the allocation.
63+
you can call idr_preload() before taking the lock, and then
64+
idr_preload_end() after the allocation.
6565

6666
.. kernel-doc:: include/linux/idr.h
6767
:doc: idr sync

Documentation/dev-tools/coccinelle.rst

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,13 +175,20 @@ For example, to check drivers/net/wireless/ one may write::
175175
make coccicheck M=drivers/net/wireless/
176176

177177
To apply Coccinelle on a file basis, instead of a directory basis, the
178-
following command may be used::
178+
C variable is used by the makefile to select which files to work with.
179+
This variable can be used to run scripts for the entire kernel, a
180+
specific directory, or for a single file.
179181

180-
make C=1 CHECK="scripts/coccicheck"
182+
For example, to check drivers/bluetooth/bfusb.c, the value 1 is
183+
passed to the C variable to check files that make considers
184+
need to be compiled.::
181185

182-
To check only newly edited code, use the value 2 for the C flag, i.e.::
186+
make C=1 CHECK=scripts/coccicheck drivers/bluetooth/bfusb.o
183187

184-
make C=2 CHECK="scripts/coccicheck"
188+
The value 2 is passed to the C variable to check files regardless of
189+
whether they need to be compiled or not.::
190+
191+
make C=2 CHECK=scripts/coccicheck drivers/bluetooth/bfusb.o
185192

186193
In these modes, which work on a file basis, there is no information
187194
about semantic patches displayed, and no commit message proposed.

Documentation/dev-tools/kgdb.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ driver as a loadable kernel module kgdbwait will not do anything.
316316
Kernel parameter: ``kgdbcon``
317317
-----------------------------
318318

319-
The ``kgdbcon`` feature allows you to see :c:func:`printk` messages inside gdb
319+
The ``kgdbcon`` feature allows you to see printk() messages inside gdb
320320
while gdb is connected to the kernel. Kdb does not make use of the kgdbcon
321321
feature.
322322

@@ -432,7 +432,7 @@ This is a quick example of how to use kdb.
432432
``ps`` Displays only the active processes
433433
``ps A`` Shows all the processes
434434
``summary`` Shows kernel version info and memory usage
435-
``bt`` Get a backtrace of the current process using :c:func:`dump_stack`
435+
``bt`` Get a backtrace of the current process using dump_stack()
436436
``dmesg`` View the kernel syslog buffer
437437
``go`` Continue the system
438438
=========== =================================================================
@@ -724,7 +724,7 @@ The kernel debugger is organized into a number of components:
724724
The arch-specific portion implements:
725725

726726
- contains an arch-specific trap catcher which invokes
727-
:c:func:`kgdb_handle_exception` to start kgdb about doing its work
727+
kgdb_handle_exception() to start kgdb about doing its work
728728

729729
- translation to and from gdb specific packet format to :c:type:`pt_regs`
730730

@@ -769,7 +769,7 @@ The kernel debugger is organized into a number of components:
769769
config. Later run ``modprobe kdb_hello`` and the next time you
770770
enter the kdb shell, you can run the ``hello`` command.
771771

772-
- The implementation for :c:func:`kdb_printf` which emits messages directly
772+
- The implementation for kdb_printf() which emits messages directly
773773
to I/O drivers, bypassing the kernel log.
774774

775775
- SW / HW breakpoint management for the kdb shell
@@ -875,7 +875,7 @@ kernel when ``CONFIG_KDB_KEYBOARD=y`` is set in the kernel configuration.
875875
The core polled keyboard driver for PS/2 type keyboards is in
876876
``drivers/char/kdb_keyboard.c``. This driver is hooked into the debug core
877877
when kgdboc populates the callback in the array called
878-
:c:type:`kdb_poll_funcs[]`. The :c:func:`kdb_get_kbd_char` is the top-level
878+
:c:type:`kdb_poll_funcs[]`. The kdb_get_kbd_char() is the top-level
879879
function which polls hardware for single character input.
880880

881881
kgdboc and kms
@@ -887,10 +887,10 @@ that you have a video driver which has a frame buffer console and atomic
887887
kernel mode setting support.
888888

889889
Every time the kernel debugger is entered it calls
890-
:c:func:`kgdboc_pre_exp_handler` which in turn calls :c:func:`con_debug_enter`
890+
kgdboc_pre_exp_handler() which in turn calls con_debug_enter()
891891
in the virtual console layer. On resuming kernel execution, the kernel
892-
debugger calls :c:func:`kgdboc_post_exp_handler` which in turn calls
893-
:c:func:`con_debug_leave`.
892+
debugger calls kgdboc_post_exp_handler() which in turn calls
893+
con_debug_leave().
894894

895895
Any video driver that wants to be compatible with the kernel debugger
896896
and the atomic kms callbacks must implement the ``mode_set_base_atomic``,

Documentation/features/debug/kmemleak/arch-support.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
| openrisc: | TODO |
2424
| parisc: | TODO |
2525
| powerpc: | ok |
26-
| riscv: | TODO |
26+
| riscv: | ok |
2727
| s390: | ok |
2828
| sh: | ok |
2929
| sparc: | ok |

Documentation/features/debug/stackprotector/arch-support.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
| openrisc: | TODO |
2424
| parisc: | TODO |
2525
| powerpc: | ok |
26-
| riscv: | TODO |
26+
| riscv: | ok |
2727
| s390: | TODO |
2828
| sh: | ok |
2929
| sparc: | TODO |

Documentation/features/locking/lockdep/arch-support.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
| openrisc: | ok |
2424
| parisc: | TODO |
2525
| powerpc: | ok |
26-
| riscv: | TODO |
26+
| riscv: | ok |
2727
| s390: | ok |
2828
| sh: | ok |
2929
| sparc: | ok |

Documentation/features/time/context-tracking/arch-support.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
| openrisc: | TODO |
2424
| parisc: | TODO |
2525
| powerpc: | ok |
26-
| riscv: | TODO |
26+
| riscv: | ok |
2727
| s390: | TODO |
2828
| sh: | TODO |
2929
| sparc: | ok |

0 commit comments

Comments
 (0)