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_

[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] 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: > > > > > > > > > >

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 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: [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] 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] 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

[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

[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 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 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 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 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 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 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 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

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 15/29] dt: fix reference to olpc,xo1.75-ec.txt

2020-06-14 Thread Mauro Carvalho Chehab
This file was converted and renamed. Fixes: 7882d822b3f9 ("dt-bindings: spi: Convert spi-pxa2xx to json-schema") Signed-off-by: Mauro Carvalho Chehab --- Documentation/devicetree/bindings/misc/olpc,xo1.75-ec.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/de

[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

[PATCH 04/29] scripts/kernel-doc: parse __ETHTOOL_DECLARE_LINK_MODE_MASK

2020-06-14 Thread Mauro Carvalho Chehab
The __ETHTOOL_DECLARE_LINK_MODE_MASK macro is a variant of DECLARE_BITMAP(), used by phylink.h. As we have already a parser for DECLARE_BITMAP(), let's add one for this macro, in order to avoid such warnings: ./include/linux/phylink.h:54: warning: Function parameter or member '__ETHTOOL_D

[PATCH 07/29] fs: fs.h: fix a kernel-doc parameter description

2020-06-14 Thread Mauro Carvalho Chehab
Changeset 3b0311e7ca71 ("vfs: track per-sb writeback errors and report them to syncfs") added a variant of filemap_sample_wb_err(), but it forgot to rename the arguments at the kernel-doc markup. Fix it. Fix those warnings: ./include/linux/fs.h:2845: warning: Function parameter or member

[PATCH 03/29] net: netdevice.h: add a description for napi_defer_hard_irqs

2020-06-14 Thread Mauro Carvalho Chehab
Changeset 6f8b12d661d0 ("net: napi: add hard irqs deferral feature") added a new element at struct net_device. Add a description for it, based on what's described at the changeset which added such feature. Fixes: 6f8b12d661d0 ("net: napi: add hard irqs deferral feature") Signed-off-by: Mauro Carv

[PATCH 19/29] docs: driver-model: remove a duplicated markup at driver.rst

2020-06-14 Thread Mauro Carvalho Chehab
The "::" markup is there twice, causing a warning: Documentation/driver-api/driver-model/driver.rst:233: WARNING: Inline emphasis start-string without end-string. Signed-off-by: Mauro Carvalho Chehab --- Documentation/driver-api/driver-model/driver.rst | 2 -- 1 file changed, 2 deletions(-

[PATCH 25/29] docs: add bus-virt-phys-mapping.txt to core-api

2020-06-14 Thread Mauro Carvalho Chehab
This describes an old interface used prior the new DMA-API interfaces. Add it to the core-api guide, just after the DMA stuff. Signed-off-by: Mauro Carvalho Chehab --- .../bus-virt-phys-mapping.rst} | 0 Documentation/core-api/index.rst

[PATCH 22/29] docs: it_IT: add two missing references

2020-06-14 Thread Mauro Carvalho Chehab
there are missing references causing Sphinx warnings: Documentation/translations/it_IT/process/submitting-patches.rst:384: WARNING: undefined label: it_email_clients (if the link has no caption the label must precede a section header) Documentation/translations/it_IT/process/submitting-p

[PATCH 23/29] docs: ABI: fix a typo when pointing to w1-generic.rst

2020-06-14 Thread Mauro Carvalho Chehab
There's a typo there: w1_generic.rst -> w1-generic.rst Causing the document reference to point to the wrong place. Fixes: e2c94d6f5720 ("w1_therm: adding alarm sysfs entry") Signed-off-by: Mauro Carvalho Chehab --- Documentation/ABI/testing/sysfs-driver-w1_therm | 2 +- 1 file changed,

[PATCH 11/29] fs: docs: f2fs.rst: fix a broken table

2020-06-14 Thread Mauro Carvalho Chehab
As reported by Sphinx: Documentation/filesystems/f2fs.rst:229: WARNING: Malformed table. Text in column margin in table line 126. == background_gc=%s Turn on/off cleaning operat

[PATCH v2 0/2] scsi: ufs: Add trace event for UIC commands and cleanup UIC struct

2020-06-14 Thread Stanley Chu
Hi, This series adds trace event for UIC commands and do a small cleanup in struct uic_command. v1 -> v2: - Rename "uic_send" to "send" and "uic_complete" to "complete" - Move "send" trace before UIC command is sent otherwise "send" trace may log incorrect arguments - Move "complete" trace

[PATCH 20/29] docs: watch_queue.rst: supress some Sphinx warnings and move to core-api

2020-06-14 Thread Mauro Carvalho Chehab
Sphinx doesn't like multi-line literal blocks with ``foobar``: Documentation/watch_queue.rst:109: WARNING: Inline literal start-string without end-string. Documentation/watch_queue.rst:109: WARNING: Inline emphasis start-string without end-string. Documentation/watch_queue.rst:109: W

[PATCH 27/29] docs: dt: minor adjustments at writing-schema.rst

2020-06-14 Thread Mauro Carvalho Chehab
There are two literal blocks that aren't mark as such. Mark them, in order to make the document to produce a better html output. While here, also add a SPDX header to it. Signed-off-by: Mauro Carvalho Chehab --- Documentation/devicetree/writing-schema.rst | 9 ++--- 1 file changed, 6 insert

[PATCH 17/29] docs: hugetlbpage.rst: fix some warnings

2020-06-14 Thread Mauro Carvalho Chehab
Some new command line parameters were added at hugetlbpage.rst. Adjust them in order to properly parse that part of the file, avoiding those warnings: Documentation/admin-guide/mm/hugetlbpage.rst:105: WARNING: Unexpected indentation. Documentation/admin-guide/mm/hugetlbpage.rst:108: WARNI

[PATCH 24/29] docs: fs: locking.rst: fix a broken table

2020-06-14 Thread Mauro Carvalho Chehab
As reported by Sphinx: Documentation/filesystems/locking.rst:443: WARNING: Malformed table. Text in column margin in table line 8. == = = = ops inode->i_lock blocked_lock_lock may block ==

[PATCH 18/29] docs: powerpc: fix some issues at vas-api.rst

2020-06-14 Thread Mauro Carvalho Chehab
There are a few issues on this document, when built via the building with ``make htmldocs``: Documentation/powerpc/vas-api.rst:116: WARNING: Unexpected indentation. Documentation/powerpc/vas-api.rst:116: WARNING: Inline emphasis start-string without end-string. Documentation/powerpc/v

[PATCH v2 2/2] scsi: ufs: Add trace event for UIC commands

2020-06-14 Thread Stanley Chu
Use the ftrace infrastructure to conditionally trace UFS UIC command events. New trace event "ufshcd_uic_command" is created, which samples the following UFS UIC command data: - Device name - Optional identification string - UIC command opcode - UIC command argument1 - UIC command argument2 - UIC

[PATCH v2 1/2] scsi: ufs: Remove unused field in struct uic_command

2020-06-14 Thread Stanley Chu
Remove unused field "cmd_active" and "result" in struct ufs_command. Signed-off-by: Stanley Chu Reviewed-by: Alim Akhtar --- drivers/scsi/ufs/ufshcd.h | 4 1 file changed, 4 deletions(-) diff --git a/drivers/scsi/ufs/ufshcd.h b/drivers/scsi/ufs/ufshcd.h index bf97d616e597..7fa35c78342b 10

[PATCH 26/29] docs: fix references for DMA*.txt files

2020-06-14 Thread Mauro Carvalho Chehab
As we moved those files to core-api, fix references to point to their newer locations. Signed-off-by: Mauro Carvalho Chehab --- Documentation/PCI/pci.rst | 6 +++--- Documentation/block/biodoc.rst | 2 +- Documentation/core-api/bus-virt-phys-mapping

[PATCH 21/29] docs: device-mapper: add dm-ebs.rst to an index file

2020-06-14 Thread Mauro Carvalho Chehab
Solves this Sphinx warning: Documentation/admin-guide/device-mapper/dm-ebs.rst: WARNING: document isn't included in any toctree Signed-off-by: Mauro Carvalho Chehab --- Documentation/admin-guide/device-mapper/index.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/ad

[PATCH 02/29] net: dev: add a missing kernel-doc annotation

2020-06-14 Thread Mauro Carvalho Chehab
The dev argument was not listed at kernel-doc markup: ./net/core/dev.c:7878: warning: Function parameter or member 'dev' not described in 'netdev_get_xmit_slave' Signed-off-by: Mauro Carvalho Chehab --- net/core/dev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/core/dev.c b

[PATCH 10/29] rcu: fix some kernel-doc warnings

2020-06-14 Thread Mauro Carvalho Chehab
There are some kernel-doc warnings: ./kernel/rcu/tree.c:2915: warning: Function parameter or member 'count' not described in 'kfree_rcu_cpu' ./include/linux/rculist.h:517: warning: bad line: [@right ][node2 ... ] ./include/linux/rculist.h:2: WARN

[PATCH 14/29] dt: Fix broken references to renamed docs

2020-06-14 Thread Mauro Carvalho Chehab
Some files got renamed. Those were all fixed automatically by ./scripts/documentation-file-ref-check --fix Signed-off-by: Mauro Carvalho Chehab --- Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt | 2 +- Documentation/devicetree/bindings/display/imx/fsl-imx-drm.txt | 4 ++-

[PATCH 06/29] scripts/kernel-doc: handle function pointer prototypes

2020-06-14 Thread Mauro Carvalho Chehab
There are some function pointer prototypes inside the net includes, like this one: int (*pcs_config)(struct phylink_config *config, unsigned int mode, phy_interface_t interface, const unsigned long *advertising); There's nothing wrong using it with kernel-doc, b

[PATCH 01/29] mm: vmalloc.c: remove a kernel-doc annotation from a removed parameter

2020-06-14 Thread Mauro Carvalho Chehab
The prot argument was removed. Drop it als from the kernel-doc markup. Fixes: 3c8ce1be43d3 ("mm: remove the prot argument from vm_map_ram") Signed-off-by: Mauro Carvalho Chehab --- mm/vmalloc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 3091c2ca60df..957

[PATCH 28/29] docs: fs: proc.rst: fix a warning due to a merge conflict

2020-06-14 Thread Mauro Carvalho Chehab
Changeset 424037b77519 ("mm: smaps: Report arm64 guarded pages in smaps") added a new parameter to a table. This causes Sphinx warnings, because there's now an extra "-" at the wrong place: /devel/v4l/docs/Documentation/filesystems/proc.rst:548: WARNING: Malformed table. Text in c

[PATCH 29/29] docs: fs: proc.rst: convert a new chapter to ReST

2020-06-14 Thread Mauro Carvalho Chehab
A new chapter was added to proc.rst. Adjust the markups to avoid this warning: Documentation/filesystems/proc.rst:2194: WARNING: Inconsistent literal block quoting. And to properly mark the code-blocks there. Fixes: 37e7647a7212 ("docs: proc: add documentation for "hidepid=4" and "subs

[PATCH 13/29] dt: fix broken links due to txt->yaml renames

2020-06-14 Thread Mauro Carvalho Chehab
There are some new broken doc links due to yaml renames at DT. Developers should really run: ./scripts/documentation-file-ref-check in order to solve those issues while submitting patches. This tool can even fix most of the issues with: ./scripts/documentation-file-ref-check --fi

Re: Re: [PATCH v4 0/2] Recommend denylist/allowlist instead of blacklist/whitelist

2020-06-14 Thread SeongJae Park
On Mon, 15 Jun 2020 08:12:08 +0200 Pavel Machek wrote: > > [-- Attachment #1: Type: text/plain, Size: 1115 bytes --] > > On Mon 2020-06-15 06:21:43, Jiri Slaby wrote: > > On 14. 06. 20, 23:29, Pavel Machek wrote: > > > >> It's not like blacklist / whitelist are even good to begin with, it's >

Re: [PATCH] mm, memcg: prevent missed memory.low load tears

2020-06-14 Thread Michal Hocko
On Fri 12-06-20 18:44:37, Chris Down wrote: > Looks like one of these got missed when massaging in f86b810c2610 ("mm, > memcg: prevent memory.low load/store tearing") with other linux-mm > changes. > > Reported-by: Michal Koutný > Signed-off-by: Chris Down Acked-by: Michal Hocko > --- > mm/m

arch/mips/include/asm/mach-ip27/topology.h:19:7: error: implicit declaration of function 'hub_data'

2020-06-14 Thread kernel test robot
Hi Mike, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: df2fbf5bfa0e7fff8b4784507e4d68f200454318 commit: 397dc00e249ec64e106374565575dd0eb7e25998 mips: sgi-ip27: switch from DISCONTIGMEM to SPARSEMEM date: 8 mont

Re: [External] Re: [PATCH 3/3] mm/slub: Fix release all resources used by a slab cache

2020-06-14 Thread Muchun Song
On Mon, Jun 15, 2020 at 2:23 PM Joonsoo Kim wrote: > > 2020년 6월 14일 (일) 오후 9:39, Muchun Song 님이 작성: > > > > The function of __kmem_cache_shutdown() is that release all resources > > used by the slab cache, while currently it stop release resources when > > the preceding node is not empty. > > > >

[PATCH -v2.1] x86/msr: Filter MSR writes

2020-06-14 Thread Borislav Petkov
Here's an improved v2 with sparse warnings fixed: --- Disable writing to MSRs from userspace by default. Writes can still be allowed by supplying the allow_writes=1 module parameter and the kernel will be tainted so that it shows in oopses. Having unfettered access to all MSRs on a system is and

drivers/gpu/drm/bridge/sil-sii8620.c:2355: undefined reference to `extcon_unregister_notifier'

2020-06-14 Thread kernel test robot
date: 3 months ago config: h8300-randconfig-r024-20200614 (attached as .config) compiler: h8300-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross

Re: [PATCH] Input: bma150: fix ref count leak in bma150_open

2020-06-14 Thread Navid Emamdoost
On Sun, Jun 14, 2020 at 4:27 AM Andy Shevchenko wrote: > > On Sun, Jun 14, 2020 at 8:58 AM Navid Emamdoost > wrote: > > > > in bma150_open, pm_runtime_get_sync is called which > > increments the counter even in case of failure, leading to incorrect > > ref count. In case of failure, decrement the

Re: [patch for-5.8] dma-pool: decouple DMA_REMAP from DMA_COHERENT_POOL

2020-06-14 Thread Christoph Hellwig
Thanks, applied, and will be pushed to Linus soon.

drivers/scsi/mpt3sas/mpt3sas_base.c:3584:1: warning: no previous declaration for '_base_sdev_nr_inflight_request'

2020-06-14 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b791d1bdf9212d944d749a5c7ff6febdba241771 commit: c50ed99cd56ee725d9e14dffec8e8f1641b8ca30 scsi: mpt3sas: Remove usage of device_busy counter date: 5 months ago :: branch date: 14 hours ago :: commi

[PATCH v2] Input: bma150: fix ref count leak in bma150_open

2020-06-14 Thread Navid Emamdoost
in bma150_open, pm_runtime_get_sync is called which increments the counter even in case of failure, leading to incorrect ref count. In case of failure, decrement the ref count before returning. Signed-off-by: Navid Emamdoost --- Changes in v2: -- repplace pm_runtime_put with pm_runtime_pu

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

2020-06-14 Thread kernel test robot
:: commit date: 3 weeks ago config: powerpc64-randconfig-r011-20200614 (attached as .config) compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project c669a1ed6386d57a75a602b53266466dae1e1d84) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests

RE: [PATCH] [v3] i2c: imx-lpi2c: Fix runtime PM imbalance on error

2020-06-14 Thread Aisheng Dong
> From: Wolfram Sang > Sent: Sunday, June 14, 2020 5:12 PM > > On Mon, Jun 01, 2020 at 02:16:40PM +0800, Dinghao Liu wrote: > > pm_runtime_get_sync() increments the runtime PM usage counter even the > > call returns an error code. Thus a corresponding decrement is needed > > on the error handling

arch/powerpc/mm/ptdump/hashpagetable.c:262:18: error: 'H_SUCCESS' undeclared

2020-06-14 Thread kernel test robot
:: branch date: 3 hours ago :: commit date: 10 months ago config: powerpc64-randconfig-c021-20200614 (attached as .config) compiler: powerpc64-linux-gcc (GCC) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed

RE: [PATCH] i2c: busses: Fix a reference count leak.

2020-06-14 Thread Aisheng Dong
> From: Andy Duan > Sent: Monday, June 15, 2020 10:49 AM > > From: wu000...@umn.edu Sent: Sunday, June 14, > 2020 6:12 AM > > From: Qiushi Wu > > > > pm_runtime_get_sync() increments the runtime PM usage counter even > > when it returns an error code. Thus call pm_runtime_put_noidle() if > > pm_

drivers/iommu/sun50i-iommu.c:561:13: warning: variable 'pte_dma' set but not used

2020-06-14 Thread kernel test robot
weeks ago config: arm-randconfig-r022-20200614 (attached as .config) compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git

drivers/soc/imx/soc-imx8m.c:150:34: warning: unused variable 'imx8_soc_match'

2020-06-14 Thread kernel test robot
:: commit date: 3 months ago config: x86_64-randconfig-a015-20200614 (attached as .config) compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project c669a1ed6386d57a75a602b53266466dae1e1d84) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests

drivers/video/fbdev/controlfb.c:326:23: error: incompatible types when assigning to type 'pgprot_t' {aka 'struct '} from type 'int'

2020-06-14 Thread kernel test robot
Hi Bartlomiej, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: df2fbf5bfa0e7fff8b4784507e4d68f200454318 commit: a07a63b0e24dd1316d11427601a9f83dc955bb40 video: fbdev: controlfb: add COMPILE_TEST support date: 8 we

Re: [External] Re: [PATCH 1/3] mm/slub: Fix slabs_node return value when CONFIG_SLUB_DEBUG disabled

2020-06-14 Thread Muchun Song
On Mon, Jun 15, 2020 at 2:11 PM Joonsoo Kim wrote: > > 2020년 6월 14일 (일) 오후 9:39, Muchun Song 님이 작성: > > > > The slabs_node() always return zero when CONFIG_SLUB_DEBUG is disabled. > > But some codes determine whether slab is empty by checking the return > > value of slabs_node(). As you know, the

net/sched/sch_fq.c:966:12: warning: stack frame size of 1400 bytes in function 'fq_dump'

2020-06-14 Thread kernel test robot
weeks ago config: arm-randconfig-r006-20200614 (attached as .config) compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project c669a1ed6386d57a75a602b53266466dae1e1d84) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross

[PATCH v2] SUNRPC: Add missing definition of ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE

2020-06-14 Thread Christophe Leroy
Even if that's only a warning, not including asm/cacheflush.h leads to svc_flush_bvec() being empty allthough powerpc defines ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE. CC net/sunrpc/svcsock.o net/sunrpc/svcsock.c:227:5: warning: "ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE" is not defined [-Wundef] #if AR

drivers/tty/vt/vt.c:1210:22: warning: comparison is always false due to limited range of data type

2020-06-14 Thread kernel test robot
: 7 weeks ago :: branch date: 2 hours ago :: commit date: 7 weeks ago config: ia64-randconfig-r024-20200614 (attached as .config) compiler: ia64-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O

arch/arm/mach-dove/pcie.c:59: undefined reference to `pci_ioremap_io'

2020-06-14 Thread kernel test robot
s ago :: branch date: 2 hours ago :: commit date: 4 months ago config: arm-randconfig-r023-20200614 (attached as .config) compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O

Re: [PATCH 3/3] mm/slub: Fix release all resources used by a slab cache

2020-06-14 Thread Joonsoo Kim
2020년 6월 14일 (일) 오후 9:39, Muchun Song 님이 작성: > > The function of __kmem_cache_shutdown() is that release all resources > used by the slab cache, while currently it stop release resources when > the preceding node is not empty. > > Signed-off-by: Muchun Song > --- > mm/slub.c | 7 --- > 1 file

dpaa2-eth-debugfs.c:undefined reference to `__aeabi_uldivmod'

2020-06-14 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: df2fbf5bfa0e7fff8b4784507e4d68f200454318 commit: 460fd830dd9d68e07c4d15363fd764944090e1f8 dpaa2-eth: add channel stat to debugfs date: 7 weeks ago :: branch date: 20 hours ago :: commit date: 7 wee

Re: [PATCH v3 0/6] Add support for GPU DDR BW scaling

2020-06-14 Thread Viresh Kumar
On 06-06-20, 09:55, Sharat Masetty wrote: > This is a respin of [1]. Incorported review feedback and fixed issues observed > during testing. Picked up the Georgi's series from opp/linux-next [2], and > this > series is also dependent on a helper function needed to set and clear ddr > bandwidth vot

Re: [PATCH 04/21] mm: free_area_init: use maximal zone PFNs rather than zone sizes

2020-06-14 Thread Mike Rapoport
Hi Greg, On Mon, Jun 15, 2020 at 01:53:42PM +1000, Greg Ungerer wrote: > Hi Mike, > > From: Mike Rapoport > > Currently, architectures that use free_area_init() to initialize memory map > > and node and zone structures need to calculate zone and hole sizes. We can > > use free_area_init_nodes()

arch/mips/kvm/mips.c:70:25: error: 'struct kvm_vcpu_stat' has no member named 'vz_cpucfg_exits'; did you mean

2020-06-14 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: df2fbf5bfa0e7fff8b4784507e4d68f200454318 commit: 7f2a83f1c2a941ebfee53f504ed5fdbc61cfb333 KVM: MIPS: Add CPUCFG emulation for Loongson-3 date: 9 days ago :: branch date: 16 hours ago :: commit date

Re: [External] Re: [PATCH 2/3] mm/slub: Use node_nr_slabs() instead of slabs_node()

2020-06-14 Thread Muchun Song
On Mon, Jun 15, 2020 at 2:15 PM Joonsoo Kim wrote: > > 2020년 6월 14일 (일) 오후 9:39, Muchun Song 님이 작성: > > > > In the some code, we already get the kmem_cache_node, so we can > > use node_nr_slabs() directly instead of slabs_node(). Check the > > condition of n->nr_partial can also be removed because

riscv64-linux-objcopy: 'arch/riscv/kernel/vdso/vdso.so.dbg': No such file

2020-06-14 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: df2fbf5bfa0e7fff8b4784507e4d68f200454318 commit: ad5d1122b82fbd6a816d1b9d26ee01a6dbc2d757 riscv: use vDSO common flow to reduce the latency of the time-related functions date: 2 days ago :: branch date

Re: [RFC PATCH v2 00/16] Hwpoison rework {hard,soft}-offline

2020-06-14 Thread 堀口 直也
Hi Dmitry, On Thu, Jun 11, 2020 at 07:43:19PM +0300, Dmitry Yakunin wrote: > Hello! > > We are faced with similar problems with hwpoisoned pages > on one of our production clusters after kernel update to stable 4.19. > Application that does a lot of memory allocations sometimes caught SIGBUS > s

RE: [RFC/RFT][PATCH] cpufreq: intel_pstate: Work in passive mode with HWP enabled

2020-06-14 Thread Doug Smythies
On 2020.05.21 10:16 Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > Allow intel_pstate to work in the passive mode with HWP enabled and > make it translate the target frequency supplied by the cpufreq > governor in use into an EPP value to be written to the HWP request > MSR (high frequ

[PATCH v2] usb: replace hardcode maximum usb string length by definition

2020-06-14 Thread Macpaul Lin
Replace hardcode maximum usb string length (126 bytes) by definition "MAX_USB_STRING_LEN". Signed-off-by: Macpaul Lin --- Changes for v2: - Add definition "MAX_USB_STRING_LEN" in ch9.h instead of in usb.h. Thanks for Alan's suggestion. drivers/usb/gadget/composite.c |4 ++-- drivers/u

Re: [PATCH] SUNRPC: Add missing asm/cacheflush.h

2020-06-14 Thread Christophe Leroy
Le 14/06/2020 à 20:57, Chuck Lever a écrit : Hi Christophe - On Jun 14, 2020, at 1:07 PM, Christophe Leroy wrote: Even if that's only a warning, not including asm/cacheflush.h leads to svc_flush_bvec() being empty allthough powerpc defines ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE. CC net

elfcore.c:undefined reference to `dump_emit'

2020-06-14 Thread kernel test robot
Hi Christoph, It's probably a bug fix that unveils the link errors. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: df2fbf5bfa0e7fff8b4784507e4d68f200454318 commit: df41017eafd267c08acbfff99d34e4f96bbfbc92 ia64: remove support for machvecs date: 10 mo

Re: [PATCH 2/3] mm/slub: Use node_nr_slabs() instead of slabs_node()

2020-06-14 Thread Joonsoo Kim
2020년 6월 14일 (일) 오후 9:39, Muchun Song 님이 작성: > > In the some code, we already get the kmem_cache_node, so we can > use node_nr_slabs() directly instead of slabs_node(). Check the > condition of n->nr_partial can also be removed because we can get > the correct result via node_nr_slabs(). > > Signed

  1   2   3   4   5   >