]> Git Repo - linux.git/log
linux.git
3 years agodocs: kernel-hacking: hacking.rst: avoid using ReST :doc:`foo` markup
Mauro Carvalho Chehab [Wed, 16 Jun 2021 06:27:34 +0000 (08:27 +0200)]
docs: kernel-hacking: hacking.rst: avoid using ReST :doc:`foo` markup

The :doc:`foo` tag is auto-generated via automarkup.py.
So, use the filename at the sources, instead of :doc:`foo`.

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Link: https://lore.kernel.org/r/9537b74d897fab13552535d79337060a3b241b8c.1623824363.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: i2c: avoid using ReST :doc:`foo` markup
Mauro Carvalho Chehab [Wed, 16 Jun 2021 06:27:33 +0000 (08:27 +0200)]
docs: i2c: avoid using ReST :doc:`foo` markup

The :doc:`foo` tag is auto-generated via automarkup.py.
So, use the filename at the sources, instead of :doc:`foo`.

Acked-by: Wolfram Sang <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Link: https://lore.kernel.org/r/569722e3f7d73d746c145ea78d2b4fbe5defee90.1623824363.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: firmware-guide: acpi: avoid using ReST :doc:`foo` markup
Mauro Carvalho Chehab [Wed, 16 Jun 2021 06:27:32 +0000 (08:27 +0200)]
docs: firmware-guide: acpi: avoid using ReST :doc:`foo` markup

The :doc:`foo` tag is auto-generated via automarkup.py.
So, use the filename at the sources, instead of :doc:`foo`.

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Reviewed-by: Sakari Ailus <[email protected]>
Link: https://lore.kernel.org/r/7162043c18f1ea96c446b332400e44e8087ba142.1623824363.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: driver-api: usb: avoid using ReST :doc:`foo` markup
Mauro Carvalho Chehab [Wed, 16 Jun 2021 06:27:31 +0000 (08:27 +0200)]
docs: driver-api: usb: avoid using ReST :doc:`foo` markup

The :doc:`foo` tag is auto-generated via automarkup.py.
So, use the filename at the sources, instead of :doc:`foo`.

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Link: https://lore.kernel.org/r/2cd2dc3e6bacde587aeb09a3951594cfb0102014.1623824363.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: driver-api: surface_aggregator: avoid using ReST :doc:`foo` markup
Mauro Carvalho Chehab [Wed, 16 Jun 2021 06:27:30 +0000 (08:27 +0200)]
docs: driver-api: surface_aggregator: avoid using ReST :doc:`foo` markup

The :doc:`foo` tag is auto-generated via automarkup.py.
So, use the filename at the sources, instead of :doc:`foo`.

Acked-by: Maximilian Luz <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Link: https://lore.kernel.org/r/6097027b4de4c9015485cb73b297b98660c4296d.1623824363.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: driver-api: gpio: using-gpio.rst: avoid using ReST :doc:`foo` markup
Mauro Carvalho Chehab [Wed, 16 Jun 2021 06:27:29 +0000 (08:27 +0200)]
docs: driver-api: gpio: using-gpio.rst: avoid using ReST :doc:`foo` markup

The :doc:`foo` tag is auto-generated via automarkup.py.
So, use the filename at the sources, instead of :doc:`foo`.

Reviewed-by: Linus Walleij <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Link: https://lore.kernel.org/r/506a41353937c455c2e79b5960b0976edc8aa9e9.1623824363.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: driver-api: avoid using ReST :doc:`foo` markup
Mauro Carvalho Chehab [Wed, 16 Jun 2021 06:27:28 +0000 (08:27 +0200)]
docs: driver-api: avoid using ReST :doc:`foo` markup

The :doc:`foo` tag is auto-generated via automarkup.py.
So, use the filename at the sources, instead of :doc:`foo`.

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Link: https://lore.kernel.org/r/095b04bff6d49b4097382398bb91102eaa3f0fd3.1623824363.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: doc-guide: avoid using ReST :doc:`foo` markup
Mauro Carvalho Chehab [Wed, 16 Jun 2021 06:27:27 +0000 (08:27 +0200)]
docs: doc-guide: avoid using ReST :doc:`foo` markup

The :doc:`foo` tag is auto-generated via automarkup.py.
So, use the filename at the sources, instead of :doc:`foo`.

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Link: https://lore.kernel.org/r/d6cbe5183406e3378ed4bd0f84f4bcf85a15009c.1623824363.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: devicetree: bindings: submitting-patches.rst: avoid using ReST :doc:`foo` markup
Mauro Carvalho Chehab [Wed, 16 Jun 2021 06:27:26 +0000 (08:27 +0200)]
docs: devicetree: bindings: submitting-patches.rst: avoid using ReST :doc:`foo` markup

The :doc:`foo` tag is auto-generated via automarkup.py.
So, use the filename at the sources, instead of :doc:`foo`.

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Link: https://lore.kernel.org/r/0048c23d47b582dd1a1959628fd2b895209ac826.1623824363.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: dev-tools: kunit: avoid using ReST :doc:`foo` markup
Mauro Carvalho Chehab [Wed, 16 Jun 2021 06:27:25 +0000 (08:27 +0200)]
docs: dev-tools: kunit: avoid using ReST :doc:`foo` markup

The :doc:`foo` tag is auto-generated via automarkup.py.
So, use the filename at the sources, instead of :doc:`foo`.

Reviewed-by: David Gow <[email protected]>
Acked-by: Brendan Higgins <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Link: https://lore.kernel.org/r/6fde409079959a95b62b9b2692503608d7ff0dbd.1623824363.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: dev-tools: testing-overview.rst: avoid using ReST :doc:`foo` markup
Mauro Carvalho Chehab [Wed, 16 Jun 2021 06:27:24 +0000 (08:27 +0200)]
docs: dev-tools: testing-overview.rst: avoid using ReST :doc:`foo` markup

The :doc:`foo` tag is auto-generated via automarkup.py.
So, use the filename at the sources, instead of :doc:`foo`.

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Link: https://lore.kernel.org/r/6bbecd4170ee08f36f8060b0719a46c64a21aefc.1623824363.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: core-api: avoid using ReST :doc:`foo` markup
Mauro Carvalho Chehab [Wed, 16 Jun 2021 06:27:23 +0000 (08:27 +0200)]
docs: core-api: avoid using ReST :doc:`foo` markup

The :doc:`foo` tag is auto-generated via automarkup.py.
So, use the filename at the sources, instead of :doc:`foo`.

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Link: https://lore.kernel.org/r/d967d490b6655735b7df292f88859b5a1b07d0d7.1623824363.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: bpf: bpf_lsm.rst: avoid using ReST :doc:`foo` markup
Mauro Carvalho Chehab [Wed, 16 Jun 2021 06:27:22 +0000 (08:27 +0200)]
docs: bpf: bpf_lsm.rst: avoid using ReST :doc:`foo` markup

The :doc:`foo` tag is auto-generated via automarkup.py.
So, use the filename at the sources, instead of :doc:`foo`.

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Link: https://lore.kernel.org/r/fcee73b9bb55a8d0efd07cf04076c66278a42db4.1623824363.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: block: biodoc.rst: avoid using ReST :doc:`foo` markup
Mauro Carvalho Chehab [Wed, 16 Jun 2021 06:27:21 +0000 (08:27 +0200)]
docs: block: biodoc.rst: avoid using ReST :doc:`foo` markup

