[PATCH] docs: printk-formats: add ptrdiff_t type to printk-formats

2019-10-01 Thread Miles Chen
When print the difference between two pointers, we should use the ptrdiff_t modifier %t. Signed-off-by: Miles Chen --- Documentation/core-api/printk-formats.rst | 14 ++ 1 file changed, 14 insertions(+) diff --git a/Documentation/core-api/printk-formats.rst b/Documentation/core-api

Re: [PATCH v6 1/4] nvmem: core: add nvmem_device_find

2019-10-01 Thread Srinivas Kandagatla
On 23/09/2019 12:46, Thomas Bogendoerfer wrote: nvmem_device_find provides a way to search for nvmem devices with the help of a match function simlair to bus_find_device. Signed-off-by: Thomas Bogendoerfer --- Thanks for the patch, This patch looks good for me. Do you know which tree is

[PATCH v2] docs: networking: Add title caret and missing doc

2019-10-01 Thread Adam Zerella
Resolving a couple of Sphinx documentation warnings that are generated in the networking section. - WARNING: document isn't included in any toctree - WARNING: Title underline too short. Signed-off-by: Adam Zerella --- v2: Moved 'netronome/nfp' into alphabetical order --- Documentation/networki

Re: [PATCH] docs: networking: Add title caret and missing doc

2019-10-01 Thread Adam Zerella
On Mon, Sep 30, 2019 at 11:37:54AM -0700, Jakub Kicinski wrote: > On Sat, 28 Sep 2019 22:39:17 +1000, Adam Zerella wrote: > > Resolving a couple of Sphinx documentation warnings > > that are generated in the networking section. > > > > - WARNING: document isn't included in any toctree > > - WARNIN

Re: [PATCH] docs: arm64: Fix indentation and doc formatting

2019-10-01 Thread Adam Zerella
On Mon, Sep 30, 2019 at 01:28:23PM +0100, Will Deacon wrote: > On Sat, Sep 28, 2019 at 10:58:19PM +1000, Adam Zerella wrote: > > Sphinx generates the following warnings for the arm64 doc > > pages: > > > > Documentation/arm64/memory.rst:158: WARNING: Unexpected indentation. > > Documentation/arm64

Re: [PATCH v2 1/3] x86/boot: Introduce the kernel_info

2019-10-01 Thread Daniel Kiper
On Mon, Sep 30, 2019 at 10:18:43AM -0700, H. Peter Anvin wrote: > On 2019-09-30 08:01, Daniel Kiper wrote: > > > > OK. > > > >> field for the entire .kernel_info section, thus ensuring it is a > >> single self-contained blob. > > > > .rodata.kernel_info contains its total size immediately behind th

Re: [PATCH v3] docs: Use make invocation's -j argument for parallelism

2019-10-01 Thread Jonathan Corbet
On Tue, 24 Sep 2019 16:29:58 -0700 Kees Cook wrote: > While sphinx 1.7 and later supports "-jauto" for parallelism, this > effectively ignores the "-j" flag used in the "make" invocation, which > may cause confusion for build systems. Instead, extract the available > parallelism from "make"'s job

Re: [PATCH 1/2] docs: security: fix section hyperlink

2019-10-01 Thread Jonathan Corbet
On Wed, 25 Sep 2019 17:17:44 +0700 bhenryj0...@gmail.com wrote: > From: Brendan Jackman > > The reStructuredText syntax is wrong here; not sure how it was > intended but we can just use the section header as an implicit > hyperlink target, with a single "outward" underscore. > > Signed-off-by:

Re: [PATCH 2/2] docs: security: update base LSM documentation file

2019-10-01 Thread Jonathan Corbet
On Wed, 25 Sep 2019 13:06:28 -0700 Kees Cook wrote: > > +always appears first in the stack of LSM hooks. A > > +:c:func:`security_add_hooks()` function (in ``security/security.c``) > > IIUC, the :c:func:`...()` marking isn't needed any more, just having a > word followed by "()" should trigger

Re: [PATCH] docs: kmemleak: DEBUG_KMEMLEAK_EARLY_LOG_SIZE changed names

2019-10-01 Thread Jonathan Corbet
On Wed, 25 Sep 2019 15:32:10 +0100 Catalin Marinas wrote: > On Wed, Sep 25, 2019 at 02:31:14PM +, Jeremy Cline wrote: > > Commit c5665868183f ("mm: kmemleak: use the memory pool for early > > allocations") renamed CONFIG_DEBUG_KMEMLEAK_EARLY_LOG_SIZE to > > CONFIG_DEBUG_KMEMLEAK_MEM_POOL_SIZE

Re: [PATCH] docs: fix memory.low description in cgroup-v2.rst

