Re: [PATCH 04/14] ABI: better identificate tables

2019-06-21 Thread Greg Kroah-Hartman
On Thu, Jun 20, 2019 at 11:27:49AM -0300, Mauro Carvalho Chehab wrote: > Em Wed, 19 Jun 2019 13:14:08 -0300 > Mauro Carvalho Chehab escreveu: > > > Em Wed, 19 Jun 2019 17:02:07 +0200 > > Greg Kroah-Hartman escreveu: > > > > > On Wed, Jun 19, 2019 at 10:56:33AM -0300, Mauro Carvalho Chehab wrote

Re: [PATCH 04/14] ABI: better identificate tables

2019-06-21 Thread Mauro Carvalho Chehab
Em Fri, 21 Jun 2019 09:21:52 +0200 Greg Kroah-Hartman escreveu: > On Thu, Jun 20, 2019 at 11:27:49AM -0300, Mauro Carvalho Chehab wrote: > > Em Wed, 19 Jun 2019 13:14:08 -0300 > > Mauro Carvalho Chehab escreveu: > > > > > Em Wed, 19 Jun 2019 17:02:07 +0200 > > > Greg Kroah-Hartman escreveu:

[PATCH] ABI: sysfs-driver-mlxreg-io: fix the what fields

2019-06-21 Thread Mauro Carvalho Chehab
The author of this file should be given an award for creativity: the What: fields on this file technically fulfills the description at README. Yet, the way it is, it can't be parsed on a script, and if someone would try to do something like: grep hwmon*/jtag_enable It wouldn't find anythi

Re: [PATCH] ABI: sysfs-driver-mlxreg-io: fix the what fields

2019-06-21 Thread Andy Shevchenko
On Fri, Jun 21, 2019 at 12:54 PM Mauro Carvalho Chehab wrote: > > The author of this file should be given an award for creativity: > the What: fields on this file technically fulfills the description > at README. Yet, the way it is, it can't be parsed on a script, > and if someone would try to do

Re: [PATCH v2 20/29] docs: leds: convert to ReST

2019-06-21 Thread Pavel Machek
On Tue 2019-06-18 17:53:38, Mauro Carvalho Chehab wrote: > Rename the leds documentation files to ReST, add an > index for them and adjust in order to produce a nice html > output via the Sphinx build system. > > At its new index.rst, let's add a :orphan: while this is not linked to > the main ind

[PATCH RFC 3/6] ABI: README: specify that files should be ReST compatible

2019-06-21 Thread Mauro Carvalho Chehab
As we plan to remove the escaping code from the scripts/get_abi.pl, specify at the ABI README file that the content of the file should be ReST compatible. Signed-off-by: Mauro Carvalho Chehab --- Documentation/ABI/README | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git

[PATCH RFC 0/6] Produce ABI guide without escaping ReST source files

2019-06-21 Thread Mauro Carvalho Chehab
Hi Greg, As you proposed to give it a try on removing the escape code from the script which parses the ReST file, I changed a few things there, adding the capability of selectively enabling to output an ABI sub-dir without escaping things that would crash Sphinx. PS.: As for now this is just a RF

[PATCH RFC 6/6] docs: abi: create a 2-depth index for ABI

2019-06-21 Thread Mauro Carvalho Chehab
That helps to identify what ABI files are adding titles. Signed-off-by: Mauro Carvalho Chehab --- Documentation/admin-guide/abi.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/admin-guide/abi.rst b/Documentation/admin-guide/abi.rst index 3b9645c77469..bcab3

[PATCH RFC 2/6] ABI: sysfs-driver-mlxreg-io: fix the what fields

2019-06-21 Thread Mauro Carvalho Chehab
The author of this file should be given an award for creativity: the What: fields on this file technically fulfills the description at README. Yet, the way it is, it can't be parsed on a script, and if someone would try to do something like: grep hwmon*/jtag_enable It wouldn't find anythi

[PATCH RFC 4/6] ABI: stable: make files ReST compatible

2019-06-21 Thread Mauro Carvalho Chehab
Several entries at the stable ABI files won't parse if we pass them directly to the ReST output. Adjust them, in order to allow adding their contents as-is at the stable ABI book. Signed-off-by: Mauro Carvalho Chehab --- Documentation/ABI/stable/firewire-cdev| 4 + Documentation/ABI/st

[PATCH RFC 5/6] docs: ABI: make it parse ABI/stable as ReST-compatible files

2019-06-21 Thread Mauro Carvalho Chehab
Now that the stable ABI files are compatible with ReST, parse them without converting complex descriptions as literal blocks nor escaping special characters. Please notice that escaping special characters will probably be needed at descriptions, at least for the asterisk character. Signed-off-by:

[PATCH RFC 1/6] get_abi.pl: fix parsing on ReST mode

2019-06-21 Thread Mauro Carvalho Chehab
When the source ABI file is using ReST notation, the script should handle whitespaces and lines with care, as otherwise the file won't be properly recognized. Address the bugs that are on such part of the script. Signed-off-by: Mauro Carvalho Chehab --- scripts/get_abi.pl | 30 ++---

Re: [PATCH RFC 0/6] Produce ABI guide without escaping ReST source files

2019-06-21 Thread Mauro Carvalho Chehab
Em Fri, 21 Jun 2019 09:32:00 -0300 Mauro Carvalho Chehab escreveu: > Hi Greg, > > As you proposed to give it a try on removing the escape code from the > script which parses the ReST file, I changed a few things there, > adding the capability of selectively enabling to output an ABI sub-dir > wi

Re: [PATCH RFC 0/6] Produce ABI guide without escaping ReST source files

2019-06-21 Thread Mauro Carvalho Chehab
Em Fri, 21 Jun 2019 09:39:15 -0300 Mauro Carvalho Chehab escreveu: > Em Fri, 21 Jun 2019 09:32:00 -0300 > Mauro Carvalho Chehab escreveu: > > > Hi Greg, > > > > As you proposed to give it a try on removing the escape code from the > > script which parses the ReST file, I changed a few things t

Re: [PATCH 12/14] doc-rst: add ABI documentation to the admin-guide book

2019-06-21 Thread Mauro Carvalho Chehab
Em Wed, 19 Jun 2019 13:37:39 -0300 Mauro Carvalho Chehab escreveu: > Em Tue, 18 Jun 2019 11:47:32 +0300 > Jani Nikula escreveu: > > > On Mon, 17 Jun 2019, Mauro Carvalho Chehab > > wrote: > > > Yeah, I guess it should be possible to do that. How a python script > > > can identify if it was

[PATCH net-next] doc: phy: document some PHY_INTERFACE_MODE_xxx settings

2019-06-21 Thread Russell King
There seems to be some confusion surrounding three PHY interface modes, specifically 1000BASE-X, 2500BASE-X and SGMII. Add some documentation to phylib detailing precisely what these interface modes refer to. Signed-off-by: Russell King --- This is in response to recent discussion, both public

Re: [PATCH v2 00/22] Add ABI and features docs to the Kernel documentation

2019-06-21 Thread Greg KH
On Thu, Jun 20, 2019 at 02:22:52PM -0300, Mauro Carvalho Chehab wrote: > This is a rebased version of the scripts with parse > Documentation/ABI and Documentation/feature files > and produce a ReST output. Those scripts are added to the > Kernel building system, in order to output their contents >

Re: [PATCH v5 1/2] arm64: Define Documentation/arm64/tagged-address-abi.txt

2019-06-21 Thread Catalin Marinas
On Tue, Jun 18, 2019 at 02:13:01PM +0100, Kevin Brodsky wrote: > On 13/06/2019 16:51, Vincenzo Frascino wrote: > > +The ARM64 Tagged Address ABI is an opt-in feature, and an application can > > +control it using the following: > > + - /proc/sys/abi/tagged_addr: a new sysctl interface that can be us

[PATCH 2/2] docs: kernel_abi.py: use --enable-lineno for get_abi.pl

2019-06-21 Thread Mauro Carvalho Chehab
Just like kernel-doc extension, we need to be able to identify what part of an imported document has issues, as reporting them as: get_abi.pl rest --dir $srctree/Documentation/ABI/obsolete --rst-source:1689: ERROR: Unexpected indentation. Makes a lot harder for someone to fix. It should

[PATCH 0/2] Report warnings to the file they belong

2019-06-21 Thread Mauro Carvalho Chehab
Reporting an ABI error to the get_abi.pl script is not nice, as it doesn't maky any easy to fix it. Instead, just like with kernel-doc, put the fingers to the files that didn't parse ok: Documentation/ABI/testing/sysfs-kernel-mm-hugepages:3: WARNING: Definition list ends without a blank lin

[PATCH 1/2] get_abi.pl: Allow optionally record from where a line came from

2019-06-21 Thread Mauro Carvalho Chehab
The get_abi.pl reads a lot of files and can join them on a single output file. Store where each "What:" output came from, in order to be able to optionally display it. This is useful for the Sphinx extension, with can now be able to blame what ABI file has issues, and on what line the What: descri

Re: [PATCH RFC 0/6] Produce ABI guide without escaping ReST source files

2019-06-21 Thread Mauro Carvalho Chehab
Em Fri, 21 Jun 2019 10:04:41 -0300 Mauro Carvalho Chehab escreveu: > Em Fri, 21 Jun 2019 09:39:15 -0300 > Mauro Carvalho Chehab escreveu: > > > Em Fri, 21 Jun 2019 09:32:00 -0300 > > Mauro Carvalho Chehab escreveu: > > > > > Hi Greg, > > > > > > As you proposed to give it a try on removing

Re: [PATCH v2 00/22] Add ABI and features docs to the Kernel documentation

2019-06-21 Thread Mauro Carvalho Chehab
Em Fri, 21 Jun 2019 17:04:45 +0200 Greg KH escreveu: > On Thu, Jun 20, 2019 at 02:22:52PM -0300, Mauro Carvalho Chehab wrote: > > This is a rebased version of the scripts with parse > > Documentation/ABI and Documentation/feature files > > and produce a ReST output. Those scripts are added to the

Re: [PATCH net-next] doc: phy: document some PHY_INTERFACE_MODE_xxx settings

2019-06-21 Thread Andrew Lunn
On Fri, Jun 21, 2019 at 03:59:09PM +0100, Russell King wrote: > There seems to be some confusion surrounding three PHY interface modes, > specifically 1000BASE-X, 2500BASE-X and SGMII. Add some documentation > to phylib detailing precisely what these interface modes refer to. > > Signed-off-by: R

[PATCH 0/3 v2] docs: function automarkup, now with 80% fewer regexes!

2019-06-21 Thread Jonathan Corbet
It took me a lng time to get back to this, but here's another crack at automatically marking up "function()" so we can get rid of all that unsightly :c:func: gunk in our docs. This time, it's implemented as a pass over the doctree after everything's read and the references resolved, and the re

[PATCH 1/3] Docs: An initial automarkup extension for sphinx

2019-06-21 Thread Jonathan Corbet
Rather than fill our text files with :c:func:`function()` syntax, just do the markup via a hook into the sphinx build process. Signed-off-by: Jonathan Corbet --- Documentation/conf.py | 3 +- Documentation/sphinx/automarkup.py | 80 ++ 2 files changed, 8

[PATCH 3/3] kernel-doc: Don't try to mark up function names

2019-06-21 Thread Jonathan Corbet
We now have better automarkup in sphinx itself and, besides, this markup was incorrect and left :c:func: gunk in the processed docs. Sort of discouraging that nobody ever noticed...:) As a first step toward the removal of impenetrable regex magic from kernel-doc it's a tiny one, but you have to s

[PATCH 2/3] docs: remove :c:func: annotations from xarray.rst

2019-06-21 Thread Jonathan Corbet
Now that the build system automatically marks up function references, we don't have to clutter the source files, so take it out. [Some paragraphs could now benefit from refilling, but that was left out to avoid obscuring the real changes.] Acked-by: Matthew Wilcox Signed-off-by: Jonathan Corbet

Re: [PATCH 1/3] Docs: An initial automarkup extension for sphinx

2019-06-21 Thread Mauro Carvalho Chehab
Em Fri, 21 Jun 2019 17:51:57 -0600 Jonathan Corbet escreveu: > Rather than fill our text files with :c:func:`function()` syntax, just do > the markup via a hook into the sphinx build process. Didn't test it, but it sounds a way nicer than the past version! > Signed-off-by: Jonathan Corbet > -