The :doc:`foo` tag is auto-generated via automarkup.py.
So, use the filename at the sources, instead of :doc:`foo`.

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Link: https://lore.kernel.org/r/1d26256b305e02da82a6a990910a5b5fb9a0355e.1623824363.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: admin-guide: sysctl: avoid using ReST :doc:`foo` markup
Mauro Carvalho Chehab [Wed, 16 Jun 2021 06:27:20 +0000 (08:27 +0200)]
docs: admin-guide: sysctl: avoid using ReST :doc:`foo` markup

The :doc:`foo` tag is auto-generated via automarkup.py.
So, use the filename at the sources, instead of :doc:`foo`.

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Link: https://lore.kernel.org/r/12abd2290c7ebc05c89178d2556bea740bd70fac.1623824363.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: admin-guide: hw-vuln: avoid using ReST :doc:`foo` markup
Mauro Carvalho Chehab [Wed, 16 Jun 2021 06:27:19 +0000 (08:27 +0200)]
docs: admin-guide: hw-vuln: avoid using ReST :doc:`foo` markup

The :doc:`foo` tag is auto-generated via automarkup.py.
So, use the filename at the sources, instead of :doc:`foo`.

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Link: https://lore.kernel.org/r/4e378517761f3df07165d5ecdac5a0a81577e68f.1623824363.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: admin-guide: pm: avoid using ReST :doc:`foo` markup
Mauro Carvalho Chehab [Wed, 16 Jun 2021 06:27:18 +0000 (08:27 +0200)]
docs: admin-guide: pm: avoid using ReST :doc:`foo` markup

The :doc:`foo` tag is auto-generated via automarkup.py.
So, use the filename at the sources, instead of :doc:`foo`.

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Link: https://lore.kernel.org/r/04616d9fc0b4a0d33486fa0018631a2db2eba860.1623824363.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: dev-tools: kunit: don't use a table for docs name
Mauro Carvalho Chehab [Wed, 16 Jun 2021 06:27:17 +0000 (08:27 +0200)]
docs: dev-tools: kunit: don't use a table for docs name

We'll be replacing :doc:`foo` references to
Documentation/foo.rst. Yet, here it happens inside a table.
Doing a search-and-replace would break it.

Yet, as there's no good reason to use a table there,
let's just convert it into a list.

Reviewed-by: David Gow <[email protected]>
Acked-by: Brendan Higgins <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Link: https://lore.kernel.org/r/07d3a8ccafbb6345d6e78fb090290859e84361a1.1623824363.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: devices.rst: better reference documentation docs
Mauro Carvalho Chehab [Wed, 16 Jun 2021 06:27:16 +0000 (08:27 +0200)]
docs: devices.rst: better reference documentation docs

