[PATCH v3 09/12] kbuild: create *.mod with full directory path and remove MODVERDIR

2019-07-16 Thread Masahiro Yamada
While descending directories, Kbuild produces objects for modules, but do not link final *.ko files; it is done in the modpost. To keep track of modules, Kbuild creates a *.mod file in $(MODVERDIR) for every module it is building. Some post-processing steps read the necessary information from *.mo

[PATCH v3 00/12] kbuild: create *.mod with directory path and remove MODVERDIR

2019-07-16 Thread Masahiro Yamada
This series kills the long standing MODVERDIR. Since MODVERDIR has a flat structure, it cannot avoid a race condition when somebody introduces a module name conflict. Kbuild now reads modules.order to get the list of all modules. The post-processing/installation stages will be more robust and

Re: [PATCH v2 08/11] kbuild: create *.mod with full directory path and remove MODVERDIR

2019-07-16 Thread Masahiro Yamada
Hi Joe On Wed, Jul 17, 2019 at 6:40 AM Joe Lawrence wrote: > > On Thu, Jul 11, 2019 at 02:44:31PM +0900, Masahiro Yamada wrote: > > While descending directories, Kbuild produces objects for modules, > > but do not link final *.ko files; it is done in the modpost. > > > > To keep track of modules,

[PATCH v5] Documentation/checkpatch: Prefer strscpy/strscpy_pad over strcpy/strlcpy/strncpy

2019-07-16 Thread NitinGote
From: Nitin Gote Added check in checkpatch.pl to 1. Deprecate strcpy() in favor of strscpy(). 2. Deprecate strlcpy() in favor of strscpy(). 3. Deprecate strncpy() in favor of strscpy() or strscpy_pad(). Updated strncpy() section in Documentation/process/deprecated.rst to cover strscpy_pad() case

[PATCH v2 2/2] f2fs: Support case-insensitive file name lookups