2019-10-01 Thread Jonathan Corbet
On Wed, 25 Sep 2019 12:56:04 -0700 Jon Haslam wrote: > The current cgroup-v2.rst file contains an incorrect description of when > memory is reclaimed from a cgroup that is using the 'memory.low' > mechanism. This fix simply corrects the text to reflect the actual > implementation. > > Fixes: 785

Re: [PATCH 2/2] kernel-doc: add support for ____cacheline_aligned_in_smp attribute

2019-10-01 Thread Jonathan Corbet
On Tue, 17 Sep 2019 16:41:46 -0300 André Almeida wrote: > -if ($x =~ > /(struct|union)\s+(\w+)\s*\{(.*)\}(\s*(__packed|__aligned|__attribute__\s*\(\([a-z0-9,_\s\(\)]*\)\)))*/) > { > +if ($x =~ > /(struct|union)\s+(\w+)\s*\{(.*)\}(\s*(__packed|__aligned|cacheline_aligned_in_smp|__at

Re: [PATCH v2] docs: perf: Add imx-ddr to documentation index

2019-10-01 Thread Jonathan Corbet
On Sun, 15 Sep 2019 18:20:10 +1000 Adam Zerella wrote: > Sphinx is currently outputting a warning where > the file 'imx-ddr.rst' is not included in the > documentation index. Additionally, the code > highlighting and doc formatting can be slightly > improved. > > Signed-off-by: Adam Zerella > -

Re: [PATCH] Documentation: document earlycon without options for more platforms

2019-10-01 Thread Jonathan Corbet
On Mon, 16 Sep 2019 09:03:16 +0200 Christoph Hellwig wrote: > The earlycon options without arguments is supposed on all device > tree platforms, not just arm64. > > Signed-off-by: Christoph Hellwig > --- > Documentation/admin-guide/kernel-parameters.txt | 10 -- > 1 file changed, 4 ins

Re: [PATCH] riscv-docs: correct the sequence of the magic number 2 since it's little endian

2019-10-01 Thread Jonathan Corbet
On Mon, 16 Sep 2019 13:01:40 + Chester Lin wrote: > Correct the sequence of the magic number 2 since it's little endian. > > Signed-off-by: Chester Lin > --- > Documentation/riscv/boot-image-header.txt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) So I'm slowly digging my way th

Re: [PATCH 0/2] docs: Programmatically render MAINTAINERS into ReST

2019-10-01 Thread Jonathan Corbet
On Tue, 24 Sep 2019 16:02:06 -0700 Kees Cook wrote: > Commit log from Patch 2 repeated here for cover letter: > > In order to have the MAINTAINERS file visible in the rendered ReST > output, this makes some small changes to the existing MAINTAINERS file > to allow for better machine processing,

Re: [PATCH v2 2/3] x86/boot: Introduce the setup_indirect

2019-10-01 Thread Daniel Kiper
On Fri, Jul 12, 2019 at 08:56:44AM -0700, h...@zytor.com wrote: > On July 4, 2019 9:36:11 AM PDT, Daniel Kiper wrote: [...] > >diff --git a/arch/x86/include/uapi/asm/bootparam.h > >b/arch/x86/include/uapi/asm/bootparam.h > >index b05318112452..17fa6ad6 100644 > >--- a/arch/x86/include/uapi/a

Re: [PATCH 0/2] docs: Programmatically render MAINTAINERS into ReST

2019-10-01 Thread Mauro Carvalho Chehab
Em Tue, 1 Oct 2019 08:31:47 -0600 Jonathan Corbet escreveu: > On Tue, 24 Sep 2019 16:02:06 -0700 > Kees Cook wrote: > > > Commit log from Patch 2 repeated here for cover letter: > > > > In order to have the MAINTAINERS file visible in the rendered ReST > > output, this makes some small changes

Re: [PATCH 0/2] docs: Programmatically render MAINTAINERS into ReST

2019-10-01 Thread Kees Cook
On Tue, Oct 01, 2019 at 12:09:30PM -0300, Mauro Carvalho Chehab wrote: > Em Tue, 1 Oct 2019 08:31:47 -0600 > Jonathan Corbet escreveu: > > > On Tue, 24 Sep 2019 16:02:06 -0700 > > Kees Cook wrote: > > > > > Commit log from Patch 2 repeated here for cover letter: > > > > > > In order to have th

Re: [PATCH v2] docs: networking: Add title caret and missing doc

2019-10-01 Thread David Miller
From: Adam Zerella Date: Tue, 1 Oct 2019 21:16:58 +1000 > Resolving a couple of Sphinx documentation warnings > that are generated in the networking section. > > - WARNING: document isn't included in any toctree > - WARNING: Title underline too short. > > Signed-off-by: Adam Zerella Applied.

Re: [PATCH 0/2] docs: Programmatically render MAINTAINERS into ReST

2019-10-01 Thread Kees Cook
On Tue, Oct 01, 2019 at 08:31:47AM -0600, Jonathan Corbet wrote: > On a separate note...it occurred to me, rather belatedly as usual, that > last time we discussed doing this that there was some opposition to adding > a second MAINTAINERS parser to the kernel; future changes to the format of > that

Re: [PATCH 0/2] docs: Programmatically render MAINTAINERS into ReST

2019-10-01 Thread Jonathan Corbet
On Tue, 1 Oct 2019 09:16:41 -0700 Kees Cook wrote: > > > This almost certainly has to do with the fact that I'm (intentionally) > > > running the Python2 Sphinx build here. Something's not doing unicode that > > > should be. > > Given this would be for v5.5, and python2 is EOL in 2 months[1],

Re: [PATCH 0/2] docs: Programmatically render MAINTAINERS into ReST

2019-10-01 Thread Jonathan Corbet
On Tue, 1 Oct 2019 12:09:30 -0300 Mauro Carvalho Chehab wrote: > > Sphinx parallel build error: > > UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 8: > > ordinal not in range(128) > > > > For extra fun, the build process simply hangs, requiring a ^C to blow it > > away

Re: [PATCH 0/2] docs: Programmatically render MAINTAINERS into ReST

2019-10-01 Thread Jonathan Corbet
On Tue, 1 Oct 2019 09:27:29 -0700 Kees Cook wrote: > On Tue, Oct 01, 2019 at 08:31:47AM -0600, Jonathan Corbet wrote: > > On a separate note...it occurred to me, rather belatedly as usual, that > > last time we discussed doing this that there was some opposition to adding > > a second MAINTAINERS

[PATCH] docs/driver-api: Catch up with dma_buf file-name changes

2019-10-01 Thread Jonathan Corbet
drivers/dma_buf/reservation.c was renamed to dma-resv.c (and include/linux/reservation.h to dma-resv.h), but the documentation was not updated to match, leading to these build errors: Error: Cannot open file ./drivers/dma-buf/reservation.c Error: Cannot open file ./drivers/dma-buf/reservation.

[PATCH v2 1/2] doc-rst: Reduce CSS padding around Field

2019-10-01 Thread Kees Cook
Right now any ":Field Name: Field Contents" lines end up with significant padding due to CSS from the "table" CSS which rightly needs padding to make tables readable. However, field lists don't need this as they tend to be stacked together. The future heavy use of fields in the parsed MAINTAINERS f

[PATCH v2 2/2] doc-rst: Programmatically render MAINTAINERS into ReST

2019-10-01 Thread Kees Cook
In order to have the MAINTAINERS file visible in the rendered ReST output, this makes some small changes to the existing MAINTAINERS file to allow for better machine processing, and adds a new Sphinx directive "maintainers-include" to perform the rendering. Features include: - Per-subsystem refere

[PATCH v2 0/2] docs: Programmatically render MAINTAINERS into ReST

2019-10-01 Thread Kees Cook
v1: https://lore.kernel.org/lkml/20190924230208.12414-1-keesc...@chromium.org v2: fix python2 utf-8 issue thanks to Jonathan Corbet Commit log from Patch 2 repeated here for cover letter: In order to have the MAINTAINERS file visible in the rendered ReST output, this makes some small changes to

Re: [PATCH 0/2] docs: Programmatically render MAINTAINERS into ReST

2019-10-01 Thread Kees Cook
On Tue, Oct 01, 2019 at 11:35:06AM -0600, Jonathan Corbet wrote: > for line in open(path): > +if sys.version_info.major == 2: > +line = unicode(line, 'utf-8') Ah-ha! Thanks. I've sent v2 now. :) -- Kees Cook

Re: [PATCH] riscv-docs: correct the sequence of the magic number 2 since it's little endian

2019-10-01 Thread Paul Walmsley
Hi Jon, On Tue, 1 Oct 2019, Jonathan Corbet wrote: > On Mon, 16 Sep 2019 13:01:40 + > Chester Lin wrote: > > > Correct the sequence of the magic number 2 since it's little endian. > > > > Signed-off-by: Chester Lin > > --- > > Documentation/riscv/boot-image-header.txt | 2 +- > > 1 file

Re: [PATCH v2 1/3] x86/boot: Introduce the kernel_info

2019-10-01 Thread H. Peter Anvin
On 2019-10-01 04:41, Daniel Kiper wrote: > > OK, so, this is more or less what I had in my v3 patch before sending > this email. So, it looks that I am on good track. Great! Though I am not > sure that we should have magic for chunked objects. If yes could you > explain why? I would just leave len