There's no need to use either :file: or :doc: tags for documentation,
as automarkup.py automatically converts Documentation/*.rst into
a cross-reference.

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Link: https://lore.kernel.org/r/5d9c9949a104d10b537a2d780bccad69a2dc58f9.1623824363.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: PCI: Replace non-breaking spaces to avoid PDF issues
Mauro Carvalho Chehab [Wed, 16 Jun 2021 06:55:14 +0000 (08:55 +0200)]
docs: PCI: Replace non-breaking spaces to avoid PDF issues

The conversion tools used during DocBook/LaTeX/html/Markdown->ReST
conversion and some cut-and-pasted text contain some characters that
aren't easily reachable on standard keyboards and/or could cause
troubles when parsed by the documentation build system.

Replace the occurences of the following characters:

- U+00a0 (' '): NO-BREAK SPACE
  as it can cause lines being truncated on PDF output

Acked-by: Bjorn Helgaas <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Link: https://lore.kernel.org/r/8036126a59adb720dbc9233341ad5a08531cf73f.1623826294.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: networking: device_drivers: replace some characters
Mauro Carvalho Chehab [Wed, 16 Jun 2021 06:55:13 +0000 (08:55 +0200)]
docs: networking: device_drivers: replace some characters

The conversion tools used during DocBook/LaTeX/html/Markdown->ReST
conversion and some cut-and-pasted text contain some characters that
aren't easily reachable on standard keyboards and/or could cause
troubles when parsed by the documentation build system.

Replace the occurences of the following characters:

- U+00a0 (' '): NO-BREAK SPACE
  as it can cause lines being truncated on PDF output

Reviewed-by: Jesse Brandeburg <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Link: https://lore.kernel.org/r/9bd9f5c067c4b068a974730a14fe8d68e1be0c9a.1623826294.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: filesystems: ext4: blockgroup.rst: replace some characters
Mauro Carvalho Chehab [Wed, 16 Jun 2021 06:55:12 +0000 (08:55 +0200)]
docs: filesystems: ext4: blockgroup.rst: replace some characters

The conversion tools used during DocBook/LaTeX/html/Markdown->ReST
conversion and some cut-and-pasted text contain some characters that
aren't easily reachable on standard keyboards and/or could cause
troubles when parsed by the documentation build system.

Replace the occurences of the following characters:

- U+2217 ('∗'): ASTERISK OPERATOR
  use ASCII asterisk instead of the ASTERISK OPERATOR

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Acked-by: Theodore Ts'o <[email protected]>
Link: https://lore.kernel.org/r/c5c3c384c48779ca7c9dcd90183cefe20ac82928.1623826294.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: vm: zswap.rst: replace some characters
Mauro Carvalho Chehab [Wed, 16 Jun 2021 06:55:11 +0000 (08:55 +0200)]
docs: vm: zswap.rst: replace some characters

The conversion tools used during DocBook/LaTeX/html/Markdown->ReST
conversion and some cut-and-pasted text contain some characters that
aren't easily reachable on standard keyboards and/or could cause
troubles when parsed by the documentation build system.

Replace the occurences of the following characters:

- U+00a0 (' '): NO-BREAK SPACE
  as it can cause lines being truncated on PDF output

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Link: https://lore.kernel.org/r/9a93b72f99f8f3328269076ceff50248ac9c5af5.1623826294.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: usb: replace some characters
Mauro Carvalho Chehab [Wed, 16 Jun 2021 06:55:10 +0000 (08:55 +0200)]
docs: usb: replace some characters

The conversion tools used during DocBook/LaTeX/html/Markdown->ReST
conversion and some cut-and-pasted text contain some characters that
aren't easily reachable on standard keyboards and/or could cause
troubles when parsed by the documentation build system.

Replace the occurences of the following characters:

- U+feff (''): BOM
  as it is not needed on UTF-8

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Reviewed-by: Greg Kroah-Hartman <[email protected]>
Link: https://lore.kernel.org/r/0a4b0c38a9cd1133402a04a7ff60fefd9682d42e.1623826294.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: driver-api: ioctl.rst: replace some characters
Mauro Carvalho Chehab [Wed, 16 Jun 2021 06:55:09 +0000 (08:55 +0200)]
docs: driver-api: ioctl.rst: replace some characters

The conversion tools used during DocBook/LaTeX/html/Markdown->ReST
conversion and some cut-and-pasted text contain some characters that
aren't easily reachable on standard keyboards and/or could cause
troubles when parsed by the documentation build system.

Replace the occurences of the following characters:

- U+00a0 (' '): NO-BREAK SPACE
  as it can cause lines being truncated on PDF output

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Link: https://lore.kernel.org/r/b2186e313f990488ded56d9b8d35a2d1fe479aa1.1623826294.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: trace: coresight: coresight-etm4x-reference.rst: replace some characters
Mauro Carvalho Chehab [Wed, 16 Jun 2021 06:55:08 +0000 (08:55 +0200)]
docs: trace: coresight: coresight-etm4x-reference.rst: replace some characters

The conversion tools used during DocBook/LaTeX/html/Markdown->ReST
conversion and some cut-and-pasted text contain some characters that
aren't easily reachable on standard keyboards and/or could cause
troubles when parsed by the documentation build system.

Replace the occurences of the following characters:

- U+00a0 (' '): NO-BREAK SPACE
  as it can cause lines being truncated on PDF output

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Link: https://lore.kernel.org/r/b6a04e881bc80a3c1d3d23ccbc8208ca3c9053fd.1623826294.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: admin-guide: reporting-issues.rst: replace some characters
Mauro Carvalho Chehab [Wed, 16 Jun 2021 06:55:07 +0000 (08:55 +0200)]
docs: admin-guide: reporting-issues.rst: replace some characters

The conversion tools used during DocBook/LaTeX/html/Markdown->ReST
conversion and some cut-and-pasted text contain some characters that
aren't easily reachable on standard keyboards and/or could cause
troubles when parsed by the documentation build system.

Replace the occurences of the following characters:

- U+00a0 (' '): NO-BREAK SPACE
  as it can cause lines being truncated on PDF output

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Link: https://lore.kernel.org/r/551a2af0e654226067e5c376d3e2d959cc738f39.1623826294.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agoDocumentation: ACPI: fix error script name
Hao Chen [Thu, 17 Jun 2021 02:33:00 +0000 (10:33 +0800)]
Documentation: ACPI: fix error script name

The correct script name should be 'divergence.sh' instead of
'divergences.sh'.
I didn't find divergences.sh in the path of acpica/generate/linux/.

Signed-off-by: Hao Chen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: cputopology: move the sysfs ABI description to right place
Tian Tao [Fri, 11 Jun 2021 05:22:49 +0000 (17:22 +1200)]
docs: cputopology: move the sysfs ABI description to right place

Documentation/admin-guide/cputopology.rst is the wrong place to describe
sysfs ABI. So move the cputopology ABI things to
Documentation/ABI/stable/sysfs-devices-system-cpu and add a reference to
ABI doc in Documentation/admin-guide/cputopology.rst.

Link: https://lkml.kernel.org/r/[email protected]
Cc: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Tian Tao <[email protected]>
Signed-off-by: Barry Song <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: fault-injection: fix non-working usage of negative values
Wolfram Sang [Thu, 3 Jun 2021 12:58:41 +0000 (14:58 +0200)]
docs: fault-injection: fix non-working usage of negative values

Fault injection uses debugfs in a way that the provided values via sysfs
are interpreted as u64. Providing negative numbers results in an error:

/sys/kernel/debug/fail_function# echo -1 > times
sh: write error: Invalid argument

Update the docs and examples to use "printf %#x <val>" in these cases.
For "retval", reword the paragraph a little and fix a typo.

Signed-off-by: Wolfram Sang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: checkpatch: Document and segregate more checkpatch message types
Dwaipayan Ray [Mon, 14 Jun 2021 14:11:32 +0000 (19:41 +0530)]
docs: checkpatch: Document and segregate more checkpatch message types

Add and document more checkpatch message types. About 50% of all
message types are documented now.

In addition to this:

- Create a new subsection 'Indentation and Line Breaks'.
- Rename subsection 'Comment style' to simply 'Comments'.
- Refactor some of the existing types to appropriate subsections.

Reviewed-by: Lukas Bulwahn <[email protected]>
Tested-by: Lukas Bulwahn <[email protected]>
Signed-off-by: Dwaipayan Ray <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agoDocumentation: kdump: update kdump guide
Baoquan He [Wed, 9 Jun 2021 08:32:18 +0000 (16:32 +0800)]
Documentation: kdump: update kdump guide

Some parts of the guide are aged, hence need be updated.

1) The backup area of the 1st 640K on X86_64 has been removed
   by below commits, update the description accordingly.

   commit 7c321eb2b843 ("x86/kdump: Remove the backup region handling")
   commit 6f599d84231f ("x86/kdump: Always reserve the low 1M when the crashkernel option is specified")

2) Sort out the descripiton of "crashkernel syntax" part.

3) And some other minor cleanups.

Signed-off-by: Baoquan He <[email protected]>
Acked-by: Dave Young <[email protected]>
Link: https://lore.kernel.org/r/20210609083218.GB591017@MiWiFi-R3L-srv
[jc: added blank line to fix added build warning]
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: printk-formats: update size-casting examples
Carlos Llamas [Wed, 9 Jun 2021 19:50:58 +0000 (19:50 +0000)]
docs: printk-formats: update size-casting examples

Since commit 72deb455b5ec ("block: remove CONFIG_LBDAF") sector_t and
blkcnt_t types are no longer variable in size, making them unsuitable
examples for casting to the largest possible type. This patch replaces
such examples with cycles_t and blk_status_t types, whose sizes depend
on architecture and config options respectively.

Signed-off-by: Carlos Llamas <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: fix a cross-ref
Kir Kolyshkin [Fri, 11 Jun 2021 03:00:44 +0000 (20:00 -0700)]
docs: fix a cross-ref

Commit acda97acb2e98c9 changes dax.txt to dax.rst.
Fix the references accordingly.

Cc: Igor Matheus Andrade Torrente <[email protected]>
Signed-off-by: Kir Kolyshkin <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agotools: Fix "the the" in a message in kernel-chktaint
Colin Ian King [Sun, 13 Jun 2021 20:20:59 +0000 (21:20 +0100)]
tools: Fix "the the" in a message in kernel-chktaint

There is a double "the" in a message in kernel-chktaint, fix it.

Signed-off-by: Colin Ian King <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: convert dax.txt to rst
Igor Matheus Andrade Torrente [Mon, 31 May 2021 13:05:15 +0000 (10:05 -0300)]
docs: convert dax.txt to rst

Change the file extension and add the rst constructs to integrate this
doc to the documentation infrastructure and take advantage of rst
features.

Signed-off-by: Igor Matheus Andrade Torrente <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: Fix typo in Documentation/arm/marvell.rst
Nobuhiro Iwamatsu [Mon, 31 May 2021 13:42:35 +0000 (22:42 +0900)]
docs: Fix typo in Documentation/arm/marvell.rst

Fix typo in the documentation, changed from 'comatible' to
'compatible.

Signed-off-by: Nobuhiro Iwamatsu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: block: fix stat.rst document error
Gao Mingfei [Tue, 1 Jun 2021 08:51:45 +0000 (08:51 +0000)]
docs: block: fix stat.rst document error

Update the description of the device stat files to include the proper
number of fields.

Signed-off-by: Gao Mingfei <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: networking: Replace strncpy() with strscpy()
Kees Cook [Wed, 2 Jun 2021 20:29:14 +0000 (13:29 -0700)]
docs: networking: Replace strncpy() with strscpy()

Replace example code's use of strncpy() with strscpy() functions. Using
strncpy() is considered deprecated:
https://www.kernel.org/doc/html/latest/process/deprecated.html#strncpy-on-nul-terminated-strings

Signed-off-by: Kees Cook <[email protected]>
Acked-by: Dmitry Torokhov <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocumentation-file-ref-check: Make git check work for multiple working directories
Rob Herring [Thu, 3 Jun 2021 01:28:06 +0000 (20:28 -0500)]
documentation-file-ref-check: Make git check work for multiple working directories

With multiple git working directories, '.git' may also be a text file
linking to the actual git tree instead of a directory.

Cc: Mauro Carvalho Chehab <[email protected]>
Cc: Jonathan Corbet <[email protected]>
Cc: [email protected]
Signed-off-by: Rob Herring <[email protected]>
Reviewed-by: Mauro Carvalho Chehab <[email protected]>
Tested-by: Mauro Carvalho Chehab <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs/zh_CN: add translations in zh_CN/dev-tools/kasan
Wan Jiabing [Thu, 3 Jun 2021 14:11:17 +0000 (22:11 +0800)]
docs/zh_CN: add translations in zh_CN/dev-tools/kasan

Add new zh translations
* zh_CN/dev-tools/kasan.rst
and link it to zh_CN/dev-tools/index.rst

Reviewed-by: Fangrui Song <[email protected]>
Signed-off-by: Wan Jiabing <[email protected]>
Reviewed-by: Alex Shi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs/zh_CN: Add zh_CN/admin-guide/lockup-watchdogs.rst
Hailong Liu [Thu, 3 Jun 2021 14:52:27 +0000 (22:52 +0800)]
docs/zh_CN: Add zh_CN/admin-guide/lockup-watchdogs.rst

Add translation zh_CN/admin-guide/lockup-watchdogs.rst and link it to
zh_CN/admin-guide/index.rst while clean its todo entry.

Reviewed-by: Yanteng Si <[email protected]>
Signed-off-by: Hailong Liu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs/zh_CN: add core api cachetlb translation
Yanteng Si [Fri, 4 Jun 2021 09:06:55 +0000 (17:06 +0800)]
docs/zh_CN: add core api cachetlb translation

Translate Documentation/core-api/cachetlb.rst into Chinese.

Reviewed-by: Wu XiangCheng <[email protected]>
Signed-off-by: Yanteng Si <[email protected]>
Reviewed-by: Alex Shi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: Fix typos in Documentation/trace/ftrace.rst
Haocheng Xie [Mon, 31 May 2021 08:39:05 +0000 (16:39 +0800)]
docs: Fix typos in Documentation/trace/ftrace.rst

Fix the usage of "a/the" and improve the readability.

Signed-off-by: Haocheng Xie <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[jc: tweaked wording slightly]
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: pdfdocs: Prevent column squeezing by tabulary
Akira Yokosawa [Sat, 29 May 2021 15:19:14 +0000 (00:19 +0900)]
docs: pdfdocs: Prevent column squeezing by tabulary

Setting a reasonable width to \tymin prevents column squeezing
by tabulary.
Width of 20em works well in almost all the tables still in the
ascii-art format.

Excerpt from tabulary package documentation at [1]:

    To stop very narrow columns being too 'squeezed' by this process
    any columns that are narrower than \tymin are set to their natural
    width.

[1]: https://mirrors.ctan.org/macros/latex/contrib/tabulary/tabulary.pdf

Note: Sphinx has its own default value of \tymin set in
sphinxlatextables.sty (Sphinx 4.0.2) and sphinxmulticell.sty
(Sphinx 2.4.4) as follows:

    \setlength{\tymin}{3\fontcharwd\font`0 }

, which is not sufficient for kernel-doc.

Tested against Sphinx versions 2.4.4 and 4.0.2.

Signed-off-by: Akira Yokosawa <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs/zh_CN:add core-api padata translation
Yanteng Si [Mon, 31 May 2021 12:41:05 +0000 (20:41 +0800)]
docs/zh_CN:add core-api padata translation

Translate Documentation/core-api/padata.rst into Chinese.

Signed-off-by: Yanteng Si <[email protected]>
Reviewed-by: Wu XiangCheng <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs/zh_CN: add core-api symbol-namespaces.rst translation
Yanteng Si [Thu, 27 May 2021 06:43:47 +0000 (14:43 +0800)]
docs/zh_CN: add core-api symbol-namespaces.rst translation

Translates Documentation/core-api/symbol-namespaces.rst into Chinese.

Signed-off-by: Yanteng Si <[email protected]>
Reviewed-by: Wu XiangCheng <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agoscripts: sphinx-pre-install: fix the need of virtenv packages
Mauro Carvalho Chehab [Tue, 25 May 2021 13:27:28 +0000 (15:27 +0200)]
scripts: sphinx-pre-install: fix the need of virtenv packages

The pip packages are only needed when the distro-provided
Sphinx version is not good enough.

Don't recommend installing it if not needed.

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Link: https://lore.kernel.org/r/04ce53b77b37f1e495c3abc39c2d3dc407895dc0.1621949137.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agoscripts: sphinx-pre-install: rework the sphinx install logic
Mauro Carvalho Chehab [Tue, 25 May 2021 13:27:27 +0000 (15:27 +0200)]
scripts: sphinx-pre-install: rework the sphinx install logic

The sphinx-pre-install supports installing sphinx via a virtual
environment using pip/pypi or directly from the distribution's
package, when --no-virtualenv is used.

However, even when --no-virtualenv, the current logic is
still recomending to install a virtual env, due to a regression.

It turns that the logic there is complex, as it depends on
several different conditions.

Split the code which recommends Sphinx on two separate
functions, in order to clean up the code.

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Link: https://lore.kernel.org/r/9dedaec201803017b7a7dc24a074f3a4f040b72a.1621949137.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: zh_CN: update Chinese translations
Yanteng Si [Mon, 24 May 2021 02:23:08 +0000 (10:23 +0800)]
docs: zh_CN: update Chinese translations

Two new commits were added to the original document:

commit ddba35031db2ea89facc91c745e5ad55ba2e0e7f
commit 20bc8c1e972f29afcac85e524e430c11a6df5f58

translate them into Chinese.

Signed-off-by: Yanteng Si <[email protected]>
Reviewed-by: Wu XiangCheng <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs/zh_CN: add core api local_ops.rst translation
Yanteng Si [Mon, 24 May 2021 02:40:17 +0000 (10:40 +0800)]
docs/zh_CN: add core api local_ops.rst translation

Translate Documentation/core-api/local_ops.rst into Chinese.

Signed-off-by: Yanteng Si <[email protected]>
Reviewed-by: Wu XiangCheng <[email protected]>
Link: https://lore.kernel.org/r/11da5738679fbab9e875f434745d16db1f167f90.1621823299.git.siyanteng@loongson.cn
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs/zh_CN:add core-api refcount-vs-atomic.rst translation.
Yanteng Si [Mon, 24 May 2021 02:40:16 +0000 (10:40 +0800)]
docs/zh_CN:add core-api refcount-vs-atomic.rst translation.

Translate Documentation/core-api/refcount-vs-atomic.rst into Chinese.

Signed-off-by: Yanteng Si <[email protected]>
Reviewed-by: Wu XiangCheng <[email protected]>
Link: https://lore.kernel.org/r/cbdd1d8b23b8ce6dff0a98a0d89b78673365aa28.1621823299.git.siyanteng@loongson.cn
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: kernel-parameters: mark numa=off is supported by a bundle of architectures
Barry Song [Mon, 24 May 2021 05:17:15 +0000 (17:17 +1200)]
docs: kernel-parameters: mark numa=off is supported by a bundle of architectures

risc-v and arm64 support numa=off by common arch_numa_init()
in drivers/base/arch_numa.c. x86, ppc, mips, sparc support it
by arch-level early_param.
numa=off is widely used in linux distributions. it is better
to document it.

Signed-off-by: Barry Song <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agoiio: ABI: sysfs-bus-iio: avoid a warning when doc is built
Mauro Carvalho Chehab [Tue, 25 May 2021 12:23:53 +0000 (14:23 +0200)]
iio: ABI: sysfs-bus-iio: avoid a warning when doc is built

The description of those vars produce this warning:
  Documentation/ABI/testing/sysfs-bus-iio:799: WARNING: Inline emphasis start-string without end-string.

Due to an asterisk, which is the markup for emphasis. One possible
fix would be to use ``*_timeout`` to avoid it, but looking at
the descriptions of other fields in this file, a common pattern
is to refer to "these" when talking about the API calls that
are described.

So, change the text in order to preserve the meaning while
avoiding the need of using an asterisk there.

Reported-by: Jonathan Corbet <[email protected]>
Reported-by: Matthew Wilcox <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Acked-by: Jonathan Cameron <[email protected]>
Link: https://lore.kernel.org/r/dbf0d94f85217f103d77dc8389c8db272f5702d2.1621944866.git.mchehab+huawei@kernel.org
[jc fixed specifiy->specify]
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agoiio: ABI: sysfs-bus-iio: fix a typo
Mauro Carvalho Chehab [Tue, 25 May 2021 12:23:52 +0000 (14:23 +0200)]
iio: ABI: sysfs-bus-iio: fix a typo

Descrption -> Description

This causes some errors when parsed via scripts/get_abi.pl.

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Acked-by: Jonathan Cameron <[email protected]>
Link: https://lore.kernel.org/r/fa90a2deebac80da42b1ad4cf570c4ace436577d.1621944866.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: Activate exCJK only in CJK chapters
Akira Yokosawa [Tue, 25 May 2021 15:25:39 +0000 (00:25 +0900)]
docs: Activate exCJK only in CJK chapters

Activating xeCJK in English and Italian-translation documents
results in sub-optimal typesetting with wide-looking apostrophes
and quotation marks.

The xeCJK package provides macros for enabling and disabling its
effect in the middle of a document, namely \makexeCJKactive and
\makexeCJKinactive.

So the goal of this change is to activate xeCJK in the relevant
chapters in translations.

To do this:

    o Define custom macros in the preamble depending on the
      availability of the "Noto Sans CJK" font so that those
      macros can be used regardless of the use of xeCJK package.

    o Patch \sphinxtableofcontents so that xeCJK is inactivated
      after table of contents.

    o Embed those custom macros in each language's index.rst file
      as a ".. raw:: latex" construct.

Note: A CJK chapter needs \kerneldocCJKon in front of its chapter
heading, while a non-CJK chapter should have \kerneldocCJKoff
below its chapter heading.

This is to make sure the CJK font is available to CJK chapter's
heading and ending page's footer.

Tested against Sphinx versions 2.4.4 and 4.0.2.

Signed-off-by: Akira Yokosawa <[email protected]>
Tested-by: Wu XiangCheng <[email protected]>
Reviewed-by: Mauro Carvalho Chehab <[email protected]>
Link: https://lore.kernel.org/lkml/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agoDocumentation: checkpatch: Tweak BIT() macro include
Andrew Jeffery [Thu, 20 May 2021 09:39:49 +0000 (19:09 +0930)]
Documentation: checkpatch: Tweak BIT() macro include

While include/linux/bitops.h brings in the BIT() macro, it was moved to
include/linux/bits.h in commit 8bd9cb51daac ("locking/atomics, asm-generic:
Move some macros from <linux/bitops.h> to a new <linux/bits.h> file").

Since that commit BIT() has moved again into include/vdso/bits.h via
commit 3945ff37d2f4 ("linux/bits.h: Extract common header for vDSO").

I think the move to the vDSO header can be considered an implementation
detail, so for now update the checkpatch documentation to recommend use
of include/linux/bits.h.

Signed-off-by: Andrew Jeffery <[email protected]>
Acked-by: Jiri Slaby <[email protected]>
Acked-by: Lukas Bulwahn <[email protected]>
Acked-by: Dwaipayan Ray <[email protected]>
Cc: Jiri Slaby <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: block: blk-mq.rst: correct drive -> driver
Yue Hu [Thu, 20 May 2021 07:42:25 +0000 (15:42 +0800)]
docs: block: blk-mq.rst: correct drive -> driver

It is 'driver' to complete the request. Also remove a redundant space.

Signed-off-by: Yue Hu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs/zh_CN: add parisc registers.rst translation
Yanteng Si [Wed, 12 May 2021 08:20:59 +0000 (16:20 +0800)]
docs/zh_CN: add parisc registers.rst translation

This patch translates Documentation/parisc/registers.rst into Chinese.

Signed-off-by: Yanteng Si <[email protected]>
Reviewed-by: Wu XiangCheng <[email protected]>
Link: https://lore.kernel.org/r/b8375b5cd2c5163691691fe4757511ce984f3b83.1620805100.git.siyanteng@loongson.cn
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs/zh_CN: add parisc debugging.rst translation
Yanteng Si [Wed, 12 May 2021 08:20:58 +0000 (16:20 +0800)]
docs/zh_CN: add parisc debugging.rst translation

This patch translates Documentation/parisc/debugging.rst into Chinese.

Signed-off-by: Yanteng Si <[email protected]>
Link: https://lore.kernel.org/r/32661b39374f012442b760444ef149afcc0d22af.1620805100.git.siyanteng@loongson.cn
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs/zh_CN: add parisc index translation
Yanteng Si [Wed, 12 May 2021 08:20:57 +0000 (16:20 +0800)]
docs/zh_CN: add parisc index translation

This patch translates Documentation/parisc/index.rst into Chinese.

Signed-off-by: Yanteng Si <[email protected]>
Reviewed-by: Wu XiangCheng <[email protected]>
Link: https://lore.kernel.org/r/c13ce34b11a65e1f18c4e37566509ead82f2c15f.1620805100.git.siyanteng@loongson.cn
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: Add more message type documentations for checkpatch
Dwaipayan Ray [Sat, 15 May 2021 13:23:48 +0000 (18:53 +0530)]
docs: Add more message type documentations for checkpatch

- Document a couple of more checkpatch message types.
- Add a blank line before all `See:` lines to improve the
  rst output.
- Create a new subsection `Permissions` and move a few types
  to it.

Signed-off-by: Dwaipayan Ray <[email protected]>
Acked-by: Lukas Bulwahn <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: Use fallthrough pseudo-keyword
Wei Ming Chen [Sat, 15 May 2021 15:51:42 +0000 (23:51 +0800)]
docs: Use fallthrough pseudo-keyword

Replace /* fall through */ comment with fallthrough, make
it align with original process/coding-style.rst

Signed-off-by: Wei Ming Chen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agosamples/kprobes: Fix typo in handler_post()
Tiezhu Yang [Mon, 17 May 2021 02:21:23 +0000 (10:21 +0800)]
samples/kprobes: Fix typo in handler_post()

It should use post_handler instead of pre_handler in handler_post().

As Joe Perches suggested, it would be better to use pr_fmt and remove
all the embedded pre/post/fault strings. This would change the style of
the output through.

Fixes: e16c5dd5157e ("samples/kprobes: Add s390 case in kprobe example module")
Suggested-by: Joe Perches <[email protected]>
Signed-off-by: Tiezhu Yang <[email protected]>
Acked-by: Marc Koderer <[email protected]>
Acked-by: Masami Hiramatsu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agosamples/kprobes: Fix typo in handler_fault()
Tiezhu Yang [Mon, 17 May 2021 02:21:22 +0000 (10:21 +0800)]
samples/kprobes: Fix typo in handler_fault()

Fix a defective format in handler_fault() ending with an 'n' that
should be '\n'.

Suggested-by: Joe Perches <[email protected]>
Signed-off-by: Tiezhu Yang <[email protected]>
Acked-by: Masami Hiramatsu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: ABI: sysfs-class-led-trigger-pattern: remove repeat duplication
Mauro Carvalho Chehab [Wed, 19 May 2021 08:51:46 +0000 (10:51 +0200)]
docs: ABI: sysfs-class-led-trigger-pattern: remove repeat duplication

