Fix some build warnings/errors with Sphinx
Subsystems (54)
cover Fix some build warnings/errors with Sphinx
I decided to give a try with Sphinx last stable version (1.17.4), and noticed several issues. The worse one was with the networking book: a non-standard footnote there with [*] instead of a number causes it to break PDF building.
So, I took some spare time to address some warnings all over the tree, and moved a few text documents to a book. I with I had more time to move the other ones and to solve other warnings.
Mauro Carvalho Chehab (18):
docs: can.rst: fix a footnote reference
docs: fix location of request_firmware & friends
docs: */index.rst: Add newer documents to their respective index.rst
docs: admin-guide: add bcache documentation
docs: core-api: add cachetlb documentation
docs: core-api: add cgroup-v2 documentation
docs: core-api: add circular-buffers documentation
docs: driver-api: add clk documentation
net: mac80211.h: fix a bad comment line
rcu: rcupdate.h: get rid of Sphinx warnings at rcu_pointer_handoff()
docs: crypto_engine.rst: Fix two parse warnings
time: timer.c: adjust a kernel-doc comment
wait: wait.h: Get rid of a kernel-doc/Sphinx warnings
fbdev: modedb.c: fix a kernel-doc markup
iio: iio.h: use nested struct support on kernel-doc markup
mtd: rawnand.h: use nested union kernel-doc markups
docs: uio-howto.rst: use a code block to solve a warning
w1: w1_io.c: fix a kernel-doc warning
Documentation/00-INDEX | 10 -------
.../{bcache.txt => admin-guide/bcache.rst} | 0
.../cgroup-v2.rst} | 0
Documentation/admin-guide/index.rst | 2 ++
.../admin-guide/kernel-parameters.txt | 2 +-
.../{cachetlb.txt => core-api/cachetlb.rst} | 0
.../circular-buffers.rst} | 0
Documentation/core-api/index.rst | 2 ++
Documentation/crypto/crypto_engine.rst | 8 +++---
Documentation/crypto/index.rst | 1 +
Documentation/dell_rbu.txt | 4 +--
Documentation/{clk.txt => driver-api/clk.rst} | 0
.../firmware/fallback-mechanisms.rst | 2 +-
.../driver-api/firmware/request_firmware.rst | 17 +++++++-----
Documentation/driver-api/index.rst | 2 ++
Documentation/driver-api/infrastructure.rst | 2 +-
Documentation/driver-api/uio-howto.rst | 3 ++-
Documentation/memory-barriers.txt | 4 +--
Documentation/networking/can.rst | 4 +--
.../power/suspend-and-cpuhotplug.txt | 2 +-
Documentation/process/index.rst | 1 +
Documentation/security/index.rst | 2 ++
.../translations/ko_KR/memory-barriers.txt | 4 +--
drivers/video/fbdev/core/modedb.c | 22 ++++++++--------
drivers/w1/w1_io.c | 1 +
include/linux/iio/iio.h | 24 ++++++++---------
include/linux/mtd/rawnand.h | 26 +++++++++++++------
include/linux/rcupdate.h | 5 ++--
include/linux/wait.h | 2 +-
include/net/mac80211.h | 2 +-
kernel/time/timer.c | 14 +++++-----
31 files changed, 93 insertions(+), 75 deletions(-)
rename Documentation/{bcache.txt => admin-guide/bcache.rst} (100%)
rename Documentation/{cgroup-v2.txt => admin-guide/cgroup-v2.rst} (100%)
rename Documentation/{cachetlb.txt => core-api/cachetlb.rst} (100%)
rename Documentation/{circular-buffers.txt => core-api/circular-buffers.rst} (100%)
rename Documentation/{clk.txt => driver-api/clk.rst} (100%)Signature · 7 lines
2.17.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 1/18 docs: can.rst: fix a footnote reference
As stated at:
http://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html#footnotes
A footnote should contain either a number, a reference or an auto number, e. g.:
[1], [#f1] or [#].
While using [*] accidentaly works for html, it fails for other document outputs. In particular, it causes an error with LaTeX output, causing all books after networking to not be built.
So, replace it by a valid syntax.
--- Documentation/networking/can.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/networking/can.rst +2 -2
@@ -164,7 +164,7 @@ The Linux network devices (by default) just can handle the transmission and reception of media dependent frames. Due to the arbitration on the CAN bus the transmission of a low prio CAN-ID may be delayed by the reception of a high prio CAN frame. To -reflect the correct [*]_ traffic on the node the loopback of the sent +reflect the correct [#f1]_ traffic on the node the loopback of the sent data has to be performed right after a successful transmission. If the CAN network interface is not capable of performing the loopback for some reason the SocketCAN core can do this task as a fallback solution.
@@ -175,7 +175,7 @@ networking behaviour for CAN applications. Due to some requests from the RT-SocketCAN group the loopback optionally may be disabled for each separate socket. See sockopts from the CAN RAW sockets in :ref:`socketcan-raw-sockets`. -.. [*] you really like to have this when you're running analyser +.. [#f1] you really like to have this when you're running analyser tools like 'candump' or 'cansniffer' on the (same) node.
Signature · 1 line
2.17.0
PATCH 2/18 docs: fix location of request_firmware & friends
In reply to Mauro Carvalho Chehabcommit 5d6d1ddd2730 ("firmware: move firmware loader into its own directory") and other commits renamed the old firmware_class.c file and split it into separate files, but documentation was not changed accordingly, causing Sphinx errors.
Change the location accordingly at the documentation files.
While here, add a missing entry at request_firmware.rst for release_firmware() function.
--- Documentation/dell_rbu.txt | 4 ++-- .../driver-api/firmware/fallback-mechanisms.rst | 2 +- .../driver-api/firmware/request_firmware.rst | 17 +++++++++++------ Documentation/driver-api/infrastructure.rst | 2 +- Documentation/power/suspend-and-cpuhotplug.txt | 2 +- 5 files changed, 16 insertions(+), 11 deletions(-)
Documentation/dell_rbu.txt +2 -2
@@ -121,8 +121,8 @@ read back the image downloaded. .. note:: - This driver requires a patch for firmware_class.c which has the modified - request_firmware_nowait function. + This driver requires a patch for drivers/base/firmware_loader/main.c + which has the modified request_firmware_nowait() function. Also after updating the BIOS image a user mode application needs to execute code which sends the BIOS update request to the BIOS. So on the next reboot
Documentation/driver-api/firmware/fallback-mechanisms.rst +1 -1
@@ -72,7 +72,7 @@ the firmware requested, and establishes it in the device hierarchy by associating the device used to make the request as the device's parent. The sysfs directory's file attributes are defined and controlled through the new device's class (firmware_class) and group (fw_dev_attr_groups). -This is actually where the original firmware_class.c file name comes from, +This is actually where drivers/base/firmware_loader/fallback.c comes from, as originally the only firmware loading mechanism available was the mechanism we now use as a fallback mechanism.
Documentation/driver-api/firmware/request_firmware.rst +11 -6
@@ -17,19 +17,24 @@ an error is returned. request_firmware ---------------- -.. kernel-doc:: drivers/base/firmware_class.c +.. kernel-doc:: drivers/base/firmware_loader/main.c :functions: request_firmware request_firmware_direct ----------------------- -.. kernel-doc:: drivers/base/firmware_class.c +.. kernel-doc:: drivers/base/firmware_loader/main.c :functions: request_firmware_direct request_firmware_into_buf ------------------------- -.. kernel-doc:: drivers/base/firmware_class.c +.. kernel-doc:: drivers/base/firmware_loader/main.c :functions: request_firmware_into_buf +release_firmware +---------------- +.. kernel-doc:: drivers/base/firmware_loader/main.c + :functions: release_firmware + Asynchronous firmware requests ==============================
@@ -41,7 +46,7 @@ in atomic contexts. request_firmware_nowait ----------------------- -.. kernel-doc:: drivers/base/firmware_class.c +.. kernel-doc:: drivers/base/firmware_loader/main.c :functions: request_firmware_nowait Special optimizations on reboot
@@ -54,8 +59,8 @@ this can be done with firmware_request_cache() insted of requesting for the firmare to be loaded. firmware_request_cache() ------------------------ -.. kernel-doc:: drivers/base/firmware_class.c +------------------------ +.. kernel-doc:: drivers/base/firmware_loader/main.c :functions: firmware_request_cache request firmware API expected driver use
Documentation/driver-api/infrastructure.rst +1 -1
@@ -28,7 +28,7 @@ Device Drivers Base .. kernel-doc:: drivers/base/node.c :internal: -.. kernel-doc:: drivers/base/firmware_class.c +.. kernel-doc:: drivers/base/firmware_loader/main.c :export: .. kernel-doc:: drivers/base/transport_class.c
Documentation/power/suspend-and-cpuhotplug.txt +1 -1
@@ -168,7 +168,7 @@ update on the CPUs, as discussed below: [Please bear in mind that the kernel requests the microcode images from userspace, using the request_firmware() function defined in -drivers/base/firmware_class.c] +drivers/base/firmware_loader/main.c] a. When all the CPUs are identical:
Signature · 1 line
2.17.0
PATCH 3/18 docs: */index.rst: Add newer documents to their respective index.rst
In reply to Mauro Carvalho ChehabA number of new docs were added, but they're currently not on the index.rst from the session they're supposed to be, causing Sphinx warnings.
Add them.
--- Documentation/crypto/index.rst | 1 + Documentation/driver-api/index.rst | 1 + Documentation/process/index.rst | 1 + Documentation/security/index.rst | 2 ++ 4 files changed, 5 insertions(+)
Documentation/crypto/index.rst +1 -0
@@ -20,5 +20,6 @@ for cryptographic use cases, as well as programming examples. architecture devel-algos userspace-if + crypto_engine api api-samples
Documentation/driver-api/index.rst +1 -0
@@ -18,6 +18,7 @@ available subsections can be seen below. infrastructure pm/index device-io + device_connection dma-buf device_link message-based
Documentation/process/index.rst +1 -0
@@ -52,6 +52,7 @@ lack of a better place. adding-syscalls magic-number volatile-considered-harmful + clang-format .. only:: subproject and html
Documentation/security/index.rst +2 -0
@@ -9,5 +9,7 @@ Security Documentation IMA-templates keys/index LSM + LSM-sctp + SELinux-sctp self-protection tpm/index
Signature · 1 line
2.17.0
PATCH 8/18 docs: driver-api: add clk documentation
In reply to Mauro Carvalho ChehabThe clk.rst is already in ReST format. So, move it to the driver-api guide, where it belongs.
---
Documentation/00-INDEX | 2 --
Documentation/admin-guide/kernel-parameters.txt | 2 +-
Documentation/{clk.txt => driver-api/clk.rst} | 0
Documentation/driver-api/index.rst | 1 +
4 files changed, 2 insertions(+), 3 deletions(-)
rename Documentation/{clk.txt => driver-api/clk.rst} (100%)Documentation/00-INDEX +0 -2
@@ -80,8 +80,6 @@ cdrom/ - directory with information on the CD-ROM drivers that Linux has. cgroup-v1/ - cgroups v1 features, including cpusets and memory controller. -clk.txt - - info on the common clock framework cma/ - Continuous Memory Area (CMA) debugfs interface. conf.py
Documentation/admin-guide/kernel-parameters.txt +1 -1
@@ -518,7 +518,7 @@ those clocks in any way. This parameter is useful for debug and development, but should not be needed on a platform with proper driver support. For more - information, see Documentation/clk.txt. + information, see Documentation/driver-api/clk.rst. clock= [BUGS=X86-32, HW] gettimeofday clocksource override. [Deprecated]
Documentation/driver-api/clk.rst renamed from Documentation/clk.txt +0 -0
Documentation/driver-api/index.rst +1 -0
@@ -17,6 +17,7 @@ available subsections can be seen below. basics infrastructure pm/index + clk device-io device_connection dma-buf
Signature · 1 line
2.17.0
PATCH 9/18 net: mac80211.h: fix a bad comment line
In reply to Mauro Carvalho ChehabSphinx produces a lot of errors like this:
./include/net/mac80211.h:2083: warning: bad line: >
--- include/net/mac80211.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/net/mac80211.h +1 -1
@@ -2080,7 +2080,7 @@ struct ieee80211_txq {* virtual interface might not be given air time for the transmission of * the frame, as it is not synced with the AP/P2P GO yet, and thus the * deauthentication frame might not be transmitted. -> +* * @IEEE80211_HW_DOESNT_SUPPORT_QOS_NDP: The driver (or firmware) doesn't * support QoS NDP for AP probing - that's most likely a driver bug. *
Signature · 1 line
2.17.0
PATCH 11/18 docs: crypto_engine.rst: Fix two parse warnings
In reply to Mauro Carvalho Chehab./Documentation/crypto/crypto_engine.rst:13: WARNING: Unexpected indentation. ./Documentation/crypto/crypto_engine.rst:15: WARNING: Block quote ends without a blank line; unexpected unindent.
--- Documentation/crypto/crypto_engine.rst | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
Documentation/crypto/crypto_engine.rst +5 -3
@@ -8,11 +8,13 @@ The crypto engine API (CE), is a crypto queue manager. Requirement ----------- -You have to put at start of your tfm_ctx the struct crypto_engine_ctx -struct your_tfm_ctx { +You have to put at start of your tfm_ctx the struct crypto_engine_ctx:: + + struct your_tfm_ctx { struct crypto_engine_ctx enginectx; ... -}; + }; + Why: Since CE manage only crypto_async_request, it cannot know the underlying request_type and so have access only on the TFM. So using container_of for accessing __ctx is impossible.
Signature · 1 line
2.17.0
PATCH 14/18 fbdev: modedb.c: fix a kernel-doc markup
In reply to Mauro Carvalho ChehabUse code blocks to avoid those warnings and make it look nicer.
./drivers/video/fbdev/core/modedb.c:647: WARNING: Inline strong start-string without end-string. ./drivers/video/fbdev/core/modedb.c:647: WARNING: Inline strong start-string without end-string. ./drivers/video/fbdev/core/modedb.c:647: WARNING: Inline strong start-string without end-string. ./drivers/video/fbdev/core/modedb.c:647: WARNING: Inline strong start-string without end-string.
--- drivers/video/fbdev/core/modedb.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-)
drivers/video/fbdev/core/modedb.c +11 -11
@@ -642,23 +642,23 @@ static int fb_try_mode(struct fb_var_screeninfo *var, struct fb_info *info,* @default_mode fails, all modes in the video mode database will * be tried. * -* Valid mode specifiers for @mode_option: +* Valid mode specifiers for @mode_option:: * -* <xres>x<yres>[M][R][-<bpp>][@<refresh>][i][m] or -* <name>[-<bpp>][@<refresh>] +* <xres>x<yres>[M][R][-<bpp>][@<refresh>][i][m] or +* <name>[-<bpp>][@<refresh>] * * with <xres>, <yres>, <bpp> and <refresh> decimal numbers and * <name> a string. * -* If 'M' is present after yres (and before refresh/bpp if present), -* the function will compute the timings using VESA(tm) Coordinated -* Video Timings (CVT). If 'R' is present after 'M', will compute with -* reduced blanking (for flatpanels). If 'i' is present, compute -* interlaced mode. If 'm' is present, add margins equal to 1.8% -* of xres rounded down to 8 pixels, and 1.8% of yres. The char -* 'i' and 'm' must be after 'M' and 'R'. Example: +* If 'M' is present after yres (and before refresh/bpp if present), +* the function will compute the timings using VESA(tm) Coordinated +* Video Timings (CVT). If 'R' is present after 'M', will compute with +* reduced blanking (for flatpanels). If 'i' is present, compute +* interlaced mode. If 'm' is present, add margins equal to 1.8% +* of xres rounded down to 8 pixels, and 1.8% of yres. The char +* 'i' and 'm' must be after 'M' and 'R'. Example:: * -* 1024x768MR-8@60m - Reduced blank with margins at 60Hz. +* 1024x768MR-8@60m - Reduced blank with margins at 60Hz. * * NOTE: The passed struct @var is _not_ cleared! This allows you * to supply values for e.g. the grayscale and accel_flags fields.
Signature · 1 line
2.17.0
PATCH 17/18 docs: uio-howto.rst: use a code block to solve a warning
In reply to Mauro Carvalho Chehab/devel/v4l/docs/Documentation/driver-api/uio-howto.rst:715: WARNING: Unexpected indentation.
--- Documentation/driver-api/uio-howto.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/driver-api/uio-howto.rst +2 -1
@@ -711,7 +711,8 @@ The vmbus device regions are mapped into uio device resources: If a subchannel is created by a request to host, then the uio_hv_generic device driver will create a sysfs binary file for the per-channel ring buffer. -For example: +For example:: + /sys/bus/vmbus/devices/3811fe4d-0fa0-4b62-981a-74fc1084c757/channels/21/ring Further information
Signature · 1 line
2.17.0
PATCH 10/18 rcu: rcupdate.h: get rid of Sphinx warnings at rcu_pointer_handoff()
In reply to Mauro Carvalho ChehabThe code example at rcupdate.h currently produce lots of warnings:
./include/linux/rcupdate.h:572: WARNING: Unexpected indentation. ./include/linux/rcupdate.h:576: WARNING: Unexpected indentation. ./include/linux/rcupdate.h:580: WARNING: Block quote ends without a blank line; unexpected unindent. ./include/linux/rcupdate.h:582: WARNING: Block quote ends without a blank line; unexpected unindent. ./include/linux/rcupdate.h:582: WARNING: Inline literal start-string without end-string.
Change it to a code-block.
--- include/linux/rcupdate.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
include/linux/rcupdate.h +2 -3
@@ -568,8 +568,8 @@ static inline void rcu_preempt_sleep_check(void) { }* This is simply an identity function, but it documents where a pointer * is handed off from RCU to some other synchronization mechanism, for * example, reference counting or locking. In C11, it would map to -* kill_dependency(). It could be used as follows: -* `` +* kill_dependency(). It could be used as follows:: +* * rcu_read_lock(); * p = rcu_dereference(gp); * long_lived = is_long_lived(p);
@@ -580,7 +580,6 @@ static inline void rcu_preempt_sleep_check(void) { }* p = rcu_pointer_handoff(p); * } * rcu_read_unlock(); -*`` */ #define rcu_pointer_handoff (p) (p)
Signature · 6 lines
2.17.0 -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 15/18 iio: iio.h: use nested struct support on kernel-doc markup
In reply to Mauro Carvalho ChehabSolve those Sphinx warnings:
./include/linux/iio/iio.h:270: warning: Function parameter or member 'scan_type.sign' not described in 'iio_chan_spec' ./include/linux/iio/iio.h:270: warning: Function parameter or member 'scan_type.realbits' not described in 'iio_chan_spec' ./include/linux/iio/iio.h:270: warning: Function parameter or member 'scan_type.storagebits' not described in 'iio_chan_spec' ./include/linux/iio/iio.h:270: warning: Function parameter or member 'scan_type.shift' not described in 'iio_chan_spec' ./include/linux/iio/iio.h:270: warning: Function parameter or member 'scan_type.repeat' not described in 'iio_chan_spec' ./include/linux/iio/iio.h:270: warning: Function parameter or member 'scan_type.endianness' not described in 'iio_chan_spec'
./include/linux/iio/iio.h:191: WARNING: Unexpected indentation. ./include/linux/iio/iio.h:192: WARNING: Block quote ends without a blank line; unexpected unindent. ./include/linux/iio/iio.h:198: WARNING: Definition list ends without a blank line; unexpected unindent.
--- include/linux/iio/iio.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-)
include/linux/iio/iio.h +12 -12
@@ -183,18 +183,18 @@ struct iio_event_spec {* @address: Driver specific identifier. * @scan_index: Monotonic index to give ordering in scans when read * from a buffer. -* @scan_type: sign: 's' or 'u' to specify signed or unsigned -* realbits: Number of valid bits of data -* storagebits: Realbits + padding -* shift: Shift right by this before masking out -* realbits. -* repeat: Number of times real/storage bits -* repeats. When the repeat element is -* more than 1, then the type element in -* sysfs will show a repeat value. -* Otherwise, the number of repetitions is -* omitted. -* endianness: little or big endian +* @scan_type: struct describing the scan type +* @scan_type.sign: 's' or 'u' to specify signed or unsigned +* @scan_type.realbits: Number of valid bits of data +* @scan_type.storagebits: Realbits + padding +* @scan_type.shift: Shift right by this before masking out +* realbits. +* @scan_type.repeat: Number of times real/storage bits repeats. +* When the repeat element is more than 1, then +* the type element in sysfs will show a repeat +* value. Otherwise, the number of repetitions +* is omitted. +* @scan_type.endianness: little or big endian * @info_mask_separate: What information is to be exported that is specific to * this channel. * @info_mask_separate_available: What availability information is to be
Signature · 1 line
2.17.0
PATCH 13/18 wait: wait.h: Get rid of a kernel-doc/Sphinx warnings
In reply to Mauro Carvalho ChehabThe flow diagram should be inside a code-block to avoid those
warnings:
./include/linux/wait.h:110: WARNING: Block quote ends without a blank line; unexpected unindent. ./include/linux/wait.h:113: WARNING: Unexpected indentation. ./include/linux/wait.h:115: WARNING: Block quote ends without a blank line; unexpected unindent.
This is easily done by using "::" instead of just ":".
--- include/linux/wait.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/wait.h +1 -1
@@ -101,7 +101,7 @@ init_waitqueue_func_entry(struct wait_queue_entry *wq_entry, wait_queue_func_t f* lead to sporadic and non-obvious failure. * * Use either while holding wait_queue_head::lock or when used for wakeups -* with an extra smp_mb() like: +* with an extra smp_mb() like:: * * CPU0 - waker CPU1 - waiter *
Signature · 1 line
2.17.0
PATCH 16/18 mtd: rawnand.h: use nested union kernel-doc markups
In reply to Mauro Carvalho ChehabGets rid of those warnings and better document the parameters.
./include/linux/mtd/rawnand.h:752: warning: Function parameter or member 'timings.sdr' not described in 'nand_data_interface' ./include/linux/mtd/rawnand.h:817: warning: Function parameter or member 'buf' not described in 'nand_op_data_instr' ./include/linux/mtd/rawnand.h:817: warning: Function parameter or member 'buf.in' not described in 'nand_op_data_instr' ./include/linux/mtd/rawnand.h:817: warning: Function parameter or member 'buf.out' not described in 'nand_op_data_instr' ./include/linux/mtd/rawnand.h:863: warning: Function parameter or member 'ctx' not described in 'nand_op_instr' ./include/linux/mtd/rawnand.h:863: warning: Function parameter or member 'ctx.cmd' not described in 'nand_op_instr' ./include/linux/mtd/rawnand.h:863: warning: Function parameter or member 'ctx.addr' not described in 'nand_op_instr' ./include/linux/mtd/rawnand.h:863: warning: Function parameter or member 'ctx.data' not described in 'nand_op_instr' ./include/linux/mtd/rawnand.h:863: warning: Function parameter or member 'ctx.waitrdy' not described in 'nand_op_instr' ./include/linux/mtd/rawnand.h:1010: warning: Function parameter or member 'ctx' not described in 'nand_op_parser_pattern_elem' ./include/linux/mtd/rawnand.h:1010: warning: Function parameter or member 'ctx.addr' not described in 'nand_op_parser_pattern_elem' ./include/linux/mtd/rawnand.h:1010: warning: Function parameter or member 'ctx.data' not described in 'nand_op_parser_pattern_elem' ./include/linux/mtd/rawnand.h:1313: warning: Function parameter or member 'manufacturer.desc' not described in 'nand_chip' ./include/linux/mtd/rawnand.h:1313: warning: Function parameter or member 'manufacturer.priv' not described in 'nand_chip'
./include/linux/mtd/rawnand.h:848: WARNING: Unexpected indentation.
--- include/linux/mtd/rawnand.h | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-)
include/linux/mtd/rawnand.h +18 -8
@@ -740,8 +740,9 @@ enum nand_data_interface_type {/** * struct nand_data_interface - NAND interface timing -* @type: type of the timing -* @timings: The timing, type according to @type +* @type: type of the timing +* @timings: The timing, type according to @type +* @timings.sdr: Use it when @type is %NAND_SDR_IFACE. */ struct nand_data_interface {enum nand_data_interface_type type;
@@ -798,8 +799,9 @@ struct nand_op_addr_instr {/** * struct nand_op_data_instr - Definition of a data instruction * @len: number of data bytes to move -* @in: buffer to fill when reading from the NAND chip -* @out: buffer to read from when writing to the NAND chip +* @buf: buffer to fill +* @buf.in: buffer to fill when reading from the NAND chip +* @buf.out: buffer to read from when writing to the NAND chip * @force_8bit: force 8-bit access * * Please note that "in" and "out" are inverted from the ONFI specification
@@ -842,9 +844,13 @@ enum nand_op_instr_type {/** * struct nand_op_instr - Instruction object * @type: the instruction type -* @cmd/@addr/@data/@waitrdy: extra data associated to the instruction. -* You'll have to use the appropriate element -* depending on @type +* @ctx: extra data associated to the instruction. You'll have to use the +* appropriate element depending on @type +* @ctx.cmd: use it if @type is %NAND_OP_CMD_INSTR +* @ctx.addr: use it if @type is %NAND_OP_ADDR_INSTR +* @ctx.data: use it if @type is %NAND_OP_DATA_IN_INSTR +* or %NAND_OP_DATA_OUT_INSTR +* @ctx.waitrdy: use it if @type is %NAND_OP_WAITRDY_INSTR * @delay_ns: delay the controller should apply after the instruction has been * issued on the bus. Most modern controllers have internal timings * control logic, and in this case, the controller driver can ignore
@@ -997,7 +1003,9 @@ struct nand_op_parser_data_constraints {* struct nand_op_parser_pattern_elem - One element of a pattern * @type: the instructuction type * @optional: whether this element of the pattern is optional or mandatory -* @addr/@data: address or data constraint (number of cycles or data length) +* @ctx: address or data constraint +* @ctx.addr: address constraint (number of cycles) +* @ctx.data: data constraint (data length) */ struct nand_op_parser_pattern_elem {enum nand_op_instr_type type;
@@ -1224,6 +1232,8 @@ int nand_op_parser_exec_op(struct nand_chip *chip,* devices. * @priv: [OPTIONAL] pointer to private chip data * @manufacturer: [INTERN] Contains manufacturer information +* @manufacturer.desc: [INTERN] Contains manufacturer's description +* @manufacturer.priv: [INTERN] Contains manufacturer private information */ struct nand_chip {
Signature · 1 line
2.17.0
PATCH 18/18 w1: w1_io.c: fix a kernel-doc warning
In reply to Mauro Carvalho ChehabAdd a blank line to avoid this Sphinx warning:
./drivers/w1/w1_io.c:197: WARNING: Definition list ends without a blank line; unexpected unindent.
--- drivers/w1/w1_io.c | 1 + 1 file changed, 1 insertion(+)
drivers/w1/w1_io.c +1 -0
@@ -194,6 +194,7 @@ static u8 w1_read_bit(struct w1_master *dev)* bit 0 = id_bit * bit 1 = comp_bit * bit 2 = dir_taken +* * If both bits 0 & 1 are set, the search should be restarted. * * Return: bit fields - see above
Signature · 1 line
2.17.0
PATCH 7/18 docs: core-api: add circular-buffers documentation
In reply to Mauro Carvalho ChehabThe circular-buffers.txt is already in ReST format. So, move it to the core-api guide, where it belongs.
---
Documentation/00-INDEX | 2 --
.../{circular-buffers.txt => core-api/circular-buffers.rst} | 0
Documentation/core-api/index.rst | 1 +
Documentation/memory-barriers.txt | 2 +-
Documentation/translations/ko_KR/memory-barriers.txt | 2 +-
5 files changed, 3 insertions(+), 4 deletions(-)
rename Documentation/{circular-buffers.txt => core-api/circular-buffers.rst} (100%)Documentation/00-INDEX +0 -2
@@ -80,8 +80,6 @@ cdrom/ - directory with information on the CD-ROM drivers that Linux has. cgroup-v1/ - cgroups v1 features, including cpusets and memory controller. -circular-buffers.txt - - how to make use of the existing circular buffer infrastructure clk.txt - info on the common clock framework cma/
Documentation/core-api/circular-buffers.rst renamed from Documentation/circular-buffers.txt +0 -0
Documentation/core-api/index.rst +1 -0
@@ -26,6 +26,7 @@ Core utilities genalloc errseq printk-formats + circular-buffers Interfaces for kernel debugging ===============================
Documentation/memory-barriers.txt +1 -1
@@ -3083,7 +3083,7 @@ CIRCULAR BUFFERS Memory barriers can be used to implement circular buffering without the need of a lock to serialise the producer with the consumer. See: - Documentation/circular-buffers.txt + Documentation/core-api/circular-buffers.rst for details.
Documentation/translations/ko_KR/memory-barriers.txt +1 -1
@@ -3023,7 +3023,7 @@ smp_mb() 가 아니라 virt_mb() 를 사용해야 합니다. 동기화에 락을 사용하지 않고 구현하는데에 사용될 수 있습니다. 더 자세한 내용을 위해선 다음을 참고하세요: - Documentation/circular-buffers.txt + Documentation/core-api/circular-buffers.rst =========
Signature · 1 line
2.17.0
PATCH 5/18 docs: core-api: add cachetlb documentation
In reply to Mauro Carvalho ChehabThe cachetlb.txt is already in ReST format. So, move it to the core-api guide, where it belongs.
---
Documentation/00-INDEX | 2 --
Documentation/{cachetlb.txt => core-api/cachetlb.rst} | 0
Documentation/core-api/index.rst | 1 +
Documentation/memory-barriers.txt | 2 +-
Documentation/translations/ko_KR/memory-barriers.txt | 2 +-
5 files changed, 3 insertions(+), 4 deletions(-)
rename Documentation/{cachetlb.txt => core-api/cachetlb.rst} (100%)Documentation/00-INDEX +0 -2
@@ -76,8 +76,6 @@ bus-devices/ - directory with info on TI GPMC (General Purpose Memory Controller) bus-virt-phys-mapping.txt - how to access I/O mapped memory from within device drivers. -cachetlb.txt - - describes the cache/TLB flushing interfaces Linux uses. cdrom/ - directory with information on the CD-ROM drivers that Linux has. cgroup-v1/
Documentation/core-api/cachetlb.rst renamed from Documentation/cachetlb.txt +0 -0
Documentation/core-api/index.rst +1 -0
@@ -14,6 +14,7 @@ Core utilities kernel-api assoc_array atomic_ops + cachetlb refcount-vs-atomic cpu_hotplug idr
Documentation/memory-barriers.txt +1 -1
@@ -2903,7 +2903,7 @@ is discarded from the CPU's cache and reloaded. To deal with this, the appropriate part of the kernel must invalidate the overlapping bits of the cache on each CPU. -See Documentation/cachetlb.txt for more information on cache management. +See Documentation/core-api/cachetlb.rst for more information on cache management. CACHE COHERENCY VS MMIO
Documentation/translations/ko_KR/memory-barriers.txt +1 -1
@@ -2846,7 +2846,7 @@ CPU 의 캐시에서 RAM 으로 쓰여지는 더티 캐시 라인에 의해 덮 문제를 해결하기 위해선, 커널의 적절한 부분에서 각 CPU 의 캐시 안의 문제가 되는 비트들을 무효화 시켜야 합니다. -캐시 관리에 대한 더 많은 정보를 위해선 Documentation/cachetlb.txt 를 +캐시 관리에 대한 더 많은 정보를 위해선 Documentation/core-api/cachetlb.rst 를 참고하세요.
Signature · 1 line
2.17.0
PATCH 12/18 time: timer.c: adjust a kernel-doc comment
In reply to Mauro Carvalho ChehabThose three warnings can easily solved by using :: to indicate a code block:
./kernel/time/timer.c:1259: WARNING: Unexpected indentation. ./kernel/time/timer.c:1261: WARNING: Unexpected indentation. ./kernel/time/timer.c:1262: WARNING: Block quote ends without a blank line; unexpected unindent.
While here, align the lines at the block.
--- kernel/time/timer.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
kernel/time/timer.c +7 -7
@@ -1251,18 +1251,18 @@ EXPORT_SYMBOL(try_to_del_timer_sync);* * Note: For !irqsafe timers, you must not hold locks that are held in * interrupt context while calling this function. Even if the lock has -* nothing to do with the timer in question. Here's why: +* nothing to do with the timer in question. Here's why:: * * CPU0 CPU1 * ---- ---- -* <SOFTIRQ> -* call_timer_fn(); -* base->running_timer = mytimer; -* spin_lock_irq(somelock); +* <SOFTIRQ> +* call_timer_fn(); +* base->running_timer = mytimer; +* spin_lock_irq(somelock); * <IRQ> * spin_lock(somelock); -* del_timer_sync(mytimer); -* while (base->running_timer == mytimer); +* del_timer_sync(mytimer); +* while (base->running_timer == mytimer); * * Now del_timer_sync() will never return and never release somelock. * The interrupt on the other CPU is waiting to grab somelock but
Signature · 1 line
2.17.0
PATCH 4/18 docs: admin-guide: add bcache documentation
In reply to Mauro Carvalho ChehabThe bcache.txt is already in ReST format. So, move it to the admin guide, where it belongs.
---
Documentation/00-INDEX | 2 --
Documentation/{bcache.txt => admin-guide/bcache.rst} | 0
Documentation/admin-guide/index.rst | 1 +
3 files changed, 1 insertion(+), 2 deletions(-)
rename Documentation/{bcache.txt => admin-guide/bcache.rst} (100%)Documentation/00-INDEX +0 -2
@@ -64,8 +64,6 @@ auxdisplay/ - misc. LCD driver documentation (cfag12864b, ks0108). backlight/ - directory with info on controlling backlights in flat panel displays -bcache.txt - - Block-layer cache on fast SSDs to improve slow (raid) I/O performance. block/ - info on the Block I/O (BIO) layer. blockdev/
Documentation/admin-guide/bcache.rst renamed from Documentation/bcache.txt +0 -0
Documentation/admin-guide/index.rst +1 -0
@@ -60,6 +60,7 @@ configure specific aspects of kernel behavior to your liking. mono java ras + bcache pm/index thunderbolt LSM/index
Signature · 1 line
2.17.0
PATCH 6/18 docs: core-api: add cgroup-v2 documentation
In reply to Mauro Carvalho ChehabThe cgroup-v2.txt is already in ReST format. So, move it to the core-api guide, where it belongs.
---
Documentation/00-INDEX | 2 --
Documentation/{cgroup-v2.txt => admin-guide/cgroup-v2.rst} | 0
Documentation/admin-guide/index.rst | 1 +
3 files changed, 1 insertion(+), 2 deletions(-)
rename Documentation/{cgroup-v2.txt => admin-guide/cgroup-v2.rst} (100%)Documentation/00-INDEX +0 -2
@@ -80,8 +80,6 @@ cdrom/ - directory with information on the CD-ROM drivers that Linux has. cgroup-v1/ - cgroups v1 features, including cpusets and memory controller. -cgroup-v2.txt - - cgroups v2 features, including cpusets and memory controller. circular-buffers.txt - how to make use of the existing circular buffer infrastructure clk.txt
Documentation/admin-guide/cgroup-v2.rst renamed from Documentation/cgroup-v2.txt +0 -0
Documentation/admin-guide/index.rst +1 -0
@@ -48,6 +48,7 @@ configure specific aspects of kernel behavior to your liking. :maxdepth: 1 initrd + cgroup-v2 serial-console braille-console parport
Signature · 1 line
2.17.0
Re: [PATCH 16/18] mtd: rawnand.h: use nested union kernel-doc markups
In reply to Mauro Carvalho ChehabHi Mauro,
Quoted 29 lines · On Mon, 7 May 2018 06:35:52 -0300 Mauro Carvalho Chehab…
Gets rid of those warnings and better document the parameters.
./include/linux/mtd/rawnand.h:752: warning: Function parameter or member 'timings.sdr' not described in 'nand_data_interface'./include/linux/mtd/rawnand.h:817: warning: Function parameter or member 'buf' not described in 'nand_op_data_instr'./include/linux/mtd/rawnand.h:817: warning: Function parameter or member 'buf.in' not described in 'nand_op_data_instr'./include/linux/mtd/rawnand.h:817: warning: Function parameter or member 'buf.out' not described in 'nand_op_data_instr'./include/linux/mtd/rawnand.h:863: warning: Function parameter or member 'ctx' not described in 'nand_op_instr'./include/linux/mtd/rawnand.h:863: warning: Function parameter or member 'ctx.cmd' not described in 'nand_op_instr'./include/linux/mtd/rawnand.h:863: warning: Function parameter or member 'ctx.addr' not described in 'nand_op_instr'./include/linux/mtd/rawnand.h:863: warning: Function parameter or member 'ctx.data' not described in 'nand_op_instr'./include/linux/mtd/rawnand.h:863: warning: Function parameter or member 'ctx.waitrdy' not described in 'nand_op_instr'./include/linux/mtd/rawnand.h:1010: warning: Function parameter or member 'ctx' not described in 'nand_op_parser_pattern_elem'./include/linux/mtd/rawnand.h:1010: warning: Function parameter or member 'ctx.addr' not described in 'nand_op_parser_pattern_elem'./include/linux/mtd/rawnand.h:1010: warning: Function parameter or member 'ctx.data' not described in 'nand_op_parser_pattern_elem'./include/linux/mtd/rawnand.h:1313: warning: Function parameter or member 'manufacturer.desc' not described in 'nand_chip'./include/linux/mtd/rawnand.h:1313: warning: Function parameter or member 'manufacturer.priv' not described in 'nand_chip'
./include/linux/mtd/rawnand.h:848: WARNING: Unexpected indentation.Signed-off-by Mauro Carvalho Chehab <[email protected]>--- include/linux/mtd/rawnand.h | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-)include/linux/mtd/rawnand.h +0
-0
include/linux/mtd/rawnand.h enum nand_data_interface_type { · line 745
Quoted 8 lines
include/linux/mtd/rawnand.h +3
-2@@ -740,8 +740,9 @@ enum nand_data_interface_type {/** * struct nand_data_interface - NAND interface timing -* @type: type of the timing -* @timings: The timing, type according to @type +* @type: type of the timing +* @timings: The timing, type according to @type +* @timings.sdr: Use it when @type is %NAND_SDR_IFACE.
Hm, really feels weird to do that. I mean, either we describe timings.sdr or timings, but not both. I this case, I agree that describing timings.sdr would make more sense than generically describing any possible entries in the timings union. Is there a simple way we can get rid of the warning we have when not describing timings but all of its fields?
include/linux/mtd/rawnand.h struct nand_op_addr_instr { · line 804
Quoted 12 lines
include/linux/mtd/rawnand.h +3
-2*/ struct nand_data_interface {enum nand_data_interface_type type;@@ -798,8 +799,9 @@ struct nand_op_addr_instr {/** * struct nand_op_data_instr - Definition of a data instruction * @len: number of data bytes to move -* @in: buffer to fill when reading from the NAND chip -* @out: buffer to read from when writing to the NAND chip +* @buf: buffer to fill +* @buf.in: buffer to fill when reading from the NAND chip +* @buf.out: buffer to read from when writing to the NAND chip
Same here. What we care about is @buf.in and @buf.out, the @buf description is useless...
Regards,
Boris
Re: [PATCH 16/18] mtd: rawnand.h: use nested union kernel-doc markups
Hi Boris,
Em Mon, 7 May 2018 11:46:50 +0200
Boris Brezillon <[email protected]> escreveu:
Quoted 8 lines
Hi Mauro,
Quoted 6 lines
include/linux/mtd/rawnand.h +0
-0@@ -740,8 +740,9 @@ enum nand_data_interface_type {
Quoted 12 lines
include/linux/mtd/rawnand.h enum nand_data_interface_type { · line 745
Quoted 7 lines
include/linux/mtd/rawnand.h +3
-2/** * struct nand_data_interface - NAND interface timing -* @type: type of the timing -* @timings: The timing, type according to @type +* @type: type of the timing +* @timings: The timing, type according to @type +* @timings.sdr: Use it when @type is %NAND_SDR_IFACE. Hm, really feels weird to do that. I mean, either we describe timings.sdr or timings, but not both. I this case, I agree that describing timings.sdr would make more sense than generically describing any possible entries in the timings union.
This struct is funny, as the union has just one item. I assume that the original intend is to be ready to have more timing types (or you had it in the past). By the time you have a second value there, describing the union would make more sense.
Quoted 3 lines
Is there a simple
way we can get rid of the warning we have when not describing timings but all of its fields?
There's no direct way. It won't be hard to add a way to do it, like applying the enclosed patch with ends by declaring timings as:
* @timings: -- undescribed --
IMHO, this is uglier.
The way I see is that, if the embed struct/union is not interesting enough to be described, the best would be to use an anonymous one like:
struct nand_data_interface {
enum nand_data_interface_type type;
union {
struct nand_sdr_timings sdr;
};
};With the above, kernel-doc will expect a description just for @sdr.
Btw, if you want to see how nested struct/union is parsed, the scripts/kernel_doc logic is at dump_struct() function.
When it finds an struct, it first handles private/public by simply removing everything that it is not public from the struct, by a very simple parser. Then, it converts nested struct/union into un-nested ones. E. g. it converts:
struct {
union {
int foo1;
};
union {
int foo2;
} bar;
} foobar;into this internal representation:
struct {
int foo1;
union;
int bar.foo2;
union bar;
};Then it runs the normal un-nested struct parser.
Thanks,
Mauro
[PATCH] don't describe nested struct timings
IMHO, this is an ugly hack, but it allows having nested structs (or fields) undescribed by purpose.
include/linux/mtd/rawnand.h +1 -1
@@ -741,7 +741,7 @@ enum nand_data_interface_type {/** * struct nand_data_interface - NAND interface timing * @type: type of the timing -* @timings: The timing, type according to @type +* @timings: -- undescribed -- * @timings.sdr: Use it when @type is %NAND_SDR_IFACE. */ struct nand_data_interface {
scripts/kernel-doc +1 -1
@@ -390,7 +390,7 @@ my $section = $section_default; my $section_context = "Context"; my $section_return = "Return"; -my $undescribed = "-- undescribed --"; +my $undescribed = "-- undescribed --\n"; reset_state();
Re: [PATCH 05/18] docs: core-api: add cachetlb documentation
In reply to Mauro Carvalho ChehabQuoted 4 lines · Mauro Carvalho Chehab
The cachetlb.txt is already in ReST format. So, move it to the core-api guide, where it belongs.
Signed-off-by Mauro Carvalho Chehab <[email protected]>
Quoted 8 lines
---
Documentation/00-INDEX | 2 --
Documentation/{cachetlb.txt => core-api/cachetlb.rst} | 0
Documentation/core-api/index.rst | 1 +
Documentation/memory-barriers.txt | 2 +-
Documentation/translations/ko_KR/memory-barriers.txt | 2 +-
5 files changed, 3 insertions(+), 4 deletions(-)
rename Documentation/{cachetlb.txt => core-api/cachetlb.rst} (100%)I see a few "inline" references to the .txt file in -rc4 (see below):
I am not sure if you managed to update them too.
./arch/microblaze/include/asm/cacheflush.h:/* Look at Documentation/cachetlb.txt */./arch/unicore32/include/asm/cacheflush.h: * See Documentation/cachetlb.txt for more information../arch/arm64/include/asm/cacheflush.h: * See Documentation/cachetlb.txt for more information. Please note that./arch/arm/include/asm/cacheflush.h: * See Documentation/cachetlb.txt for more information../arch/xtensa/include/asm/cacheflush.h: * (see also Documentation/cachetlb.txt) ./arch/xtensa/include/asm/cacheflush.h:/* This is not required, see Documentation/cachetlb.txt */
Andrea
Quoted 59 lines
Documentation/00-INDEX +0
-2@@ -76,8 +76,6 @@ bus-devices/ - directory with info on TI GPMC (General Purpose Memory Controller) bus-virt-phys-mapping.txt - how to access I/O mapped memory from within device drivers. -cachetlb.txt - - describes the cache/TLB flushing interfaces Linux uses. cdrom/ - directory with information on the CD-ROM drivers that Linux has. cgroup-v1/Documentation/core-api/cachetlb.rst renamed from Documentation/cachetlb.txt +0
-0Documentation/core-api/index.rst +1
-0@@ -14,6 +14,7 @@ Core utilities kernel-api assoc_array atomic_ops + cachetlb refcount-vs-atomic cpu_hotplug idrDocumentation/memory-barriers.txt +1
-1@@ -2903,7 +2903,7 @@ is discarded from the CPU's cache and reloaded. To deal with this, the appropriate part of the kernel must invalidate the overlapping bits of the cache on each CPU. -See Documentation/cachetlb.txt for more information on cache management. +See Documentation/core-api/cachetlb.rst for more information on cache management. CACHE COHERENCY VS MMIODocumentation/translations/ko_KR/memory-barriers.txt +1
-1@@ -2846,7 +2846,7 @@ CPU 의 캐시에서 RAM 으로 쓰여지는 더티 캐시 라인에 의해 덮 문제를 해결하기 위해선, 커널의 적절한 부분에서 각 CPU 의 캐시 안의 문제가 되는 비트들을 무효화 시켜야 합니다. -캐시 관리에 대한 더 많은 정보를 위해선 Documentation/cachetlb.txt 를 +캐시 관리에 대한 더 많은 정보를 위해선 Documentation/core-api/cachetlb.rst 를 참고하세요.Signature · 1 line
2.17.0
Re: [PATCH 07/18] docs: core-api: add circular-buffers documentation
In reply to Mauro Carvalho ChehabQuoted 4 lines · Mauro Carvalho Chehab
The circular-buffers.txt is already in ReST format. So, move it to the core-api guide, where it belongs.
Signed-off-by Mauro Carvalho Chehab <[email protected]>
Quoted 8 lines
---
Documentation/00-INDEX | 2 --
.../{circular-buffers.txt => core-api/circular-buffers.rst} | 0
Documentation/core-api/index.rst | 1 +
Documentation/memory-barriers.txt | 2 +-
Documentation/translations/ko_KR/memory-barriers.txt | 2 +-
5 files changed, 3 insertions(+), 4 deletions(-)
rename Documentation/{circular-buffers.txt => core-api/circular-buffers.rst} (100%)Similarly:
./include/linux/circ_buf.h: * See Documentation/circular-buffers.txt for more information. ./drivers/lightnvm/pblk-rb.c: * (Documentation/circular-buffers.txt)./drivers/media/dvb-core/dvb_ringbuffer.c: * for memory barriers also see Documentation/circular-buffers.txt
Andrea
Quoted 59 lines
Documentation/00-INDEX +0
-2@@ -80,8 +80,6 @@ cdrom/ - directory with information on the CD-ROM drivers that Linux has. cgroup-v1/ - cgroups v1 features, including cpusets and memory controller. -circular-buffers.txt - - how to make use of the existing circular buffer infrastructure clk.txt - info on the common clock framework cma/Documentation/core-api/circular-buffers.rst renamed from Documentation/circular-buffers.txt +0
-0Documentation/core-api/index.rst +1
-0@@ -26,6 +26,7 @@ Core utilities genalloc errseq printk-formats + circular-buffers Interfaces for kernel debugging ===============================Documentation/memory-barriers.txt +1
-1@@ -3083,7 +3083,7 @@ CIRCULAR BUFFERS Memory barriers can be used to implement circular buffering without the need of a lock to serialise the producer with the consumer. See: - Documentation/circular-buffers.txt + Documentation/core-api/circular-buffers.rst for details.Documentation/translations/ko_KR/memory-barriers.txt +1
-1@@ -3023,7 +3023,7 @@ smp_mb() 가 아니라 virt_mb() 를 사용해야 합니다. 동기화에 락을 사용하지 않고 구현하는데에 사용될 수 있습니다. 더 자세한 내용을 위해선 다음을 참고하세요: - Documentation/circular-buffers.txt + Documentation/core-api/circular-buffers.rst =========Signature · 1 line
2.17.0
Re: [PATCH 09/18] net: mac80211.h: fix a bad comment line
In reply to Mauro Carvalho ChehabQuoted 4 lines · Mauro Carvalho Chehab
Sphinx produces a lot of errors like this:
./include/net/mac80211.h:2083: warning: bad line: >Signed-off-by Mauro Carvalho Chehab <[email protected]>
Randy already submitted a similar patch:
https://patchwork.kernel.org/patch/10367275/
But it seems Johannes has not applied that yet.
Signature · 1 line
Kalle Valo
Johannes Berg
maintainerRe: [PATCH 09/18] net: mac80211.h: fix a bad comment line
Quoted 5 lines · Kalle Valo
Quoted 3 lines · Mauro Carvalho Chehab
Sphinx produces a lot of errors like this:
./include/net/mac80211.h:2083: warning: bad line: >
Quoted 7 lines
Quoted 1 line
Signed-off-by Mauro Carvalho Chehab <[email protected]>Randy already submitted a similar patch:
https://patchwork.kernel.org/patch/10367275/
But it seems Johannes has not applied that yet.
Yeah, I've been super busy preparing for the plugfest.
I'll make a pass over all the patches as soon as I can, hopefully today or tomorrow.
johannes
Re: [PATCH 10/18] rcu: rcupdate.h: get rid of Sphinx warnings at rcu_pointer_handoff()
In reply to Mauro Carvalho ChehabQuoted 11 lines · Mauro Carvalho Chehab
The code example at
rcupdate.hcurrently produce lots of warnings:
./include/linux/rcupdate.h:572: WARNING: Unexpected indentation../include/linux/rcupdate.h:576: WARNING: Unexpected indentation../include/linux/rcupdate.h:580: WARNING: Block quote ends without a blank line; unexpected unindent../include/linux/rcupdate.h:582: WARNING: Block quote ends without a blank line; unexpected unindent../include/linux/rcupdate.h:582: WARNING: Inline literal start-string without end-string.Change it to a code-block.
Signed-off-by Mauro Carvalho Chehab <[email protected]>
If you don't tell me otherwise, I will assume that you are pushing this. If you would rather that I take it, please let me know!
Thanx, Paul
Quoted 30 lines
--- include/linux/rcupdate.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)include/linux/rcupdate.h +2
-3@@ -568,8 +568,8 @@ static inline void rcu_preempt_sleep_check(void) { }* This is simply an identity function, but it documents where a pointer * is handed off from RCU to some other synchronization mechanism, for * example, reference counting or locking. In C11, it would map to -* kill_dependency(). It could be used as follows: -* `` +* kill_dependency(). It could be used as follows:: +* * rcu_read_lock(); * p = rcu_dereference(gp); * long_lived = is_long_lived(p); @@ -580,7 +580,6 @@ static inline void rcu_preempt_sleep_check(void) { }* p = rcu_pointer_handoff(p); * } * rcu_read_unlock(); -*`` */ #define rcu_pointer_handoff (p) (p)Signature · 1 line
2.17.0
Jonathan Cameron
maintainerRe: [PATCH 15/18] iio: iio.h: use nested struct support on kernel-doc markup
In reply to Mauro Carvalho ChehabQuoted 9 lines · On Mon, 7 May 2018 06:35:51 -0300 Mauro Carvalho Chehab…
Solve those Sphinx warnings:
./include/linux/iio/iio.h:270: warning: Function parameter or member 'scan_type.sign' not described in 'iio_chan_spec'./include/linux/iio/iio.h:270: warning: Function parameter or member 'scan_type.realbits' not described in 'iio_chan_spec'./include/linux/iio/iio.h:270: warning: Function parameter or member 'scan_type.storagebits' not described in 'iio_chan_spec'./include/linux/iio/iio.h:270: warning: Function parameter or member 'scan_type.shift' not described in 'iio_chan_spec'./include/linux/iio/iio.h:270: warning: Function parameter or member 'scan_type.repeat' not described in 'iio_chan_spec'./include/linux/iio/iio.h:270: warning: Function parameter or member 'scan_type.endianness' not described in 'iio_chan_spec'
Quoted 5 lines
./include/linux/iio/iio.h:191: WARNING: Unexpected indentation../include/linux/iio/iio.h:192: WARNING: Block quote ends without a blank line; unexpected unindent../include/linux/iio/iio.h:198: WARNING: Definition list ends without a blank line; unexpected unindent.Signed-off-by Mauro Carvalho Chehab <[email protected]>
Great thanks. I couldn't figure out how to do this last time I looked at it.
Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to ignore it.
Thanks,
Jonathan
Quoted 39 lines
--- include/linux/iio/iio.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-)include/linux/iio/iio.h +12
-12@@ -183,18 +183,18 @@ struct iio_event_spec {* @address: Driver specific identifier. * @scan_index: Monotonic index to give ordering in scans when read * from a buffer. -* @scan_type: sign: 's' or 'u' to specify signed or unsigned -* realbits: Number of valid bits of data -* storagebits: Realbits + padding -* shift: Shift right by this before masking out -* realbits. -* repeat: Number of times real/storage bits -* repeats. When the repeat element is -* more than 1, then the type element in -* sysfs will show a repeat value. -* Otherwise, the number of repetitions is -* omitted. -* endianness: little or big endian +* @scan_type: struct describing the scan type +* @scan_type.sign: 's' or 'u' to specify signed or unsigned +* @scan_type.realbits: Number of valid bits of data +* @scan_type.storagebits: Realbits + padding +* @scan_type.shift: Shift right by this before masking out +* realbits. +* @scan_type.repeat: Number of times real/storage bits repeats. +* When the repeat element is more than 1, then +* the type element in sysfs will show a repeat +* value. Otherwise, the number of repetitions +* is omitted. +* @scan_type.endianness: little or big endian * @info_mask_separate: What information is to be exported that is specific to * this channel. * @info_mask_separate_available: What availability information is to be
Re: [PATCH 01/18] docs: can.rst: fix a footnote reference
In reply to Mauro Carvalho Chehab+ Robert Schwebel (who thankfully did the txt -> rst conversion for can.txt)
Quoted 7 lines · Mauro Carvalho Chehab
As stated at:
http://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html#footnotesA footnote should contain either a number, a reference or an auto number, e. g.:
[1], [#f1] or [#].
Quoted 7 lines
While using [*] accidentaly works for html, it fails for other document outputs. In particular, it causes an error with LaTeX output, causing all books after networking to not be built.
So, replace it by a valid syntax.
Signed-off-by Mauro Carvalho Chehab <[email protected]>
Thanks Mauro!
Best regards,
Oliver
Quoted 27 lines
--- Documentation/networking/can.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)Documentation/networking/can.rst +2
-2@@ -164,7 +164,7 @@ The Linux network devices (by default) just can handle the transmission and reception of media dependent frames. Due to the arbitration on the CAN bus the transmission of a low prio CAN-ID may be delayed by the reception of a high prio CAN frame. To -reflect the correct [*]_ traffic on the node the loopback of the sent +reflect the correct [#f1]_ traffic on the node the loopback of the sent data has to be performed right after a successful transmission. If the CAN network interface is not capable of performing the loopback for some reason the SocketCAN core can do this task as a fallback solution.@@ -175,7 +175,7 @@ networking behaviour for CAN applications. Due to some requests from the RT-SocketCAN group the loopback optionally may be disabled for each separate socket. See sockopts from the CAN RAW sockets in :ref:`socketcan-raw-sockets`. -.. [*] you really like to have this when you're running analyser +.. [#f1] you really like to have this when you're running analyser tools like 'candump' or 'cansniffer' on the (same) node.
Re: [PATCH 08/18] docs: driver-api: add clk documentation
In reply to Mauro Carvalho ChehabQuoted 4 lines · Mauro Carvalho Chehab
The
clk.rstis already in ReST format. So, move it to the driver-api guide, where it belongs.Signed-off-by Mauro Carvalho Chehab <[email protected]>
Re: [PATCH 02/18] docs: fix location of request_firmware & friends
In reply to Mauro Carvalho ChehabQuoted 7 lines · Mauro Carvalho Chehab
commit
5d6d1ddd2730("firmware: move firmware loader into its own directory") and other commits renamed the oldfirmware_class.cfile and split it into separate files, but documentation was not changed accordingly, causing Sphinx errors.Change the location accordingly at the documentation files.
Quoted 8 lines
While here, add a missing entry at
request_firmware.rstforrelease_firmware()function.Fixes 5d6d1ddd2730 ("firmware: move firmware loader into its own directory")Cc Kees Cook <[email protected]>Cc Luis R. Rodriguez <[email protected]>Cc Greg Kroah-Hartman <[email protected]>Signed-off-by Mauro Carvalho Chehab <[email protected]>
Re: [PATCH 03/18] docs: */index.rst: Add newer documents to their respective index.rst
In reply to Mauro Carvalho ChehabQuoted 7 lines · Mauro Carvalho Chehab
A number of new docs were added, but they're currently not on the
index.rstfrom the session they're supposed to be, causing Sphinx warnings.Add them.
Signed-off-by Mauro Carvalho Chehab <[email protected]>
Re: [PATCH 17/18] docs: uio-howto.rst: use a code block to solve a warning
In reply to Mauro Carvalho ChehabQuoted 3 lines · Mauro Carvalho Chehab
/devel/v4l/docs/Documentation/driver-api/uio-howto.rst:715: WARNING: Unexpected indentation.
Signed-off-by Mauro Carvalho Chehab <[email protected]>
Re: [PATCH 18/18] w1: w1_io.c: fix a kernel-doc warning
In reply to Mauro Carvalho ChehabHi
07.05.2018, 12:36, "Mauro Carvalho Chehab" <[email protected]>:
Quoted 4 lines
Add a blank line to avoid this Sphinx warning:
./drivers/w1/w1_io.c:197: WARNING: Definition list ends without a blank line; unexpected unindent.Signed-off-by Mauro Carvalho Chehab <[email protected]>
Looks good to me, thank you!
What tree should this be forwarded to, or folks from linux doc will pick it up?
Quoted 18 lines
---
drivers/w1/w1_io.c | 1 +1 file changed, 1 insertion(+)drivers/w1/w1_io.c +1
-1@@ -194,6 +194,7 @@ static u8 w1_read_bit(struct w1_master *dev) * bit 0 = id_bit * bit 1 = comp_bit * bit 2 = dir_taken + * * If both bits 0 & 1 are set, the search should be restarted. * * Return: bit fields - see above --2.17.0
Re: [PATCH 05/18] docs: core-api: add cachetlb documentation
In reply to Andrea ParriQuoted 14 lines · Andrea Parri
Quoted 4 lines · Mauro Carvalho Chehab
The cachetlb.txt is already in ReST format. So, move it to the core-api guide, where it belongs.
Signed-off-by Mauro Carvalho Chehab <[email protected]>Quoted 8 lines
--- Documentation/00-INDEX | 2 -- Documentation/{cachetlb.txt => core-api/cachetlb.rst} | 0 Documentation/core-api/index.rst | 1 + Documentation/memory-barriers.txt | 2 +- Documentation/translations/ko_KR/memory-barriers.txt | 2 +- 5 files changed, 3 insertions(+), 4 deletions(-) rename Documentation/{cachetlb.txt => core-api/cachetlb.rst} (100%)
Quoted 2 lines
I see a few "inline" references to the .txt file in -rc4 (see below):
I am not sure if you managed to update them too.
Side note, there's scripts/documentation-file-ref-check to grep the kernel tree for things that look like file references to Documentation/* and complain if they don't exist.
I get about 350+ hits with that, patches welcome! ;)
BR,
Jani.
Quoted 74 lines
./arch/microblaze/include/asm/cacheflush.h:/* Look at
Documentation/cachetlb.txt*/./arch/unicore32/include/asm/cacheflush.h: * SeeDocumentation/cachetlb.txtfor more information../arch/arm64/include/asm/cacheflush.h: * SeeDocumentation/cachetlb.txtfor more information. Please note that./arch/arm/include/asm/cacheflush.h: * SeeDocumentation/cachetlb.txtfor more information../arch/xtensa/include/asm/cacheflush.h: * (see alsoDocumentation/cachetlb.txt) ./arch/xtensa/include/asm/cacheflush.h:/* This is not required, seeDocumentation/cachetlb.txt*/Andrea
Quoted 59 lines
Documentation/00-INDEX +0
-2@@ -76,8 +76,6 @@ bus-devices/ - directory with info on TI GPMC (General Purpose Memory Controller) bus-virt-phys-mapping.txt - how to access I/O mapped memory from within device drivers. -cachetlb.txt - - describes the cache/TLB flushing interfaces Linux uses. cdrom/ - directory with information on the CD-ROM drivers that Linux has. cgroup-v1/Documentation/core-api/cachetlb.rst renamed from Documentation/cachetlb.txt +0
-0Documentation/core-api/index.rst +1
-0@@ -14,6 +14,7 @@ Core utilities kernel-api assoc_array atomic_ops + cachetlb refcount-vs-atomic cpu_hotplug idrDocumentation/memory-barriers.txt +1
-1@@ -2903,7 +2903,7 @@ is discarded from the CPU's cache and reloaded. To deal with this, the appropriate part of the kernel must invalidate the overlapping bits of the cache on each CPU. -See Documentation/cachetlb.txt for more information on cache management. +See Documentation/core-api/cachetlb.rst for more information on cache management. CACHE COHERENCY VS MMIODocumentation/translations/ko_KR/memory-barriers.txt +1
-1@@ -2846,7 +2846,7 @@ CPU 의 캐시에서 RAM 으로 쓰여지는 더티 캐시 라인에 의해 덮 문제를 해결하기 위해선, 커널의 적절한 부분에서 각 CPU 의 캐시 안의 문제가 되는 비트들을 무효화 시켜야 합니다. -캐시 관리에 대한 더 많은 정보를 위해선 Documentation/cachetlb.txt 를 +캐시 관리에 대한 더 많은 정보를 위해선 Documentation/core-api/cachetlb.rst 를 참고하세요.Signature · 1 line
2.17.0--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 1 line
Jani Nikula, Intel Open Source Technology Center
Re: [PATCH 02/18] docs: fix location of request_firmware & friends
In reply to Mauro Carvalho ChehabQuoted 28 lines · Mauro Carvalho Chehab
commit
5d6d1ddd2730("firmware: move firmware loader into its own directory") and other commits renamed the oldfirmware_class.cfile and split it into separate files, but documentation was not changed accordingly, causing Sphinx errors.Change the location accordingly at the documentation files.
While here, add a missing entry at
request_firmware.rstforrelease_firmware()function.Fixes 5d6d1ddd2730 ("firmware: move firmware loader into its own directory")Cc Kees Cook <[email protected]>Cc Luis R. Rodriguez <[email protected]>Cc Greg Kroah-Hartman <[email protected]>Signed-off-by Mauro Carvalho Chehab <[email protected]>--- Documentation/dell_rbu.txt | 4 ++-- .../driver-api/firmware/fallback-mechanisms.rst | 2 +- .../driver-api/firmware/request_firmware.rst | 17 +++++++++++------ Documentation/driver-api/infrastructure.rst | 2 +- Documentation/power/suspend-and-cpuhotplug.txt | 2 +- 5 files changed, 16 insertions(+), 11 deletions(-)Documentation/dell_rbu.txt +0
-0
Documentation/dell_rbu.txt read back the image downloaded. · line 128
Quoted 10 lines
Documentation/dell_rbu.txt +2
-2@@ -121,8 +121,8 @@ read back the image downloaded. .. note:: - This driver requires a patch for firmware_class.c which has the modified - request_firmware_nowait function. + This driver requires a patch for drivers/base/firmware_loader/main.c + which has the modified request_firmware_nowait() function. Also after updating the BIOS image a user mode application needs to execute code which sends the BIOS update request to the BIOS. So on the next reboot
This part looks good and is needed.
Documentation/driver-api/firmware/fallback-mechanisms.rst the firmware requested, and establishes it in the device hierarchy by · line 75
Quoted 10 lines
Documentation/driver-api/firmware/fallback-mechanisms.rst +1
-1@@ -72,7 +72,7 @@ the firmware requested, and establishes it in the device hierarchy by associating the device used to make the request as the device's parent. The sysfs directory's file attributes are defined and controlled through the new device's class (firmware_class) and group (fw_dev_attr_groups). -This is actually where the original firmware_class.c file name comes from, +This is actually where drivers/base/firmware_loader/fallback.c comes from,
Not this part.
What I meant to keep well documented here was not just only the old firmware file name for the code, but also the module name firmware_class, and its respective sysfs class name which is registered. From what I recall testing, we could not rename the module now because of this. I believe it had to do with the modular case, given the sysfs class could still be registered.
The fact that I forget the exact *issue* which prevented the module rename shows how important it is to document this.
Folks 10 years from now may wonder why the hell that name stuck, and the point was to document that the *original* loader was the sysfs fallback mechanism.
Quoted 8 lines
Documentation/driver-api/firmware/fallback-mechanisms.rst +0
-0as originally the only firmware loading mechanism available was the mechanism we now use as a fallback mechanism.Documentation/driver-api/firmware/request_firmware.rst +0
-0
Documentation/driver-api/firmware/request_firmware.rst an error is returned. · line 21
Quoted 6 lines
Documentation/driver-api/firmware/request_firmware.rst +1
-1@@ -17,19 +17,24 @@ an error is returned. request_firmware ---------------- -.. kernel-doc:: drivers/base/firmware_class.c +.. kernel-doc:: drivers/base/firmware_loader/main.c :functions: request_firmware
This is fixed on Hans de Goede's patch already merged on Greg's own tree.
Documentation/driver-api/firmware/request_firmware.rst an error is returned. · line 26
Quoted 5 lines
Documentation/driver-api/firmware/request_firmware.rst +1
-1request_firmware_direct ----------------------- -.. kernel-doc:: drivers/base/firmware_class.c +.. kernel-doc:: drivers/base/firmware_loader/main.c :functions: request_firmware_direct
This is fixed on Hans de Goede's patch already merged on Greg's own tree.
Documentation/driver-api/firmware/request_firmware.rst an error is returned. · line 31
Quoted 5 lines
Documentation/driver-api/firmware/request_firmware.rst +1
-1request_firmware_into_buf ------------------------- -.. kernel-doc:: drivers/base/firmware_class.c +.. kernel-doc:: drivers/base/firmware_loader/main.c :functions: request_firmware_into_buf
This is fixed on Hans de Goede's patch already merged on Greg's own tree.
Documentation/driver-api/firmware/request_firmware.rst an error is returned. · line 36
Quoted 4 lines
Documentation/driver-api/firmware/request_firmware.rst +4
-0+release_firmware +---------------- +.. kernel-doc:: drivers/base/firmware_loader/main.c + :functions: release_firmware
This is fixed on Hans de Goede's patch already merged on Greg's own tree.
Documentation/driver-api/firmware/request_firmware.rst in atomic contexts. · line 50
Quoted 11 lines
Documentation/driver-api/firmware/request_firmware.rst +2
-1+ Asynchronous firmware requests ==============================@@ -41,7 +46,7 @@ in atomic contexts. request_firmware_nowait ----------------------- -.. kernel-doc:: drivers/base/firmware_class.c +.. kernel-doc:: drivers/base/firmware_loader/main.c :functions: request_firmware_nowait
This is fixed on Hans de Goede's patch already merged on Greg's own tree.
Documentation/driver-api/firmware/request_firmware.rst this can be done with firmware_request_cache() insted of requesting for the · line 64
Quoted 11 lines
Documentation/driver-api/firmware/request_firmware.rst +2
-2Special optimizations on reboot@@ -54,8 +59,8 @@ this can be done with firmware_request_cache() insted of requesting for the firmare to be loaded. firmware_request_cache() ------------------------ -.. kernel-doc:: drivers/base/firmware_class.c +------------------------ +.. kernel-doc:: drivers/base/firmware_loader/main.c :functions: firmware_request_cache
This is fixed on Hans de Goede's patch already merged on Greg's own tree.
Documentation/driver-api/infrastructure.rst Device Drivers Base · line 31
Quoted 12 lines
Documentation/driver-api/firmware/request_firmware.rst +0
-0request firmware API expected driver useDocumentation/driver-api/infrastructure.rst +1
-1@@ -28,7 +28,7 @@ Device Drivers Base .. kernel-doc:: drivers/base/node.c :internal: -.. kernel-doc:: drivers/base/firmware_class.c +.. kernel-doc:: drivers/base/firmware_loader/main.c
This is fixed on Hans de Goede's patch already merged on Greg's own tree.
Documentation/power/suspend-and-cpuhotplug.txt update on the CPUs, as discussed below: · line 171
Quoted 13 lines
Documentation/driver-api/infrastructure.rst +0
-0:export: .. kernel-doc:: drivers/base/transport_class.cDocumentation/power/suspend-and-cpuhotplug.txt +1
-1@@ -168,7 +168,7 @@ update on the CPUs, as discussed below: [Please bear in mind that the kernel requests the microcode images from userspace, using the request_firmware() function defined in -drivers/base/firmware_class.c] +drivers/base/firmware_loader/main.c]
This is fixed on Hans de Goede's patch already merged on Greg's own tree.
Luis
Jonathan Corbet
maintainerRe: [PATCH 06/18] docs: core-api: add cgroup-v2 documentation
In reply to Mauro Carvalho ChehabQuoted 4 lines · On Mon, 7 May 2018 06:35:42 -0300 Mauro Carvalho Chehab…
The cgroup-v2.txt is already in ReST format. So, move it to the core-api guide, where it belongs.
Signed-off-by Mauro Carvalho Chehab <[email protected]>
Honestly, this seems to me like sysadmin material, so I think it should go into the admin guide instead.
Actually, looking at the patch, it seems you agree - it's just the changelog that's wrong :)
I could fix that, but it should probably be posted with a CC to Tejun first.
Thanks,
jon
Re: [PATCH 03/18] docs: */index.rst: Add newer documents to their respective index.rst
In reply to Mauro Carvalho ChehabQuoted 7 lines · On Mon, 7 May 2018 06:35:39 -0300 Mauro Carvalho Chehab…
A number of new docs were added, but they're currently not on the
index.rstfrom the session they're supposed to be, causing Sphinx warnings.Add them.
Signed-off-by Mauro Carvalho Chehab <[email protected]>
I've applied this one, thanks.
jon
Re: [PATCH 04/18] docs: admin-guide: add bcache documentation
In reply to Mauro Carvalho ChehabQuoted 4 lines · On Mon, 7 May 2018 06:35:40 -0300 Mauro Carvalho Chehab…
The bcache.txt is already in ReST format. So, move it to the admin guide, where it belongs.
Signed-off-by Mauro Carvalho Chehab <[email protected]>
Applied, thanks.
jon
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH 05/18] docs: core-api: add cachetlb documentation
In reply to Jani NikulaHi Jani,
Quoted 15 lines · Jani Nikula
Quoted 14 lines · Andrea Parri
Quoted 12 lines · Mauro Carvalho Chehab
The cachetlb.txt is already in ReST format. So, move it to the core-api guide, where it belongs.
Signed-off-by Mauro Carvalho Chehab <[email protected]>--- Documentation/00-INDEX | 2 -- Documentation/{cachetlb.txt => core-api/cachetlb.rst} | 0 Documentation/core-api/index.rst | 1 + Documentation/memory-barriers.txt | 2 +- Documentation/translations/ko_KR/memory-barriers.txt | 2 +- 5 files changed, 3 insertions(+), 4 deletions(-) rename Documentation/{cachetlb.txt => core-api/cachetlb.rst} (100%)
Quoted 8 lines
Quoted 2 lines
I see a few "inline" references to the .txt file in -rc4 (see below):
I am not sure if you managed to update them too.Side note, there's
scripts/documentation-file-ref-checkto grep the kernel tree for things that look like file references toDocumentation/*and complain if they don't exist.I get about 350+ hits with that, patches welcome! ;)
Thanks for pointing out the script/results.
It's also worth stressing, I think, the fact that some of those are from the MAINTAINERS file; I stumbled accross one of them yesterday:
http://lkml.kernel.org/r/1525707655-3542-1-git-send-email-andrea.parri@amarulasolutions.com
False positives apart (e.g., the four references in tools/memory-model/), those are regressions from my POV: please do not (consiously) merge more!
Andrea
Quoted 83 lines
BR,
Jani.Quoted 74 lines
./arch/microblaze/include/asm/cacheflush.h:/* Look at
Documentation/cachetlb.txt*/./arch/unicore32/include/asm/cacheflush.h: * SeeDocumentation/cachetlb.txtfor more information../arch/arm64/include/asm/cacheflush.h: * SeeDocumentation/cachetlb.txtfor more information. Please note that./arch/arm/include/asm/cacheflush.h: * SeeDocumentation/cachetlb.txtfor more information../arch/xtensa/include/asm/cacheflush.h: * (see alsoDocumentation/cachetlb.txt) ./arch/xtensa/include/asm/cacheflush.h:/* This is not required, seeDocumentation/cachetlb.txt*/Andrea
Quoted 59 lines
Documentation/00-INDEX +0
-2@@ -76,8 +76,6 @@ bus-devices/ - directory with info on TI GPMC (General Purpose Memory Controller) bus-virt-phys-mapping.txt - how to access I/O mapped memory from within device drivers. -cachetlb.txt - - describes the cache/TLB flushing interfaces Linux uses. cdrom/ - directory with information on the CD-ROM drivers that Linux has. cgroup-v1/Documentation/core-api/cachetlb.rst renamed from Documentation/cachetlb.txt +0
-0Documentation/core-api/index.rst +1
-0@@ -14,6 +14,7 @@ Core utilities kernel-api assoc_array atomic_ops + cachetlb refcount-vs-atomic cpu_hotplug idrDocumentation/memory-barriers.txt +1
-1@@ -2903,7 +2903,7 @@ is discarded from the CPU's cache and reloaded. To deal with this, the appropriate part of the kernel must invalidate the overlapping bits of the cache on each CPU. -See Documentation/cachetlb.txt for more information on cache management. +See Documentation/core-api/cachetlb.rst for more information on cache management. CACHE COHERENCY VS MMIODocumentation/translations/ko_KR/memory-barriers.txt +1
-1@@ -2846,7 +2846,7 @@ CPU 의 캐시에서 RAM 으로 쓰여지는 더티 캐시 라인에 의해 덮 문제를 해결하기 위해선, 커널의 적절한 부분에서 각 CPU 의 캐시 안의 문제가 되는 비트들을 무효화 시켜야 합니다. -캐시 관리에 대한 더 많은 정보를 위해선 Documentation/cachetlb.txt 를 +캐시 관리에 대한 더 많은 정보를 위해선 Documentation/core-api/cachetlb.rst 를 참고하세요.Signature · 1 line
2.17.0--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.htmlSignature · 1 line
Jani Nikula, Intel Open Source Technology Center
Jonathan Corbet
maintainerRe: [PATCH 05/18] docs: core-api: add cachetlb documentation
In reply to Mauro Carvalho ChehabQuoted 4 lines · On Mon, 7 May 2018 06:35:41 -0300 Mauro Carvalho Chehab…
The cachetlb.txt is already in ReST format. So, move it to the core-api guide, where it belongs.
Signed-off-by Mauro Carvalho Chehab <[email protected]>
I think we could do a better job of this by integrating it with the kerneldoc comments. Meanwhile, though, this is a step in the right direction, so I've applied it, thanks.
jon
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH 07/18] docs: core-api: add circular-buffers documentation
In reply to Mauro Carvalho ChehabQuoted 4 lines · On Mon, 7 May 2018 06:35:43 -0300 Mauro Carvalho Chehab…
The circular-buffers.txt is already in ReST format. So, move it to the core-api guide, where it belongs.
Signed-off-by Mauro Carvalho Chehab <[email protected]>
Applied, thanks.
jon
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH 08/18] docs: driver-api: add clk documentation
In reply to Mauro Carvalho ChehabQuoted 4 lines · On Mon, 7 May 2018 06:35:44 -0300 Mauro Carvalho Chehab…
The
clk.rstis already in ReST format. So, move it to the driver-api guide, where it belongs.Signed-off-by Mauro Carvalho Chehab <[email protected]>
Applied, thanks.
jon
Jonathan Corbet
maintainerQuoted 7 lines · On Mon, 7 May 2018 06:35:36 -0300 Mauro Carvalho Chehab…
I decided to give a try with Sphinx last stable version (1.17.4), and noticed several issues. The worse one was with the networking book: a non-standard footnote there with [*] instead of a number causes it to break PDF building.
So, I took some spare time to address some warnings all over the tree, and moved a few text documents to a book.
OK, I've applied the ones that seem to make sense for me to take now. There's comments on the firmware one, and I'd rather have Tejun's OK for the cgroup one. The code-comment changes should probably go via the usual maintainers.
Quoted 3 lines
I with
I had more time to move the other ones and to solve other warnings.
You and me both - but each step helps!
Thanks,
jon
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 05/18] docs: core-api: add cachetlb documentation
In reply to Andrea ParriQuoted 29 lines · Andrea Parri
Hi Jani,
Quoted 15 lines · Jani Nikula
Quoted 14 lines · Andrea Parri
Quoted 12 lines · Mauro Carvalho Chehab
The cachetlb.txt is already in ReST format. So, move it to the core-api guide, where it belongs.
Signed-off-by Mauro Carvalho Chehab <[email protected]>--- Documentation/00-INDEX | 2 -- Documentation/{cachetlb.txt => core-api/cachetlb.rst} | 0 Documentation/core-api/index.rst | 1 + Documentation/memory-barriers.txt | 2 +- Documentation/translations/ko_KR/memory-barriers.txt | 2 +- 5 files changed, 3 insertions(+), 4 deletions(-) rename Documentation/{cachetlb.txt => core-api/cachetlb.rst} (100%)Quoted 8 lines
Quoted 2 lines
I see a few "inline" references to the .txt file in -rc4 (see below):
I am not sure if you managed to update them too.Side note, there's
scripts/documentation-file-ref-checkto grep the kernel tree for things that look like file references toDocumentation/*and complain if they don't exist.I get about 350+ hits with that, patches welcome! ;)
Thanks for pointing out the script/results.
Quoted 7 lines
It's also worth stressing, I think, the fact that some of those are from the
MAINTAINERSfile; I stumbled accross one of them yesterday:http://lkml.kernel.org/r/1525707655-3542-1-git-send-email-andrea.parri@amarulasolutions.com
False positives apart (e.g., the four references in
tools/memory-model/), those are regressions from my POV: please do not (consiously) merge more!
s/four/five
Andrea
Quoted 87 lines
Andrea
Quoted 83 lines
BR,
Jani.Quoted 74 lines
./arch/microblaze/include/asm/cacheflush.h:/* Look at
Documentation/cachetlb.txt*/./arch/unicore32/include/asm/cacheflush.h: * SeeDocumentation/cachetlb.txtfor more information../arch/arm64/include/asm/cacheflush.h: * SeeDocumentation/cachetlb.txtfor more information. Please note that./arch/arm/include/asm/cacheflush.h: * SeeDocumentation/cachetlb.txtfor more information../arch/xtensa/include/asm/cacheflush.h: * (see alsoDocumentation/cachetlb.txt) ./arch/xtensa/include/asm/cacheflush.h:/* This is not required, seeDocumentation/cachetlb.txt*/Andrea
Quoted 59 lines
Documentation/00-INDEX +0
-2@@ -76,8 +76,6 @@ bus-devices/ - directory with info on TI GPMC (General Purpose Memory Controller) bus-virt-phys-mapping.txt - how to access I/O mapped memory from within device drivers. -cachetlb.txt - - describes the cache/TLB flushing interfaces Linux uses. cdrom/ - directory with information on the CD-ROM drivers that Linux has. cgroup-v1/Documentation/core-api/cachetlb.rst renamed from Documentation/cachetlb.txt +0
-0Documentation/core-api/index.rst +1
-0@@ -14,6 +14,7 @@ Core utilities kernel-api assoc_array atomic_ops + cachetlb refcount-vs-atomic cpu_hotplug idrDocumentation/memory-barriers.txt +1
-1@@ -2903,7 +2903,7 @@ is discarded from the CPU's cache and reloaded. To deal with this, the appropriate part of the kernel must invalidate the overlapping bits of the cache on each CPU. -See Documentation/cachetlb.txt for more information on cache management. +See Documentation/core-api/cachetlb.rst for more information on cache management. CACHE COHERENCY VS MMIODocumentation/translations/ko_KR/memory-barriers.txt +1
-1@@ -2846,7 +2846,7 @@ CPU 의 캐시에서 RAM 으로 쓰여지는 더티 캐시 라인에 의해 덮 문제를 해결하기 위해선, 커널의 적절한 부분에서 각 CPU 의 캐시 안의 문제가 되는 비트들을 무효화 시켜야 합니다. -캐시 관리에 대한 더 많은 정보를 위해선 Documentation/cachetlb.txt 를 +캐시 관리에 대한 더 많은 정보를 위해선 Documentation/core-api/cachetlb.rst 를 참고하세요.Signature · 1 line
2.17.0--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.htmlSignature · 1 line
Jani Nikula, Intel Open Source Technology Center
Re: [PATCH 05/18] docs: core-api: add cachetlb documentation
In reply to Jonathan CorbetQuoted 11 lines · Jonathan Corbet
Quoted 4 lines · On Mon, 7 May 2018 06:35:41 -0300 Mauro Carvalho Chehab…
The cachetlb.txt is already in ReST format. So, move it to the core-api guide, where it belongs.
Signed-off-by Mauro Carvalho Chehab <[email protected]>I think we could do a better job of this by integrating it with the kerneldoc comments. Meanwhile, though, this is a step in the right direction, so I've applied it, thanks.
This depends on what you mean by "the right direction": IMO, breaking in-sources references and get_maintainer.pl does not qualify as such.
Andrea
Quoted 2 lines
jon
Quoted 8 lines · Jonathan Corbet
Quoted 5 lines · On Mon, 7 May 2018 06:35:36 -0300 Mauro Carvalho Chehab…
I decided to give a try with Sphinx last stable version (1.17.4), and noticed several issues. The worse one was with the networking book: a non-standard footnote there with [*] instead of a number causes it to break PDF building.
Quoted 5 lines
Quoted 2 lines
So, I took some spare time to address some warnings all over the tree, and moved a few text documents to a book.
OK, I've applied the ones that seem to make sense for me to take now. There's comments on the firmware one,
I'll fold in the fixes for the firmware API which do apply to my queue.
Luis
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 05/18] docs: core-api: add cachetlb documentation
In reply to Mauro Carvalho ChehabEm Tue, 8 May 2018 15:05:07 -0300
Mauro Carvalho Chehab <[email protected]> escreveu:
Quoted 29 lines
Em Tue, 08 May 2018 17:40:56 +0300
Jani Nikula <[email protected]> escreveu:Quoted 15 lines · Andrea Parri
Quoted 14 lines · Mauro Carvalho Chehab
Quoted 12 lines
The cachetlb.txt is already in ReST format. So, move it to the core-api guide, where it belongs.
Signed-off-by Mauro Carvalho Chehab <[email protected]>--- Documentation/00-INDEX | 2 -- Documentation/{cachetlb.txt => core-api/cachetlb.rst} | 0 Documentation/core-api/index.rst | 1 + Documentation/memory-barriers.txt | 2 +- Documentation/translations/ko_KR/memory-barriers.txt | 2 +- 5 files changed, 3 insertions(+), 4 deletions(-) rename Documentation/{cachetlb.txt => core-api/cachetlb.rst} (100%)Quoted 8 lines
Quoted 2 lines
I see a few "inline" references to the .txt file in -rc4 (see below):
I am not sure if you managed to update them too.Side note, there's
scripts/documentation-file-ref-checkto grep the kernel tree for things that look like file references toDocumentation/*and complain if they don't exist.I get about 350+ hits with that, patches welcome! ;)
This small script fixes a bunch of such errors:
Quoted 13 lines
scripts/documentation-file-ref-check 2>broken_refs
for i in $(cat broken_refs|cut -d: -f 2|grep -v devicetree|sort|uniq|grep \\.txt); do
rst=$(basename $i)
rst=${rst/.txt/.rst}
f=$(find . -name $rst)
f=${f#./}
if [ "$f" != "" ]; then
echo "Replacing $i to $f"
for j in $(git grep -l $i); do
sed "s@$i@$f@g" -i $j
done
fi
doneIt follows an improvement to the above script that shows also what it didn't find as a ReST file, and the ones that have common names with multiple matches.
I guess we could integrate something like that at scripts/documentation-file-ref-check, in order to allow auto-correcting renamed .txt files.
Regards,
Mauro
#!/bin/bash
scripts/documentation-file-ref-check 2>broken_refs
for i in $(cat broken_refs|cut -d: -f 2|grep -v devicetree|sort|uniq|grep \\.txt); do
rst=$(basename $i)
rst=${rst/.txt/.rst}
f=$(find . -name $rst)
if [ "$f" == "" ]; then
echo "ERROR: Didn't find a .rst replacement for $i"
elif [ "$(echo $f | grep ' ')" != "" ]; then
echo "ERROR: Found multiple possible replacements for $i:"
for j in $f; do
echo " $j"
done
else
echo "Replacing $i to $f"
f=${f#./}
for j in $(git grep -l $i); do
sed "s@$i@$f@g" -i $j
done
fidone
Thanks,
Mauro
Re: [PATCH 05/18] docs: core-api: add cachetlb documentation
In reply to Jani NikulaEm Tue, 08 May 2018 17:40:56 +0300
Jani Nikula <[email protected]> escreveu:
Quoted 15 lines · Andrea Parri
Quoted 14 lines · Mauro Carvalho Chehab
Quoted 12 lines
The cachetlb.txt is already in ReST format. So, move it to the core-api guide, where it belongs.
Signed-off-by Mauro Carvalho Chehab <[email protected]>--- Documentation/00-INDEX | 2 -- Documentation/{cachetlb.txt => core-api/cachetlb.rst} | 0 Documentation/core-api/index.rst | 1 + Documentation/memory-barriers.txt | 2 +- Documentation/translations/ko_KR/memory-barriers.txt | 2 +- 5 files changed, 3 insertions(+), 4 deletions(-) rename Documentation/{cachetlb.txt => core-api/cachetlb.rst} (100%)
Quoted 8 lines
Quoted 2 lines
I see a few "inline" references to the .txt file in -rc4 (see below):
I am not sure if you managed to update them too.Side note, there's
scripts/documentation-file-ref-checkto grep the kernel tree for things that look like file references toDocumentation/*and complain if they don't exist.I get about 350+ hits with that, patches welcome! ;)
This small script fixes a bunch of such errors:
scripts/documentation-file-ref-check 2>broken_refs
for i in $(cat broken_refs|cut -d: -f 2|grep -v devicetree|sort|uniq|grep \\.txt); do
rst=$(basename $i)
rst=${rst/.txt/.rst}
f=$(find . -name $rst)
f=${f#./}
if [ "$f" != "" ]; then
echo "Replacing $i to $f"
for j in $(git grep -l $i); do
sed "s@$i@$f@g" -i $j
done
fi
doneThanks,
Mauro
[PATCH] docs: Fix some broken references
As we move stuff around, some doc references are broken. Fix some of them via this script:
scripts/documentation-file-ref-check 2>broken_refs
for i in $(cat broken_refs|cut -d: -f 2|grep -v devicetree|sort|uniq|grep \\.txt); do
rst=$(basename $i)
rst=${rst/.txt/.rst}
f=$(find . -name $rst)
f=${f#./}
if [ "$f" != "" ]; then
echo "Replacing $i to $f"
for j in $(git grep -l $i); do
sed "s@$i@$f@g" -i $j
done
fi
doneDocumentation/admin-guide/kernel-parameters.txt +2 -2
@@ -4259,7 +4259,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.
@@ -4274,7 +4274,7 @@ trace_options=stacktrace - See also Documentation/trace/ftrace.txt "trace options" + See also Documentation/trace/ftrace.rst "trace options" section. tp_printk[FTRACE]
Documentation/devicetree/bindings/input/rotary-encoder.txt +1 -1
@@ -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:
Documentation/driver-api/gpio/consumer.rst +1 -1
@@ -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:
Documentation/kprobes.txt +2 -2
@@ -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
Documentation/trace/coresight.txt +1 -1
@@ -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
Documentation/trace/events.rst +1 -1
@@ -338,7 +338,7 @@ used for conditionally invoking triggers. The syntax for event triggers is roughly based on the syntax for set_ftrace_filter 'ftrace filter commands' (see the 'Filter commands' -section of Documentation/trace/ftrace.txt), but there are major +section of Documentation/trace/ftrace.rst), but there are major differences and the implementation isn't currently tied to it in any way, so beware about making generalizations between the two.
Documentation/trace/ftrace-uses.rst +1 -1
@@ -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:
Documentation/trace/histogram.txt +1 -1
@@ -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
Documentation/trace/intel_th.rst +1 -1
@@ -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
Documentation/trace/tracepoint-analysis.rst +3 -3
@@ -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::
@@ -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
@@ -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.
Documentation/translations/zh_CN/magic-number.txt +2 -2
@@ -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
@@ -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。如果你使用英文交流有困难的话,也可 以向中文版维护者求助。如果本翻译更新不及时或者翻译存在问题,请联系中文版维护者。
Documentation/translations/zh_CN/video4linux/omap3isp.txt +2 -2
@@ -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
@@ -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 的中文翻译 如果想评论或更新本文的内容,请直接联系原文档的维护者。如果你使用英文 交流有困难的话,也可以向中文版维护者求助。如果本翻译更新不及时或者翻
MAINTAINERS +6 -6
@@ -3347,7 +3347,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
@@ -6434,7 +6434,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]>
@@ -7314,7 +7314,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)
@@ -10115,7 +10115,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]>
@@ -13624,7 +13624,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
@@ -14305,7 +14305,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
arch/Kconfig +1 -1
@@ -399,7 +399,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. config HAVE_GCC_PLUGINS bool
arch/arm/include/asm/cacheflush.h +1 -1
@@ -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. *
arch/arm64/include/asm/cacheflush.h +1 -1
@@ -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. *
arch/microblaze/include/asm/cacheflush.h +1 -1
@@ -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.
arch/um/Kconfig.um +1 -1
@@ -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
arch/unicore32/include/asm/cacheflush.h +1 -1
@@ -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. *
arch/x86/entry/vsyscall/vsyscall_64.c +1 -1
@@ -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.
arch/xtensa/include/asm/cacheflush.h +2 -2
@@ -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) && \
@@ -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)
certs/Kconfig +1 -1
@@ -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"
drivers/char/Kconfig +1 -1
@@ -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"
drivers/clk/clk.c +2 -2
@@ -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>
@@ -2827,7 +2827,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)) {
drivers/clk/ingenic/cgu.h +1 -1
@@ -190,7 +190,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 */
drivers/gpu/vga/Kconfig +1 -1
@@ -6,7 +6,7 @@ config VGA_ARB Some "legacy" VGA devices implemented on PCI typically have the same hard-decoded addresses as they did on ISA. When multiple PCI devices are accessed at same time they need some kind of coordination. Please - see Documentation/vgaarbiter.txt for more details. Select this to + see Documentation/gpu/vgaarbiter.rst for more details. Select this to enable VGA arbiter. config VGA_ARB_MAX_GPUS
drivers/gpu/vga/vgaarb.c +1 -1
@@ -1,6 +1,6 @@/* * vgaarb.c: Implements the VGA arbitration. For details refer to -* Documentation/vgaarbiter.txt +* Documentation/gpu/vgaarbiter.rst * * * (C) Copyright 2005 Benjamin Herrenschmidt <[email protected]>
drivers/input/joystick/Kconfig +5 -5
@@ -214,7 +214,7 @@ config JOYSTICK_DB9 gamepad, Sega Saturn gamepad, or a Multisystem -- Atari, Amiga, Commodore, Amstrad CPC joystick connected to your parallel port. For more information on how to use the driver please read - <file:Documentation/input/joystick-parport.txt>. + <file:Documentation/input/devices/joystick-parport.rst>. To compile this driver as a module, choose M here: the module will be called db9.
@@ -229,7 +229,7 @@ config JOYSTICK_GAMECON Sony PlayStation gamepad or a Multisystem -- Atari, Amiga, Commodore, Amstrad CPC joystick connected to your parallel port. For more information on how to use the driver please read - <file:Documentation/input/joystick-parport.txt>. + <file:Documentation/input/devices/joystick-parport.rst>. To compile this driver as a module, choose M here: the module will be called gamecon.
@@ -241,7 +241,7 @@ config JOYSTICK_TURBOGRAFX Say Y here if you have the TurboGraFX interface by Steffen Schwenke, and want to use it with Multisystem -- Atari, Amiga, Commodore, Amstrad CPC joystick. For more information on how to use the driver - please read <file:Documentation/input/joystick-parport.txt>. + please read <file:Documentation/input/devices/joystick-parport.rst>. To compile this driver as a module, choose M here: the module will be called turbografx.
@@ -287,7 +287,7 @@ config JOYSTICK_XPAD and/or "Event interface support" (CONFIG_INPUT_EVDEV) as well. For information about how to connect the X-Box pad to USB, see - <file:Documentation/input/xpad.txt>. + <file:Documentation/input/devices/xpad.rst>. To compile this driver as a module, choose M here: the module will be called xpad.
@@ -313,7 +313,7 @@ config JOYSTICK_WALKERA0701 Say Y or M here if you have a Walkera WK-0701 transmitter which is supplied with a ready to fly Walkera helicopters such as HM36, HM37, HM60 and want to use it via parport as a joystick. More - information is available: <file:Documentation/input/walkera0701.txt> + information is available: <file:Documentation/input/devices/walkera0701.rst> To compile this driver as a module, choose M here: the module will be called walkera0701.
drivers/input/joystick/iforce/Kconfig +1 -1
@@ -28,5 +28,5 @@ config JOYSTICK_IFORCE_232 You will need an additional utility called inputattach, see <file:Documentation/input/joystick.txt> - and <file:Documentation/input/ff.txt>. + and <file:Documentation/input/ff.rst>.
drivers/input/joystick/walkera0701.c +1 -1
@@ -3,7 +3,7 @@* * Copyright (c) 2008 Peter Popovec * -* More about driver: <file:Documentation/input/walkera0701.txt> +* More about driver: <file:Documentation/input/devices/walkera0701.rst> */ /*
drivers/input/misc/Kconfig +2 -2
@@ -411,7 +411,7 @@ config INPUT_YEALINK usb sound driver, so you might want to enable that as well. For information about how to use these additional functions, see - <file:Documentation/input/yealink.txt>. + <file:Documentation/input/devices/yealink.rst>. To compile this driver as a module, choose M here: the module will be called yealink.
@@ -595,7 +595,7 @@ config INPUT_GPIO_ROTARY_ENCODER depends on GPIOLIB || COMPILE_TEST help Say Y here to add support for rotary encoders connected to GPIO lines. - Check file:Documentation/input/rotary-encoder.txt for more + Check file:Documentation/input/devices/rotary-encoder.rst for more information. To compile this driver as a module, choose M here: the
drivers/input/misc/rotary_encoder.c +1 -1
@@ -7,7 +7,7 @@* state machine code inspired by code from Tim Ruetz * * A generic driver for rotary encoders connected to GPIO lines. -* See file:Documentation/input/rotary-encoder.txt for more information +* See file:Documentation/input/devices/rotary-encoder.rst for more information * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as
drivers/input/mouse/Kconfig +3 -3
@@ -129,7 +129,7 @@ config MOUSE_PS2_ELANTECH This driver exposes some configuration registers via sysfs entries. For further information, - see <file:Documentation/input/elantech.txt>. + see <file:Documentation/input/devices/elantech.rst>. If unsure, say N.
@@ -216,7 +216,7 @@ config MOUSE_APPLETOUCH scrolling in X11. For further information, see - <file:Documentation/input/appletouch.txt>. + <file:Documentation/input/devices/appletouch.rst>. To compile this driver as a module, choose M here: the module will be called appletouch.
@@ -239,7 +239,7 @@ config MOUSE_BCM5974 The interface is currently identical to the appletouch interface, for further information, see - <file:Documentation/input/appletouch.txt>. + <file:Documentation/input/devices/appletouch.rst>. To compile this driver as a module, choose M here: the module will be called bcm5974.
drivers/input/mouse/alps.c +1 -1
@@ -212,7 +212,7 @@ static void alps_set_abs_params_v7(struct alps_data *priv,static void alps_set_abs_params_ss4_v2 (struct alps_data *priv,struct input_dev *dev1); -/* Packet formats are described in Documentation/input/alps.txt */ +/* Packet formats are described in Documentation/input/devices/alps.rst */ static bool alps_is_valid_first_byte (struct alps_data *priv,unsigned char data)
drivers/input/touchscreen/wm97xx-core.c +1 -1
@@ -68,7 +68,7 @@* The default values correspond to Mainstone II in QVGA mode * * Please read -* Documentation/input/input-programming.txt for more details. +* Documentation/input/input-programming.rst for more details. */ static int abs_x[3 ] = {150 ,4000 ,5 };
drivers/lightnvm/pblk-rb.c +1 -1
@@ -38,7 +38,7 @@ void pblk_rb_data_free(struct pblk_rb *rb)/* * Initialize ring buffer. The data and metadata buffers must be previously * allocated and their size must be a power of two -* (Documentation/circular-buffers.txt) +* (Documentation/core-api/circular-buffers.rst) */ int pblk_rb_init (struct pblk_rb *rb,struct pblk_rb_entry *rb_entry_base,unsigned int power_size,unsigned int power_seg_sz)
drivers/md/bcache/Kconfig +1 -1
@@ -5,7 +5,7 @@ config BCACHE Allows a block device to be used as cache for other devices; uses a btree for indexing and the layout is optimized for SSDs. - See Documentation/bcache.txt for details. + See Documentation/admin-guide/bcache.rst for details. config BCACHE_DEBUG bool "Bcache debugging"
drivers/md/bcache/btree.c +1 -1
@@ -18,7 +18,7 @@* as keys are inserted we only sort the pages that have not yet been written. * When garbage collection is run, we resort the entire node. * -* All configuration is done via sysfs; see Documentation/bcache.txt. +* All configuration is done via sysfs; see Documentation/admin-guide/bcache.rst. */ #include "bcache.h"
drivers/md/bcache/extents.c +1 -1
@@ -18,7 +18,7 @@* as keys are inserted we only sort the pages that have not yet been written. * When garbage collection is run, we resort the entire node. * -* All configuration is done via sysfs; see Documentation/bcache.txt. +* All configuration is done via sysfs; see Documentation/admin-guide/bcache.rst. */ #include "bcache.h"
drivers/media/dvb-core/dvb_ringbuffer.c +1 -1
@@ -55,7 +55,7 @@ int dvb_ringbuffer_empty(struct dvb_ringbuffer *rbuf)* this pairs with smp_store_release() in dvb_ringbuffer_write(), * dvb_ringbuffer_write_user(), or dvb_ringbuffer_reset() * -* for memory barriers also see Documentation/circular-buffers.txt +* for memory barriers also see Documentation/core-api/circular-buffers.rst */ return (rbuf->pread ==smp_load_acquire (&rbuf->pwrite)); }
drivers/media/pci/meye/Kconfig +1 -1
@@ -4,7 +4,7 @@ config VIDEO_MEYE ---help--- This is the video4linux driver for the Motion Eye camera found in the Vaio Picturebook laptops. Please read the material in - <file:Documentation/video4linux/meye.txt> for more information. + <file:Documentation/media/v4l-drivers/meye.rst> for more information. If you say Y or M here, you need to say Y or M to "Sony Laptop Extras" in the misc device section.
drivers/media/platform/pxa_camera.c +2 -2
@@ -1021,7 +1021,7 @@ static void pxa_camera_wakeup(struct pxa_camera_dev *pcdev,* - a videobuffer is queued on the pcdev->capture list * * Please check the "DMA hot chaining timeslice issue" in -* Documentation/video4linux/pxa_camera.txt +* Documentation/media/v4l-drivers/pxa_camera.rst * * Context: should only be called within the dma irq handler */
@@ -1443,7 +1443,7 @@ static void pxac_vb2_queue(struct vb2_buffer *vb)/* * Please check the DMA prepared buffer structure in : -* Documentation/video4linux/pxa_camera.txt +* Documentation/media/v4l-drivers/pxa_camera.rst * Please check also in pxa_camera_check_link_miss() to understand why DMA chain * modification while DMA chain is running will work anyway. */
drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c +1 -1
@@ -1111,7 +1111,7 @@ static void sh_mobile_ceu_put_formats(struct soc_camera_device *icd)/* * CEU can scale and crop, but we don't want to waste bandwidth and kill the * framerate by always requesting the maximum image from the client. See -* Documentation/video4linux/sh_mobile_ceu_camera.txt for a description of +* Documentation/media/v4l-drivers/sh_mobile_ceu_camera.rst for a description of * scaling and cropping algorithms and for the meaning of referenced here steps. */ static int sh_mobile_ceu_set_selection(struct soc_camera_device *icd,
drivers/media/radio/Kconfig +1 -1
@@ -274,7 +274,7 @@ config RADIO_RTRACK been reported to be used by these cards. More information is contained in the file - <file:Documentation/video4linux/radiotrack.txt>. + <file:Documentation/media/v4l-drivers/radiotrack.rst>. To compile this driver as a module, choose M here: the module will be called radio-aimslab.
drivers/media/radio/si470x/Kconfig +1 -1
@@ -15,7 +15,7 @@ config USB_SI470X Please have a look at the documentation, especially on how to redirect the audio stream from the radio to your sound device: - Documentation/video4linux/si470x.txt + Documentation/media/v4l-drivers/si470x.rst Say Y here if you want to connect this type of radio to your computer's USB port.
drivers/media/usb/dvb-usb-v2/lmedm04.c +1 -1
@@ -21,7 +21,7 @@* * LME2510C + M88RS2000 * -* For firmware see Documentation/dvb/lmedm04.txt +* For firmware see Documentation/media/dvb-drivers/lmedm04.rst * * I2C addresses: * 0xd0 - STV0288 - Demodulator
drivers/media/usb/zr364xx/Kconfig +1 -1
@@ -6,7 +6,7 @@ config USB_ZR364XX ---help--- Say Y here if you want to connect this type of camera to your computer's USB port. - See <file:Documentation/video4linux/zr364xx.txt> for more info + See <file:Documentation/media/v4l-drivers/zr364xx.rst> for more info and list of supported cameras. To compile this driver as a module, choose M here: the
drivers/parport/Kconfig +3 -3
@@ -20,7 +20,7 @@ menuconfig PARPORT drive, PLIP link (Parallel Line Internet Protocol is mainly used to create a mini network by connecting the parallel ports of two local machines) etc., then you need to say Y here; please read - <file:Documentation/parport.txt> and + <file:Documentation/admin-guide/parport.rst> and <file:drivers/parport/BUGS-parport>. For extensive information about drivers for many devices attaching
@@ -33,7 +33,7 @@ menuconfig PARPORT the module will be called parport. If you have more than one parallel port and want to specify which port and IRQ to be used by this driver at module load time, take a - look at <file:Documentation/parport.txt>. + look at <file:Documentation/admin-guide/parport.rst>. If unsure, say Y.
@@ -71,7 +71,7 @@ config PARPORT_PC_FIFO As well as actually having a FIFO, or DMA capability, the kernel will need to know which IRQ the parallel port has. By default, parallel port interrupts will not be used, and so neither will the - FIFO. See <file:Documentation/parport.txt> to find out how to + FIFO. See <file:Documentation/admin-guide/parport.rst> to find out how to specify which IRQ/DMA to use. config PARPORT_PC_SUPERIO
drivers/staging/media/bcm2048/TODO +1 -1
@@ -3,7 +3,7 @@ TODO: From the initial code review: The main thing you need to do is to implement all the controls using the -control framework (see Documentation/video4linux/v4l2-controls.txt). +control framework (see Documentation/media/kapi/v4l2-controls.rst). Most drivers are by now converted to the control framework, so you will find many examples of how to do this in drivers/media/radio.
include/linux/assoc_array.h +1 -1
@@ -1,6 +1,6 @@/* Generic associative array implementation. * -* See Documentation/assoc_array.txt for information. +* See Documentation/core-api/assoc_array.rst for information. * * Copyright (C) 2013 Red Hat, Inc. All Rights Reserved. * Written by David Howells ([email protected])
include/linux/assoc_array_priv.h +1 -1
@@ -1,6 +1,6 @@/* Private definitions for the generic associative array implementation. * -* See Documentation/assoc_array.txt for information. +* See Documentation/core-api/assoc_array.rst for information. * * Copyright (C) 2013 Red Hat, Inc. All Rights Reserved. * Written by David Howells ([email protected])
include/linux/circ_buf.h +1 -1
@@ -1,6 +1,6 @@/* SPDX-License-Identifier: GPL-2.0 */ /* -* See Documentation/circular-buffers.txt for more information. +* See Documentation/core-api/circular-buffers.rst for more information. */ #ifndef _LINUX_CIRC_BUF_H
include/linux/ftrace.h +1 -1
@@ -1,7 +1,7 @@/* SPDX-License-Identifier: GPL-2.0 */ /* * Ftrace header. For implementation details beyond the random comments -* scattered below, see: Documentation/trace/ftrace-design.txt +* scattered below, see: Documentation/trace/ftrace-design.rst */ #ifndef _LINUX_FTRACE_H
include/linux/rculist_nulls.h +1 -1
@@ -109,7 +109,7 @@ static inline void hlist_nulls_add_head_rcu(struct hlist_nulls_node *n,* * The barrier() is needed to make sure compiler doesn't cache first element [1], * as this loop can be restarted [2] -* [1] Documentation/atomic_ops.txt around line 114 +* [1] Documentation/core-api/atomic_ops.rst around line 114 * [2] Documentation/RCU/rculist_nulls.txt around line 146 */ #define hlist_nulls_for_each_entry_rcu (tpos, pos, head, member) \
include/uapi/linux/prctl.h +1 -1
@@ -170,7 +170,7 @@ struct prctl_mm_map {* asking selinux for a specific new context (e.g. with runcon) will result * in execve returning -EPERM. * -* See Documentation/prctl/no_new_privs.txt for more details. +* See Documentation/userspace-api/no_new_privs.rst for more details. */ #define PR_SET_NO_NEW_PRIVS 38#define PR_GET_NO_NEW_PRIVS 39
include/xen/interface/io/kbdif.h +1 -1
@@ -317,7 +317,7 @@ struct xenkbd_position {* Linux [2] and Windows [3] multi-touch support. * * [1] https://cgit.freedesktop.org/wayland/wayland/tree/protocol/wayland.xml -* [2] https://www.kernel.org/doc/Documentation/input/multi-touch-protocol.txt +* [2] https://www.kernel.org/doc/Documentation/input/multi-touch-protocol.rst * [3] https://msdn.microsoft.com/en-us/library/jj151564(v=vs.85).aspx * *
kernel/trace/Kconfig +8 -8
@@ -12,22 +12,22 @@ config NOP_TRACER config HAVE_FTRACE_NMI_ENTER bool help - See Documentation/trace/ftrace-design.txt + See Documentation/trace/ftrace-design.rst config HAVE_FUNCTION_TRACER bool help - See Documentation/trace/ftrace-design.txt + See Documentation/trace/ftrace-design.rst config HAVE_FUNCTION_GRAPH_TRACER bool help - See Documentation/trace/ftrace-design.txt + See Documentation/trace/ftrace-design.rst config HAVE_DYNAMIC_FTRACE bool help - See Documentation/trace/ftrace-design.txt + See Documentation/trace/ftrace-design.rst config HAVE_DYNAMIC_FTRACE_WITH_REGS bool
@@ -35,12 +35,12 @@ config HAVE_DYNAMIC_FTRACE_WITH_REGS config HAVE_FTRACE_MCOUNT_RECORD bool help - See Documentation/trace/ftrace-design.txt + See Documentation/trace/ftrace-design.rst config HAVE_SYSCALL_TRACEPOINTS bool help - See Documentation/trace/ftrace-design.txt + See Documentation/trace/ftrace-design.rst config HAVE_FENTRY bool
@@ -452,7 +452,7 @@ config KPROBE_EVENTS help This allows the user to add tracing events (similar to tracepoints) on the fly via the ftrace interface. See - Documentation/trace/kprobetrace.txt for more details. + Documentation/trace/kprobetrace.rst for more details. Those events can be inserted wherever kprobes can probe, and record various register and memory values.
@@ -579,7 +579,7 @@ config MMIOTRACE implementation and works via page faults. Tracing is disabled by default and can be enabled at run-time. - See Documentation/trace/mmiotrace.txt. + See Documentation/trace/mmiotrace.rst. If you are not helping to develop drivers, say N. config TRACING_MAP
lib/Kconfig +1 -1
@@ -405,7 +405,7 @@ config ASSOCIATIVE_ARRAY See: - Documentation/assoc_array.txt + Documentation/core-api/assoc_array.rst for more information.
security/selinux/hooks.c +1 -1
@@ -4697,7 +4697,7 @@ static int selinux_socket_bind(struct socket *sock, struct sockaddr *address, in }/* This supports connect(2) and SCTP connect services such as sctp_connectx(3) -* and sctp_sendmsg(3) as described in Documentation/security/LSM-sctp.txt +* and sctp_sendmsg(3) as described in Documentation/security/LSM-sctp.rst */ static int selinux_socket_connect_helper (struct socket *sock,struct sockaddr *address,int addrlen)
sound/drivers/Kconfig +2 -2
@@ -153,7 +153,7 @@ config SND_SERIAL_U16550 select SND_RAWMIDI help To include support for MIDI serial port interfaces, say Y here - and read <file:Documentation/sound/alsa/serial-u16550.txt>. + and read <file:Documentation/sound/cards/serial-u16550.rst>. This driver works with serial UARTs 16550 and better. This driver accesses the serial port hardware directly, so
@@ -223,7 +223,7 @@ config SND_AC97_POWER_SAVE the device frequently. A value of 10 seconds would be a good choice for normal operations. - See Documentation/sound/alsa/powersave.txt for more details. + See Documentation/sound/designs/powersave.rst for more details. config SND_AC97_POWER_SAVE_DEFAULT int "Default time-out for AC97 power-save mode"
tools/include/uapi/linux/prctl.h +1 -1
@@ -170,7 +170,7 @@ struct prctl_mm_map {* asking selinux for a specific new context (e.g. with runcon) will result * in execve returning -EPERM. * -* See Documentation/prctl/no_new_privs.txt for more details. +* See Documentation/userspace-api/no_new_privs.rst for more details. */ #define PR_SET_NO_NEW_PRIVS 38#define PR_GET_NO_NEW_PRIVS 39
tools/lib/api/fs/fs.c +1 -1
@@ -201,7 +201,7 @@ static void mem_toupper(char *f, size_t len)/* * Check for "NAME_PATH" environment variable to override fs location (for -* testing). This matches the recommendation in Documentation/sysfs-rules.txt +* testing). This matches the recommendation in Documentation/admin-guide/sysfs-rules.rst * for SYSFS_PATH. */ static bool fs__env_override (struct fs *fs)
tools/perf/util/bpf-prologue.c +1 -1
@@ -61,7 +61,7 @@ check_pos(struct bpf_insn_pos *pos)/* * Convert type string (u8/u16/u32/u64/s8/s16/s32/s64 ..., see -* Documentation/trace/kprobetrace.txt) to size field of BPF_LDX_MEM +* Documentation/trace/kprobetrace.rst) to size field of BPF_LDX_MEM * instruction (BPF_{B,H,W,DW}). */ static int
tools/power/pm-graph/config/custom-timeline-functions.cfg +2 -2
@@ -105,7 +105,7 @@ override-dev-timeline-functions: true # example: [color=#CC00CC] # # arglist: A list of arguments from registers/stack addresses. See URL: -# https://www.kernel.org/doc/Documentation/trace/kprobetrace.txt +# https://www.kernel.org/doc/Documentation/trace/kprobetrace.rst # # example: cpu=%di:s32 #
@@ -170,7 +170,7 @@ pm_restore_console: # example: [color=#CC00CC] # # arglist: A list of arguments from registers/stack addresses. See URL: -# https://www.kernel.org/doc/Documentation/trace/kprobetrace.txt +# https://www.kernel.org/doc/Documentation/trace/kprobetrace.rst # # example: port=+36(%di):s32 #
Re: [PATCH 05/18] docs: core-api: add cachetlb documentation
In reply to Mauro Carvalho ChehabQuoted 5 lines · Mauro Carvalho Chehab
Em Tue, 8 May 2018 15:05:07 -0300
Mauro Carvalho Chehab <[email protected]> escreveu:Quoted 2 lines
Em Tue, 08 May 2018 17:40:56 +0300
Jani Nikula <[email protected]> escreveu:
[...]
Quoted 22 lines
Quoted 8 lines
Quoted 5 lines
Side note, there's
scripts/documentation-file-ref-checkto grep the kernel tree for things that look like file references toDocumentation/*and complain if they don't exist.I get about 350+ hits with that, patches welcome! ;)
This small script fixes a bunch of such errors:
Quoted 13 lines
scripts/documentation-file-ref-check 2>broken_refs for i in $(cat broken_refs|cut -d: -f 2|grep -v devicetree|sort|uniq|grep \\.txt); do rst=$(basename $i) rst=${rst/.txt/.rst} f=$(find . -name $rst) f=${f#./} if [ "$f" != "" ]; then echo "Replacing $i to $f" for j in $(git grep -l $i); do sed "s@$i@$f@g" -i $j done fi done
Quoted 7 lines
It follows an improvement to the above script that shows also what it didn't find as a ReST file, and the ones that have common names with multiple matches.
I guess we could integrate something like that at
scripts/documentation-file-ref-check, in order to allow auto-correcting renamed .txt files.
FWIW, this would be more than welcome with me; thank you,
Andrea
Quoted 32 lines
Regards,
Mauro#!/bin/bash
scripts/documentation-file-ref-check2>broken_refs
for i in $(cat broken_refs|cut -d: -f 2|grep -v devicetree|sort|uniq|grep \\.txt); dorst=$(basename $i) rst=${rst/.txt/.rst} f=$(find . -name $rst) if [ "$f" == "" ]; then echo "ERROR: Didn't find a .rst replacement for $i" elif [ "$(echo $f | grep ' ')" != "" ]; then echo "ERROR: Found multiple possible replacements for $i:" for j in $f; do echo " $j" done else echo "Replacing $i to $f" f=${f#./} for j in $(git grep -l $i); do sed "s@$i@$f@g" -i $j done fidone
Thanks,
Mauro
Peter Zijlstra
maintainerRe: [PATCH 13/18] wait: wait.h: Get rid of a kernel-doc/Sphinx warnings
In reply to Mauro Carvalho ChehabQuoted 7 lines · Mauro Carvalho Chehab
The flow diagram should be inside a code-block to avoid those
warnings:
./include/linux/wait.h:110: WARNING: Block quote ends without a blank line; unexpected unindent../include/linux/wait.h:113: WARNING: Unexpected indentation../include/linux/wait.h:115: WARNING: Block quote ends without a blank line; unexpected unindent.This is easily done by using "::" instead of just ":".
And I'll voice my objection once again. This makes a regular comment worse. This rst stuff is utter shit for making normal text files less readable in your favourite text editor.
If this gets merged, I'll simply remove that spurious ':' the next time I'm near that comment.
Quoted 21 lines
Signed-off-by Mauro Carvalho Chehab <[email protected]>--- include/linux/wait.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/linux/wait.h +1
-1@@ -101,7 +101,7 @@ init_waitqueue_func_entry(struct wait_queue_entry *wq_entry, wait_queue_func_t f* lead to sporadic and non-obvious failure. * * Use either while holding wait_queue_head::lock or when used for wakeups -* with an extra smp_mb() like: +* with an extra smp_mb() like:: * * CPU0 - waker CPU1 - waiter * Signature · 1 line
2.17.0
Re: [PATCH 10/18] rcu: rcupdate.h: get rid of Sphinx warnings at rcu_pointer_handoff()
In reply to Paul E. McKenneyEm Mon, 7 May 2018 07:23:22 -0700
"Paul E. McKenney" <[email protected]> escreveu:
Quoted 9 lines · Mauro Carvalho Chehab
Quoted 8 lines
The code example at
rcupdate.hcurrently produce lots of warnings:
./include/linux/rcupdate.h:572: WARNING: Unexpected indentation../include/linux/rcupdate.h:576: WARNING: Unexpected indentation../include/linux/rcupdate.h:580: WARNING: Block quote ends without a blank line; unexpected unindent../include/linux/rcupdate.h:582: WARNING: Block quote ends without a blank line; unexpected unindent../include/linux/rcupdate.h:582: WARNING: Inline literal start-string without end-string.
Quoted 8 lines
Quoted 3 lines
Change it to a code-block.
Signed-off-by Mauro Carvalho Chehab <[email protected]>Acked-by Paul E. McKenney <[email protected]>If you don't tell me otherwise, I will assume that you are pushing this. If you would rather that I take it, please let me know!
Hi Paul,
Feel free to merge it via your tree. It seems that Jon prefers to have code changes merged via the usual maintainers.
Regards,
Mauro
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH 15/18] iio: iio.h: use nested struct support on kernel-doc markup
In reply to Jonathan CameronEm Mon, 7 May 2018 18:08:03 +0100
Jonathan Cameron <[email protected]> escreveu:
Quoted 12 lines
Quoted 9 lines · On Mon, 7 May 2018 06:35:51 -0300 Mauro Carvalho Chehab…
Solve those Sphinx warnings:
./include/linux/iio/iio.h:270: warning: Function parameter or member 'scan_type.sign' not described in 'iio_chan_spec'./include/linux/iio/iio.h:270: warning: Function parameter or member 'scan_type.realbits' not described in 'iio_chan_spec'./include/linux/iio/iio.h:270: warning: Function parameter or member 'scan_type.storagebits' not described in 'iio_chan_spec'./include/linux/iio/iio.h:270: warning: Function parameter or member 'scan_type.shift' not described in 'iio_chan_spec'./include/linux/iio/iio.h:270: warning: Function parameter or member 'scan_type.repeat' not described in 'iio_chan_spec'./include/linux/iio/iio.h:270: warning: Function parameter or member 'scan_type.endianness' not described in 'iio_chan_spec'
Quoted 7 lines
Quoted 5 lines
./include/linux/iio/iio.h:191: WARNING: Unexpected indentation../include/linux/iio/iio.h:192: WARNING: Block quote ends without a blank line; unexpected unindent../include/linux/iio/iio.h:198: WARNING: Definition list ends without a blank line; unexpected unindent.Signed-off-by Mauro Carvalho Chehab <[email protected]>Great thanks. I couldn't figure out how to do this last time I looked at it.
Support for nested structs were only recently introduced :-)
Quoted 3 lines
Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to ignore it.
Thanks!
Mauro
Re: [PATCH 06/18] docs: core-api: add cgroup-v2 documentation
In reply to Jonathan CorbetEm Tue, 8 May 2018 09:51:14 -0600
Jonathan Corbet <[email protected]> escreveu:
Quoted 6 lines
Quoted 3 lines · On Mon, 7 May 2018 06:35:42 -0300 Mauro Carvalho Chehab…
The cgroup-v2.txt is already in ReST format. So, move it to the core-api guide, where it belongs.
Quoted 7 lines
Quoted 1 line
Signed-off-by Mauro Carvalho Chehab <[email protected]>Honestly, this seems to me like sysadmin material, so I think it should go into the admin guide instead.
Actually, looking at the patch, it seems you agree - it's just the changelog that's wrong :)
Yeah, wrong cut-and-paste. Sorry for that.
Quoted 2 lines
I could fix that, but it should probably be posted with a CC to Tejun first.
I'll repost it c/c to cgroup maintainers with the right description.
Thanks,
Mauro
Re: [PATCH 16/18] mtd: rawnand.h: use nested union kernel-doc markups
In reply to Mauro Carvalho ChehabQuoted 36 lines · On Mon, 7 May 2018 08:32:32 -0300 Mauro Carvalho Chehab…
Hi Boris,
Em Mon, 7 May 2018 11:46:50 +0200
Boris Brezillon <[email protected]> escreveu:Quoted 8 lines
Hi Mauro,
Quoted 6 lines
include/linux/mtd/rawnand.h +0
-0@@ -740,8 +740,9 @@ enum nand_data_interface_type {Quoted 12 lines
include/linux/mtd/rawnand.h enum nand_data_interface_type { · line 745
Quoted 7 lines
include/linux/mtd/rawnand.h +3
-2/** * struct nand_data_interface - NAND interface timing -* @type: type of the timing -* @timings: The timing, type according to @type +* @type: type of the timing +* @timings: The timing, type according to @type +* @timings.sdr: Use it when @type is %NAND_SDR_IFACE. Hm, really feels weird to do that. I mean, either we describe timings.sdr or timings, but not both. I this case, I agree that describing timings.sdr would make more sense than generically describing any possible entries in the timings union.
This struct is funny, as the union has just one item. I assume that the original intend is to be ready to have more timing types (or you had it in the past). By the time you have a second value there, describing the union would make more sense.
Quoted 3 lines
Is there a simple
way we can get rid of the warning we have when not describing timings but all of its fields?
Quoted 6 lines
There's no direct way. It won't be hard to add a way to do it, like applying the enclosed patch with ends by declaring timings as:
* @timings: -- undescribed --
IMHO, this is uglier.
Yep, don't like it either. I'll just take your initial patch.
Thanks,
Boris
Re: [PATCH 09/18] net: mac80211.h: fix a bad comment line
In reply to Johannes BergEm Mon, 07 May 2018 14:38:26 +0200
Johannes Berg <[email protected]> escreveu:
Quoted 10 lines · Kalle Valo
Quoted 9 lines
Quoted 4 lines · Mauro Carvalho Chehab
Sphinx produces a lot of errors like this:
./include/net/mac80211.h:2083: warning: bad line: >Signed-off-by Mauro Carvalho Chehab <[email protected]>Randy already submitted a similar patch:
Quoted 8 lines
Quoted 3 lines
https://patchwork.kernel.org/patch/10367275/
But it seems Johannes has not applied that yet.
Yeah, I've been super busy preparing for the plugfest.
I'll make a pass over all the patches as soon as I can, hopefully today or tomorrow.
Thanks. I'll drop it from my patchset, assuming that you'll be applying Randy's version or mine via your tree.
Thanks,
Mauro
Johannes Berg
maintainerRe: [PATCH 09/18] net: mac80211.h: fix a bad comment line
Quoted 17 lines · Mauro Carvalho Chehab
Em Mon, 07 May 2018 14:38:26 +0200
Johannes Berg <[email protected]> escreveu:Quoted 14 lines · Kalle Valo
Quoted 12 lines
Quoted 4 lines · Mauro Carvalho Chehab
Sphinx produces a lot of errors like this:
./include/net/mac80211.h:2083: warning: bad line: >Signed-off-by Mauro Carvalho Chehab <[email protected]>Randy already submitted a similar patch:
https://patchwork.kernel.org/patch/10367275/
But it seems Johannes has not applied that yet.
Quoted 7 lines
Quoted 4 lines
Yeah, I've been super busy preparing for the plugfest.
I'll make a pass over all the patches as soon as I can, hopefully today or tomorrow.
Thanks. I'll drop it from my patchset, assuming that you'll be applying Randy's version or mine via your tree.
Right, I did, just need to send a pull request.
johannes
Re: [PATCH 16/18] mtd: rawnand.h: use nested union kernel-doc markups
In reply to Mauro Carvalho ChehabHi Boris,
Em Mon, 7 May 2018 08:32:32 -0300
Mauro Carvalho Chehab <[email protected]> escreveu:
Quoted 9 lines
Hi Boris,
Em Mon, 7 May 2018 11:46:50 +0200
Boris Brezillon <[email protected]> escreveu:Quoted 3 lines
Is there a simple
way we can get rid of the warning we have when not describing timings but all of its fields?
Quoted 6 lines
There's no direct way. It won't be hard to add a way to do it, like applying the enclosed patch with ends by declaring timings as:
* @timings: -- undescribed --
IMHO, this is uglier.
Didn't hear from you. What do you prefer for me to do with regards to this patch?
Thanks,
Mauro
Re: [PATCH 16/18] mtd: rawnand.h: use nested union kernel-doc markups
Quoted 14 lines · On Wed, 9 May 2018 09:10:34 -0300 Mauro Carvalho Chehab…
Hi Boris,
Em Mon, 7 May 2018 08:32:32 -0300
Mauro Carvalho Chehab <[email protected]> escreveu:Quoted 9 lines
Hi Boris,
Em Mon, 7 May 2018 11:46:50 +0200
Boris Brezillon <[email protected]> escreveu:Quoted 3 lines
Is there a simple
way we can get rid of the warning we have when not describing timings but all of its fields?
Quoted 8 lines
Quoted 6 lines
There's no direct way. It won't be hard to add a way to do it, like applying the enclosed patch with ends by declaring timings as:
* @timings: -- undescribed --
IMHO, this is uglier.
Didn't hear from you.
I replied just a few minutes ago ;).
Quoted 2 lines
What do you prefer for me to do with regards to
this patch?
Will queue the initial patch to nand/next (I can also queue it to the fixes branch if you prefer).
Re: [PATCH 02/18] docs: fix location of request_firmware & friends
In reply to Luis R. RodriguezEm Tue, 8 May 2018 15:49:08 +0000
"Luis R. Rodriguez" <[email protected]> escreveu:
Quoted 37 lines · Mauro Carvalho Chehab
Quoted 36 lines
commit
5d6d1ddd2730("firmware: move firmware loader into its own directory") and other commits renamed the oldfirmware_class.cfile and split it into separate files, but documentation was not changed accordingly, causing Sphinx errors.Change the location accordingly at the documentation files.
While here, add a missing entry at
request_firmware.rstforrelease_firmware()function.Fixes 5d6d1ddd2730 ("firmware: move firmware loader into its own directory")Cc Kees Cook <[email protected]>Cc Luis R. Rodriguez <[email protected]>Cc Greg Kroah-Hartman <[email protected]>Signed-off-by Mauro Carvalho Chehab <[email protected]>--- Documentation/dell_rbu.txt | 4 ++-- .../driver-api/firmware/fallback-mechanisms.rst | 2 +- .../driver-api/firmware/request_firmware.rst | 17 +++++++++++------ Documentation/driver-api/infrastructure.rst | 2 +- Documentation/power/suspend-and-cpuhotplug.txt | 2 +- 5 files changed, 16 insertions(+), 11 deletions(-)Documentation/dell_rbu.txt +2
-2@@ -121,8 +121,8 @@ read back the image downloaded. .. note:: - This driver requires a patch for firmware_class.c which has the modified - request_firmware_nowait function. + This driver requires a patch for drivers/base/firmware_loader/main.c + which has the modified request_firmware_nowait() function.
Quoted 4 lines
Documentation/dell_rbu.txt read back the image downloaded. · line 128
Quoted 2 lines
Documentation/dell_rbu.txt +0
-0Also after updating the BIOS image a user mode application needs to execute code which sends the BIOS update request to the BIOS. So on the next rebootThis part looks good and is needed.
Ok. I'll submit this as a separate patch.
Quoted 20 lines
Documentation/driver-api/firmware/fallback-mechanisms.rst the firmware requested, and establishes it in the device hierarchy by · line 75
Quoted 11 lines
Documentation/driver-api/firmware/fallback-mechanisms.rst +1
-1@@ -72,7 +72,7 @@ the firmware requested, and establishes it in the device hierarchy by associating the device used to make the request as the device's parent. The sysfs directory's file attributes are defined and controlled through the new device's class (firmware_class) and group (fw_dev_attr_groups). -This is actually where the original firmware_class.c file name comes from, +This is actually where drivers/base/firmware_loader/fallback.c comes from,Not this part.
What I meant to keep well documented here was not just only the old firmware file name for the code, but also the module name
firmware_class, and its respective sysfs class name which is registered. From what I recall testing, we could not rename the module now because of this. I believe it had to do with the modular case, given the sysfs class could still be registered.
Quoted 5 lines
The fact that I forget the exact *issue* which prevented the module rename shows how important it is to document this.
Folks 10 years from now may wonder why the hell that name stuck, and the point was to document that the *original* loader was the sysfs fallback mechanism.
Yeah, I was in doubt about this one too. Yet, IMHO, mentioning a filename that got removed will also be problematic 10 years from now. Perhaps you could say something similar to:
Originally, the only firmware loading mechanism available was the one that it is now used as fallback. The file containing it used to be named after it, as firmware_class.c (nowadays, the fallback mechanism is at drivers/base/firmware_loader/fallback.c).
This way, you keep providing the explanations while pointing to the new location of the code.
Just my 2 cents.
Thanks,
Mauro
Re: [PATCH 18/18] w1: w1_io.c: fix a kernel-doc warning
In reply to Evgeniy PolyakovEm Tue, 08 May 2018 14:03:39 +0300
Evgeniy Polyakov <[email protected]> escreveu:
Quoted 6 lines
Hi
07.05.2018, 12:36, "Mauro Carvalho Chehab" <[email protected]>:
Quoted 3 lines
Add a blank line to avoid this Sphinx warning:
./drivers/w1/w1_io.c:197: WARNING: Definition list ends without a blank line; unexpected unindent.
Quoted 6 lines
Quoted 1 line
Signed-off-by Mauro Carvalho Chehab <[email protected]>Looks good to me, thank you!
What tree should this be forwarded to, or folks from linux doc will pick it up?Acked-by Evgeniy Polyakov <[email protected]>
Jon prefers if this could go via the usual maintainer's tree.
So, could you send it via yours?
Thanks,
Mauro
Jonathan Corbet
maintainerRe: [PATCH 18/18] w1: w1_io.c: fix a kernel-doc warning
Quoted 8 lines · On Wed, 9 May 2018 09:32:18 -0300 Mauro Carvalho Chehab…
Quoted 4 lines
Looks good to me, thank you!
What tree should this be forwarded to, or folks from linux doc will pick it up?Acked-by Evgeniy Polyakov <[email protected]>Jon prefers if this could go via the usual maintainer's tree.
So, could you send it via yours?
With the ack I can pick it up, no worries. I somehow missed this when I went through the set.
Thanks,
jon
Re: [PATCH 16/18] mtd: rawnand.h: use nested union kernel-doc markups
In reply to Boris BrezillonEm Wed, 9 May 2018 14:22:21 +0200
Boris Brezillon <[email protected]> escreveu:
Quoted 20 lines
Quoted 17 lines · On Wed, 9 May 2018 09:10:34 -0300 Mauro Carvalho Chehab…
Hi Boris,
Em Mon, 7 May 2018 08:32:32 -0300
Mauro Carvalho Chehab <[email protected]> escreveu:Quoted 12 lines
Hi Boris,
Em Mon, 7 May 2018 11:46:50 +0200
Boris Brezillon <[email protected]> escreveu:Quoted 3 lines
Is there a simple
way we can get rid of the warning we have when not describing timings but all of its fields?There's no direct way. It won't be hard to add a way to do it, like applying the enclosed patch with ends by declaring timings as:
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
* @timings: -- undescribed --
IMHO, this is uglier.
Didn't hear from you.
I replied just a few minutes ago ;).
OK!
Quoted 5 lines
Quoted 2 lines
What do you prefer for me to do with regards to
this patch?Will queue the initial patch to nand/next (I can also queue it to the fixes branch if you prefer).
No need. it can follow the usual workflow.
Thanks,
Mauro
Jonathan Corbet
maintainerRe: [PATCH 13/18] wait: wait.h: Get rid of a kernel-doc/Sphinx warnings
In reply to Peter ZijlstraQuoted 8 lines · On Wed, 9 May 2018 10:41:20 +0200 Peter Zijlstra <[email protected]> wrote:
Quoted 1 line
This is easily done by using "::" instead of just ":".
And I'll voice my objection once again. This makes a regular comment worse. This rst stuff is utter shit for making normal text files less readable in your favourite text editor.
If this gets merged, I'll simply remove that spurious ':' the next time I'm near that comment.
Seriously, Peter?
It's a simple colon. It goes along with the /** marker for kerneldoc comments and the @ markers found within them, both of which you seem to have found a way to live with.
The RST work was discussed for a year before we even started. It has brought in the efforts of a large number of developers, all of whom see the value in actually caring about our documentation and making it accessible to a much larger group of readers. And it has all happened while preserving the primacy of the plain-text documentation.
You're not the only consumer of the docs. You may not appreciate the improvements that have come, but others certainly do. I do hope that you can find it in youself to avoid vandalizing things for everybody else ...?
Thanks,
jon
Peter Zijlstra
maintainerRe: [PATCH 13/18] wait: wait.h: Get rid of a kernel-doc/Sphinx warnings
Quoted 5 lines · Jonathan Corbet
Quoted 2 lines · On Wed, 9 May 2018 10:41:20 +0200 Peter Zijlstra <[email protected]> wrote:
Quoted 1 line
This is easily done by using "::" instead of just ":".
Quoted 8 lines
Quoted 6 lines
And I'll voice my objection once again. This makes a regular comment worse. This rst stuff is utter shit for making normal text files less readable in your favourite text editor.
If this gets merged, I'll simply remove that spurious ':' the next time I'm near that comment.
Seriously, Peter?
Yep... it makes for pointlessly ugly text. And seeing that the only way to write code is using text editors, the text editor is the primary interface to our code.
The whole rst wankery is detrimental to that interface in order to pander to something else.. I don't see the value. I've objected before, and I suppose I'll object again.
Quoted 3 lines
It's a simple colon. It goes along with the /** marker for kerneldoc comments and the @ markers found within them, both of which you seem to have found a way to live with.
Barely, and personally I tend to not bother with kerneldoc much. Most of the comments I write lack the extra *, and I note that the other fix to this problem it to drop that spurious * here as well.
The @arg thing is okay, it clearly distinguishes arguments/variable names from regular text. But "::" is the C++ class member syntax, not the start of an English enumeration or the like.
Quoted 5 lines
The RST work was discussed for a year before we even started. It has brought in the efforts of a large number of developers, all of whom see the value in actually caring about our documentation and making it accessible to a much larger group of readers. And it has all happened while preserving the primacy of the plain-text documentation.
Clearly I don't agree. It reads like crap. I suspect many of the other options, which I suppose there were, were even worse. Doesn't mean rst is any good.
Quoted 3 lines
You're not the only consumer of the docs. You may not appreciate the improvements that have come, but others certainly do. I do hope that you can find it in youself to avoid vandalizing things for everybody else ...?
Why should I care for people not using text editors to write code?
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Boris Brezillon
AppliedRe: [PATCH 16/18] mtd: rawnand.h: use nested union kernel-doc markups
In reply to Mauro Carvalho ChehabQuoted 17 lines · On Mon, 7 May 2018 06:35:52 -0300 Mauro Carvalho Chehab…
Gets rid of those warnings and better document the parameters.
./include/linux/mtd/rawnand.h:752: warning: Function parameter or member 'timings.sdr' not described in 'nand_data_interface'./include/linux/mtd/rawnand.h:817: warning: Function parameter or member 'buf' not described in 'nand_op_data_instr'./include/linux/mtd/rawnand.h:817: warning: Function parameter or member 'buf.in' not described in 'nand_op_data_instr'./include/linux/mtd/rawnand.h:817: warning: Function parameter or member 'buf.out' not described in 'nand_op_data_instr'./include/linux/mtd/rawnand.h:863: warning: Function parameter or member 'ctx' not described in 'nand_op_instr'./include/linux/mtd/rawnand.h:863: warning: Function parameter or member 'ctx.cmd' not described in 'nand_op_instr'./include/linux/mtd/rawnand.h:863: warning: Function parameter or member 'ctx.addr' not described in 'nand_op_instr'./include/linux/mtd/rawnand.h:863: warning: Function parameter or member 'ctx.data' not described in 'nand_op_instr'./include/linux/mtd/rawnand.h:863: warning: Function parameter or member 'ctx.waitrdy' not described in 'nand_op_instr'./include/linux/mtd/rawnand.h:1010: warning: Function parameter or member 'ctx' not described in 'nand_op_parser_pattern_elem'./include/linux/mtd/rawnand.h:1010: warning: Function parameter or member 'ctx.addr' not described in 'nand_op_parser_pattern_elem'./include/linux/mtd/rawnand.h:1010: warning: Function parameter or member 'ctx.data' not described in 'nand_op_parser_pattern_elem'./include/linux/mtd/rawnand.h:1313: warning: Function parameter or member 'manufacturer.desc' not described in 'nand_chip'./include/linux/mtd/rawnand.h:1313: warning: Function parameter or member 'manufacturer.priv' not described in 'nand_chip'
Quoted 3 lines
./include/linux/mtd/rawnand.h:848: WARNING: Unexpected indentation.Signed-off-by Mauro Carvalho Chehab <[email protected]>
Applied.
Thanks,
Boris
Quoted 69 lines
--- include/linux/mtd/rawnand.h | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-)include/linux/mtd/rawnand.h +18
-8@@ -740,8 +740,9 @@ enum nand_data_interface_type {/** * struct nand_data_interface - NAND interface timing -* @type: type of the timing -* @timings: The timing, type according to @type +* @type: type of the timing +* @timings: The timing, type according to @type +* @timings.sdr: Use it when @type is %NAND_SDR_IFACE. */ struct nand_data_interface {enum nand_data_interface_type type;@@ -798,8 +799,9 @@ struct nand_op_addr_instr {/** * struct nand_op_data_instr - Definition of a data instruction * @len: number of data bytes to move -* @in: buffer to fill when reading from the NAND chip -* @out: buffer to read from when writing to the NAND chip +* @buf: buffer to fill +* @buf.in: buffer to fill when reading from the NAND chip +* @buf.out: buffer to read from when writing to the NAND chip * @force_8bit: force 8-bit access * * Please note that "in" and "out" are inverted from the ONFI specification @@ -842,9 +844,13 @@ enum nand_op_instr_type {/** * struct nand_op_instr - Instruction object * @type: the instruction type -* @cmd/@addr/@data/@waitrdy: extra data associated to the instruction. -* You'll have to use the appropriate element -* depending on @type +* @ctx: extra data associated to the instruction. You'll have to use the +* appropriate element depending on @type +* @ctx.cmd: use it if @type is %NAND_OP_CMD_INSTR +* @ctx.addr: use it if @type is %NAND_OP_ADDR_INSTR +* @ctx.data: use it if @type is %NAND_OP_DATA_IN_INSTR +* or %NAND_OP_DATA_OUT_INSTR +* @ctx.waitrdy: use it if @type is %NAND_OP_WAITRDY_INSTR * @delay_ns: delay the controller should apply after the instruction has been * issued on the bus. Most modern controllers have internal timings * control logic, and in this case, the controller driver can ignore @@ -997,7 +1003,9 @@ struct nand_op_parser_data_constraints {* struct nand_op_parser_pattern_elem - One element of a pattern * @type: the instructuction type * @optional: whether this element of the pattern is optional or mandatory -* @addr/@data: address or data constraint (number of cycles or data length) +* @ctx: address or data constraint +* @ctx.addr: address constraint (number of cycles) +* @ctx.data: data constraint (data length) */ struct nand_op_parser_pattern_elem {enum nand_op_instr_type type;@@ -1224,6 +1232,8 @@ int nand_op_parser_exec_op(struct nand_chip *chip,* devices. * @priv: [OPTIONAL] pointer to private chip data * @manufacturer: [INTERN] Contains manufacturer information +* @manufacturer.desc: [INTERN] Contains manufacturer's description +* @manufacturer.priv: [INTERN] Contains manufacturer private information */ struct nand_chip {
Jonathan Corbet
maintainerRe: [PATCH 13/18] wait: wait.h: Get rid of a kernel-doc/Sphinx warnings
In reply to Peter ZijlstraQuoted 3 lines · On Wed, 9 May 2018 17:20:26 +0200 Peter Zijlstra <[email protected]> wrote:
The whole rst wankery is detrimental to that interface in order to pander to something else.. I don't see the value. I've objected before, and I suppose I'll object again.
One person's wankery is another's integrated, browsable, and searchable documentation that shows some signs of having actually been thought about, I guess.
Quoted 7 lines
Quoted 3 lines
It's a simple colon. It goes along with the /** marker for kerneldoc comments and the @ markers found within them, both of which you seem to have found a way to live with.
Barely, and personally I tend to not bother with kerneldoc much. Most of the comments I write lack the extra *, and I note that the other fix to this problem it to drop that spurious * here as well.
Perhaps you'd like to post a patch removing the kerneldoc mechanism? It would make my life a lot easier...:)
Quoted 3 lines
The @arg thing is okay, it clearly distinguishes arguments/variable names from regular text. But "::" is the C++ class member syntax, not the start of an English enumeration or the like.
Not sure what C++ has to do with anything, unless we want to bring in $LANGUAGE_WE_DISRESPECT spuriously. I'm sure it's the Perl do-five-different-things-magically syntax too. It's probably an entire natural-language processing system in Haskell. It also happens to be the Sphinx "start literal block" syntax.
Quoted 5 lines
Quoted 3 lines
You're not the only consumer of the docs. You may not appreciate the improvements that have come, but others certainly do. I do hope that you can find it in youself to avoid vandalizing things for everybody else ...?
Why should I care for people not using text editors to write code?
The set of "people using text editors to write code" is a superset of the set containing only Peter Zijlstra. Many of the people who have used text editors to write the very code we all work on find a minimally structured documentation system to be useful. Out of respect for them, if nothing else, I'll ask again, please, that you suffer the substantial cognitive drain of skipping over an extra colon.
Thanks,
jon
Re: [PATCH 13/18] wait: wait.h: Get rid of a kernel-doc/Sphinx warnings
Quoted 4 lines
Am 09.05.2018 um 20:35 schrieb Jonathan Corbet <[email protected]>:
Quoted 1 line
Why should I care for people not using text editors to write code?
Eh? .. why must readers write code?
We have rules how to write kernel-doc markup since the beginning of the century. If you do not want to contribute kernel-doc markups, then just leave it, change your comment start-tag to
/*
and feel free to type what ever you want. Sorry, but this discussion is superfluous.
-- Markus -
Peter Zijlstra
maintainerRe: [PATCH 13/18] wait: wait.h: Get rid of a kernel-doc/Sphinx warnings
In reply to Jonathan CorbetQuoted 10 lines · Jonathan Corbet
Quoted 3 lines · On Wed, 9 May 2018 17:20:26 +0200 Peter Zijlstra <[email protected]> wrote:
The whole rst wankery is detrimental to that interface in order to pander to something else.. I don't see the value. I've objected before, and I suppose I'll object again.
One person's wankery is another's integrated, browsable, and searchable documentation that shows some signs of having actually been thought about, I guess.
Browsable is what we have ctags/cscope for and searchable is git-grep, right?
Re: [PATCH 13/18] wait: wait.h: Get rid of a kernel-doc/Sphinx warnings
In reply to Mauro Carvalho ChehabQuoted 3 lines
* Use either while holding
wait_queue_head::lockor when used for wakeups
- * with an extrasmp_mb()like:
+ * with an extrasmp_mb()like::
Independent of any philosophical discussion not allowing a setence to end with a single ':' is completely idiotic. Please fix the tooling instead to allow it, as it is very important for being able to just write understandable comments.
Re: [PATCH 13/18] wait: wait.h: Get rid of a kernel-doc/Sphinx warnings
Em Thu, 10 May 2018 01:38:38 -0700
Christoph Hellwig <[email protected]> escreveu:
Quoted 8 lines
Quoted 3 lines
* Use either while holding
wait_queue_head::lockor when used for wakeups
- * with an extrasmp_mb()like:
+ * with an extrasmp_mb()like::Independent of any philosophical discussion not allowing a setence to end with a single ':' is completely idiotic. Please fix the tooling instead to allow it, as it is very important for being able to just write understandable comments.
Patches are welcome, although I don't see any easy way to solve it.
In English, the common case is that a line with ends with a colon is followed by a list. E. g.
foo:
- bar1;
- bar2.
However, in this specific case, it is followed by an ascii artwork. The double colon is a notation that tells Sphinx to not parse the lines at the next block, placing the contents of it inside a literal block. It is used also when the next lines contain a code example, in order to avoid parsing things like @, () and * inside the code block.
The kernel-doc tool might eventually have some parsing logic that would replace something to a '::' before sending it to Sphinx. It could, for example, have a "hint" regex that would expect a certain sequence of characters to be at the last line, like:
s/ascii\s+artwork.*:/ascii artwork.*::/ or s/code\s+block.*:/code block.*::/
Then, change the kernel-doc comment to use it, like:
* with an extra smp_mb() like shown at the following ascii artwork:
but IMHO, this is a lot worse than "::": it would be more intrusive and more error-prune.
Thanks,
Mauro
Re: [PATCH 18/18] w1: w1_io.c: fix a kernel-doc warning
In reply to Jonathan CorbetHi
09.05.2018, 16:11, "Jonathan Corbet" <[email protected]>:
Quoted 8 lines
Quoted 5 lines · On Wed, 9 May 2018 09:32:18 -0300 Mauro Carvalho Chehab…
> Looks good to me, thank you!
> What tree should this be forwarded to, or folks from linux doc will pick it up? >
> Acked-by: Evgeniy Polyakov <[email protected]>
Quoted 6 lines
Quoted 3 lines
Jon prefers if this could go via the usual maintainer's tree.
So, could you send it via yours?
With the ack I can pick it up, no worries. I somehow missed this when I went through the set.
Great, thank you!
Let me know if you want me to push it upstream via my tree.
Peter Zijlstra
maintainerRe: [PATCH 13/18] wait: wait.h: Get rid of a kernel-doc/Sphinx warnings
In reply to Mauro Carvalho ChehabQuoted 11 lines · Mauro Carvalho Chehab
Em Thu, 10 May 2018 01:38:38 -0700
Christoph Hellwig <[email protected]> escreveu:Quoted 8 lines
Quoted 3 lines
* Use either while holding
wait_queue_head::lockor when used for wakeups
- * with an extrasmp_mb()like:
+ * with an extrasmp_mb()like::Independent of any philosophical discussion not allowing a setence to end with a single ':' is completely idiotic. Please fix the tooling instead to allow it, as it is very important for being able to just write understandable comments.
That is exactly my point; the whole rst stuff detracts from normal text. It makes both reading and writing harder than it needs to be.
Quoted 4 lines
Patches are welcome, although I don't see any easy way to solve it.
In English, the common case is that a line with ends with a colon is followed by a list. E. g.
(google) Dictionary says:
"a punctuation mark (:) used to precede a list of items, a quotation, or an expansion or explanation."
An enumeration (list) is just one of many possible uses of the colon.
Quoted 9 lines
However, in this specific case, it is followed by an ascii artwork. The double colon is a notation that tells Sphinx to not parse the lines at the next block, placing the contents of it inside a literal block. It is used also when the next lines contain a code example, in order to avoid parsing things like @, () and * inside the code block.
The kernel-doc tool might eventually have some parsing logic that would replace something to a '::' before sending it to Sphinx.
I think typically there will be an 'empty' line between the colon ending and the 'example/explanation'. This seems true for a number of comments I found in drm using the '::' nonsense.
Simple regexes don't do multi-line patterns, but maybe the kerneldoc thing can parse it differently.
Re: [PATCH 13/18] wait: wait.h: Get rid of a kernel-doc/Sphinx warnings
In reply to Jonathan CorbetQuoted 24 lines · Jonathan Corbet
Quoted 8 lines · On Wed, 9 May 2018 10:41:20 +0200 Peter Zijlstra <[email protected]> wrote:
Quoted 1 line
This is easily done by using "::" instead of just ":".
And I'll voice my objection once again. This makes a regular comment worse. This rst stuff is utter shit for making normal text files less readable in your favourite text editor.
If this gets merged, I'll simply remove that spurious ':' the next time I'm near that comment.
Seriously, Peter?
It's a simple colon. It goes along with the /** marker for kerneldoc comments and the @ markers found within them, both of which you seem to have found a way to live with.
The RST work was discussed for a year before we even started. It has brought in the efforts of a large number of developers, all of whom see the value in actually caring about our documentation and making it accessible to a much larger group of readers. And it has all happened while preserving the primacy of the plain-text documentation.
Quoted 3 lines
You're not the only consumer of the docs. You may not appreciate the improvements that have come, but others certainly do. I do hope that you can find it in youself to avoid vandalizing things for everybody else ...?
You wrote it: the fact that some people (including its developers) see a value in the RST work or the fact that such work made the kernel doc. accessible to a larger group of readers are not in question here; only remember that other people (including some developers running into the "disadventure" of opening an RST doc. from their preferred text editor and being brought to conclude: "WTH! I need to open a web browser, I guess...") _use_ such doc. and _do care_ about it, and that what might be an improvement for some people might look as "vandalizing" to others.
We're talking about readability/accessibility here, but I think similar considerations apply to other aspects of the doc. such as availability/ completeness (yes, I did hear developers arguing "I won't write such a doc., because...") and consistency (w.r.t. the doc. itself and sources).
Andrea
Quoted 4 lines
Thanks,
jon
Re: [PATCH 13/18] wait: wait.h: Get rid of a kernel-doc/Sphinx warnings
In reply to Peter ZijlstraEm Thu, 10 May 2018 14:20:36 +0200
Peter Zijlstra <[email protected]> escreveu:
Quoted 21 lines · Mauro Carvalho Chehab
Quoted 11 lines
Em Thu, 10 May 2018 01:38:38 -0700
Christoph Hellwig <[email protected]> escreveu:Quoted 8 lines
Quoted 3 lines
* Use either while holding
wait_queue_head::lockor when used for wakeups
- * with an extrasmp_mb()like:
+ * with an extrasmp_mb()like::Independent of any philosophical discussion not allowing a setence to end with a single ':' is completely idiotic. Please fix the tooling instead to allow it, as it is very important for being able to just write understandable comments.
That is exactly my point; the whole rst stuff detracts from normal text. It makes both reading and writing harder than it needs to be.
Quoted 4 lines
Patches are welcome, although I don't see any easy way to solve it.
In English, the common case is that a line with ends with a colon is followed by a list. E. g.
Quoted 6 lines
(google) Dictionary says:
"a punctuation mark (:) used to precede a list of items, a quotation, or an expansion or explanation."
An enumeration (list) is just one of many possible uses of the colon.
True, but the point is that whatever tool is used, it should be able to uniquely unambiguously identify what it follows.
For example, it if is a list of items, it should keep parsing the semantics markups inside it e. g. marking %FOO as a constant, and bar() as a function, etc, following kernel-doc syntax.
But, if it is a quote, a code example or an ascii artwork, it should disable all such parsers, enclosing the result into a literal block.
Quoted 7 lines
Quoted 7 lines
However, in this specific case, it is followed by an ascii artwork. The double colon is a notation that tells Sphinx to not parse the lines at the next block, placing the contents of it inside a literal block. It is used also when the next lines contain a code example, in order to avoid parsing things like @, () and * inside the code block.
Quoted 6 lines
Quoted 2 lines
The kernel-doc tool might eventually have some parsing logic that would replace something to a '::' before sending it to Sphinx.
I think typically there will be an 'empty' line between the colon ending and the 'example/explanation'. This seems true for a number of comments I found in drm using the '::' nonsense.
Unfortunately, that's not true treewide. The presense/absense of a blank line after a line ending with a colon doesn't indicate if the contents below should be handled as a literal block or not[1].
[1] you can verify some use cases with:
$ git grep -A2 "\*.*\s.*:$" -- $(git grep kernel-doc:: Documentation/|cut -d : -f 4-)
Quoted 2 lines
Simple regexes don't do multi-line patterns, but maybe the kerneldoc thing can parse it differently.
kernel-doc is a regex-based parser (and not an AI engine). It will do only what it is programmed for, based on a clear regex-based semantics.
Independently on how easy/hard it would be to use a multi-line pattern for this, what it is required is a clear non-hint based pattern that will provide a match for a part of the tag that should be escaped from normal parsing rules. The m/::$/ is a clear rule.
Do you have a proposal for some other rule? If so, I can see how feasible is to add it there.
Thanks,
Mauro
Jonathan Corbet
maintainerRe: [PATCH 13/18] wait: wait.h: Get rid of a kernel-doc/Sphinx warnings
In reply to Andrea ParriQuoted 6 lines · On Thu, 10 May 2018 14:23:35 +0200 Andrea Parri…
only
remember that other people (including some developers running into the "disadventure" of opening an RST doc. from their preferred text editor and being brought to conclude: "WTH! I need to open a web browser, I guess...") _use_ such doc. and_docare_about it, and that what might be an improvement for some people might look as "vandalizing" to others.
If you have an example of a place where use of a web browser has been made mandatory, please point it out. Avoiding that was at the top of the list of explicit requirements. Surely an extra colon is not going to force you to run screaming to the protective embrace of Firefox...?
Thanks,
jon
Jonathan Corbet
maintainerRe: [PATCH 13/18] wait: wait.h: Get rid of a kernel-doc/Sphinx warnings
In reply to Mauro Carvalho ChehabQuoted 5 lines · On Thu, 10 May 2018 06:38:05 -0300 Mauro Carvalho Chehab…
(Peter said):
Quoted 4 lines
Independent of any philosophical discussion not allowing a setence to end with a single ':' is completely idiotic. Please fix the tooling instead to allow it, as it is very important for being able to just write understandable comments.
FWIW, there's no problem with a sentence ending with a single colon. It's only an issue if you want to flag a special interpretation for the text that follows that sentence. Just to be precise.
Quoted 1 line
Patches are welcome, although I don't see any easy way to solve it.
I could envision some sort of heuristic that would recognize an indented block containing code. Probably we could go simpler and force the "literal block" treatment for any indented block that lacks explicit enumeration markers. So:
this->would_be("a literal block");but:
- This would not be
Such a thing would likely be a bit fragile (people feel, rightly, that they can put anything into normal text) but it might just work well enough. For best results, it should probably be done as part of Sphinx itself, rather than yet another ugly hack in the kerneldoc script.
This particular problem may be solvable, and I'll look into it, but not right away. The offline world is being rather insistently obnoxious these days...
jon
Jonathan Corbet
maintainerRe: [PATCH 13/18] wait: wait.h: Get rid of a kernel-doc/Sphinx warnings
Quoted 5 lines · On Thu, 10 May 2018 07:30:12 -0600 Jonathan Corbet <[email protected]> wrote:
Quoted 5 lines
(Peter said):
Quoted 4 lines
Independent of any philosophical discussion not allowing a setence to end with a single ':' is completely idiotic. Please fix the tooling instead to allow it, as it is very important for being able to just write understandable comments.
*Sigh*. Of course, Christoph said that, not Peter. Time for more coffee.
jon
Re: [PATCH 13/18] wait: wait.h: Get rid of a kernel-doc/Sphinx warnings
In reply to Jonathan CorbetEm Thu, 10 May 2018 07:30:12 -0600
Jonathan Corbet <[email protected]> escreveu:
Quoted 22 lines
Quoted 5 lines · On Thu, 10 May 2018 06:38:05 -0300 Mauro Carvalho Chehab…
(Peter said):
Quoted 4 lines
Independent of any philosophical discussion not allowing a setence to end with a single ':' is completely idiotic. Please fix the tooling instead to allow it, as it is very important for being able to just write understandable comments.
FWIW, there's no problem with a sentence ending with a single colon. It's only an issue if you want to flag a special interpretation for the text that follows that sentence. Just to be precise.
Quoted 1 line
Patches are welcome, although I don't see any easy way to solve it.
I could envision some sort of heuristic that would recognize an indented block containing code. Probably we could go simpler and force the "literal block" treatment for any indented block that lacks explicit enumeration markers. So:
this->would_be("a literal block");
Quoted 8 lines
but:
- This would not be
Such a thing would likely be a bit fragile (people feel, rightly, that they can put anything into normal text) but it might just work well enough. For best results, it should probably be done as part of Sphinx itself, rather than yet another ugly hack in the kerneldoc script.
I guess that it also won't work...
$ git grep -A2 "\*\s.*\s.*:$" -- $(git grep kernel-doc:: Documentation/|cut -d : -f 4-)
Present some matches that seem to be violating such hint.
drivers/edac/edac_device.h:/* The offset value can be:drivers/edac/edac_device.h- * -1 indicating no offset valuedrivers/edac/edac_device.h- * 0 for zero-based block numbers
drivers/gpu/drm/drm_scdc_helper.c: * As per the spec:drivers/gpu/drm/drm_scdc_helper.c- * TMDS clock rate for pixel clock < 340 MHz = 1x the characterdrivers/gpu/drm/drm_scdc_helper.c- * rate = 1/10 pixel clock rate
I didn't actually check if those are part of a Kernel-doc markup, though, but it shows that people sometimes don't add a "prepend" character to a list.
In the specific case of errors, prepending with a "-" can be weird, as it may lead ugly things like:
* - -1 indicating no offset value
* - 0 for zero-based block numbers
The problem with a hint-based mechanism is that it will generate false hints. If added, we may end by needing to add extra tags to disable the hints mechanism where it gets wrong, or to periodically do code changes at kernel-doc comments in order to make the hints logic happy.
So, IMO, we should provide non-hints based mechanism, like forcing the string that prepends the colon to have a keyword that will make it to parse the block as literal, where expressions like:
See the code-block foo:
See the following code example:
See the following flow diagram:
See the following artwork:
Is the best alternative to avoid "::", as on the enclosed patch.
Quoted 3 lines
This particular problem may be solvable, and I'll look into it, but not right away. The offline world is being rather insistently obnoxious these days...
Thanks,
Mauro
[PATCH] Mark a diagram at wait.h as such, using a code-block for it
Instead of explicitly using "::" to mark the diagram, detect it based on code words inside the description.
include/linux/wait.h +1 -1
@@ -101,7 +101,7 @@ init_waitqueue_func_entry(struct wait_queue_entry *wq_entry, wait_queue_func_t f* lead to sporadic and non-obvious failure. * * Use either while holding wait_queue_head::lock or when used for wakeups -* with an extra smp_mb() like: +* with an extra smp_mb() like on this diagram: * * CPU0 - waker CPU1 - waiter *
scripts/kernel-doc +6 -1
@@ -803,7 +803,12 @@ sub output_highlight_rst { # if (! $in_literal) { $block .= $line . "\n"; - if (($line =~ /$sphinx_literal/) || ($line =~ /$sphinx_cblock/)) { + if ($block =~ s/(code|example|artwork|flow|diagram)([^\:]*:)\n/$1$2:\n/) { + $in_literal = 1; + $litprefix = ""; + $output .= highlight_block($block); + $block = "" + } elsif (($line =~ /$sphinx_literal/) || ($line =~ /$sphinx_cblock/)) { $in_literal = 1; $litprefix = ""; $output .= highlight_block($block);
Jonathan Corbet
maintainerRe: [PATCH 13/18] wait: wait.h: Get rid of a kernel-doc/Sphinx warnings
Quoted 10 lines · On Thu, 10 May 2018 11:21:13 -0300 Mauro Carvalho Chehab…
The problem with a hint-based mechanism is that it will generate false hints. If added, we may end by needing to add extra tags to disable the hints mechanism where it gets wrong, or to periodically do code changes at kernel-doc comments in order to make the hints logic happy.
So, IMO, we should provide non-hints based mechanism, like forcing the string that prepends the colon to have a keyword that will make it to parse the block as literal, where expressions like:
Quoted 6 lines
See the code-block foo:
See the following code example:
See the following flow diagram:
See the following artwork:Is the best alternative to avoid "::", as on the enclosed patch.
But this, too, is a hint-based mechanism. Thanks for the patches, I'll keep them around, but I would like an opportunity to try to do better before applying them. I fear that using magic words in this way will lead to a constant stream of surprises, and I'd like to avoid that if possible...
Thanks,
jon
Re: [PATCH 13/18] wait: wait.h: Get rid of a kernel-doc/Sphinx warnings
Em Thu, 10 May 2018 09:38:46 -0600
Jonathan Corbet <[email protected]> escreveu:
Quoted 18 lines
Quoted 15 lines · On Thu, 10 May 2018 11:21:13 -0300 Mauro Carvalho Chehab…
The problem with a hint-based mechanism is that it will generate false hints. If added, we may end by needing to add extra tags to disable the hints mechanism where it gets wrong, or to periodically do code changes at kernel-doc comments in order to make the hints logic happy.
So, IMO, we should provide non-hints based mechanism, like forcing the string that prepends the colon to have a keyword that will make it to parse the block as literal, where expressions like:
See the code-block foo:
See the following code example:
See the following flow diagram:
See the following artwork:
Quoted 7 lines
Quoted 1 line
Is the best alternative to avoid "::", as on the enclosed patch.
But this, too, is a hint-based mechanism. Thanks for the patches, I'll keep them around, but I would like an opportunity to try to do better before applying them. I fear that using magic words in this way will lead to a constant stream of surprises, and I'd like to avoid that if possible...
Yes, it is still hint-based. A careful selection of the "magic spell words/phrases" would minimize the risks of false positives, but it could still lead into some unwanted surprises.
IMO, "::" (or some other character combination that is not used elsewhere) is still the safest option.
Thanks,
Mauro
Re: [PATCH 13/18] wait: wait.h: Get rid of a kernel-doc/Sphinx warnings
In reply to Jonathan CorbetQuoted 10 lines · Jonathan Corbet
Quoted 6 lines · On Thu, 10 May 2018 14:23:35 +0200 Andrea Parri…
only
remember that other people (including some developers running into the "disadventure" of opening an RST doc. from their preferred text editor and being brought to conclude: "WTH! I need to open a web browser, I guess...") _use_ such doc. and_docare_about it, and that what might be an improvement for some people might look as "vandalizing" to others.
Quoted 3 lines
If you have an example of a place where use of a web browser has been made mandatory, please point it out. Avoiding that was at the top of the list of explicit requirements.
That's all I need.
Quoted 2 lines
Surely an extra colon is not going to
force you to run screaming to the protective embrace of Firefox...?
Let me put it in these terms: I believe that that extra colon (or the "diagram" keywork) is not going to improve/help my use of the doc. ;D
Andrea
Quoted 4 lines
Thanks,
jon
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH 13/18] wait: wait.h: Get rid of a kernel-doc/Sphinx warnings
In reply to Mauro Carvalho ChehabEm Thu, 10 May 2018 13:42:58 -0300
Mauro Carvalho Chehab <[email protected]> escreveu:
Quoted 29 lines
Em Thu, 10 May 2018 09:38:46 -0600
Jonathan Corbet <[email protected]> escreveu:Quoted 18 lines
Quoted 15 lines · On Thu, 10 May 2018 11:21:13 -0300 Mauro Carvalho Chehab…
The problem with a hint-based mechanism is that it will generate false hints. If added, we may end by needing to add extra tags to disable the hints mechanism where it gets wrong, or to periodically do code changes at kernel-doc comments in order to make the hints logic happy.
So, IMO, we should provide non-hints based mechanism, like forcing the string that prepends the colon to have a keyword that will make it to parse the block as literal, where expressions like:
See the code-block foo:
See the following code example:
See the following flow diagram:
See the following artwork:Quoted 7 lines
Quoted 1 line
Is the best alternative to avoid "::", as on the enclosed patch.
But this, too, is a hint-based mechanism. Thanks for the patches, I'll keep them around, but I would like an opportunity to try to do better before applying them. I fear that using magic words in this way will lead to a constant stream of surprises, and I'd like to avoid that if possible...
Quoted 3 lines
Yes, it is still hint-based. A careful selection of the "magic spell words/phrases" would minimize the risks of false positives, but it could still lead into some unwanted surprises.
Btw, running this:
$ git grep -A2 "\*\s.*following.*(code|example|artwork|flow|diagram).*:$"
currently doesn't have a single match.
If we force a two word combination, and an ending with ":" should be enough to not having too much false positives.
Regards,
Mauro
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH 13/18] wait: wait.h: Get rid of a kernel-doc/Sphinx warnings
In reply to Andrea ParriEm Thu, 10 May 2018 18:52:20 +0200
Andrea Parri <[email protected]> escreveu:
Quoted 15 lines · Jonathan Corbet
Quoted 10 lines
Quoted 6 lines · On Thu, 10 May 2018 14:23:35 +0200 Andrea Parri…
only
remember that other people (including some developers running into the "disadventure" of opening an RST doc. from their preferred text editor and being brought to conclude: "WTH! I need to open a web browser, I guess...") _use_ such doc. and_docare_about it, and that what might be an improvement for some people might look as "vandalizing" to others.Quoted 3 lines
If you have an example of a place where use of a web browser has been made mandatory, please point it out. Avoiding that was at the top of the list of explicit requirements.
Quoted 8 lines
That's all I need.
Quoted 2 lines
Surely an extra colon is not going to
force you to run screaming to the protective embrace of Firefox...?Let me put it in these terms: I believe that that extra colon (or the "diagram" keywork) is not going to improve/help my use of the doc. ;D
No, it won't improve, but, it won't make it harder for a human to understand if a "diagram" or "::" is added at the description.
The thing is that we need something that works for the Kernel as a hole, and not just on a few places.
On some subsystems, just a text is not good enough to describe things. See, for example:
https://www.kernel.org/doc/html/latest/media/uapi/v4l/crop.html
https://www.kernel.org/doc/html/latest/media/uapi/v4l/pixfmt-packed-rgb.html
https://www.kernel.org/doc/html/latest/media/uapi/v4l/pixfmt-srggb10-ipu3.html
https://www.kernel.org/doc/html/latest/gpu/drm-kms.html
Images, complex tables, etc are sometimes required to show some things. Trying to explain just on text is harder to write, longer and worse for readers. In the past, DocBook was used. ReST made very simple to write documentation. From where I sit, I'm reviewing documentation patches from a lot more people than the usage of a markup language.
As a bonus, we can now create cross-references for kernel-doc functions, with is really great when reading documentation for complex hardware.
Quoted 1 line
From where I sit at media, the subsystem documentation, if generated
in PDF, becomes a book with more than 1,100 pages, full of long tables, images and graphs[1], covering uAPI, kAPI and driver-specific documentation.
[1] https://linuxtv.org/downloads/v4l-dvb-apis-new/media.pdf
As on all subsystems, developers write documentation directly at .rst or as kernel-doc comments. But for reading it, even developers prefer to read the docs via the html (or pdf) output, as it better shows tables and images. It is also faster to follow the dozen thousands of links inside it.
The point is: we shouldn't enforce everyone to use our own view about how to navigate through documentation. People are free to use whatever improves their workflow.
Thanks,
Mauro
Re: [PATCH 13/18] wait: wait.h: Get rid of a kernel-doc/Sphinx warnings
In reply to Mauro Carvalho ChehabQuoted 32 lines
Am 10.05.2018 um 18:42 schrieb Mauro Carvalho Chehab <[email protected]>:
Em Thu, 10 May 2018 09:38:46 -0600
Jonathan Corbet <[email protected]> escreveu:Quoted 18 lines
Quoted 15 lines · On Thu, 10 May 2018 11:21:13 -0300 Mauro Carvalho Chehab…
The problem with a hint-based mechanism is that it will generate false hints. If added, we may end by needing to add extra tags to disable the hints mechanism where it gets wrong, or to periodically do code changes at kernel-doc comments in order to make the hints logic happy.
So, IMO, we should provide non-hints based mechanism, like forcing the string that prepends the colon to have a keyword that will make it to parse the block as literal, where expressions like:
See the code-block foo:
See the following code example:
See the following flow diagram:
See the following artwork:Quoted 7 lines
Quoted 1 line
Is the best alternative to avoid "::", as on the enclosed patch.
But this, too, is a hint-based mechanism. Thanks for the patches, I'll keep them around, but I would like an opportunity to try to do better before applying them. I fear that using magic words in this way will lead to a constant stream of surprises, and I'd like to avoid that if possible...
Quoted 6 lines
Yes, it is still hint-based. A careful selection of the "magic spell words/phrases" would minimize the risks of false positives, but it could still lead into some unwanted surprises.
IMO, "::" (or some other character combination that is not used elsewhere) is still the safest option.
Right, let's just stay with reST:
http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html
We already have some special kernel-doc additions e.g. for highlighting, cross referencing and "DOC:":
https://www.kernel.org/doc/html/latest/doc-guide/kernel-doc.html#how-to-format-kernel-doc-comments
But we should not break with reST fundamentals.
There are other plain text markups on the market, I would remember Markdown as one. They all come with markup rules (syntax), to make text parseable. Mauro brought the example with lists and colons. In ReST, the "::" introduce an indented literal block, which can be used for code block examples or a small ASCII art.
FWIW: at docutils there is also a (slow ongoing) discussion about reST syntax alternatives
http://docutils.sourceforge.net/docs/dev/rst/alternatives.html
may the syntax discussion is better placed there?
-- Markus --
tip-bot for Mauro Carvalho Chehab
merge bot[tip:timers/core] timers: Adjust a kernel-doc comment
In reply to Mauro Carvalho Chehabtimers: Adjust a kernel-doc comment
Commit-ID: bf9c96bec76fbc4424b4c70be563af4107d8044f Gitweb: https://git.kernel.org/tip/bf9c96bec76fbc4424b4c70be563af4107d8044f Author: Mauro Carvalho Chehab <[email protected]> AuthorDate: Mon, 7 May 2018 06:35:48 -0300 Committer: Thomas Gleixner <[email protected]> CommitDate: Sun, 13 May 2018 15:55:43 +0200
timers: Adjust a kernel-doc comment
Those three warnings can easily solved by using :: to indicate a code block:
./kernel/time/timer.c:1259: WARNING: Unexpected indentation. ./kernel/time/timer.c:1261: WARNING: Unexpected indentation. ./kernel/time/timer.c:1262: WARNING: Block quote ends without a blank line; unexpected unindent.
While here, align the lines at the block.
--- kernel/time/timer.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
kernel/time/timer.c +7 -7
@@ -1251,18 +1251,18 @@ EXPORT_SYMBOL(try_to_del_timer_sync);* * Note: For !irqsafe timers, you must not hold locks that are held in * interrupt context while calling this function. Even if the lock has -* nothing to do with the timer in question. Here's why: +* nothing to do with the timer in question. Here's why:: * * CPU0 CPU1 * ---- ---- -* <SOFTIRQ> -* call_timer_fn(); -* base->running_timer = mytimer; -* spin_lock_irq(somelock); +* <SOFTIRQ> +* call_timer_fn(); +* base->running_timer = mytimer; +* spin_lock_irq(somelock); * <IRQ> * spin_lock(somelock); -* del_timer_sync(mytimer); -* while (base->running_timer == mytimer); +* del_timer_sync(mytimer); +* while (base->running_timer == mytimer); * * Now del_timer_sync() will never return and never release somelock. * The interrupt on the other CPU is waiting to grab somelock but
Paul E. McKenney
AppliedRe: [PATCH 10/18] rcu: rcupdate.h: get rid of Sphinx warnings at rcu_pointer_handoff()
In reply to Mauro Carvalho ChehabQuoted 18 lines · Mauro Carvalho Chehab
Em Mon, 7 May 2018 07:23:22 -0700
"Paul E. McKenney" <[email protected]> escreveu:Quoted 15 lines · Mauro Carvalho Chehab
Quoted 11 lines
The code example at
rcupdate.hcurrently produce lots of warnings:
./include/linux/rcupdate.h:572: WARNING: Unexpected indentation../include/linux/rcupdate.h:576: WARNING: Unexpected indentation../include/linux/rcupdate.h:580: WARNING: Block quote ends without a blank line; unexpected unindent../include/linux/rcupdate.h:582: WARNING: Block quote ends without a blank line; unexpected unindent../include/linux/rcupdate.h:582: WARNING: Inline literal start-string without end-string.Change it to a code-block.
Signed-off-by Mauro Carvalho Chehab <[email protected]>Acked-by Paul E. McKenney <[email protected]>
Quoted 7 lines
Quoted 2 lines
If you don't tell me otherwise, I will assume that you are pushing this. If you would rather that I take it, please let me know!
Hi Paul,
Feel free to merge it via your tree. It seems that Jon prefers to have code changes merged via the usual maintainers.
I have queued it for v4.19, thank you!
Thanx, Paul
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH 14/18] fbdev: modedb.c: fix a kernel-doc markup
In reply to Mauro Carvalho ChehabQuoted 8 lines · Mauro Carvalho Chehab
Use code blocks to avoid those warnings and make it look nicer.
./drivers/video/fbdev/core/modedb.c:647: WARNING: Inline strong start-string without end-string../drivers/video/fbdev/core/modedb.c:647: WARNING: Inline strong start-string without end-string../drivers/video/fbdev/core/modedb.c:647: WARNING: Inline strong start-string without end-string../drivers/video/fbdev/core/modedb.c:647: WARNING: Inline strong start-string without end-string.Signed-off-by Mauro Carvalho Chehab <[email protected]>
Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics