Skip to content

Commit

Permalink
docs: Fix some broken references
Browse files Browse the repository at this point in the history
As we move stuff around, some doc references are broken. Fix some of
them via this script:
	./scripts/documentation-file-ref-check --fix

Manually checked if the produced result is valid, removing a few
false-positives.

Acked-by: Takashi Iwai <[email protected]>
Acked-by: Masami Hiramatsu <[email protected]>
Acked-by: Stephen Boyd <[email protected]>
Acked-by: Charles Keepax <[email protected]>
Acked-by: Mathieu Poirier <[email protected]>
Reviewed-by: Coly Li <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Acked-by: Jonathan Corbet <[email protected]>
  • Loading branch information
mchehab committed Jun 15, 2018
1 parent ec15872 commit 5fb94e9
Show file tree
Hide file tree
Showing 71 changed files with 113 additions and 113 deletions.
4 changes: 2 additions & 2 deletions Documentation/admin-guide/kernel-parameters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4335,7 +4335,7 @@
[FTRACE] Set and start specified trace events in order
to facilitate early boot debugging. The event-list is a
comma separated list of trace events to enable. See
also Documentation/trace/events.txt
also Documentation/trace/events.rst

trace_options=[option-list]
[FTRACE] Enable or disable tracer options at boot.
Expand All @@ -4350,7 +4350,7 @@

trace_options=stacktrace

See also Documentation/trace/ftrace.txt "trace options"
See also Documentation/trace/ftrace.rst "trace options"
section.

tp_printk[FTRACE]
Expand Down
2 changes: 1 addition & 1 deletion Documentation/devicetree/bindings/input/rotary-encoder.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Deprecated properties:
This property is deprecated. Instead, a 'steps-per-period ' value should
be used, such as "rotary-encoder,steps-per-period = <2>".

See Documentation/input/rotary-encoder.txt for more information.
See Documentation/input/devices/rotary-encoder.rst for more information.

Example:

Expand Down
2 changes: 1 addition & 1 deletion Documentation/driver-api/gpio/consumer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ device that displays digits), an additional index argument can be specified::
enum gpiod_flags flags)

For a more detailed description of the con_id parameter in the DeviceTree case
see Documentation/gpio/board.txt
see Documentation/driver-api/gpio/board.rst

The flags parameter is used to optionally specify a direction and initial value
for the GPIO. Values can be:
Expand Down
4 changes: 2 additions & 2 deletions Documentation/kprobes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -724,8 +724,8 @@ migrate your tool to one of the following options:

See following documents:

- Documentation/trace/kprobetrace.txt
- Documentation/trace/events.txt
- Documentation/trace/kprobetrace.rst
- Documentation/trace/events.rst
- tools/perf/Documentation/perf-probe.txt


Expand Down
2 changes: 1 addition & 1 deletion Documentation/trace/coresight.txt
Original file line number Diff line number Diff line change
Expand Up @@ -426,5 +426,5 @@ root@genericarmv8:~#
Details on how to use the generic STM API can be found here [2].

[1]. Documentation/ABI/testing/sysfs-bus-coresight-devices-stm
[2]. Documentation/trace/stm.txt
[2]. Documentation/trace/stm.rst
[3]. https://github.com/Linaro/perf-opencsd
2 changes: 1 addition & 1 deletion Documentation/trace/ftrace-uses.rst
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ If @buf is NULL and reset is set, all functions will be enabled for tracing.
The @buf can also be a glob expression to enable all functions that
match a specific pattern.

See Filter Commands in :file:`Documentation/trace/ftrace.txt`.
See Filter Commands in :file:`Documentation/trace/ftrace.rst`.

To just trace the schedule function:

Expand Down
2 changes: 1 addition & 1 deletion Documentation/trace/histogram.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

Histogram triggers are special event triggers that can be used to
aggregate trace event data into histograms. For information on
trace events and event triggers, see Documentation/trace/events.txt.
trace events and event triggers, see Documentation/trace/events.rst.