As reported by scripts/get_abi.pl:

Warning: /sys/class/leds/<led>/repeat is defined 2 times:  Documentation/ABI/testing/sysfs-class-led-driver-el15203000:0  Documentation/ABI/testing/sysfs-class-led-trigger-pattern:28

The definition for the EL15203000 is just a special case of
the sysfs led class. So, drop it and mentions the possible
exception at the class definition.

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Link: https://lore.kernel.org/r/394580bd2e007ffb640f97212973a772ed8f0409.1621413933.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: ABI: sysfs-class-backlight: unify ambient light zone nodes
Mauro Carvalho Chehab [Wed, 19 May 2021 08:51:45 +0000 (10:51 +0200)]
docs: ABI: sysfs-class-backlight: unify ambient light zone nodes

./scripts/get_abi.pl is warning about duplicated symbol
definition:

Warning: /sys/class/backlight/<backlight>/l1_daylight_max is defined 2 times:  ./Documentation/ABI/testing/sysfs-class-backlight-driver-adp8870:4  ./Documentation/ABI/testing/sysfs-class-backlight-adp8860:12

What happens is that 3 drivers use the same pattern to report
max and dim setting for different ambient light zones.

It should be noticed that the adp8870 doc was missing an
entry for l1_daylight_dim, which was fixed on this patch.

While the ambient light zone is device-specific, the sysfs
definition is actually common. So, unify them at:

Documentation/ABI/testing/sysfs-class-backlight

and use as the contact point, the e-mail reported by
get_maintainers.pl for the subsystem.

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Link: https://lore.kernel.org/r/c13c6ebd03cd04a0d15d89018f8d529918fc0a73.1621413933.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: ABI: iommu: remove duplicated definition for sysfs-kernel-iommu_groups
Mauro Carvalho Chehab [Wed, 19 May 2021 08:51:44 +0000 (10:51 +0200)]
docs: ABI: iommu: remove duplicated definition for sysfs-kernel-iommu_groups

./scripts/get_abi.pl is reporting a duplicated definition for
/sys/kernel/iommu_groups/reserved_regions, both at the same
file:

Warning: /sys/kernel/iommu_groups/reserved_regions is defined 2 times:  Documentation/ABI/testing/sysfs-kernel-iommu_groups:15  Documentation/ABI/testing/sysfs-kernel-iommu_groups:27

Fix it by merging those into an unified entry.

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Link: https://lore.kernel.org/r/ec33e8e9b8f120232ffb3b9fcc99c97b87f242e3.1621413933.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: virt: api.rst: fix a pointer to SGX documentation
Mauro Carvalho Chehab [Wed, 19 May 2021 08:51:43 +0000 (10:51 +0200)]
docs: virt: api.rst: fix a pointer to SGX documentation

The document which describes the SGX kernel architecture was added at
commit 3fa97bf00126 ("Documentation/x86: Document SGX kernel architecture")

but the reference at virt/kvm/api.rst is pointing to some
non-existing document.

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Link: https://lore.kernel.org/r/138c24633c6e4edf862a2b4d77033c603fc10406.1621413933.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: update pin-control.rst references
Mauro Carvalho Chehab [Wed, 19 May 2021 08:51:42 +0000 (10:51 +0200)]
docs: update pin-control.rst references

Changeset 5513b411ea5b ("Documentation: rename pinctl to pin-control")
renamed: Documentation/driver-api/pinctl.rst
to: Documentation/driver-api/pin-control.rst.

Update the cross-references accordingly.

Fixes: 5513b411ea5b ("Documentation: rename pinctl to pin-control")
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Acked-by: Charles Keepax <[email protected]>
Acked-by: Lee Jones <[email protected]>
Link: https://lore.kernel.org/r/46ac2e918c7c4a4b701d54870f167b78466ec578.1621413933.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: sched-bwc.rst: fix a typo on a doc name
Mauro Carvalho Chehab [Wed, 19 May 2021 08:51:41 +0000 (10:51 +0200)]
docs: sched-bwc.rst: fix a typo on a doc name

cgroupv2.rst -> cgroup-v2.rst

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Link: https://lore.kernel.org/r/1dc0203bd7df375ef45832f0c88566e22c4138ff.1621413933.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: translations/zh_CN: fix a typo at 8.Conclusion.rst
Mauro Carvalho Chehab [Wed, 19 May 2021 08:51:40 +0000 (10:51 +0200)]
docs: translations/zh_CN: fix a typo at 8.Conclusion.rst

transaltions -> translations

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Acked-by: Wu XiangCheng <[email protected]>
Link: https://lore.kernel.org/r/40b3d5c983fb06d8a58d1f613c175a98e0631677.1621413933.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: vcpu-requests.rst: fix reference for atomic ops
Mauro Carvalho Chehab [Wed, 19 May 2021 08:51:39 +0000 (10:51 +0200)]
docs: vcpu-requests.rst: fix reference for atomic ops

Changeset f0400a77ebdc ("atomic: Delete obsolete documentation")
got rid of atomic_ops.rst, pointing that this was superseded by
Documentation/atomic_*.txt.

Update its reference accordingly.

Fixes: f0400a77ebdc ("atomic: Delete obsolete documentation")
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Link: https://lore.kernel.org/r/703af756ac26a06c2185c05dfe6d902253f11161.1621413933.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: update sysfs-platform_profile.rst reference
Mauro Carvalho Chehab [Wed, 19 May 2021 08:51:38 +0000 (10:51 +0200)]
docs: update sysfs-platform_profile.rst reference

The file name: Documentation/ABI/testing/sysfs-platform_profile.rst
should be, instead: Documentation/userspace-api/sysfs-platform_profile.rst.

Update its cross-reference accordingly.

Fixes: a2ff95e018f1 ("ACPI: platform: Add platform profile support")
Fixes: 8e0cbf356377 ("Documentation: Add documentation for new platform_profile sysfs attribute")
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Reviewed-by: Hans de Goede <[email protected]>
Reviewed-by: Mark Pearson <[email protected]>
Link: https://lore.kernel.org/r/295089effd8353578b9725c61c0453d920978d72.1621413933.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agoDocumentation: scheduler: fixed 2 typos in sched-nice-design.rst
Chun-Hung Tseng [Sun, 16 May 2021 10:59:55 +0000 (18:59 +0800)]
Documentation: scheduler: fixed 2 typos in sched-nice-design.rst

This patch fixed 2 spelling errors in the documentation.

Signed-off-by: Chun-Hung Tseng <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs/zh_CN: add core api kobject translation
Yanteng Si [Mon, 17 May 2021 13:37:48 +0000 (21:37 +0800)]
docs/zh_CN: add core api kobject translation

This patch translates Documentation/core-api/kobject.rst into Chinese.

Signed-off-by: Yanteng Si <[email protected]>
Reviewed-by: Alex Shi <[email protected]>
Reviewed-by: Wu XiangCheng <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs/zh_CN: add core-api workqueue.rst translation
Yanteng Si [Mon, 17 May 2021 13:29:27 +0000 (21:29 +0800)]
docs/zh_CN: add core-api workqueue.rst translation

This patch translates Documentation/core-api/workqueue.rst into Chinese.

