[PATCH 16/29] selftests/vm/keys: fix a broken reference at protection_keys.c

2020-06-14 Thread Mauro Carvalho Chehab
Changeset 1eecbcdca2bd ("docs: move protection-keys.rst to the core-api book") from Jun 7, 2019 converted protection-keys.txt file to ReST. A recent change at protection_keys.c partially reverted such changeset, causing it to point to a non-existing file: - * Tests x86 Memory Protection K

[PATCH 09/29] kcsan: fix a kernel-doc warning

2020-06-14 Thread Mauro Carvalho Chehab
One of the kernel-doc markups there have two "note" sections: ./include/linux/kcsan-checks.h:346: warning: duplicate section name 'Note' While this is not the case here, duplicated sections can cause build issues on Sphinx. So, let's change the notes section to use, instead, a list for t

[PATCH 05/29] net: pylink.h: add kernel-doc descriptions for new fields at phylink_config

2020-06-14 Thread Mauro Carvalho Chehab
Some fields were moved from struct phylink into phylink_config. Update the kernel-doc markups for the config struct accordingly Fixes: 5c05c1dbb177 ("net: phylink, dsa: eliminate phylink_fixed_state_cb()") Signed-off-by: Mauro Carvalho Chehab --- include/linux/phylink.h | 4 1 file changed,

[PATCH 12/29] dt: update a reference for reneases pcar file renamed to yaml

2020-06-14 Thread Mauro Carvalho Chehab
This file was renamed, but its reference at pfc-pinctl.txt is still pointing to the old file. Fixes: 7f7d408e5a00 ("dt-bindings: gpio: rcar: Convert to json-schema") Signed-off-by: Mauro Carvalho Chehab --- .../devicetree/bindings/pinctrl/renesas,pfc-pinctrl.txt | 2 +- 1 file changed, 1

[PATCH 08/29] gpio: driver.h: fix kernel-doc markup

2020-06-14 Thread Mauro Carvalho Chehab
There is one parameter with a wrong name at kernel-doc macro: ./include/linux/gpio/driver.h:499: warning: Function parameter or member 'gc' not described in 'gpiochip_add_data' ./include/linux/gpio/driver.h:499: warning: Excess function parameter 'chip' description in 'gpiochip_add_data' Fix it

Re: [PATCH v2 1/2] i2c: imx: Fix PM runtime inbalance in probe error path

