public inbox for linux-s390@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/57] Convert files to ReST
@ 2019-04-16  2:55 Mauro Carvalho Chehab
  2019-04-16  2:55 ` [PATCH 30/57] docs: s390: Debugging390.txt: convert table to ascii artwork Mauro Carvalho Chehab
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Mauro Carvalho Chehab @ 2019-04-16  2:55 UTC (permalink / raw)
  To: Linux Doc Mailing List
  Cc: Mauro Carvalho Chehab, Mauro Carvalho Chehab, linux-kernel,
	Jonathan Corbet, linux-riscv, linux-fbdev, linux-s390,
	Greg Kroah-Hartman, linux-watchdog, xdp-newbies,
	linux-samsung-soc, linux-acpi, linux-stm32, bpf, linux-ide,
	linux-pm, dri-devel, linux-scsi, linux-gpio, linuxppc-dev, x86,
	dm-devel, target-devel, netdev, kexec, linux-fpga, linux-rdma,
	linux-kbuild, Thomas Gleixner, linux-security-module, linux-usb,
	linux-arm-kernel

This series convert lots of files to be properly parsed by Sphinx
as ReST files.

As it touches on lot of stuff, the series is based on linux-next.

I have a separate patch series with do the actual rename and
adjustment of references. I opted to submit this first, as it
sounds easier to merge this way, as each subsystem maintainer
can apply the conversion directly on their trees (or at docs
tree), avoiding merge conflects.

Both this series and  the next steps are on my devel git tree,
at:
	https://git.linuxtv.org/mchehab/experimental.git/log/?h=all_with_indexes-v3

The final output in html can be seen at:

	https://www.infradead.org/~mchehab/rst_conversion/

Mauro Carvalho Chehab (57):
  docs: trace: fix some Sphinx warnings
  docs: acpi: convert text files to ReST
  docs: aoe: convert text files to ReST
  docs: arm64: convert documentation to ReST format
  docs: cdrom/cdrom-standard.tex: convert from LaTeX to ReST
  docs: cdrom: convert remaining files to ReST
  docs: cgroup-v1: convert to ReST file format
  docs: cgroup-v1/blkio-controller.rst: add a note about CFQ scheduler
  docs: cpu-freq: convert files to ReST
  docs: device-mapper: convert it to ReST format
  docs: extcon: move it to acpi dir and convert it to ReST
  docs: fault-injection: convert it to ReST format
  docs: fb: convert documentation to ReST format
  docs: fpga: convert it to ReST
  docs: gpio: convert it to ReST
  docs: ide: convert it to ReST format
  docs: infiniband: convert it to ReST format
  docs: kbuild: convert it to ReST output
  docs: kdump: convert it to ReST
  docs: livepatch: convert it to ReST format
  docs: locking: convert docs to ReST format
  docs: mic: convert it to ReST format
  docs: netlabel: convert it to ReST
  docs: pcmcia: convert it to ReST format
  docs: power: convert docs to ReST
  docs: powerpc: convert docs to ReST
  docs: pps/pps.txt convert it to ReST and move to API book
  docs: ptp.txt: convert to ReST and move to driver-api
  docs: riscv: convert it to ReST format
  docs: s390: Debugging390.txt: convert table to ascii artwork
  docs: s390: convert text files to ReST format
  s390: include/asm/debug.h add kerneldoc markups
  docs: serial: convert it to ReST format
  docs: target: convert it to ReST format
  docs: timers: convert documentation to ReST
  docs: usb: convert documents to ReST
  docs: watchdog: convert documents to ReST format
  docs: x86: convert text files to ReST
  docs: xilinx: convert eemi.txt to ReST
  docs: scheduler: convert files to ReST
  docs: EDID/HOWTO.txt: convert to ReST and move to kernel-API
  docs: connector.txt: convert to ReST
  docs: lcd-panel-cgram.txt convert it to ReST and move to admin-guide
  docs: lp855x-driver.txt: convert to ReST and move to kernel-api
  docs: m68k: convert it to ReST file format and add to arch bookset
  docs: cma/debugfs.txt: convert to ReST and move to admin-guide/mm
  docs: console.txt: convert to ReST format
  docs: pti_intel_mid.txt: convert to ReST
  docs: early-userspace: convert docs to ReST
  docs: driver-model: convert it to ReST format
  docs: arm: convert text files to ReST format
  docs: memory-devices: convert ti-emif.txt to ReST format
  docs: xen-tpmfront.txt: convert the file to ReST format
  docs: bus-devices: ti-gpmc.txt: convert it to ReST
  docs: nvmem: convert file to ReST format
  docs: phy: convert samsung-usb2.txt to ReST format
  docs: Prepare files to be renamed to *.rst

 Documentation/EDID/HOWTO.txt                  |   29 +-
 Documentation/acpi/DSD-properties-rules.txt   |    4 +-
 Documentation/acpi/acpi-lid.txt               |   37 +-
 Documentation/acpi/aml-debugger.txt           |   31 +-
 Documentation/acpi/apei/einj.txt              |   59 +-
 Documentation/acpi/apei/output_format.txt     |  247 +-
 Documentation/acpi/cppc_sysfs.txt             |   52 +-
 Documentation/acpi/debug.txt                  |   20 +-
 .../drivers/extcon-intel-int3496.txt}         |   14 +-
 .../acpi/dsd/data-node-references.txt         |   11 +-
 Documentation/acpi/dsd/graph.txt              |   24 +-
 Documentation/acpi/dsd/leds.txt               |   18 +-
 Documentation/acpi/dsdt-override.txt          |    4 +-
 Documentation/acpi/enumeration.txt            |   42 +-
 Documentation/acpi/gpio-properties.txt        |   42 +-
 Documentation/acpi/i2c-muxes.txt              |   21 +-
 Documentation/acpi/initrd_table_override.txt  |   90 +-
 Documentation/acpi/linuxized-acpica.txt       |   58 +-
 Documentation/acpi/lpit.txt                   |    8 +-
 Documentation/acpi/method-customizing.txt     |   48 +-
 Documentation/acpi/method-tracing.txt         |  132 +-
 Documentation/acpi/namespace.txt              |  323 +-
 Documentation/acpi/osi.txt                    |    3 +-
 Documentation/acpi/scan_handlers.txt          |    9 +-
 Documentation/acpi/ssdt-overlays.txt          |  128 +-
 Documentation/acpi/video_extension.txt        |   16 +-
 Documentation/aoe/aoe.txt                     |   63 +-
 Documentation/aoe/todo.txt                    |    3 +
 Documentation/aoe/udev.txt                    |    2 +-
 Documentation/arm/Booting                     |   71 +-
 Documentation/arm/IXP4xx                      |   61 +-
 Documentation/arm/Interrupts                  |   86 +-
 Documentation/arm/Marvell/README              |  537 ++--
 Documentation/arm/Microchip/README            |   63 +-
 Documentation/arm/Netwinder                   |   59 +-
 Documentation/arm/OMAP/DSS                    |  112 +-
 Documentation/arm/OMAP/README                 |    7 +
 Documentation/arm/OMAP/omap_pm                |   55 +-
 Documentation/arm/Porting                     |   14 +-
 Documentation/arm/README                      |   50 +-
 Documentation/arm/SA1100/ADSBitsy             |   14 +-
 Documentation/arm/SA1100/Assabet              |  185 +-
 Documentation/arm/SA1100/Brutus               |   45 +-
 Documentation/arm/SA1100/CERF                 |   10 +-
 Documentation/arm/SA1100/FreeBird             |   26 +-
 Documentation/arm/SA1100/GraphicsClient       |   46 +-
 Documentation/arm/SA1100/GraphicsMaster       |   13 +-
 Documentation/arm/SA1100/HUW_WEBPANEL         |    8 +-
 Documentation/arm/SA1100/Itsy                 |   14 +-
 Documentation/arm/SA1100/LART                 |    3 +-
 Documentation/arm/SA1100/PLEB                 |    6 +-
 Documentation/arm/SA1100/Pangolin             |   10 +-
 Documentation/arm/SA1100/Tifon                |    4 +-
 Documentation/arm/SA1100/Yopy                 |    5 +-
 Documentation/arm/SA1100/empeg                |    2 -
 Documentation/arm/SA1100/nanoEngine           |    6 +-
 Documentation/arm/SA1100/serial_UART          |   60 +-
 Documentation/arm/SPEAr/overview.txt          |   20 +-
 Documentation/arm/Samsung-S3C24XX/CPUfreq.txt |    5 +-
 .../arm/Samsung-S3C24XX/EB2410ITX.txt         |    5 +-
 Documentation/arm/Samsung-S3C24XX/GPIO.txt    |   21 +-
 Documentation/arm/Samsung-S3C24XX/H1940.txt   |    5 +-
 Documentation/arm/Samsung-S3C24XX/NAND.txt    |    6 +-
 .../arm/Samsung-S3C24XX/Overview.txt          |   15 +-
 Documentation/arm/Samsung-S3C24XX/S3C2412.txt |    5 +-
 Documentation/arm/Samsung-S3C24XX/S3C2413.txt |    7 +-
 .../arm/Samsung-S3C24XX/SMDK2440.txt          |    5 +-
 Documentation/arm/Samsung-S3C24XX/Suspend.txt |   20 +-
 .../arm/Samsung-S3C24XX/USB-Host.txt          |   16 +-
 .../arm/Samsung/Bootloader-interface.txt      |   27 +-
 Documentation/arm/Samsung/GPIO.txt            |    5 +-
 Documentation/arm/Samsung/Overview.txt        |   11 +-
 Documentation/arm/Setup                       |   49 +-
 Documentation/arm/VFP/release-notes.txt       |    4 +-
 .../arm/cluster-pm-race-avoidance.txt         |  177 +-
 Documentation/arm/firmware.txt                |   14 +-
 Documentation/arm/kernel_mode_neon.txt        |    3 +
 Documentation/arm/kernel_user_helpers.txt     |   79 +-
 Documentation/arm/keystone/Overview.txt       |   47 +-
 Documentation/arm/keystone/knav-qmss.txt      |    6 +-
 Documentation/arm/mem_alignment               |   11 +-
 Documentation/arm/memory.txt                  |    9 +-
 Documentation/arm/nwfpe/NOTES                 |    3 +
 Documentation/arm/nwfpe/README                |   10 +-
 Documentation/arm/nwfpe/README.FPE            |   24 +-
 Documentation/arm/nwfpe/TODO                  |   47 +-
 Documentation/arm/pxa/mfp.txt                 |  106 +-
 Documentation/arm/sti/overview.txt            |   21 +-
 Documentation/arm/sti/stih407-overview.txt    |    9 +-
 Documentation/arm/sti/stih415-overview.txt    |    8 +-
 Documentation/arm/sti/stih416-overview.txt    |    5 +-
 Documentation/arm/sti/stih418-overview.txt    |    9 +-
 .../arm/stm32/stm32f429-overview.rst          |    5 +-
 .../arm/stm32/stm32f746-overview.rst          |    5 +-
 .../arm/stm32/stm32f769-overview.rst          |    5 +-
 .../arm/stm32/stm32h743-overview.rst          |    5 +-
 .../arm/stm32/stm32mp157-overview.rst         |    1 +
 Documentation/arm/sunxi/README                |   98 +-
 Documentation/arm/sunxi/clocks.txt            |    7 +-
 Documentation/arm/swp_emulation               |   24 +-
 Documentation/arm/tcm.txt                     |   54 +-
 Documentation/arm/uefi.txt                    |   39 +-
 Documentation/arm/vlocks.txt                  |    9 +-
 Documentation/arm64/acpi_object_usage.txt     |  288 +-
 Documentation/arm64/arm-acpi.txt              |  153 +-
 Documentation/arm64/booting.txt               |   91 +-
 Documentation/arm64/cpu-feature-registers.txt |  190 +-
 Documentation/arm64/elf_hwcaps.txt            |   50 +-
 Documentation/arm64/hugetlbpage.txt           |    7 +-
 Documentation/arm64/legacy_instructions.txt   |   43 +-
 Documentation/arm64/memory.txt                |   91 +-
 .../arm64/pointer-authentication.txt          |    2 +
 Documentation/arm64/silicon-errata.txt        |   63 +-
 Documentation/arm64/sve.txt                   |   10 +-
 Documentation/arm64/tagged-pointers.txt       |    6 +-
 Documentation/auxdisplay/lcd-panel-cgram.txt  |    7 +-
 Documentation/backlight/lp855x-driver.txt     |   65 +-
 Documentation/bt8xxgpio.txt                   |    1 -
 Documentation/bus-devices/ti-gpmc.txt         |  157 +-
 Documentation/bus-virt-phys-mapping.txt       |   50 +-
 Documentation/cdrom/Makefile                  |   21 -
 Documentation/cdrom/cdrom-standard.tex        | 1026 -------
 Documentation/cdrom/cdrom-standard.txt        | 1063 +++++++
 Documentation/cdrom/ide-cd                    |  178 +-
 Documentation/cdrom/packet-writing.txt        |   27 +-
 Documentation/cgroup-v1/blkio-controller.txt  |  103 +-
 Documentation/cgroup-v1/cgroups.txt           |  180 +-
 Documentation/cgroup-v1/cpuacct.txt           |   15 +-
 Documentation/cgroup-v1/cpusets.txt           |  203 +-
 Documentation/cgroup-v1/devices.txt           |   40 +-
 Documentation/cgroup-v1/freezer-subsystem.txt |   14 +-
 Documentation/cgroup-v1/hugetlb.txt           |   31 +-
 Documentation/cgroup-v1/memcg_test.txt        |  259 +-
 Documentation/cgroup-v1/memory.txt            |  449 +--
 Documentation/cgroup-v1/net_cls.txt           |   37 +-
 Documentation/cgroup-v1/net_prio.txt          |   24 +-
 Documentation/cgroup-v1/pids.txt              |   78 +-
 Documentation/cgroup-v1/rdma.txt              |   66 +-
 Documentation/cma/debugfs.txt                 |    6 +-
 Documentation/connector/connector.txt         |  128 +-
 Documentation/console/console.txt             |   61 +-
 Documentation/cpu-freq/amd-powernow.txt       |   11 +-
 Documentation/cpu-freq/core.txt               |   66 +-
 Documentation/cpu-freq/cpu-drivers.txt        |  217 +-
 Documentation/cpu-freq/cpufreq-nforce2.txt    |   12 +-
 Documentation/cpu-freq/cpufreq-stats.txt      |  141 +-
 Documentation/cpu-freq/pcc-cpufreq.txt        |  102 +-
 .../device-mapper/cache-policies.txt          |   24 +-
 Documentation/device-mapper/cache.txt         |  206 +-
 Documentation/device-mapper/delay.txt         |   29 +-
 Documentation/device-mapper/dm-crypt.txt      |   57 +-
 Documentation/device-mapper/dm-flakey.txt     |   45 +-
 Documentation/device-mapper/dm-init.txt       |   75 +-
 Documentation/device-mapper/dm-integrity.txt  |   55 +-
 Documentation/device-mapper/dm-io.txt         |   14 +-
 Documentation/device-mapper/dm-log.txt        |    5 +-
 .../device-mapper/dm-queue-length.txt         |   25 +-
 Documentation/device-mapper/dm-raid.txt       |  225 +-
 .../device-mapper/dm-service-time.txt         |   68 +-
 Documentation/device-mapper/dm-uevent.txt     |  143 +-
 Documentation/device-mapper/dm-zoned.txt      |   10 +-
 Documentation/device-mapper/era.txt           |   36 +-
 Documentation/device-mapper/kcopyd.txt        |   10 +-
 Documentation/device-mapper/linear.txt        |  100 +-
 Documentation/device-mapper/log-writes.txt    |   91 +-
 .../device-mapper/persistent-data.txt         |    4 +
 Documentation/device-mapper/snapshot.txt      |  116 +-
 Documentation/device-mapper/statistics.txt    |   62 +-
 Documentation/device-mapper/striped.txt       |   68 +-
 Documentation/device-mapper/switch.txt        |   47 +-
 .../device-mapper/thin-provisioning.txt       |   68 +-
 Documentation/device-mapper/unstriped.txt     |  111 +-
 Documentation/device-mapper/verity.txt        |   20 +-
 Documentation/device-mapper/writecache.txt    |   13 +-
 Documentation/device-mapper/zero.txt          |   14 +-
 Documentation/driver-model/binding.txt        |   20 +-
 Documentation/driver-model/bus.txt            |   69 +-
 Documentation/driver-model/class.txt          |   74 +-
 .../driver-model/design-patterns.txt          |  106 +-
 Documentation/driver-model/device.txt         |   57 +-
 Documentation/driver-model/devres.txt         |   50 +-
 Documentation/driver-model/driver.txt         |  112 +-
 Documentation/driver-model/overview.txt       |   37 +-
 Documentation/driver-model/platform.txt       |   30 +-
 Documentation/driver-model/porting.txt        |  333 +--
 Documentation/early-userspace/README          |    3 +
 .../early-userspace/buffer-format.txt         |   19 +-
 .../fault-injection/fault-injection.txt       |  265 +-
 .../fault-injection/notifier-error-inject.txt |   18 +-
 .../fault-injection/nvme-fault-injection.txt  |  174 +-
 .../fault-injection/provoke-crashes.txt       |   40 +-
 Documentation/fb/api.txt                      |   29 +-
 Documentation/fb/arkfb.txt                    |    8 +-
 Documentation/fb/aty128fb.txt                 |   31 +-
 Documentation/fb/cirrusfb.txt                 |   47 +-
 Documentation/fb/cmap_xfbdev.txt              |   57 +-
 Documentation/fb/deferred_io.txt              |   28 +-
 Documentation/fb/efifb.txt                    |   18 +-
 Documentation/fb/ep93xx-fb.txt                |   25 +-
 Documentation/fb/fbcon.txt                    |  177 +-
 Documentation/fb/framebuffer.txt              |   79 +-
 Documentation/fb/gxfb.txt                     |   22 +-
 Documentation/fb/intel810.txt                 |   77 +-
 Documentation/fb/intelfb.txt                  |   62 +-
 Documentation/fb/internals.txt                |   24 +-
 Documentation/fb/lxfb.txt                     |   23 +-
 Documentation/fb/matroxfb.txt                 |  526 ++--
 Documentation/fb/metronomefb.txt              |    8 +-
 Documentation/fb/modedb.txt                   |   44 +-
 Documentation/fb/pvr2fb.txt                   |   55 +-
 Documentation/fb/pxafb.txt                    |   81 +-
 Documentation/fb/s3fb.txt                     |    8 +-
 Documentation/fb/sa1100fb.txt                 |   23 +-
 Documentation/fb/sh7760fb.txt                 |  153 +-
 Documentation/fb/sisfb.txt                    |   40 +-
 Documentation/fb/sm501.txt                    |    7 +-
 Documentation/fb/sm712fb.txt                  |   18 +-
 Documentation/fb/sstfb.txt                    |  231 +-
 Documentation/fb/tgafb.txt                    |   30 +-
 Documentation/fb/tridentfb.txt                |   34 +-
 Documentation/fb/udlfb.txt                    |   55 +-
 Documentation/fb/uvesafb.txt                  |  128 +-
 Documentation/fb/vesafb.txt                   |  121 +-
 Documentation/fb/viafb.txt                    |  393 +--
 Documentation/fb/vt8623fb.txt                 |   10 +-
 Documentation/fpga/dfl.txt                    |   58 +-
 Documentation/gpio/sysfs.txt                  |   39 +-
 Documentation/highuid.txt                     |    2 +-
 Documentation/ide/ide-tape.txt                |   23 +-
 Documentation/ide/ide.txt                     |  147 +-
 Documentation/ide/warm-plug-howto.txt         |   10 +-
 Documentation/index.rst                       |    1 +
 Documentation/infiniband/core_locking.txt     |   64 +-
 Documentation/infiniband/ipoib.txt            |   24 +-
 Documentation/infiniband/opa_vnic.txt         |  108 +-
 Documentation/infiniband/sysfs.txt            |    4 +-
 Documentation/infiniband/tag_matching.txt     |    5 +
 Documentation/infiniband/user_mad.txt         |   33 +-
 Documentation/infiniband/user_verbs.txt       |   12 +-
 Documentation/kbuild/headers_install.txt      |    5 +-
 Documentation/kbuild/kbuild.txt               |  119 +-
 Documentation/kbuild/kconfig-language.txt     |  232 +-
 .../kbuild/kconfig-macro-language.txt         |   37 +-
 Documentation/kbuild/kconfig.txt              |  136 +-
 Documentation/kbuild/makefiles.txt            |  518 ++--
 Documentation/kbuild/modules.txt              |  166 +-
 Documentation/kdump/kdump.txt                 |  131 +-
 Documentation/kdump/vmcoreinfo.txt            |   59 +-
 Documentation/kobject.txt                     |    2 +-
 Documentation/ldm.txt                         |    3 +-
 Documentation/livepatch/callbacks.txt         |   12 +-
 .../livepatch/cumulative-patches.txt          |   14 +-
 Documentation/livepatch/livepatch.txt         |   56 +-
 Documentation/livepatch/module-elf-format.txt |  211 +-
 Documentation/livepatch/shadow-vars.txt       |   65 +-
 Documentation/locking/lockdep-design.txt      |   41 +-
 Documentation/locking/lockstat.txt            |  219 +-
 Documentation/locking/locktorture.txt         |  105 +-
 Documentation/locking/mutex-design.txt        |   26 +-
 Documentation/locking/rt-mutex-design.txt     |  135 +-
 Documentation/locking/rt-mutex.txt            |   30 +-
 Documentation/locking/spinlocks.txt           |   32 +-
 Documentation/locking/ww-mutex-design.txt     |   82 +-
 Documentation/m68k/kernel-options.txt         |  319 +-
 Documentation/memory-barriers.txt             |    2 +-
 Documentation/memory-devices/ti-emif.txt      |   25 +-
 Documentation/mic/mic_overview.txt            |    6 +-
 Documentation/mic/scif_overview.txt           |   58 +-
 Documentation/netlabel/cipso_ipv4.txt         |   19 +-
 Documentation/netlabel/introduction.txt       |   16 +-
 Documentation/netlabel/lsm_interface.txt      |   16 +-
 Documentation/numastat.txt                    |    1 -
 Documentation/nvmem/nvmem.txt                 |  110 +-
 Documentation/pcmcia/devicetable.txt          |    4 +
 Documentation/pcmcia/driver-changes.txt       |   35 +-
 Documentation/pcmcia/driver.txt               |   18 +-
 Documentation/pcmcia/locking.txt              |   39 +-
 Documentation/phy/samsung-usb2.txt            |   60 +-
 Documentation/pnp.txt                         |   11 +-
 Documentation/power/apm-acpi.txt              |   10 +-
 Documentation/power/basic-pm-debugging.txt    |   77 +-
 Documentation/power/charger-manager.txt       |  101 +-
 Documentation/power/drivers-testing.txt       |    5 +
 Documentation/power/energy-model.txt          |  101 +-
 Documentation/power/freezing-of-tasks.txt     |   91 +-
 Documentation/power/interface.txt             |   20 +-
 Documentation/power/opp.txt                   |  175 +-
 Documentation/power/pci.txt                   |   77 +-
 Documentation/power/pm_qos_interface.txt      |  127 +-
 Documentation/power/power_supply_class.txt    |  269 +-
 Documentation/power/powercap/powercap.txt     |  297 +-
 Documentation/power/regulator/consumer.txt    |  141 +-
 Documentation/power/regulator/design.txt      |    9 +-
 Documentation/power/regulator/machine.txt     |   47 +-
 Documentation/power/regulator/overview.txt    |   51 +-
 Documentation/power/regulator/regulator.txt   |   18 +-
 Documentation/power/runtime_pm.txt            |  234 +-
 Documentation/power/s2ram.txt                 |   20 +-
 .../power/suspend-and-cpuhotplug.txt          |   42 +-
 .../power/suspend-and-interrupts.txt          |    2 +
 Documentation/power/swsusp-and-swap-files.txt |   15 +-
 Documentation/power/swsusp-dmcrypt.txt        |  118 +-
 Documentation/power/swsusp.txt                |  639 ++--
 Documentation/power/tricks.txt                |    6 +-
 Documentation/power/userland-swsusp.txt       |   53 +-
 Documentation/power/video.txt                 |  156 +-
 Documentation/powerpc/DAWR-POWER9.txt         |   10 +-
 Documentation/powerpc/bootwrapper.txt         |   28 +-
 Documentation/powerpc/cpu_families.txt        |   23 +-
 Documentation/powerpc/cpu_features.txt        |    6 +-
 Documentation/powerpc/cxl.txt                 |   46 +-
 Documentation/powerpc/cxlflash.txt            |    8 +-
 Documentation/powerpc/dscr.txt                |   18 +-
 .../powerpc/eeh-pci-error-recovery.txt        |  108 +-
 .../powerpc/firmware-assisted-dump.txt        |  117 +-
 Documentation/powerpc/hvcs.txt                |  108 +-
 Documentation/powerpc/isa-versions.rst        |   13 +-
 Documentation/powerpc/mpc52xx.txt             |   12 +-
 .../powerpc/pci_iov_resource_on_powernv.txt   |   15 +-
 Documentation/powerpc/pmu-ebb.txt             |    1 +
 Documentation/powerpc/ptrace.txt              |  169 +-
 Documentation/powerpc/qe_firmware.txt         |   37 +-
 Documentation/powerpc/syscall64-abi.txt       |   29 +-
 .../powerpc/transactional_memory.txt          |   45 +-
 Documentation/pps/pps.txt                     |   67 +-
 Documentation/preempt-locking.txt             |    2 +-
 Documentation/pti/pti_intel_mid.txt           |  135 +-
 Documentation/ptp/ptp.txt                     |   26 +-
 Documentation/rbtree.txt                      |   52 +-
 Documentation/riscv/pmu.txt                   |   98 +-
 Documentation/rtc.txt                         |    6 +-
 Documentation/s390/3270.txt                   |   85 +-
 Documentation/s390/CommonIO                   |   47 +-
 Documentation/s390/DASD                       |   33 +-
 Documentation/s390/Debugging390.txt           | 2599 ++++++++++-------
 Documentation/s390/cds.txt                    |  354 ++-
 Documentation/s390/driver-model.txt           |  179 +-
 Documentation/s390/monreader.txt              |   85 +-
 Documentation/s390/qeth.txt                   |   36 +-
 Documentation/s390/s390dbf.txt                |  639 ++--
 Documentation/s390/vfio-ap.txt                |  487 +--
 Documentation/s390/vfio-ccw.txt               |   88 +-
 Documentation/s390/zfcpdump.txt               |    2 +
 Documentation/scheduler/completion.txt        |   38 +-
 Documentation/scheduler/sched-arch.txt        |   18 +-
 Documentation/scheduler/sched-bwc.txt         |   28 +-
 Documentation/scheduler/sched-deadline.txt    |  293 +-
 Documentation/scheduler/sched-design-CFS.txt  |   15 +-
 Documentation/scheduler/sched-domains.txt     |    8 +-
 Documentation/scheduler/sched-energy.txt      |   47 +-
 Documentation/scheduler/sched-nice-design.txt |    6 +-
 Documentation/scheduler/sched-rt-group.txt    |   28 +-
 Documentation/scheduler/sched-stats.txt       |   35 +-
 Documentation/security/tpm/xen-tpmfront.txt   |  101 +-
 Documentation/serial/README.cycladesZ         |    5 +-
 Documentation/serial/driver                   |  113 +-
 Documentation/serial/moxa-smartio             |  750 ++---
 Documentation/serial/n_gsm.txt                |   81 +-
 Documentation/serial/rocket.txt               |  144 +-
 Documentation/serial/serial-iso7816.txt       |   21 +-
 Documentation/serial/serial-rs485.txt         |   22 +-
 Documentation/serial/tty.txt                  |  111 +-
 Documentation/target/tcm_mod_builder.txt      |  200 +-
 Documentation/target/tcmu-design.txt          |  268 +-
 Documentation/timers/NO_HZ.txt                |   40 +-
 Documentation/timers/highres.txt              |   11 +-
 Documentation/timers/hpet.txt                 |    4 +-
 Documentation/timers/hrtimers.txt             |    6 +-
 Documentation/timers/timekeeping.txt          |    3 +-
 Documentation/timers/timers-howto.txt         |   15 +-
 Documentation/trace/ftrace.rst                |    1 +
 Documentation/trace/histogram.rst             |   86 +-
 Documentation/usb/WUSB-Design-overview.txt    |   56 +-
 Documentation/usb/acm.txt                     |  156 +-
 Documentation/usb/authorization.txt           |   75 +-
 Documentation/usb/chipidea.txt                |  101 +-
 Documentation/usb/dwc3.txt                    |   12 +-
 Documentation/usb/ehci.txt                    |   42 +-
 Documentation/usb/functionfs.txt              |   17 +-
 Documentation/usb/gadget-testing.txt          |  609 ++--
 Documentation/usb/gadget_configfs.txt         |  302 +-
 Documentation/usb/gadget_hid.txt              |  175 +-
 Documentation/usb/gadget_multi.txt            |   43 +-
 Documentation/usb/gadget_printer.txt          |  155 +-
 Documentation/usb/gadget_serial.txt           |   73 +-
 Documentation/usb/iuu_phoenix.txt             |   34 +-
 Documentation/usb/mass-storage.txt            |   19 +-
 Documentation/usb/misc_usbsevseg.txt          |    9 +-
 Documentation/usb/mtouchusb.txt               |   42 +-
 Documentation/usb/ohci.txt                    |    5 +-
 Documentation/usb/rio.txt                     |   83 +-
 Documentation/usb/usb-help.txt                |   21 +-
 Documentation/usb/usb-serial.txt              |  203 +-
 Documentation/usb/usbip_protocol.txt          |  552 ++--
 Documentation/usb/usbmon.txt                  |  100 +-
 .../convert_drivers_to_kernel_api.txt         |  109 +-
 Documentation/watchdog/hpwdt.txt              |   23 +-
 Documentation/watchdog/mlx-wdt.txt            |   24 +-
 Documentation/watchdog/pcwd-watchdog.txt      |   13 +-
 Documentation/watchdog/watchdog-api.txt       |   76 +-
 .../watchdog/watchdog-kernel-api.txt          |   89 +-
 .../watchdog/watchdog-parameters.txt          |  672 +++--
 Documentation/watchdog/watchdog-pm.txt        |    3 +
 Documentation/watchdog/wdt.txt                |   31 +-
 Documentation/x86/amd-memory-encryption.txt   |   10 +-
 Documentation/x86/boot.txt                    |  578 ++--
 Documentation/x86/earlyprintk.txt             |   69 +-
 Documentation/x86/entry_64.txt                |   11 +-
 Documentation/x86/exception-tables.txt        |  245 +-
 Documentation/x86/i386/IO-APIC.txt            |   23 +-
 Documentation/x86/intel_mpx.txt               |   55 +-
 Documentation/x86/microcode.txt               |   51 +-
 Documentation/x86/mtrr.txt                    |  442 +--
 Documentation/x86/orc-unwinder.txt            |    1 +
 Documentation/x86/pat.txt                     |  217 +-
 Documentation/x86/protection-keys.txt         |   33 +-
 Documentation/x86/pti.txt                     |    8 +-
 Documentation/x86/resctrl_ui.txt              |  621 ++--
 Documentation/x86/tlb.txt                     |   12 +-
 Documentation/x86/topology.txt                |   26 +-
 Documentation/x86/usb-legacy-support.txt      |   33 +-
 Documentation/x86/x86_64/5level-paging.txt    |   14 +-
 Documentation/x86/x86_64/boot-options.txt     |   98 +-
 Documentation/x86/x86_64/mm.txt               |  212 +-
 Documentation/x86/x86_64/uefi.txt             |   21 +-
 Documentation/x86/zero-page.txt               |   67 +-
 Documentation/xilinx/eemi.txt                 |    8 +-
 Documentation/zorro.txt                       |    5 +-
 MAINTAINERS                                   |    2 +-
 arch/arm64/kernel/kexec_image.c               |    2 +-
 arch/s390/include/asm/debug.h                 |  231 ++
 drivers/cdrom/cdrom.c                         |    2 +-
 include/linux/connector.h                     |   63 +-
 433 files changed, 21459 insertions(+), 16370 deletions(-)
 rename Documentation/{extcon/intel-int3496.txt => acpi/drivers/extcon-intel-int3496.txt} (66%)
 delete mode 100644 Documentation/arm/SA1100/empeg
 delete mode 100644 Documentation/cdrom/Makefile
 delete mode 100644 Documentation/cdrom/cdrom-standard.tex
 create mode 100644 Documentation/cdrom/cdrom-standard.txt

-- 
2.20.1

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 30/57] docs: s390: Debugging390.txt: convert table to ascii artwork
  2019-04-16  2:55 [PATCH 00/57] Convert files to ReST Mauro Carvalho Chehab
@ 2019-04-16  2:55 ` Mauro Carvalho Chehab
  2019-04-16  2:55 ` [PATCH 32/57] s390: include/asm/debug.h add kerneldoc markups Mauro Carvalho Chehab
  2019-04-18 12:42 ` Avoiding merge conflicts while adding new docs - Was: Re: [PATCH 00/57] Convert files to ReST Mauro Carvalho Chehab
  2 siblings, 0 replies; 5+ messages in thread