Signed-off-by: Yanteng Si <[email protected]>
Reviewed-by: Alex Shi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs/zh_CN: add core-api printk-formats.rst translation
Yanteng Si [Mon, 17 May 2021 08:46:15 +0000 (16:46 +0800)]
docs/zh_CN: add core-api printk-formats.rst translation

This patch translates Documentation/core-api/printk-formats.rst into Chinese.

Signed-off-by: Yanteng Si <[email protected]>
Reviewed-by: Wu XiangCheng <[email protected]>
Reviewed-by: Alex Shi <[email protected]>
Reviewed-by: Jiaxun Yang <[email protected]>
Link: https://lore.kernel.org/r/b9dea1426e43d8848f1a8b7319c002418aebd3df.1621239725.git.siyanteng@loongson.cn
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs/zh_CN: add core-api printk-basics.rst translation
Yanteng Si [Mon, 17 May 2021 08:46:14 +0000 (16:46 +0800)]
docs/zh_CN: add core-api printk-basics.rst translation

This patch translates Documentation/core-api/printk-basics.rst into Chinese.

Signed-off-by: Yanteng Si <[email protected]>
Reviewed-by: Wu XiangCheng <[email protected]>
Reviewed-by: Alex Shi <[email protected]>
Reviewed-by: Jiaxun Yang <[email protected]>
Link: https://lore.kernel.org/r/1610df76720b69f3f81bff27403e70e86c0875c5.1621239725.git.siyanteng@loongson.cn
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs/zh_CN: add core-api kernel-api.rst translation
Yanteng Si [Mon, 17 May 2021 08:46:13 +0000 (16:46 +0800)]
docs/zh_CN: add core-api kernel-api.rst translation

This patch translates Documentation/core-api/kernel-api.rst into Chinese.

Signed-off-by: Yanteng Si <[email protected]>
Reviewed-by: Wu XiangCheng <[email protected]>
Reviewed-by: Alex Shi <[email protected]>
Link: https://lore.kernel.org/r/d79e2d1f37bae52ce6fce0efb2fa4a32a89165fb.1621239725.git.siyanteng@loongson.cn
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs/zh_CN: Add translation zh_CN/maintainer/modifying-patches.rst
Wu XiangCheng [Mon, 17 May 2021 10:35:47 +0000 (18:35 +0800)]
docs/zh_CN: Add translation zh_CN/maintainer/modifying-patches.rst

Add a new translation
  Documentation/translations/zh_CN/maintainer/modifying-patches.rst
and link it to zh_CN/maintainer/index.rst

Signed-off-by: Wu XiangCheng <[email protected]>
Reviewed-by: Yanteng Si <[email protected]>
Link: https://lore.kernel.org/r/35e6878cb634db61c573fc7fdc69ef4c5d8ae31c.1621243426.git.bobwxc@email.cn
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs/zh_CN: Add translation zh_CN/maintainer/maintainer-entry-profile.rst
Wu XiangCheng [Mon, 17 May 2021 10:35:33 +0000 (18:35 +0800)]
docs/zh_CN: Add translation zh_CN/maintainer/maintainer-entry-profile.rst

Add a new translation
  Documentation/translations/zh_CN/maintainer/maintainer-entry-profile.rst
and link it to zh_CN/maintainer/index.rst

Signed-off-by: Wu XiangCheng <[email protected]>
Reviewed-by: Yanteng Si <[email protected]>
Link: https://lore.kernel.org/r/e5b0838317cbc2f8fb3a9480f4604b6f099db975.1621243426.git.bobwxc@email.cn
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs/zh_CN: Add translation zh_CN/maintainer/pull-requests.rst
Wu XiangCheng [Mon, 17 May 2021 10:35:05 +0000 (18:35 +0800)]
docs/zh_CN: Add translation zh_CN/maintainer/pull-requests.rst

Add a new translation
  Documentation/translations/zh_CN/maintainer/pull-requests.rst
and link it to zh_CN/maintainer/index.rst

Signed-off-by: Wu XiangCheng <[email protected]>
Reviewed-by: Yanteng Si <[email protected]>
Link: https://lore.kernel.org/r/4774d1b7976678ce97c4356bd71509df0cec1ffc.1621243426.git.bobwxc@email.cn
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs/zh_CN: Add translation zh_CN/maintainer/rebasing-and-merging.rst
Wu XiangCheng [Mon, 17 May 2021 10:34:46 +0000 (18:34 +0800)]
docs/zh_CN: Add translation zh_CN/maintainer/rebasing-and-merging.rst

Add a new translation
  Documentation/translations/zh_CN/maintainer/rebasing-and-merging.rst
and link it to zh_CN/maintainer/index.rst

Signed-off-by: Wu XiangCheng <[email protected]>
Reviewed-by: Yanteng Si <[email protected]>
Link: https://lore.kernel.org/r/040f93d0f773a0c9c8d6637701ba269d816a6385.1621243426.git.bobwxc@email.cn
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs/zh_CN: Add translation zh_CN/maintainer/configure-git.rst
Wu XiangCheng [Mon, 17 May 2021 10:34:32 +0000 (18:34 +0800)]
docs/zh_CN: Add translation zh_CN/maintainer/configure-git.rst

Add a new translation
  Documentation/translations/zh_CN/maintainer/configure-git.rst
and link it to zh_CN/maintainer/index.rst

Signed-off-by: Wu XiangCheng <[email protected]>
Reviewed-by: Yanteng Si <[email protected]>
Link: https://lore.kernel.org/r/dcf6addd89eba3777b9b59d8b506fa162fbcd828.1621243426.git.bobwxc@email.cn
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs/zh_CN: Add translation zh_CN/maintainer/index.rst
Wu XiangCheng [Mon, 17 May 2021 10:34:20 +0000 (18:34 +0800)]
docs/zh_CN: Add translation zh_CN/maintainer/index.rst

Add a new translation
  Documentation/translations/zh_CN/maintainer/index.rst
and link it to zh_CN/index.rst

Signed-off-by: Wu XiangCheng <[email protected]>
Reviewed-by: Yanteng Si <[email protected]>
Link: https://lore.kernel.org/r/224959c4cdcd4c6554035145d5cedcd244887552.1621243426.git.bobwxc@email.cn
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agoscripts: kernel-doc: reduce repeated regex expressions into variables
Aditya Srivastava [Fri, 14 May 2021 14:42:44 +0000 (20:12 +0530)]
scripts: kernel-doc: reduce repeated regex expressions into variables

There are some regex expressions in the kernel-doc script, which are used
repeatedly in the script.

Reduce such expressions into variables, which can be used everywhere.

A quick manual check found that no errors and warnings were added/removed
in this process.

Suggested-by: Jonathan Corbet <[email protected]>
Signed-off-by: Aditya Srivastava <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: usb: function: Modify path name
Wei Ming Chen [Thu, 6 May 2021 12:20:20 +0000 (20:20 +0800)]
docs: usb: function: Modify path name

Original path does not exists, so changed to
"Documentation/ABI/testing/configfs-usb-gadget"

Signed-off-by: Wei Ming Chen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: admin-guide: update description for kernel.hotplug sysctl
Rasmus Villemoes [Tue, 20 Apr 2021 12:06:38 +0000 (14:06 +0200)]
docs: admin-guide: update description for kernel.hotplug sysctl

It's been a few releases since this defaulted to /sbin/hotplug. Update
the text, and include pointers to the two CONFIG_UEVENT_HELPER{,_PATH}
config knobs whose help text could provide more info, but also hint
that the user probably doesn't need to care at all.