2020-06-14 Thread Krzysztof Kozlowski
On Sun, Jun 14, 2020 at 12:29:03PM +0200, Krzysztof Kozlowski wrote: > When pm_runtime_get_sync() fails in probe(), the error path should not > call pm_runtime_put_noidle(). This would lead to inbalance in > usage_count. > > Fixes: 588eb93ea49f ("i2c: imx: add runtime pm support to improve the >

[PATCH 01/22] docs: dt: convert booting-without-of.txt to ReST format

2020-06-14 Thread Mauro Carvalho Chehab
- Add a SPDX header; - Use copyright symbol; - Adjust document title; - Adjust document and section titles; - Some whitespace fixes and new line breaks; - Mark literal blocks as such; - Add table markups; - Add it to devicetree/index.rst. Signed-off-by: Mauro Carvalho Chehab --- Documentation/ar

[PATCH 12/22] docs: misc-devices/apds990x.txt: convert to ReST format

2020-06-14 Thread Mauro Carvalho Chehab
- Adjust title markup; - Adjust identation. Signed-off-by: Mauro Carvalho Chehab --- .../{apds990x.txt => apds990x.rst}| 31 ++- Documentation/misc-devices/index.rst | 1 + 2 files changed, 25 insertions(+), 7 deletions(-) rename Documentation/misc-devices/

[PATCH 22/22] docs: staging: use small font for literal includes

2020-06-14 Thread Mauro Carvalho Chehab
The normal font is too big to display 80 columns, causing extra breaks to be added at weird places. change to the footnotesize, as this would fit a little bit better. Signed-off-by: Mauro Carvalho Chehab --- Documentation/staging/index.rst | 24 1 file changed, 24 inser

[PATCH 10/22] docs: misc-devices/c2port.txt: convert to ReST format

2020-06-14 Thread Mauro Carvalho Chehab
- Use copyright symbol; - use title markups; - adjust indentation; - mark literal blocks as such. Signed-off-by: Mauro Carvalho Chehab --- .../misc-devices/{c2port.txt => c2port.rst} | 58 ++- Documentation/misc-devices/index.rst | 1 + 2 files changed, 32 insertions(

[PATCH 14/22] docs: arm64: convert perf.txt to ReST format

2020-06-14 Thread Mauro Carvalho Chehab
This file is almost in ReST. All it needs is a rename and adding a :field: for the two fields at the beginning (author and date). While here, add a proper SPDX header, and use the standard markup for document titles, just for consistency. Signed-off-by: Mauro Carvalho Chehab --- Documentation/a

[PATCH 11/22] docs: misc-devices/bh1770glc.txt: convert to ReST

2020-06-14 Thread Mauro Carvalho Chehab
- Adjust document title markup; - use list markups; - Adjust identations to display properly at ReST output. Signed-off-by: Mauro Carvalho Chehab --- .../{bh1770glc.txt => bh1770glc.rst} | 45 +-- Documentation/misc-devices/index.rst | 1 + 2 files changed, 33

[PATCH 18/22] docs: trace: ring-buffer-design.txt: convert to ReST format

2020-06-14 Thread Mauro Carvalho Chehab
- Just like some media documents, this file is dual licensed with GPL and GFDL. As right now the GFDL SPDX definition is bogus (as it doesn't tell anything about invariant parts), let's not use SPDX here. Let's use, instead, the same test as we have on media. - Convert title to ReST format;

[PATCH 16/22] docs: sh: convert new-machine.txt to ReST

2020-06-14 Thread Mauro Carvalho Chehab
- Add a SPDX header; - Adjust document title to follow ReST style; - Mark literal blocks as such; - Mark a table as such; - Add it to sh/index.rst. Signed-off-by: Mauro Carvalho Chehab --- Documentation/sh/index.rst| 5 + .../sh/{new-machine.txt => new-machine.rst} | 195

[PATCH 19/22] docs: move other kAPI documents to core-api

2020-06-14 Thread Mauro Carvalho Chehab
There are a number of random documents that seem to be describing some aspects of the core-api. Move them to such directory, adding them at the core-api/index.rst file. Signed-off-by: Mauro Carvalho Chehab --- Documentation/admin-guide/sysctl/vm.rst | 2 +- Documentation/core

[PATCH 15/22] docs: powerpc: convert vcpudispatch_stats.txt to ReST

2020-06-14 Thread Mauro Carvalho Chehab
- Add a SPDX header; - Use standard markup for document title; - Adjust identation on lists and add blank lines where needed; - Add it to the powerpc index.rst file. Acked-by: Michael Ellerman # powerpc Signed-off-by: Mauro Carvalho Chehab --- Documentation/powerpc/index.rst |

[PATCH 06/22] docs: crypto: descore-readme.txt: convert to ReST format

2020-06-14 Thread Mauro Carvalho Chehab
Convert this readme file to ReST file format, preserving its contents as-is as much as possible. The only changes are: - Added chapter and title markups; - Added blank lines where needed; - Added list markups where needed; - Use a table markup; - replace markups like `foo' to ``foo``; - add one ex

[PATCH 05/22] docs: crypto: convert async-tx-api.txt to ReST format

2020-06-14 Thread Mauro Carvalho Chehab
- Place the txt index inside a comment; - Use title and chapter markups; - Adjust markups for numbered list; - Mark literal blocks as such; - Use tables markup. - Adjust indentation when needed. Acked-By: Vinod Koul # dmaengine Signed-off-by: Mauro Carvalho Chehab --- .../{async-tx-api.txt => a

[PATCH 13/22] docs: pci: endpoint/function/binding/pci-test.txt convert to ReST

2020-06-14 Thread Mauro Carvalho Chehab
Convert this file to ReST by adding a proper title to it and use the right markups for a table. While here, add a SPDX header. Signed-off-by: Mauro Carvalho Chehab --- .../endpoint/function/binding/pci-test.rst| 26 +++ .../endpoint/function/binding/pci-test.txt| 19

[PATCH 17/22] docs: sh: convert register-banks.txt to ReST

2020-06-14 Thread Mauro Carvalho Chehab
- Add a SPDX header; - Adjust document title to follow ReST style; - Add blank lines to make ReST markup happy - Add it to sh/index.rst. Signed-off-by: Mauro Carvalho Chehab --- Documentation/sh/index.rst | 1 + .../sh/{register-banks.txt => register-banks.rst} | 13 +

[PATCH 20/22] docs: move remaining stuff under Documentation/*.txt to Documentation/staging

2020-06-14 Thread Mauro Carvalho Chehab
There are several files that I was unable to find a proper place for them, and 3 ones that are still in plain old text format. Let's place those stuff behind the carpet, as we'd like to keep the root directory clean. We can later discuss and move those into better places. Signed-off-by: Mauro Ca

[PATCH 08/22] docs: misc-devices/pci-endpoint-test.txt: convert to ReST

2020-06-14 Thread Mauro Carvalho Chehab
- use title markups; - mark literal blocks. Signed-off-by: Mauro Carvalho Chehab --- .../{ad525x_dpot.txt => ad525x_dpot.rst} | 24 +-- Documentation/misc-devices/index.rst | 1 + drivers/misc/Kconfig | 2 +- drivers/misc/ad525x_dpot.c

[PATCH 21/22] docs: staging: don't use literalinclude

2020-06-14 Thread Mauro Carvalho Chehab
Such directive cause troubles with PDF output. Signed-off-by: Mauro Carvalho Chehab --- Documentation/staging/index.rst | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Documentation/staging/index.rst b/Documentation/staging/index.rst index 8e98517675ca..8cc9d94b0a13

Re: [PATCH] Documentation: fix sysctl/kernel.rst heading format warnings

2020-06-14 Thread Mauro Carvalho Chehab
Em Sun, 14 Jun 2020 21:11:00 -0700 Randy Dunlap escreveu: > From: Randy Dunlap > > Fix heading format warnings in admin-guide/sysctl/kernel.rst: > > Documentation/admin-guide/sysctl/kernel.rst:339: WARNING: Title underline too > short. > hung_task_all_cpu_backtrace: > > > Do

[PATCH 02/22] docs: thermal: convert cpu-idle-cooling.rst to ReST

2020-06-14 Thread Mauro Carvalho Chehab
Despite being named with .rst extension, this file doesn't match the ReST standard. It actually causes a crash at Sphinx: Sphinx parallel build error: docutils.utils.SystemMessage: /devel/v4l/docs/Documentation/driver-api/thermal/cpu-idle-cooling.rst:69: (SEVERE/4) Unexpected sec

[PATCH 07/22] docs: misc-devices/spear-pcie-gadget.txt: convert to ReST

2020-06-14 Thread Mauro Carvalho Chehab
- Use title/chapter markups; - Use table markups; - Mark literal blocks as such; - Adjust indentation. Signed-off-by: Mauro Carvalho Chehab --- Documentation/misc-devices/index.rst | 1 + .../misc-devices/spear-pcie-gadget.rst| 170 ++ .../misc-devices/spear-pc

[PATCH 09/22] docs: misc-devices/pci-endpoint-test.txt: convert to ReST

2020-06-14 Thread Mauro Carvalho Chehab
- Use titles markups; - Adjust identation; - use literal markup; - Use the proper notation for footnotes. Signed-off-by: Mauro Carvalho Chehab --- Documentation/misc-devices/index.rst | 1 + .../misc-devices/pci-endpoint-test.rst| 56 +++ .../misc-devices/pci-en

[PATCH 03/22] docs: crypto: convert asymmetric-keys.txt to ReST

2020-06-14 Thread Mauro Carvalho Chehab
This file is almost compatible with ReST. Just minor changes were needed: - Adjust document and titles markups; - Adjust numbered list markups; - Add a comments markup for the Contents section; - Add markups for literal blocks. Acked-by: Jarkko Sakkinen Signed-off-by: Mauro Carvalho Chehab ---

[PATCH 04/22] docs: crypto: convert api-intro.txt to ReST format

2020-06-14 Thread Mauro Carvalho Chehab
- Change title markups; - Mark literal blocks; - Use list markups at authors/credits; - Add blank lines when needed; - Remove trailing whitespaces. Signed-off-by: Mauro Carvalho Chehab --- .../crypto/{api-intro.txt => api-intro.rst} | 186 ++ Documentation/crypto/index.rst

Re: [PATCH] Documentation: fix malformed table in filesystems/proc.rst

2020-06-14 Thread Mauro Carvalho Chehab
Em Sun, 14 Jun 2020 20:33:22 -0700 Randy Dunlap escreveu: > From: Randy Dunlap > > Fix malformed table in "proc.rst" by dropping a needless hyphen ('-'). > > Documentation/filesystems/proc.rst:548: WARNING: Malformed table. > Text in column margin in table line 29. > > Fixes: 424037b77519 ("m

Re: [PATCH] Documentation: fix malformed table in filesystems/proc.rst

2020-06-14 Thread Randy Dunlap
On 6/14/20 11:53 PM, Mauro Carvalho Chehab wrote: > Em Sun, 14 Jun 2020 20:33:22 -0700 > Randy Dunlap escreveu: > >> From: Randy Dunlap >> >> Fix malformed table in "proc.rst" by dropping a needless hyphen ('-'). >> >> Documentation/filesystems/proc.rst:548: WARNING: Malformed table. >> Text in

Re: [patch for-5.8 1/4] dma-direct: always align allocation size in dma_direct_alloc_pages()

2020-06-14 Thread Christoph Hellwig
On Thu, Jun 11, 2020 at 12:20:28PM -0700, David Rientjes wrote: > dma_alloc_contiguous() does size >> PAGE_SHIFT and set_memory_decrypted() > works at page granularity. It's necessary to page align the allocation > size in dma_direct_alloc_pages() for consistent behavior. > > This also fixes an i

Re: [patch for-5.8 2/4] dma-direct: re-encrypt memory if dma_direct_alloc_pages() fails

2020-06-14 Thread Christoph Hellwig
On Thu, Jun 11, 2020 at 12:20:29PM -0700, David Rientjes wrote: > If arch_dma_set_uncached() fails after memory has been decrypted, it needs > to be re-encrypted before freeing. > > Fixes: fa7e2247c572 ("dma-direct: make uncached_kernel_address more > general") > Cc: sta...@vger.kernel.org # 5.7 >

Re: [PATCH 09/29] kcsan: fix a kernel-doc warning

2020-06-14 Thread Marco Elver
On Mon, 15 Jun 2020 at 08:47, Mauro Carvalho Chehab wrote: > > One of the kernel-doc markups there have two "note" sections: > > ./include/linux/kcsan-checks.h:346: warning: duplicate section name > 'Note' > > While this is not the case here, duplicated sections can cause > build issues o

Re: arch/powerpc/mm/pgtable_32.c:38:34: error: array is too large (34359672832 elements)

2020-06-14 Thread Christophe Leroy
commit is b8e8efaa8639 ("powerpc: reserve fixmap entries for early debug") date: 3 weeks ago :: branch date: 49 minutes ago :: commit date: 3 weeks ago config: powerpc64-randconfig-r011-20200614 (attached as .config) compiler: clang version 11.0.0 (https://github.com/llvm/ll

Re: [PATCH] mfd: mt6360: Fix register driver NULL pointer by add driver name

2020-06-14 Thread Gene Chen
Lee Jones 於 2020年6月12日 週五 下午7:17寫道: > > On Fri, 12 Jun 2020, Gene Chen wrote: > > > Lee Jones 於 2020年6月9日 週二 下午8:53寫道: > > > > > > On Tue, 09 Jun 2020, Gene Chen wrote: > > > > > > > Lee Jones 於 2020年6月9日 週二 上午3:28寫道: > > > > > > > > > > On Mon, 08 Jun 2020, Gene Chen wrote: > > > > > > > > > >

[PATCH] x86/speculation: Merge one test in spectre_v2_user_select_mitigation()

2020-06-14 Thread Borislav Petkov
(dropping stable@ from Cc). --- Merge the test whether the CPU supports STIBP into the test which determines whether STIBP is required. Thus try to simplify what is already an insane logic. Remove a superfluous newline in a comment, while at it. Signed-off-by: Borislav Petkov Cc: Anthony Stein

Re: [PATCH] char: hw_random: Fix a reference count leak.

2020-06-14 Thread Krzysztof Kozlowski
On Sat, Jun 13, 2020 at 04:41:28PM -0500, wu000...@umn.edu wrote: > From: Qiushi Wu > > Calling pm_runtime_get_sync increments the counter even in case of > failure, causing incorrect ref count if pm_runtime_put_sync is not > called in error handling paths. Thus replace the jump target > "err_pm_

<    1   2   3   4   5