From: Mauro Carvalho Chehab @ 2019-04-16  2:55 UTC (permalink / raw)
  To: Linux Doc Mailing List
  Cc: Mauro Carvalho Chehab, Mauro Carvalho Chehab, linux-kernel,
	Jonathan Corbet, Martin Schwidefsky, Heiko Carstens, linux-s390

The first bit/value table inside the document is very
hard to read and won't fit ReST format. Convert it to
a nice ascii artwork table with makes it easier to read
and is compatible with ReST format parser on Sphinx.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
---
 Documentation/s390/Debugging390.txt | 210 ++++++++++++++++------------
 1 file changed, 120 insertions(+), 90 deletions(-)

diff --git a/Documentation/s390/Debugging390.txt b/Documentation/s390/Debugging390.txt
index 5ae7f868a007..c35804c238ad 100644
--- a/Documentation/s390/Debugging390.txt
+++ b/Documentation/s390/Debugging390.txt
@@ -78,96 +78,126 @@ e.g. switching address translation off requires that you
 have a logical=physical mapping for the address you are
 currently running at.
 
-      Bit           Value
-s/390 z/Architecture
-0       0     Reserved ( must be 0 ) otherwise specification exception occurs.
-
-1       1     Program Event Recording 1 PER enabled, 
-	      PER is used to facilitate debugging e.g. single stepping.
-
-2-4    2-4    Reserved ( must be 0 ). 
-
-5       5     Dynamic address translation 1=DAT on.
-
-6       6     Input/Output interrupt Mask
-
-7	7     External interrupt Mask used primarily for interprocessor
-	      signalling and clock interrupts.
-
-8-11  8-11    PSW Key used for complex memory protection mechanism
-	      (not used under linux)
-
-12      12    1 on s/390 0 on z/Architecture
-
-13      13    Machine Check Mask 1=enable machine check interrupts
-
-14	14    Wait State. Set this to 1 to stop the processor except for
-	      interrupts and give  time to other LPARS. Used in CPU idle in
-	      the kernel to increase overall usage of processor resources.
-
-15      15    Problem state ( if set to 1 certain instructions are disabled )
-	      all linux user programs run with this bit 1 
-	      ( useful info for debugging under VM ).
-
-16-17 16-17   Address Space Control
-
-	      00 Primary Space Mode:
-	      The register CR1 contains the primary address-space control ele-
-	      ment (PASCE), which points to the primary space region/segment
-	      table origin.
-
-	      01 Access register mode
-
-	      10 Secondary Space Mode:
-	      The register CR7 contains the secondary address-space control
-	      element (SASCE), which points to the secondary space region or
-	      segment table origin.
-
-	      11 Home Space Mode:
-	      The register CR13 contains the home space address-space control
-	      element (HASCE), which points to the home space region/segment
-	      table origin.
-
-	      See "Address Spaces on Linux for s/390 & z/Architecture" below
-	      for more information about address space usage in Linux.
-
-18-19 18-19   Condition codes (CC)
-
-20    20      Fixed point overflow mask if 1=FPU exceptions for this event 
-              occur ( normally 0 ) 
-
-21    21      Decimal overflow mask if 1=FPU exceptions for this event occur 
-              ( normally 0 )
-
-22    22      Exponent underflow mask if 1=FPU exceptions for this event occur 
-              ( normally 0 )
-
-23    23      Significance Mask if 1=FPU exceptions for this event occur 
-              ( normally 0 )
-
-24-31 24-30   Reserved Must be 0.
-
-      31      Extended Addressing Mode
-      32      Basic Addressing Mode
-              Used to set addressing mode
-	      PSW 31   PSW 32
-                0         0        24 bit
-                0         1        31 bit
-                1         1        64 bit
-
-32             1=31 bit addressing mode 0=24 bit addressing mode (for backward 
-               compatibility), linux always runs with this bit set to 1
-
-33-64          Instruction address.
-      33-63    Reserved must be 0
-      64-127   Address
-               In 24 bits mode bits 64-103=0 bits 104-127 Address 
-               In 31 bits mode bits 64-96=0 bits 97-127 Address
-               Note: unlike 31 bit mode on s/390 bit 96 must be zero
-	       when loading the address with LPSWE otherwise a 
-               specification exception occurs, LPSW is fully backward
-               compatible.
-
++-------------------------+-------------------------------------------------+
+|          Bit            |                                                 |
++--------+----------------+                     Value                       |
+| s/390  | z/Architecture |                                                 |
++========+================+=================================================+
+| 0      |     0          | Reserved (must be 0) otherwise specification    |
+|        |                | exception occurs.                               |
++--------+----------------+-------------------------------------------------+
+| 1      |     1          | Program Event Recording 1 PER enabled,          |
+|        |                | PER is used to facilitate debugging e.g.        |
+|        |                | single stepping.                                |
++--------+----------------+-------------------------------------------------+
+| 2-4    |    2-4         | Reserved (must be 0).                           |
++--------+----------------+-------------------------------------------------+
+| 5      |     5          | Dynamic address translation 1=DAT on.           |
++--------+----------------+-------------------------------------------------+
+| 6      |     6          | Input/Output interrupt Mask                     |
++--------+----------------+-------------------------------------------------+
+| 7      |     7          | External interrupt Mask used primarily for      |
+|        |                | interprocessor signalling and clock interrupts. |
++--------+----------------+-------------------------------------------------+
+| 8-11   |   8-11         | PSW Key used for complex memory protection      |
+|        |                | mechanism (not used under linux)                |
++--------+----------------+-------------------------------------------------+
+| 12     |     12         | 1 on s/390 0 on z/Architecture                  |
++--------+----------------+-------------------------------------------------+
+| 13     |     13         | Machine Check Mask 1=enable machine check       |
+|        |                | interrupts                                      |
++--------+----------------+-------------------------------------------------+
+| 14     |     14         | Wait State. Set this to 1 to stop the processor |
+|        |                | except for interrupts and give  time to other   |
+|        |                | LPARS. Used in CPU idle in the kernel to        |
+|        |                | increase overall usage of processor resources.  |
++--------+----------------+-------------------------------------------------+
+| 15     |     15         | Problem state (if set to 1 certain instructions |
+|        |                | are disabled). All linux user programs run with |
+|        |                | this bit 1 (useful info for debugging under VM).|
++--------+----------------+-------------------------------------------------+
+| 16-17  |    16-17       | Address Space Control                           |
+|        |                |                                                 |
+|        |                | 00 Primary Space Mode:                          |
+|        |                |                                                 |
+|        |                | The register CR1 contains the primary           |
+|        |                | address-space control element (PASCE), which    |
+|        |                | points to the primary space region/segment      |
+|        |                | table origin.                                   |
+|        |                |                                                 |
+|        |                | 01 Access register mode                         |
+|        |                |                                                 |
+|        |                | 10 Secondary Space Mode:                        |
+|        |                |                                                 |
+|        |                | The register CR7 contains the secondary         |
+|        |                | address-space control element (SASCE), which    |
+|        |                | points to the secondary space region or         |
+|        |                | segment table origin.                           |
+|        |                |                                                 |
+|        |                | 11 Home Space Mode:                             |
+|        |                |                                                 |
+|        |                | The register CR13 contains the home space       |
+|        |                | address-space control element (HASCE), which    |
+|        |                | points to the home space region/segment         |
+|        |                | table origin.                                   |
+|        |                |                                                 |
+|        |                | See "Address Spaces on Linux for s/390 &        |
+|        |                | z/Architecture" below for more information      |
+|        |                | about address space usage in Linux.             |
++--------+----------------+-------------------------------------------------+
+| 18-19  |    18-19       | Condition codes (CC)                            |
++--------+----------------+-------------------------------------------------+
+| 20     |    20          | Fixed point overflow mask if 1=FPU exceptions   |
+|        |                | for this event occur (normally 0)               |
++--------+----------------+-------------------------------------------------+
+| 21     |    21          | Decimal overflow mask if 1=FPU exceptions for   |
+|        |                | this event occur (normally 0)                   |
++--------+----------------+-------------------------------------------------+
+| 22     |    22          | Exponent underflow mask if 1=FPU exceptions     |
+|        |                | for this event occur (normally 0)               |
++--------+----------------+-------------------------------------------------+
+| 23     |    23          | Significance Mask if 1=FPU exceptions for this  |
+|        |                | event occur (normally 0)                        |
++--------+----------------+-------------------------------------------------+
+| 24-31  |    24-30       | Reserved Must be 0.                             |
+|        +----------------+-------------------------------------------------+
+|        |    31          | Extended Addressing Mode                        |
+|        +----------------+-------------------------------------------------+
+|        |    32          | Basic Addressing Mode                           |
+|        |                |                                                 |
+|        |                | Used to set addressing mode                     |
+|        |                |                                                 |
+|        |                |    +---------+----------+----------+            |
+|        |                |    | PSW 31  | PSW 32   |          |            |
+|        |                |    +---------+----------+----------+            |
+|        |                |    |   0     |    0     |  24 bit  |            |
+|        |                |    +---------+----------+----------+            |
+|        |                |    |   0     |    1     |  31 bit  |            |
+|        |                |    +---------+----------+----------+            |
+|        |                |    |   1     |    1     |  64 bit  |            |
+|        |                |    +---------+----------+----------+            |
++--------+----------------+-------------------------------------------------+
+| 32     |                | 1=31 bit addressing mode 0=24 bit addressing    |
+|        |                | mode (for backward compatibility), linux        |
+|        |                | always runs with this bit set to 1              |
++--------+----------------+-------------------------------------------------+
+| 33-64  |                | Instruction address.                            |
+|        +----------------+-------------------------------------------------+
+|        |    33-63       | Reserved must be 0                              |
+|        +----------------+-------------------------------------------------+
+|        |    64-127      | Address                                         |
+|        |                |                                                 |
+|        |                |   - In 24 bits mode bits 64-103=0 bits 104-127  |
+|        |                |     Address                                     |
+|        |                |   - In 31 bits mode bits 64-96=0 bits 97-127    |
+|        |                |     Address                                     |
+|        |                |                                                 |
+|        |                | Note:                                           |
+|        |                |     unlike 31 bit mode on s/390 bit 96 must be  |
+|        |                |     zero when loading the address with LPSWE    |
+|        |                |     otherwise a specification exception occurs, |
+|        |                |     LPSW is fully backward compatible.          |
++--------+----------------+-------------------------------------------------+
 
 Prefix Page(s)
 --------------
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 32/57] s390: include/asm/debug.h add kerneldoc markups
  2019-04-16  2:55 [PATCH 00/57] Convert files to ReST Mauro Carvalho Chehab
  2019-04-16  2:55 ` [PATCH 30/57] docs: s390: Debugging390.txt: convert table to ascii artwork Mauro Carvalho Chehab
@ 2019-04-16  2:55 ` Mauro Carvalho Chehab
  2019-04-18 12:42 ` Avoiding merge conflicts while adding new docs - Was: Re: [PATCH 00/57] Convert files to ReST Mauro Carvalho Chehab
  2 siblings, 0 replies; 5+ messages in thread
From: Mauro Carvalho Chehab @ 2019-04-16  2:55 UTC (permalink / raw)
  To: Linux Doc Mailing List
  Cc: Mauro Carvalho Chehab, Mauro Carvalho Chehab, linux-kernel,
	Jonathan Corbet, Martin Schwidefsky, Heiko Carstens, linux-s390

Instead of keeping the documentation inside s390dbf.txt,
move them to arch/s390/include/asm/debug.h, using standard
kernel-doc markups.

Those were converted to kerneldoc using this specially made
script and manually editted:

<script>
use strict;

my $mode = "";
my $parameter = "";
my $ret = "";
my $descr = "";

sub add_var($)
{
	my $ln = shift;

	$ln =~ s/^\s+//;
	$ln =~ s/\s+$//;

	return if ($ln eq "");

	$ln =~ s/^(\S+)\s+/$1\t/;

	print " * \@$ln\n";
}

sub add_return($)
{
	my $ln = shift;

	print " *\n * Return:\n" if ($mode ne "Return Value:");

	$ln =~ s/^\s+//;
	$ln =~ s/\s+$//;

	return if ($ln eq "");

	print " * -   $ln\n";
}

sub add_description($)
{
	my $ln = shift;

	print " *\n * \n" if ($mode ne "Description:");

	$ln =~ s/^\s+//;
	$ln =~ s/\s+$//;

	return if ($ln eq "");

	print " * $ln\n";
}

sub flush_results()
{
	print " */\n\n";
}

while (<>) {
	if (m/^[\-]+$/) {
		flush_results();
		$mode = "";
		$parameter = "";
		$ret = "";
		$descr = "";
		next;
	}
	if (m/(Parameter:)(.*)/) {
		print " *\n" if ($mode eq "func");
		add_var($2);
		$mode = $1;
		next;
	}
	if (m/(Return Value:)(.*)/) {
		add_return($2);
		$mode = $1;
		next;
	}
	if (m/(Description:)(.*)/) {
		add_description($2);
		$mode = $1;
		next;
	}
	if ($mode eq "Parameter:") {
		add_var($_);
		next;
	}
	if ($mode eq "Return Value:") {
		add_return($_);
		next;
	}
	if ($mode eq "Description:") {
		add_description($_);
		next;
	}
	next if (m/^\s*$/);

	if (m/^\S+.*\s\*?(\S+)\s*\(/) {
		if ($mode eq "") {
			print "/**\n * $1()\n";
		} else {
			print " * $1()\n";
		}
		$mode="func";
	}
}
flush_results();
</script>

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
---
 Documentation/s390/s390dbf.txt | 322 +--------------------------------
 arch/s390/include/asm/debug.h  | 231 +++++++++++++++++++++++
 2 files changed, 232 insertions(+), 321 deletions(-)

diff --git a/Documentation/s390/s390dbf.txt b/Documentation/s390/s390dbf.txt
index 549dba50fc3b..b0ca0d142ea1 100644
--- a/Documentation/s390/s390dbf.txt
+++ b/Documentation/s390/s390dbf.txt
@@ -107,327 +107,7 @@ will stay deactivated.
 Kernel Interfaces:
 ------------------
 
-----------------------------------------------------------------------------
-
-::
-
-  debug_info_t *debug_register(char *name, int pages, int nr_areas,
-			       int buf_size);
-
-Parameter:
-	      name:
-			   Name of debug log (e.g. used for debugfs entry)
-	      pages:
-			   Number of pages, which will be allocated per area
-	      nr_areas:
-			   Number of debug areas
-	      buf_size:
-			   Size of data area in each debug entry
-
-Return Value:
-	Handle for generated debug area
-
-	  NULL if register failed
-
-Description:  Allocates memory for a debug log
-	      Must not be called within an interrupt handler
-
-----------------------------------------------------------------------------
-
-::
-
-  debug_info_t *debug_register_mode(char *name, int pages, int nr_areas,
-				    int buf_size, mode_t mode, uid_t uid,
-				    gid_t gid);
-
-Parameter:
-	      name:
-			   Name of debug log (e.g. used for debugfs entry)
-	      pages:
-			   Number of pages, which will be allocated per area
-	      nr_areas:
-			   Number of debug areas
-	      buf_size:
-			   Size of data area in each debug entry
-	      mode:
-			   File mode for debugfs files. E.g. S_IRWXUGO
-	      uid:
-			   User ID for debugfs files. Currently only 0 is
-			   supported.
-	      gid:
-			   Group ID for debugfs files. Currently only 0 is
-			   supported.
-
-Return Value:
-	      Handle for generated debug area
-
-		NULL if register failed
-
-Description:
-	      Allocates memory for a debug log
-	      Must not be called within an interrupt handler
-
----------------------------------------------------------------------------
-
-::
-
-  void debug_unregister (debug_info_t * id);
-
-Parameter:
-	       id:
-		    handle for debug log
-
-Return Value:
-	       none
-
-Description:
-	       frees memory for a debug log and removes all registered debug
-	       views.
-
-	       Must not be called within an interrupt handler
-
----------------------------------------------------------------------------
-
-::
-
-  void debug_set_level (debug_info_t * id, int new_level);
-
-Parameter:     id:        handle for debug log
-	       new_level: new debug level
-
-Return Value:
-	       none
-
-Description:
-	       Sets new actual debug level if new_level is valid.
-
----------------------------------------------------------------------------
-
-::
-
-  bool debug_level_enabled (debug_info_t * id, int level);
-
-Parameter:
-	      id:
-			  handle for debug log
-	      level:
-			  debug level
-
-Return Value:
-	      True if level is less or equal to the current debug level.
-
-Description:
-	      Returns true if debug events for the specified level would be
-	      logged. Otherwise returns false.
-
----------------------------------------------------------------------------
-
-::
-
-  void debug_stop_all(void);
-
-Parameter:
-	       none
-
-Return Value:
-	       none
-
-Description:
-	       stops the debug feature if stopping is allowed. Currently
-	       used in case of a kernel oops.
-
----------------------------------------------------------------------------
-
-::
-
-  debug_entry_t* debug_event (debug_info_t* id, int level, void* data,
-			      int length);
-
-Parameter:
-	       id:
-		       handle for debug log
-	       level:
-		       debug level
-	       data:
-		       pointer to data for debug entry
-	       length:
-		       length of data in bytes
-
-Return Value:
-	       Address of written debug entry
-
-Description:
-	       writes debug entry to active debug area (if level <= actual
-	       debug level)
-
----------------------------------------------------------------------------
-
-::
-
-  debug_entry_t* debug_int_event (debug_info_t * id, int level,
-				  unsigned int data);
-  debug_entry_t* debug_long_event(debug_info_t * id, int level,
-				  unsigned long data);
-
-Parameter:
-	       id:
-		       handle for debug log
-	       level:
-		       debug level
-	       data:
-		       integer value for debug entry
-
-Return Value:
-	       Address of written debug entry
-
-Description:
-	       writes debug entry to active debug area (if level <= actual
-	       debug level)
-
----------------------------------------------------------------------------
-
-::
-
-  debug_entry_t* debug_text_event (debug_info_t * id, int level,
-				   const char* data);
-
-Parameter:
-	       id:
-		       handle for debug log
-	       level:
-		       debug level
-	       data:
-		       string for debug entry
-
-Return Value:
-	       Address of written debug entry
-
-Description:
-	       writes debug entry in ascii format to active debug area
-	       (if level <= actual debug level)
-
----------------------------------------------------------------------------
-
-::
-
-  debug_entry_t* debug_sprintf_event (debug_info_t * id, int level,
-				      char* string,...);
-
-Parameter:
-	       id:
-		      handle for debug log
-	       level:
-		      debug level
-	       string:
-		      format string for debug entry
-	       ...:
-		      varargs used as in sprintf()
-
-Return Value:  Address of written debug entry
-
-Description:
-	       writes debug entry with format string and varargs (longs) to
-	       active debug area (if level $<=$ actual debug level).
-	       floats and long long datatypes cannot be used as varargs.
-
----------------------------------------------------------------------------
-
-::
-
-  debug_entry_t* debug_exception (debug_info_t* id, int level, void* data,
-				  int length);
-
-Parameter:
-	       id:
-		       handle for debug log
-	       level:
-		       debug level
-	       data:
-		       pointer to data for debug entry
-	       length:
-		       length of data in bytes
-
-Return Value:
-	       Address of written debug entry
-
-Description:
-	       writes debug entry to active debug area (if level <= actual
-	       debug level) and switches to next debug area
-
----------------------------------------------------------------------------
-
-::
-  debug_entry_t* debug_int_exception (debug_info_t * id, int level,
-				      unsigned int data);
-  debug_entry_t* debug_long_exception(debug_info_t * id, int level,
-				      unsigned long data);
-
-Parameter:     id:     handle for debug log
-	       level:  debug level
-	       data:   integer value for debug entry
-
-Return Value:  Address of written debug entry
-
-Description:   writes debug entry to active debug area (if level <= actual
-	       debug level) and switches to next debug area
-
----------------------------------------------------------------------------
-
-debug_entry_t* debug_text_exception (debug_info_t * id, int level,
-				     const char* data);
-
-Parameter:     id:     handle for debug log
-	       level:  debug level
-	       data:   string for debug entry
-
-Return Value:  Address of written debug entry
-
-Description:   writes debug entry in ascii format to active debug area
-	       (if level <= actual debug level) and switches to next debug
-	       area
-
----------------------------------------------------------------------------
-
-debug_entry_t* debug_sprintf_exception (debug_info_t * id, int level,
-					char* string,...);
-
-Parameter:     id:    handle for debug log
-	       level: debug level
-	       string: format string for debug entry
-	       ...: varargs used as in sprintf()
-
-Return Value:  Address of written debug entry
-
-Description:   writes debug entry with format string and varargs (longs) to
-	       active debug area (if level $<=$ actual debug level) and
-	       switches to next debug area.
-	       floats and long long datatypes cannot be used as varargs.
-
----------------------------------------------------------------------------
-
-int debug_register_view (debug_info_t * id, struct debug_view *view);
-
-Parameter:     id:    handle for debug log
-	       view:  pointer to debug view struct
-
-Return Value:  0  : ok
-	       < 0: Error
-
-Description:   registers new debug view and creates debugfs dir entry
-
----------------------------------------------------------------------------
-
-int debug_unregister_view (debug_info_t * id, struct debug_view *view);
-
-Parameter:     id:    handle for debug log
-	       view:  pointer to debug view struct
-
-Return Value:  0  : ok
-	       < 0: Error
-
-Description:   unregisters debug view and removes debugfs dir entry
-
-
+.. kernel-doc:: arch/s390/include/asm/debug.h
 
 Predefined views:
 -----------------
diff --git a/arch/s390/include/asm/debug.h b/arch/s390/include/asm/debug.h
index c305d39f5016..7cc83938c659 100644
--- a/arch/s390/include/asm/debug.h
+++ b/arch/s390/include/asm/debug.h
@@ -95,25 +95,106 @@ debug_entry_t *debug_exception_common(debug_info_t *id, int level,
 
 /* Debug Feature API: */
 
+/**
+ * debug_register() - allocates memory for a debug log.
+ *
+ * @name:        Name of debug log (e.g. used for debugfs entry)
+ * @pages:       Number of pages, which will be allocated per area
+ * @nr_areas:    Number of debug areas
+ * @buf_size:    Size of data area in each debug entry
+ *
+ * Return:
+ * - Handler for generated debug area
+ * - %NULL if register failed
+ *
+ * Must not be called within an interrupt handler.
+ */
 debug_info_t *debug_register(const char *name, int pages, int nr_areas,
 			     int buf_size);
 
+/**
+ * debug_register_mode() - allocates memory for a debug log.
+ *
+ * @name:	Name of debug log (e.g. used for debugfs entry)
+ * @pages:	Number of pages, which will be allocated per area
+ * @nr_areas:	Number of debug areas
+ * @buf_size:	Size of data area in each debug entry
+ * @mode:	File mode for debugfs files. E.g. S_IRWXUGO
+ * @uid:	User ID for debugfs files. Currently only 0 is supported.
+ * @gid:	Group ID for debugfs files. Currently only 0 is supported.
+ *
+ * Return:
+ * - Handler for generated debug area
+ * - %NULL if register failed
+ *
+ * Must not be called within an interrupt handler
+ */
 debug_info_t *debug_register_mode(const char *name, int pages, int nr_areas,
 				  int buf_size, umode_t mode, uid_t uid,
 				  gid_t gid);
 
+/**
+ * debug_unregister() - frees memory for a debug log and removes all
+ *			registered debug
+ * views.
+ *
+ * @id:		handle for debug log
+ *
+ * Return:
+ *    none
+ *
+ * Must not be called within an interrupt handler
+ */
 void debug_unregister(debug_info_t *id);
 
+/**
+ * debug_set_level() -  Sets new actual debug level if new_level is valid.
+ *
+ * @id:		handle for debug log
+ * @new_level:	new debug level
+ *
+ * Return:
+ *    none
+ */
 void debug_set_level(debug_info_t *id, int new_level);
 
 void debug_set_critical(void);
+
+/**
+ * debug_stop_all() - stops the debug feature if stopping is allowed.
+ *
+ * Return:
+ * -   none
+ */
 void debug_stop_all(void);
 
+/**
+ * debug_level_enabled() - Returns true if debug events for the specified
+ *			   level would be logged. Otherwise returns false.
+ *
+ * @id:		handle for debug log
+ * @level:	debug level
+ *
+ * Return:
+ * - %true if level is less or equal to the current debug level.
+ */
 static inline bool debug_level_enabled(debug_info_t *id, int level)
 {
 	return level <= id->level;
 }
 
+/**
+ * debug_event() - writes debug entry to active debug area
+ *		   (if level <= actual debug level)
+ *
+ * @id:		handle for debug log
+ * @level:	debug level
+ * @data:	pointer to data for debug entry
+ * @length:	length of data in bytes
+ *
+ * Return:
+ * - Address of written debug entry
+ */
 static inline debug_entry_t *debug_event(debug_info_t *id, int level,
 					 void *data, int length)
 {
@@ -122,6 +203,18 @@ static inline debug_entry_t *debug_event(debug_info_t *id, int level,
 	return debug_event_common(id, level, data, length);
 }
 
+/**
+ * debug_int_event() - writes debug entry to active debug area
+ * 		       (if level <= actual debug level)
+ *
+ * @id:		handle for debug log
+ * @level:	debug level
+ * @tag:	integer value for debug entry
+ *
+ * Return:
+ * - Address of written debug entry
+ * - %NULL if error
+ */
 static inline debug_entry_t *debug_int_event(debug_info_t *id, int level,
 					     unsigned int tag)
 {
@@ -132,6 +225,18 @@ static inline debug_entry_t *debug_int_event(debug_info_t *id, int level,
 	return debug_event_common(id, level, &t, sizeof(unsigned int));
 }
 
+/**
+ * debug_long_event() - writes debug entry to active debug area
+ * 		       (if level <= actual debug level)
+ *
+ * @id:		handle for debug log
+ * @level:	debug level
+ * @tag:	integer value for debug entry
+ *
+ * Return:
+ * - Address of written debug entry
+ * - %NULL if error
+ */
 static inline debug_entry_t *debug_long_event(debug_info_t *id, int level,
 					      unsigned long tag)
 {
@@ -142,6 +247,18 @@ static inline debug_entry_t *debug_long_event(debug_info_t *id, int level,
 	return debug_event_common(id, level, &t, sizeof(unsigned long));
 }
 
+/**
+ * debug_text_event() - writes debug entry in ascii format to active
+ *			debug area (if level <= actual debug level)
+ *
+ * @id:		handle for debug log
+ * @level:	debug level
+ * @txt:	string for debug entry
+ *
+ * Return:
+ * - Address of written debug entry
+ * - %NULL if error
+ */
 static inline debug_entry_t *debug_text_event(debug_info_t *id, int level,
 					      const char *txt)
 {
@@ -158,6 +275,22 @@ extern debug_entry_t *
 __debug_sprintf_event(debug_info_t *id, int level, char *string, ...)
 	__attribute__ ((format(printf, 3, 4)));
 
+/**
+ * debug_sprintf_event() - writes debug entry with format string
+ *			   and varargs (longs) to active debug area
+ *			   (if level $<=$ actual debug level).
+ *
+ * @_id:	handle for debug log
+ * @_level:	debug level
+ * @_fmt:	format string for debug entry
+ * @...:	varargs used as in sprintf()
+ *
+ * Return:
+ * - Address of written debug entry
+ * - %NULL if error
+ *
+ * floats and long long datatypes cannot be used as varargs.
+ */
 #define debug_sprintf_event(_id, _level, _fmt, ...)			\
 ({									\
 	debug_entry_t *__ret;						\
@@ -172,6 +305,20 @@ __debug_sprintf_event(debug_info_t *id, int level, char *string, ...)
 	__ret;								\
 })
 
+/**
+ * debug_exception() - writes debug entry to active debug area
+ *		       (if level <= actual debug level) and switches
+ *		       to next debug area
+ *
+ * @id:		handle for debug log
+ * @level:	debug level
+ * @data:	pointer to data for debug entry
+ * @length:	length of data in bytes
+ *
+ * Return:
+ * - Address of written debug entry
+ * - %NULL if error
+ */
 static inline debug_entry_t *debug_exception(debug_info_t *id, int level,
 					     void *data, int length)
 {
@@ -180,6 +327,19 @@ static inline debug_entry_t *debug_exception(debug_info_t *id, int level,
 	return debug_exception_common(id, level, data, length);
 }
 
+/**
+ * debug_int_exception() - writes debug entry to active debug area
+ *			   (if level <= actual debug level)
+ *			   and switches to next debug area
+ *
+ * @id:		handle for debug log
+ * @level:	debug level
+ * @tag:	integer value for debug entry
+ *
+ * Return:
+ * - Address of written debug entry
+ * - %NULL if error
+ */
 static inline debug_entry_t *debug_int_exception(debug_info_t *id, int level,
 						 unsigned int tag)
 {
@@ -190,6 +350,19 @@ static inline debug_entry_t *debug_int_exception(debug_info_t *id, int level,
 	return debug_exception_common(id, level, &t, sizeof(unsigned int));
 }
 
+/**
+ * debug_long_exception() - writes debug entry to active debug area
+ *			   (if level <= actual debug level)
+ *			   and switches to next debug area
+ *
+ * @id:		handle for debug log
+ * @level:	debug level
+ * @tag:	integer value for debug entry
+ *
+ * Return:
+ * - Address of written debug entry
+ * - %NULL if error
+ */
 static inline debug_entry_t *debug_long_exception (debug_info_t *id, int level,
 						   unsigned long tag)
 {
@@ -200,6 +373,20 @@ static inline debug_entry_t *debug_long_exception (debug_info_t *id, int level,
 	return debug_exception_common(id, level, &t, sizeof(unsigned long));
 }
 
+/**
+ * debug_text_exception() - writes debug entry in ascii format to active
+ *			    debug area (if level <= actual debug level)
+ *			    and switches to next debug
+ * area
+ *
+ * @id:	handle for debug log
+ * @level:	debug level
+ * @txt:	string for debug entry
+ *
+ * Return:
+ * - Address of written debug entry
+ * - %NULL if error
+ */
 static inline debug_entry_t *debug_text_exception(debug_info_t *id, int level,
 						  const char *txt)
 {
@@ -216,6 +403,24 @@ extern debug_entry_t *
 __debug_sprintf_exception(debug_info_t *id, int level, char *string, ...)
 	__attribute__ ((format(printf, 3, 4)));
 
+
+/**
+ * debug_sprintf_exception() - writes debug entry with format string and
+ *			       varargs (longs) to active debug area
+ * 			       (if level $<=$ actual debug level)
+ *			       and switches to next debug area.
+ *
+ * @_id:	handle for debug log
+ * @_level:	debug level
+ * @_fmt:	format string for debug entry
+ * @...:	varargs used as in sprintf()
+ *
+ * Return:
+ * - Address of written debug entry
+ * - %NULL if error
+ *
+ * floats and long long datatypes cannot be used as varargs.
+ */
 #define debug_sprintf_exception(_id, _level, _fmt, ...)			\
 ({									\
 	debug_entry_t *__ret;						\
@@ -230,7 +435,33 @@ __debug_sprintf_exception(debug_info_t *id, int level, char *string, ...)
 	__ret;								\
 })
 
+/**
+ * debug_register_view() - registers new debug view and creates debugfs
+ *			   dir entry
+ *
+ * @id:	handle for debug log
+ * @view:	pointer to debug view struct
+ *
+ * Return:
+ * -   0  : ok
+ * -   < 0: Error
+ */
 int debug_register_view(debug_info_t *id, struct debug_view *view);
+
+/**
+ * debug_unregister_view()
+ *
+ * @id:	handle for debug log
+ * @view:	pointer to debug view struct
+ *
+ * Return:
+ * -   0  : ok
+ * -   < 0: Error
+ *
+ *
+ * unregisters debug view and removes debugfs dir entry
+ */
+
 int debug_unregister_view(debug_info_t *id, struct debug_view *view);
 
 /*
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Avoiding merge conflicts while adding new docs - Was: Re: [PATCH 00/57] Convert files to ReST
  2019-04-16  2:55 [PATCH 00/57] Convert files to ReST Mauro Carvalho Chehab
  2019-04-16  2:55 ` [PATCH 30/57] docs: s390: Debugging390.txt: convert table to ascii artwork Mauro Carvalho Chehab
  2019-04-16  2:55 ` [PATCH 32/57] s390: include/asm/debug.h add kerneldoc markups Mauro Carvalho Chehab
@ 2019-04-18 12:42 ` Mauro Carvalho Chehab
  2019-04-19 22:10   ` Jonathan Corbet
  2 siblings, 1 reply; 5+ messages in thread
From: Mauro Carvalho Chehab @ 2019-04-18 12:42 UTC (permalink / raw)
  To: Jonathan Corbet
  Cc: Linux Doc Mailing List, Mauro Carvalho Chehab, linux-kernel,
	linux-riscv, linux-fbdev, linux-s390, Greg Kroah-Hartman,
	linux-watchdog, xdp-newbies, linux-samsung-soc, linux-acpi,
	linux-stm32, bpf, linux-ide, linux-pm, dri-devel, linux-scsi,
	linux-gpio, linuxppc-dev, x86, dm-devel, target-devel, netdev,
	kexec, linux-fpga, linux-rdma, linux-kbuild, Thomas Gleixner,
	linux-security-module, linux-usb, linux-arm-kernel

Jon,

Em Mon, 15 Apr 2019 23:55:25 -0300
Mauro Carvalho Chehab <mchehab+samsung@kernel.org> escreveu:

> I have a separate patch series with do the actual rename and
> adjustment of references. I opted to submit this first, as it
> sounds easier to merge this way, as each subsystem maintainer
> can apply the conversion directly on their trees (or at docs
> tree), avoiding merge conflects.

Based on the number of feedbacks we have about this, I'm
considering to submit a second version of my conversion patch
series that would be doing the rename together with each patch,
adding the rst files to an index file.

However, doing that would produce lots of warnings. We have
already lots of those at linux-next:

	checking consistency... 

	docs/Documentation/accelerators/ocxl.rst: WARNING: document isn't included in any toctree
	docs/Documentation/admin-guide/mm/numaperf.rst: WARNING: document isn't included in any toctree
	docs/Documentation/filesystems/ext4/allocators.rst: WARNING: document isn't included in any toctree
	docs/Documentation/filesystems/ext4/attributes.rst: WARNING: document isn't included in any toctree
	docs/Documentation/filesystems/ext4/bigalloc.rst: WARNING: document isn't included in any toctree
	docs/Documentation/filesystems/ext4/bitmaps.rst: WARNING: document isn't included in any toctree
	docs/Documentation/filesystems/ext4/blockgroup.rst: WARNING: document isn't included in any toctree
	docs/Documentation/filesystems/ext4/blocks.rst: WARNING: document isn't included in any toctree
	docs/Documentation/filesystems/ext4/checksums.rst: WARNING: document isn't included in any toctree
	docs/Documentation/filesystems/ext4/directory.rst: WARNING: document isn't included in any toctree
	docs/Documentation/filesystems/ext4/eainode.rst: WARNING: document isn't included in any toctree
	docs/Documentation/filesystems/ext4/group_descr.rst: WARNING: document isn't included in any toctree
	docs/Documentation/filesystems/ext4/ifork.rst: WARNING: document isn't included in any toctree
	docs/Documentation/filesystems/ext4/inlinedata.rst: WARNING: document isn't included in any toctree
	docs/Documentation/filesystems/ext4/inodes.rst: WARNING: document isn't included in any toctree
	docs/Documentation/filesystems/ext4/journal.rst: WARNING: document isn't included in any toctree
	docs/Documentation/filesystems/ext4/mmp.rst: WARNING: document isn't included in any toctree
	docs/Documentation/filesystems/ext4/special_inodes.rst: WARNING: document isn't included in any toctree
	docs/Documentation/filesystems/ext4/super.rst: WARNING: document isn't included in any toctree
	docs/Documentation/fmc/index.rst: WARNING: document isn't included in any toctree
	docs/Documentation/gpu/msm-crash-dump.rst: WARNING: document isn't included in any toctree
	docs/Documentation/interconnect/interconnect.rst: WARNING: document isn't included in any toctree
	docs/Documentation/laptops/lg-laptop.rst: WARNING: document isn't included in any toctree
	docs/Documentation/virtual/kvm/amd-memory-encryption.rst: WARNING: document isn't included in any toctree
	docs/Documentation/virtual/kvm/vcpu-requests.rst: WARNING: document isn't included in any toctree

After thinking a little bit and doing some tests, I think a good solution
would be to add ":orphan:" markup to the new .rst files that were not
added yet into the main body (e. g. something like the enclosed example).

That will make Sphinx suppress the:
	"WARNING: document isn't included in any toctree"
warning for the new files, while they're not included at the main indexes.

This way, maintainers can do all the hard work of doing/applying the ReST
file conversion/addition patch series on their own trees, and, once
everything gets merged, submit a patch against the latest docs-next
tree, removing the :orphan: tag and add them to the common index.rst
files.

That should largely avoid merging conflicts.

For example, assuming that someone converts the stuff at
Documentation/accounting and rename the text files there to
RST (I'm actually doing that), he could add the enclosed change on
the top of its index file:

	diff --git a/Documentation/accounting/index.rst b/Documentation/accounting/index.rst
	index e7dda5afa73f..e1f6284b5ff3 100644
	--- a/Documentation/accounting/index.rst
	+++ b/Documentation/accounting/index.rst
	@@ -1,3 +1,5 @@
	+:orphan:
	+
	 ==========
	 Accounting
	 ==========

With would make Sphinx to ignore the subdir index file while
reporting errors. It will still build the documentation, allowing
the developer to test the changes.

One of the advantages is that checking the orphaned docs is as
easy as running:

	$ git grep -l ":orphan:" Documentation/
	...
	Documentation/accounting/index.rst
	...

Making easy for people to check the orphaned files and send a fixup
patch if something got orphaned after the merge window and send a
fixes patches to be applied upstream.

What do you think?

Regards,
Mauro

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Avoiding merge conflicts while adding new docs - Was: Re: [PATCH 00/57] Convert files to ReST
  2019-04-18 12:42 ` Avoiding merge conflicts while adding new docs - Was: Re: [PATCH 00/57] Convert files to ReST Mauro Carvalho Chehab