2. Histogram Trigger Command
Expand Down
2 changes: 1 addition & 1 deletion Documentation/trace/intel_th.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ description is at Documentation/ABI/testing/sysfs-bus-intel_th-devices-gth.

STH registers an stm class device, through which it provides interface
to userspace and kernelspace software trace sources. See
Documentation/trace/stm.txt for more information on that.
Documentation/trace/stm.rst for more information on that.

MSU can be configured to collect trace data into a system memory
buffer, which can later on be read from its device nodes via read() or
Expand Down
6 changes: 3 additions & 3 deletions Documentation/trace/tracepoint-analysis.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ simple case of::
3.1 System-Wide Event Enabling
------------------------------

See Documentation/trace/events.txt for a proper description on how events
See Documentation/trace/events.rst for a proper description on how events
can be enabled system-wide. A short example of enabling all events related
to page allocation would look something like::

Expand Down Expand Up @@ -112,7 +112,7 @@ at that point.
3.4 Local Event Enabling
------------------------

Documentation/trace/ftrace.txt describes how to enable events on a per-thread
Documentation/trace/ftrace.rst describes how to enable events on a per-thread
basis using set_ftrace_pid.

3.5 Local Event Enablement with PCL
Expand All @@ -137,7 +137,7 @@ basis using PCL such as follows.
4. Event Filtering
==================

Documentation/trace/ftrace.txt covers in-depth how to filter events in
Documentation/trace/ftrace.rst covers in-depth how to filter events in
ftrace. Obviously using grep and awk of trace_pipe is an option as well
as any script reading trace_pipe.

Expand Down
4 changes: 2 additions & 2 deletions Documentation/translations/ja_JP/howto.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
NOTE:
This is a version of Documentation/HOWTO translated into Japanese.
This is a version of Documentation/process/howto.rst translated into Japanese.
This document is maintained by Tsugikazu Shibata <[email protected]>
If you find any difference between this document and the original file or
a problem with the translation, please contact the maintainer of this file.
Expand Down Expand Up @@ -109,7 +109,7 @@ [email protected] に送ることを勧めます。
ています。 カーネルに関して初めての人はここからスタートすると良い
でしょう。

:ref:`Documentation/Process/changes.rst <changes>`
:ref:`Documentation/process/changes.rst <changes>`
このファイルはカーネルをうまく生成(訳注 build )し、走らせるのに最
小限のレベルで必要な数々のソフトウェアパッケージの一覧を示してい
ます。
Expand Down
4 changes: 2 additions & 2 deletions Documentation/translations/zh_CN/magic-number.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Chinese translated version of Documentation/magic-number.txt
Chinese translated version of Documentation/process/magic-number.rst

If you have any comment or update to the content, please post to LKML directly.
However, if you have problem communicating in English you can also ask the
Expand All @@ -7,7 +7,7 @@ translation is outdated or there is problem with translation.

Chinese maintainer: Jia Wei Wei <[email protected]>
---------------------------------------------------------------------
Documentation/magic-number.txt的中文翻译
Documentation/process/magic-number.rst的中文翻译

如果想评论或更新本文的内容,请直接发信到LKML。如果你使用英文交流有困难的话,也可
以向中文版维护者求助。如果本翻译更新不及时或者翻译存在问题,请联系中文版维护者。
Expand Down
4 changes: 2 additions & 2 deletions Documentation/translations/zh_CN/video4linux/omap3isp.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Chinese translated version of Documentation/video4linux/omap3isp.txt
Chinese translated version of Documentation/media/v4l-drivers/omap3isp.rst

If you have any comment or update to the content, please contact the
original document maintainer directly. However, if you have a problem
Expand All @@ -11,7 +11,7 @@ Maintainer: Laurent Pinchart <[email protected]>
David Cohen <[email protected]>
Chinese maintainer: Fu Wei <[email protected]>
---------------------------------------------------------------------
Documentation/video4linux/omap3isp.txt 的中文翻译
Documentation/media/v4l-drivers/omap3isp.rst 的中文翻译

如果想评论或更新本文的内容,请直接联系原文档的维护者。如果你使用英文
交流有困难的话,也可以向中文版维护者求助。如果本翻译更新不及时或者翻
Expand Down
20 changes: 10 additions & 10 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -3079,7 +3079,7 @@ M: Clemens Ladisch <[email protected]>
L: [email protected] (moderated for non-subscribers)
T: git git://git.alsa-project.org/alsa-kernel.git
S: Maintained
F: Documentation/sound/alsa/Bt87x.txt
F: Documentation/sound/cards/bt87x.rst
F: sound/pci/bt87x.c

BT8XXGPIO DRIVER
Expand Down Expand Up @@ -3375,7 +3375,7 @@ M: David Howells <[email protected]>
M: David Woodhouse <[email protected]>
L: [email protected]
S: Maintained
F: Documentation/module-signing.txt
F: Documentation/admin-guide/module-signing.rst
F: certs/
F: scripts/sign-file.c
F: scripts/extract-cert.c
Expand Down Expand Up @@ -6501,7 +6501,7 @@ L: [email protected]
S: Maintained
F: mm/hmm*
F: include/linux/hmm*
F: Documentation/vm/hmm.txt
F: Documentation/vm/hmm.rst

HOST AP DRIVER
M: Jouni Malinen <[email protected]>
Expand Down Expand Up @@ -7401,7 +7401,7 @@ F: drivers/platform/x86/intel-wmi-thunderbolt.c
INTEL(R) TRACE HUB
M: Alexander Shishkin <[email protected]>
S: Supported
F: Documentation/trace/intel_th.txt
F: Documentation/trace/intel_th.rst
F: drivers/hwtracing/intel_th/

INTEL(R) TRUSTED EXECUTION TECHNOLOGY (TXT)
Expand Down Expand Up @@ -9665,7 +9665,7 @@ F: include/uapi/linux/mmc/
MULTIPLEXER SUBSYSTEM
M: Peter Rosin <[email protected]>
S: Maintained
F: Documentation/ABI/testing/mux/sysfs-class-mux*
F: Documentation/ABI/testing/sysfs-class-mux*
F: Documentation/devicetree/bindings/mux/
F: include/linux/dt-bindings/mux/
F: include/linux/mux/
Expand Down Expand Up @@ -10244,7 +10244,7 @@ F: arch/powerpc/include/asm/pnv-ocxl.h
F: drivers/misc/ocxl/
F: include/misc/ocxl*
F: include/uapi/misc/ocxl.h
F: Documentation/accelerators/ocxl.txt
F: Documentation/accelerators/ocxl.rst

OMAP AUDIO SUPPORT
M: Peter Ujfalusi <[email protected]>
Expand Down Expand Up @@ -13794,7 +13794,7 @@ SYSTEM TRACE MODULE CLASS
M: Alexander Shishkin <[email protected]>
S: Maintained
T: git git://git.kernel.org/pub/scm/linux/kernel/git/ash/stm.git
F: Documentation/trace/stm.txt
F: Documentation/trace/stm.rst
F: drivers/hwtracing/stm/
F: include/linux/stm.h
F: include/uapi/linux/stm.h
Expand Down Expand Up @@ -14471,7 +14471,7 @@ M: Steven Rostedt <[email protected]>
M: Ingo Molnar <[email protected]>
T: git git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf/core
S: Maintained
F: Documentation/trace/ftrace.txt
F: Documentation/trace/ftrace.rst
F: arch/*/*/*/ftrace.h
F: arch/*/kernel/ftrace.c
F: include/*/ftrace.h
Expand Down Expand Up @@ -14940,7 +14940,7 @@ M: Heikki Krogerus <[email protected]>
L: [email protected]
S: Maintained
F: Documentation/ABI/testing/sysfs-class-typec
F: Documentation/usb/typec.rst
F: Documentation/driver-api/usb/typec.rst
F: drivers/usb/typec/
F: include/linux/usb/typec.h

Expand Down Expand Up @@ -15770,7 +15770,7 @@ YEALINK PHONE DRIVER
M: Henk Vergonet <[email protected]>
L: [email protected]
S: Maintained
F: Documentation/input/yealink.rst
F: Documentation/input/devices/yealink.rst
F: drivers/input/misc/yealink.*

Z8530 DRIVER FOR AX.25
Expand Down
2 changes: 1 addition & 1 deletion arch/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ config SECCOMP_FILTER
in terms of Berkeley Packet Filter programs which implement
task-defined system call filtering polices.

See Documentation/prctl/seccomp_filter.txt for details.
See Documentation/userspace-api/seccomp_filter.rst for details.

preferred-plugin-hostcc := $(if-success,[ $(gcc-version) -ge 40800 ],$(HOSTCXX),$(HOSTCC))

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/include/asm/cacheflush.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* Start addresses are inclusive and end addresses are exclusive;
* start addresses should be rounded down, end addresses up.
*
* See Documentation/cachetlb.txt for more information.
* See Documentation/core-api/cachetlb.rst for more information.
* Please note that the implementation of these, and the required
* effects are cache-type (VIVT/VIPT/PIPT) specific.
*
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/include/asm/cacheflush.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* Start addresses are inclusive and end addresses are exclusive; start
* addresses should be rounded down, end addresses up.
*
* See Documentation/cachetlb.txt for more information. Please note that
* See Documentation/core-api/cachetlb.rst for more information. Please note that
* the implementation assumes non-aliasing VIPT D-cache and (aliasing)
* VIPT I-cache.
*
Expand Down
2 changes: 1 addition & 1 deletion arch/microblaze/include/asm/cacheflush.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <linux/mm.h>
#include <linux/io.h>

/* Look at Documentation/cachetlb.txt */
/* Look at Documentation/core-api/cachetlb.rst */

/*
* Cache handling functions.
Expand Down
2 changes: 1 addition & 1 deletion arch/um/Kconfig.um
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ config MAGIC_SYSRQ
On UML, this is accomplished by sending a "sysrq" command with
mconsole, followed by the letter for the requested command.

The keys are documented in <file:Documentation/sysrq.txt>. Don't say Y
The keys are documented in <file:Documentation/admin-guide/sysrq.rst>. Don't say Y
unless you really know what this hack does.

config KERNEL_STACK_ORDER
Expand Down
2 changes: 1 addition & 1 deletion arch/unicore32/include/asm/cacheflush.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* Start addresses are inclusive and end addresses are exclusive;
* start addresses should be rounded down, end addresses up.
*
* See Documentation/cachetlb.txt for more information.
* See Documentation/core-api/cachetlb.rst for more information.
* Please note that the implementation of these, and the required
* effects are cache-type (VIVT/VIPT/PIPT) specific.
*
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/entry/vsyscall/vsyscall_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ bool emulate_vsyscall(struct pt_regs *regs, unsigned long address)

/*
* Handle seccomp. regs->ip must be the original value.
* See seccomp_send_sigsys and Documentation/prctl/seccomp_filter.txt.
* See seccomp_send_sigsys and Documentation/userspace-api/seccomp_filter.rst.
*
* We could optimize the seccomp disabled case, but performance
* here doesn't matter.
Expand Down
4 changes: 2 additions & 2 deletions arch/xtensa/include/asm/cacheflush.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ static inline void __invalidate_icache_page_alias(unsigned long virt,
*
* Pages can get remapped. Because this might change the 'color' of that page,
* we have to flush the cache before the PTE is changed.
* (see also Documentation/cachetlb.txt)
* (see also Documentation/core-api/cachetlb.rst)
*/

#if defined(CONFIG_MMU) && \
Expand Down Expand Up @@ -152,7 +152,7 @@ void local_flush_cache_page(struct vm_area_struct *vma,
__invalidate_icache_range(start,(end) - (start)); \
} while (0)

/* This is not required, see Documentation/cachetlb.txt */
/* This is not required, see Documentation/core-api/cachetlb.rst */
#define flush_icache_page(vma,page) do { } while (0)

#define flush_dcache_mmap_lock(mapping) do { } while (0)
Expand Down
2 changes: 1 addition & 1 deletion block/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ config BLK_DEV_THROTTLING
one needs to mount and use blkio cgroup controller for creating
cgroups and specifying per device IO rate policies.

See Documentation/cgroups/blkio-controller.txt for more information.
See Documentation/cgroup-v1/blkio-controller.txt for more information.

config BLK_DEV_THROTTLING_LOW
bool "Block throttling .low limit interface support (EXPERIMENTAL)"
Expand Down
2 changes: 1 addition & 1 deletion certs/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ config MODULE_SIG_KEY

If this option is unchanged from its default "certs/signing_key.pem",
then the kernel will automatically generate the private key and
certificate as described in Documentation/module-signing.txt
certificate as described in Documentation/admin-guide/module-signing.rst

config SYSTEM_TRUSTED_KEYRING
bool "Provide system-wide ring of trusted keys"
Expand Down
2 changes: 1 addition & 1 deletion crypto/asymmetric_keys/asymmetric_type.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Asymmetric public-key cryptography key type
*
* See Documentation/security/asymmetric-keys.txt
* See Documentation/crypto/asymmetric-keys.txt
*
* Copyright (C) 2012 Red Hat, Inc. All Rights Reserved.
* Written by David Howells ([email protected])
Expand Down
2 changes: 1 addition & 1 deletion crypto/asymmetric_keys/signature.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Signature verification with an asymmetric key
*
* See Documentation/security/asymmetric-keys.txt
* See Documentation/crypto/asymmetric-keys.txt
*
* Copyright (C) 2012 Red Hat, Inc. All Rights Reserved.
* Written by David Howells ([email protected])
Expand Down
2 changes: 1 addition & 1 deletion drivers/char/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ config PRINTER
corresponding drivers into the kernel.

To compile this driver as a module, choose M here and read
<file:Documentation/parport.txt>. The module will be called lp.
<file:Documentation/admin-guide/parport.rst>. The module will be called lp.

If you have several parallel ports, you can specify which ports to
use with the "lp" kernel command line option. (Try "man bootparam"
Expand Down
4 changes: 2 additions & 2 deletions drivers/clk/clk.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* Standard functionality for the common clock API. See Documentation/clk.txt
* Standard functionality for the common clock API. See Documentation/driver-api/clk.rst
*/

#include <linux/clk.h>
Expand Down Expand Up @@ -2747,7 +2747,7 @@ static int __clk_core_init(struct clk_core *core)
goto out;
}

/* check that clk_ops are sane. See Documentation/clk.txt */
/* check that clk_ops are sane. See Documentation/driver-api/clk.rst */
if (core->ops->set_rate &&
!((core->ops->round_rate || core->ops->determine_rate) &&
core->ops->recalc_rate)) {
Expand Down
2 changes: 1 addition & 1 deletion drivers/clk/ingenic/cgu.h
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ struct ingenic_cgu {

/**
* struct ingenic_clk - private data for a clock
* @hw: see Documentation/clk.txt
* @hw: see Documentation/driver-api/clk.rst
* @cgu: a pointer to the CGU data
* @idx: the index of this clock in cgu->clock_info
*/
Expand Down
Loading

0 comments on commit 5fb94e9

Please sign in to comment.