Fixes: 7934779a69f1 ("Driver-Core: disable /sbin/hotplug by default")
Signed-off-by: Rasmus Villemoes <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: typo fixes in Documentation/ABI/
Carlos Bilbao [Thu, 13 May 2021 13:31:10 +0000 (09:31 -0400)]
docs: typo fixes in Documentation/ABI/

Fix the following typos in the Documentation/ABI/ directory:

- In file obsolete/sysfs-cpuidle, change "obselete" for "obsolete".

- In file removed/sysfs-kernel-uids, change "propotional" for "proportional".

- In directory stable/, fix the following words: "associtated" for "associated",
  "hexidecimal" for "hexadecimal", "vlue" for "value", "csed" for "caused" and
  "wrtie" for "write". This updates a total of five files.

- In directory testing/, fix the following words: "subystem" for "subsystem",
  "isochrnous" for "isochronous", "Desctiptors" for "Descriptors", "picutre" for
  "picture", "capture" for "capture", "occured" for "ocurred", "connnected" for
  "connected","agressively" for "aggressively","manufacturee" for "manufacturer"
  and "transaction" for "transaction", "malformatted" for "incorrectly formated"
  ,"internel" for "internal", "writtento" for "written to", "specificed" for
  "specified", "beyound" for "beyond", "Symetric" for "Symmetric". This updates
  a total of eleven files.

Signed-off-by: Carlos Bilbao <[email protected]>
Reviewed-by: Randy Dunlap <[email protected]>
Reviewed-by: Mauro Carvalho Chehab <[email protected]>
Link: https://lore.kernel.org/r/5710038.lOV4Wx5bFT@iron-maiden
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agoRemove link to nonexistent rocket driver docs
Desmond Cheong Zhi Xi [Tue, 11 May 2021 13:49:37 +0000 (09:49 -0400)]
Remove link to nonexistent rocket driver docs

The rocket driver and documentation were removed in this commit, but
the corresponding entry in index.rst was not removed.

Signed-off-by: Desmond Cheong Zhi Xi <[email protected]>
Fixes: 3b00b6af7a5b ("tty: rocket, remove the driver")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: networking: device_drivers: fix bad usage of UTF-8 chars
Mauro Carvalho Chehab [Tue, 11 May 2021 15:01:32 +0000 (17:01 +0200)]
docs: networking: device_drivers: fix bad usage of UTF-8 chars

Probably because the original file was pre-processed by some
tool, both i40e.rst and iavf.rst files are using this character:

- U+2013 ('–'): EN DASH

meaning an hyphen when calling a command line application, which
is obviously wrong. So, replace them by an hyphen, ensuring
that it will be properly displayed as literals when building
the documentation.

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Link: https://lore.kernel.org/r/95eb2a48d0ca3528780ce0dfce64359977fa8cb3.1620744606.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: hwmon: tmp103.rst: fix bad usage of UTF-8 chars
Mauro Carvalho Chehab [Tue, 11 May 2021 15:01:31 +0000 (17:01 +0200)]
docs: hwmon: tmp103.rst: fix bad usage of UTF-8 chars

While UTF-8 characters can be used at the Linux documentation,
the best is to use them only when ASCII doesn't offer a good replacement.
So, replace the occurences of the following UTF-8 characters:

- U+2013 ('–'): EN DASH

In this specific case, EN DASH was used instead of a minus
sign. So, replace it by a single hyphen.

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Link: https://lore.kernel.org/r/73b3c7c1eef5c12ddc941624d23689313bd56529.1620744606.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: ABI: remove some spurious characters
Mauro Carvalho Chehab [Tue, 11 May 2021 15:01:30 +0000 (17:01 +0200)]
docs: ABI: remove some spurious characters

The KernelVersion tag contains some spurious UTF-8 characters
for no reason. Drop them.

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Link: https://lore.kernel.org/r/6d774ad6cb3795a177309503a39f8f1b5e309d64.1620744606.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: ABI: remove a meaningless UTF-8 character
Mauro Carvalho Chehab [Tue, 11 May 2021 15:01:29 +0000 (17:01 +0200)]
docs: ABI: remove a meaningless UTF-8 character

Those two files have this character:
- U+00ac ('¬'): NOT SIGN

at the end of the first line, apparently for no reason. Drop them.

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Link: https://lore.kernel.org/r/6cd3f0b47568fecb7889fd18d1d744c3aaf73866.1620744606.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs: cdrom-standard.rst: get rid of uneeded UTF-8 chars
Mauro Carvalho Chehab [Tue, 11 May 2021 15:01:28 +0000 (17:01 +0200)]
docs: cdrom-standard.rst: get rid of uneeded UTF-8 chars

This file was converted from a LaTeX one. The conversion used
some UTF-8 characters at the literal blocks. Replace them
by normal ASCII characters.

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Acked-by: Jens Axboe <[email protected]>
Link: https://lore.kernel.org/r/79c3f482da17ea48d69b6e6ad1b7fb102b9dd7bf.1620744606.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agoDocumentation: drop optional BOMs
Randy Dunlap [Thu, 6 May 2021 23:19:07 +0000 (16:19 -0700)]
Documentation: drop optional BOMs

A few of the Documentation .rst files begin with a Unicode
byte order mark (BOM). The BOM may signify endianess for
16-bit or 32-bit encodings or indicate that the text stream
is indeed Unicode. We don't need it for either of those uses.
It may also interfere with (confuse) some software.

Since we don't need it and its use is optional, just delete
the uses of it in Documentation/.

https://en.wikipedia.org/wiki/Byte_order_mark

Signed-off-by: Randy Dunlap <[email protected]>
Reviewed-by: Matthew Wilcox (Oracle) <[email protected]>
Reviewed-by: Greg Kroah-Hartman <[email protected]>
Cc: Mauro Carvalho Chehab <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agodocs/zh_CN: Remove obsolete translation file
Wan Jiabing [Sat, 8 May 2021 03:07:33 +0000 (11:07 +0800)]
docs/zh_CN: Remove obsolete translation file

This translation file was replaced by
   Documentation/translations/zh_CN/admin-guide/security-bugs.rst
which was created in commit 2d153571003b ("docs/zh_CN: Add
zh_CN/admin-guide/security-bugs.rst").
This is a translation left over from history. Remove it.

Signed-off-by: Wan Jiabing <[email protected]>
Acked-by: Wu XiangCheng <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
3 years agoLinux 5.13-rc1 v5.13-rc1
Linus Torvalds [Sun, 9 May 2021 21:17:44 +0000 (14:17 -0700)]
Linux 5.13-rc1

3 years agofbmem: fix horribly incorrect placement of __maybe_unused
Linus Torvalds [Sun, 9 May 2021 21:03:33 +0000 (14:03 -0700)]
fbmem: fix horribly incorrect placement of __maybe_unused

Commit b9d79e4ca4ff ("fbmem: Mark proc_fb_seq_ops as __maybe_unused")
places the '__maybe_unused' in an entirely incorrect location between
the "struct" keyword and the structure name.

It's a wonder that gcc accepts that silently, but clang quite reasonably
warns about it:

    drivers/video/fbdev/core/fbmem.c:736:21: warning: attribute declaration must precede definition [-Wignored-attributes]
    static const struct __maybe_unused seq_operations proc_fb_seq_ops = {
                        ^

Fix it.

Cc: Guenter Roeck <[email protected]>
Cc: Daniel Vetter <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This page took 0.11036 seconds and 4 git commands to generate.