2019-07-16 Thread Daniel Rosenberg
Modeled after commit b886ee3e778e ("ext4: Support case-insensitive file name lookups") """ This patch implements the actual support for case-insensitive file name lookups in f2fs, based on the feature bit and the encoding stored in the superblock. A filesystem that has the casefold feature set is

[PATCH v2 1/2] f2fs: include charset encoding information in the superblock

2019-07-16 Thread Daniel Rosenberg
Add charset encoding to f2fs to support casefolding. It is modeled after the same feature introduced in commit c83ad55eaa91 ("ext4: include charset encoding information in the superblock") Currently this is not compatible with encryption, similar to the current ext4 imlpementation. This will chang

[PATCH v2 0/2] Casefolding in F2FS

2019-07-16 Thread Daniel Rosenberg
These patches are largely based on the casefolding patches for ext4 v2: Rebased patches again master, changed f2fs_msg to f2fs_info/f2fs_err Daniel Rosenberg (2): f2fs: include charset encoding information in the superblock f2fs: Support case-insensitive file name lookups fs/f2fs/dir.c

Re: [PATCH 2/9] rcu: Add support for consolidated-RCU reader checking (v3)

2019-07-16 Thread Paul E. McKenney
On Tue, Jul 16, 2019 at 06:02:05PM -0400, Joel Fernandes wrote: > On Tue, Jul 16, 2019 at 11:53:03AM -0700, Paul E. McKenney wrote: > [snip] > > > > A few more things below. > > > > > --- > > > > > include/linux/rculist.h | 28 - > > > > > include/linux/rcupdate.h | 7 +++

Re: [PATCH v5 02/11] of/platform: Add functional dependency link from DT bindings

2019-07-16 Thread Saravana Kannan
On Tue, Jul 16, 2019 at 4:43 PM Rob Herring wrote: > > On Fri, Jul 12, 2019 at 5:52 PM Saravana Kannan wrote: > > > > Add device-links after the devices are created (but before they are > > probed) by looking at common DT bindings like clocks and > > interconnects. > > > > Automatically adding de

Re: [PATCH v5 02/11] of/platform: Add functional dependency link from DT bindings

2019-07-16 Thread Rob Herring
On Fri, Jul 12, 2019 at 5:52 PM Saravana Kannan wrote: > > Add device-links after the devices are created (but before they are > probed) by looking at common DT bindings like clocks and > interconnects. > > Automatically adding device-links for functional dependencies at the > framework level prov

Re: [PATCH 2/9] rcu: Add support for consolidated-RCU reader checking (v3)

2019-07-16 Thread Joel Fernandes
On Tue, Jul 16, 2019 at 11:53:03AM -0700, Paul E. McKenney wrote: [snip] > > > A few more things below. > > > > --- > > > > include/linux/rculist.h | 28 - > > > > include/linux/rcupdate.h | 7 +++ > > > > kernel/rcu/Kconfig.debug | 11 ++ > > > > kernel/rcu/u

Re: [PATCH v2 08/11] kbuild: create *.mod with full directory path and remove MODVERDIR

2019-07-16 Thread Joe Lawrence
On Thu, Jul 11, 2019 at 02:44:31PM +0900, Masahiro Yamada wrote: > While descending directories, Kbuild produces objects for modules, > but do not link final *.ko files; it is done in the modpost. > > To keep track of modules, Kbuild creates a *.mod file in $(MODVERDIR) > for every module it is bu

Re: [PATCH 4/9] ipv4: add lockdep condition to fix for_each_entry (v1)

2019-07-16 Thread David Miller
From: "Paul E. McKenney" Date: Tue, 16 Jul 2019 11:39:55 -0700 > On Mon, Jul 15, 2019 at 10:37:00AM -0400, Joel Fernandes (Google) wrote: >> Using the previous support added, use it for adding lockdep conditions >> to list usage here. >> >> Signed-off-by: Joel Fernandes (Google) > > We need an

Re: [PATCH 1/2] f2fs: include charset encoding information in the superblock

2019-07-16 Thread Jaegeuk Kim
Hi Daniel, Could you please rebase you patch set? e.g., f2fs_msg() was replaced with f2fs_err|info|... On 07/11, Daniel Rosenberg wrote: > Add charset encoding to f2fs to support casefolding. It is modeled after > the same feature introduced in commit c83ad55eaa91 ("ext4: include charset > encodi

Re: [PATCH v5 1/1] sched/fair: Fix low cpu usage with high throttling by removing expiration of cpu-local slices

2019-07-16 Thread bsegall
Dave Chiluk writes: > It has been observed, that highly-threaded, non-cpu-bound applications > running under cpu.cfs_quota_us constraints can hit a high percentage of > periods throttled while simultaneously not consuming the allocated > amount of quota. This use case is typical of user-interacti

Re: [GIT PULL for v5.3-rc1] docs: addition of a large set of files to the documentation body

2019-07-16 Thread pr-tracker-bot
The pull request you sent on Tue, 16 Jul 2019 08:01:22 -0300: > git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media.git > tags/docs/v5.3-1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/c309b6f2446c18a8b65d3950e6e755440865 Thank you! -- Deet-doot-

Re: [PATCH 2/9] rcu: Add support for consolidated-RCU reader checking (v3)

2019-07-16 Thread Paul E. McKenney
On Tue, Jul 16, 2019 at 02:46:49PM -0400, Joel Fernandes wrote: > On Tue, Jul 16, 2019 at 11:38:33AM -0700, Paul E. McKenney wrote: > > On Mon, Jul 15, 2019 at 10:36:58AM -0400, Joel Fernandes (Google) wrote: > > > This patch adds support for checking RCU reader sections in list > > > traversal mac

Re: [PATCH v9 04/18] kunit: test: add kunit_stream a std::stream like logger

2019-07-16 Thread Brendan Higgins
On Tue, Jul 16, 2019 at 10:50 AM Stephen Boyd wrote: > > Quoting Brendan Higgins (2019-07-16 01:37:34) > > On Tue, Jul 16, 2019 at 12:57 AM Brendan Higgins > > wrote: > > > > > > A `struct kunit_stream` is usually associated with a message that is > > > being built up over time like maybe an expe

Re: [PATCH v2 2/9] rcu: Add support for consolidated-RCU reader checking

2019-07-16 Thread Paul E. McKenney
On Tue, Jul 16, 2019 at 02:35:17PM -0400, Joel Fernandes wrote: > On Tue, Jul 16, 2019 at 11:22:37AM -0700, Paul E. McKenney wrote: > > On Fri, Jul 12, 2019 at 01:00:17PM -0400, Joel Fernandes (Google) wrote: > > > This patch adds support for checking RCU reader sections in list > > > traversal mac

Re: [PATCH 0/9] Harden list_for_each_entry_rcu() and family

2019-07-16 Thread Paul E. McKenney
On Mon, Jul 15, 2019 at 10:36:56AM -0400, Joel Fernandes (Google) wrote: > Hi, > This series aims to provide lockdep checking to RCU list macros for additional > kernel hardening. > > RCU has a number of primitives for "consumption" of an RCU protected pointer. > Most of the time, these consumers

Re: [PATCH 2/9] rcu: Add support for consolidated-RCU reader checking (v3)

2019-07-16 Thread Joel Fernandes
On Tue, Jul 16, 2019 at 11:38:33AM -0700, Paul E. McKenney wrote: > On Mon, Jul 15, 2019 at 10:36:58AM -0400, Joel Fernandes (Google) wrote: > > This patch adds support for checking RCU reader sections in list > > traversal macros. Optionally, if the list macro is called under SRCU or > > other loc

Re: [PATCH 8/9] acpi: Use built-in RCU list checking for acpi_ioremaps list (v1)

2019-07-16 Thread Paul E. McKenney
On Mon, Jul 15, 2019 at 10:37:04AM -0400, Joel Fernandes (Google) wrote: > list_for_each_entry_rcu has built-in RCU and lock checking. Make use of > it for acpi_ioremaps list traversal. > > Signed-off-by: Joel Fernandes (Google) Given that Rafael acked it, this one looks ready.

Re: [PATCH 6/9] workqueue: Convert for_each_wq to use built-in list check (v2)

2019-07-16 Thread Paul E. McKenney
On Mon, Jul 15, 2019 at 10:37:02AM -0400, Joel Fernandes (Google) wrote: > list_for_each_entry_rcu now has support to check for RCU reader sections > as well as lock. Just use the support in it, instead of explictly > checking in the caller. > > Signed-off-by: Joel Fernandes (Google) We need an

Re: [PATCH 7/9] x86/pci: Pass lockdep condition to pcm_mmcfg_list iterator (v1)

2019-07-16 Thread Paul E. McKenney
On Tue, Jul 16, 2019 at 12:03:03AM -0400, Joel Fernandes wrote: > On Mon, Jul 15, 2019 at 03:02:35PM -0500, Bjorn Helgaas wrote: > > On Mon, Jul 15, 2019 at 10:37:03AM -0400, Joel Fernandes (Google) wrote: > > > The pcm_mmcfg_list is traversed with list_for_each_entry_rcu without a > > > reader-loc

Re: [PATCH 4/9] ipv4: add lockdep condition to fix for_each_entry (v1)

2019-07-16 Thread Paul E. McKenney
On Mon, Jul 15, 2019 at 10:37:00AM -0400, Joel Fernandes (Google) wrote: > Using the previous support added, use it for adding lockdep conditions > to list usage here. > > Signed-off-by: Joel Fernandes (Google) We need an ack or better from the subsystem maintainer for this one.

Re: [PATCH 5/9] driver/core: Convert to use built-in RCU list checking (v1)

2019-07-16 Thread Paul E. McKenney
On Mon, Jul 15, 2019 at 10:37:01AM -0400, Joel Fernandes (Google) wrote: > list_for_each_entry_rcu has built-in RCU and lock checking. Make use of > it in driver core. > > Acked-by: Greg Kroah-Hartman > Signed-off-by: Joel Fernandes (Google) This one looks ready.

Re: [PATCH 02/14] docs: power: add it to to the main documentation index

2019-07-16 Thread Pavel Machek
On Tue 2019-07-16 09:10:41, Mauro Carvalho Chehab wrote: > The power docs are orphaned at the documentation body. > > While it could likely be moved to be inside some guide, I'm opting to just > adding it to the main index.rst, removing the :orphan: and adding the SPDX > header. > > The reason is

Re: [PATCH 2/9] rcu: Add support for consolidated-RCU reader checking (v3)

2019-07-16 Thread Paul E. McKenney
On Mon, Jul 15, 2019 at 10:36:58AM -0400, Joel Fernandes (Google) wrote: > This patch adds support for checking RCU reader sections in list > traversal macros. Optionally, if the list macro is called under SRCU or > other lock/mutex protection, then appropriate lockdep expressions can be > passed t

Re: [PATCH 3/9] rcu/sync: Remove custom check for reader-section (v2)

2019-07-16 Thread Paul E. McKenney
On Mon, Jul 15, 2019 at 10:36:59AM -0400, Joel Fernandes (Google) wrote: > The rcu/sync code was doing its own check whether we are in a reader > section. With RCU consolidating flavors and the generic helper added in > this series, this is no longer need. We can just use the generic helper > and i

Re: [PATCH v2 2/9] rcu: Add support for consolidated-RCU reader checking

2019-07-16 Thread Joel Fernandes
On Tue, Jul 16, 2019 at 11:22:37AM -0700, Paul E. McKenney wrote: > On Fri, Jul 12, 2019 at 01:00:17PM -0400, Joel Fernandes (Google) wrote: > > This patch adds support for checking RCU reader sections in list > > traversal macros. Optionally, if the list macro is called under SRCU or > > other loc

Re: [PATCH v2 2/9] rcu: Add support for consolidated-RCU reader checking

2019-07-16 Thread Paul E. McKenney
On Fri, Jul 12, 2019 at 01:00:17PM -0400, Joel Fernandes (Google) wrote: > This patch adds support for checking RCU reader sections in list > traversal macros. Optionally, if the list macro is called under SRCU or > other lock/mutex protection, then appropriate lockdep expressions can be > passed t

Re: [PATCH v2 3/9] rcu/sync: Remove custom check for reader-section

2019-07-16 Thread Paul E. McKenney
On Tue, Jul 16, 2019 at 11:26:42AM -0700, Paul E. McKenney wrote: > On Fri, Jul 12, 2019 at 01:00:18PM -0400, Joel Fernandes (Google) wrote: > > The rcu/sync code was doing its own check whether we are in a reader > > section. With RCU consolidating flavors and the generic helper added in > > this

Re: [PATCH v2 3/9] rcu/sync: Remove custom check for reader-section

2019-07-16 Thread Paul E. McKenney
On Fri, Jul 12, 2019 at 01:00:18PM -0400, Joel Fernandes (Google) wrote: > The rcu/sync code was doing its own check whether we are in a reader > section. With RCU consolidating flavors and the generic helper added in > this series, this is no longer need. We can just use the generic helper > and i

Re: [PATCH 03/14] docs: fix broken doc references due to renames

2019-07-16 Thread Jerry Hoemann
On Tue, Jul 16, 2019 at 09:10:42AM -0300, Mauro Carvalho Chehab wrote: > Some files got renamed but probably due to some merge conflicts, > a few references still point to the old locations. > > Signed-off-by: Mauro Carvalho Chehab > --- > Documentation/RCU/rculist_nulls.txt |

Re: [PATCH] tracing/fgraph: support recording function return values

2019-07-16 Thread Steven Rostedt
On Tue, 16 Jul 2019 16:20:05 +0200 Peter Zijlstra wrote: > On Tue, Jul 16, 2019 at 10:08:18PM +0800, Changbin Du wrote: > > On Mon, Jul 15, 2019 at 12:12:31PM +0200, Peter Zijlstra wrote: > > > > Alternatively, we can have recordmcount (or objtool) mark all functions > > > with a return value

[PATCH] docs/vm: transhuge: fix typo in madvise reference

2019-07-16 Thread Jeremy Cline
Fix an off-by-one typo in the transparent huge pages admin documentation. Signed-off-by: Jeremy Cline --- Documentation/admin-guide/mm/transhuge.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/admin-guide/mm/transhuge.rst b/Documentation/admin-guide/mm/tran

Re: [PATCH] tracing/fgraph: support recording function return values

2019-07-16 Thread Peter Zijlstra
On Tue, Jul 16, 2019 at 10:08:18PM +0800, Changbin Du wrote: > On Mon, Jul 15, 2019 at 12:12:31PM +0200, Peter Zijlstra wrote: > > Alternatively, we can have recordmcount (or objtool) mark all functions > > with a return value when the build has DEBUG_INFO on. The dwarves know > > the function sig

Re: [PATCH] tracing/fgraph: support recording function return values

2019-07-16 Thread Changbin Du
On Mon, Jul 15, 2019 at 12:12:31PM +0200, Peter Zijlstra wrote: > On Mon, Jul 15, 2019 at 09:29:30AM +0100, Will Deacon wrote: > > On Sat, Jul 13, 2019 at 08:10:26PM +0800, Changbin Du wrote: > > > This patch adds a new trace option 'funcgraph-retval' and is disabled by > > > default. When this opt

Re: [PATCH 14/14] docs: virtual: add it to the documentation body

2019-07-16 Thread Paolo Bonzini
On 16/07/19 14:10, Mauro Carvalho Chehab wrote: > As files are getting converted to ReST, add them to the > documentation body. > > Signed-off-by: Mauro Carvalho Chehab > --- > Documentation/index.rst | 1 + > Documentation/virtual/kvm/index.rst | 1 + > 2 files changed, 2 insertions

[PATCH 01/14] docs: powerpc: convert docs to ReST and rename to *.rst

2019-07-16 Thread Mauro Carvalho Chehab
Convert docs to ReST and add them to the arch-specific book. The conversion here was trivial, as almost every file there was already using an elegant format close to ReST standard. The changes were mostly to mark literal blocks and add a few missing section title identifiers. One note with regar

[PATCH 00/14] pending doc patches for 5.3-rc

2019-07-16 Thread Mauro Carvalho Chehab
Those are the pending documentation patches after my pull request for this branch: git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media.git tags/docs/v5.3-1 Patches 1 to 13 were already submitted, but got rebased. Patch 14 is a new fixup one. Patches 1 and 2 weren't submitted b

[PATCH 13/14] docs: remove extra conf.py files

2019-07-16 Thread Mauro Carvalho Chehab
Now that the latex_documents are handled automatically, we can remove those extra conf.py files. Signed-off-by: Mauro Carvalho Chehab --- Documentation/admin-guide/conf.py | 10 -- Documentation/core-api/conf.py | 10 -- Documentation/crypto/conf.py | 10 --

[PATCH 02/14] docs: power: add it to to the main documentation index

2019-07-16 Thread Mauro Carvalho Chehab
The power docs are orphaned at the documentation body. While it could likely be moved to be inside some guide, I'm opting to just adding it to the main index.rst, removing the :orphan: and adding the SPDX header. The reason is similar to what it was done for other driver-specific subsystems: the

[PATCH 12/14] docs: load_config.py: avoid needing a conf.py just due to LaTeX docs

2019-07-16 Thread Mauro Carvalho Chehab
Right now, for every directory that we need to have LaTeX output, a conf.py file is required. That causes an extra overhead and it is actually a hack, as the latex_documents line there are usually a copy of the ones that are there already at the main conf.py. So, instead, re-use the global latex_

[PATCH 05/14] docs: conf.py: add CJK package needed by translations

2019-07-16 Thread Mauro Carvalho Chehab
In order to be able to output Asian symbols with XeLaTeX, we need the xeCJK package, and a default font for CJK symbols. Signed-off-by: Mauro Carvalho Chehab --- Documentation/conf.py | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/conf.py b/Documentation/conf.py index 13b5

[PATCH 04/14] docs: pdf: add all Documentation/*/index.rst to PDF output

2019-07-16 Thread Mauro Carvalho Chehab
Currently, all index files should be manually added to the latex_documents array at conf.py. While this allows fine-tuning some LaTeX specific things, like the name of the output file and the name of the document, it is not uncommon to forget adding new documents there. So, add a logic that will

[PATCH 14/14] docs: virtual: add it to the documentation body

2019-07-16 Thread Mauro Carvalho Chehab
As files are getting converted to ReST, add them to the documentation body. Signed-off-by: Mauro Carvalho Chehab --- Documentation/index.rst | 1 + Documentation/virtual/kvm/index.rst | 1 + 2 files changed, 2 insertions(+) diff --git a/Documentation/index.rst b/Documentation/index.

[PATCH 06/14] docs: conf.py: only use CJK if the font is available

2019-07-16 Thread Mauro Carvalho Chehab
If we try to build a book with asian characters with XeLaTeX and the font is not available, it will produce an error. So, instead, add a logic at conf.py to detect if the proper font is installed. This will avoid an error while building the document, although the result may not be readable. Sign

[GIT PULL for v5.3-rc1] docs: addition of a large set of files to the documentation body

2019-07-16 Thread Mauro Carvalho Chehab
Hi Linus, As agreed with Jon, I'm sending this big series directly to you, c/c him, as this series required a special care, in order to avoid conflicts with other trees. Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media.git tags/docs/v5.3-1 For a series of pa

[PATCH 10/10] Documentation: cpufreq: Update policy notifier documentation

2019-07-16 Thread Viresh Kumar
Update documentation with the recent policy notifier updates. Signed-off-by: Viresh Kumar --- Documentation/cpu-freq/core.txt | 16 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/Documentation/cpu-freq/core.txt b/Documentation/cpu-freq/core.txt index 073f128af5a7