@ 2019-04-19 22:10   ` Jonathan Corbet
  0 siblings, 0 replies; 5+ messages in thread
From: Jonathan Corbet @ 2019-04-19 22:10 UTC (permalink / raw)
  To: Mauro Carvalho Chehab
  Cc: Linux Doc Mailing List, Mauro Carvalho Chehab, linux-kernel,
	linux-riscv, linux-fbdev, linux-s390, Greg Kroah-Hartman,
	linux-watchdog, xdp-newbies, linux-samsung-soc, linux-acpi,
	linux-stm32, bpf, linux-ide, linux-pm, dri-devel, linux-scsi,
	linux-gpio, linuxppc-dev, x86, dm-devel, target-devel, netdev,
	kexec, linux-fpga, linux-rdma, linux-kbuild, Thomas Gleixner,
	linux-security-module, linux-usb, linux-arm-kernel

On Thu, 18 Apr 2019 09:42:23 -0300
Mauro Carvalho Chehab <mchehab+samsung@kernel.org> wrote:

> After thinking a little bit and doing some tests, I think a good solution
> would be to add ":orphan:" markup to the new .rst files that were not
> added yet into the main body (e. g. something like the enclosed example).

Interesting...I didn't know about that.  Yes, I think it makes sense to
put that in...

jon

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-04-19 22:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-16  2:55 [PATCH 00/57] Convert files to ReST Mauro Carvalho Chehab
2019-04-16  2:55 ` [PATCH 30/57] docs: s390: Debugging390.txt: convert table to ascii artwork Mauro Carvalho Chehab
2019-04-16  2:55 ` [PATCH 32/57] s390: include/asm/debug.h add kerneldoc markups Mauro Carvalho Chehab
2019-04-18 12:42 ` Avoiding merge conflicts while adding new docs - Was: Re: [PATCH 00/57] Convert files to ReST Mauro Carvalho Chehab
2019-04-19 22:10   ` Jonathan Corbet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox