Re: [PATCH] power: Print wakeup_count instead of event_count in the sysfs attribute.

2018-06-03 Thread Rafael J. Wysocki
On Sat, Jun 2, 2018 at 4:32 AM, Ravi Chandra Sadineni wrote: > Currently we show event_count instead of wakeup_count as part of per > device wakeup_count sysfs attribute. Change it to wakeup_count to make > it more meaningful. More information, please. In particular, why it is more meaningful.

[PATCH] mm: clean up page_is_poisoned in linux/mm.h

2018-06-03 Thread kpark3469
From: Sahara When bd33ef36("mm: enable page poisoning early at boot") got rid of the PAGE_EXT_DEBUG_POISON, page_is_poisoned in the header left behind. This patch cleans up the leftovers under the table. Signed-off-by: Sahara --- include/linux/mm.h | 2 -- 1 file changed, 2 deletions(-) diff

[PATCH v5 1/8] staging: rtl8192e: Add and remove blank lines - Coding style

2018-06-03 Thread John Whitmore
Simple addition & removal of blank lines as required Signed-off-by: John Whitmore --- .../rtl8192u/ieee80211/rtl819x_HTProc.c | 64 +-- 1 file changed, 16 insertions(+), 48 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c

[PATCH v5 2/8] staging: rtl8192e: Addition of prefered spacing - Coding style

2018-06-03 Thread John Whitmore
Added spaces around various operators, as preferred by coding style. Signed-off-by: John Whitmore --- .../rtl8192u/ieee80211/rtl819x_HTProc.c | 22 +-- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c

[PATCH v5 8/8] staging: rtl8192e: remove unnecessary parentheses - Coding Style

2018-06-03 Thread John Whitmore
Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c b/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c index

[PATCH v5 4/8] staging: rtl8192e: Correct alignment of if statements - Coding Style

2018-06-03 Thread John Whitmore
Function HTIOTPeerDetermine used incorrect indentation in if statements. Signed-off-by: John Whitmore --- .../staging/rtl8192u/ieee80211/rtl819x_HTProc.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c

[PATCH v5 6/8] staging: rtl8192e: Correct declaration of HTResetIOTSetting - Coding Style

2018-06-03 Thread John Whitmore
Declaration of function was spread over three lines. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c

staging: rtl8192e: Series of coding style changes

2018-06-03 Thread John Whitmore
Another attempt at cleaning up some of the coding style issues with this file.

[PATCH v5 7/8] staging: rtl8192e: Optimise Comparison to NULL tests - Coding Style

2018-06-03 Thread John Whitmore
Change comparison to NULL to better adhere to coding standard. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c

[PATCH v5 5/8] staging: rtl8192e: Remove unrequired space at start of line - Coding Style

2018-06-03 Thread John Whitmore
Function HTIOTActIsDisableMCS14 contained spurious space at start of line. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c

[PATCH v5 3/8] staging: rtl8192e: Remove unnecessary return statements - Coding style

2018-06-03 Thread John Whitmore
Return statments from void functions are not required by the coding standard. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c

Re: [PATCH 1/4] clk: imx6q: remove clks_init_on array

2018-06-03 Thread Anson Huang
Hi, Fabio From Anson's iPhone 6 > 在 2018年6月3日,20:44,Fabio Estevam 写道: > >> On Sun, Jun 3, 2018 at 12:00 AM, Anson Huang wrote: >> Clock framework will enable those clocks registered >> with CLK_IS_CRITICAL flag, so no need to have >> clks_init_on array during clock initialization now. >> >>

Re: [SIL2review] [PATCH] power: reset: zx-reboot: put device node in zx_reboot_probe()

2018-06-03 Thread Nicholas Mc Guire
On Sun, Jun 03, 2018 at 01:22:05AM +0300, Alexey Khoroshilov wrote: > zx_reboot_probe() increments refcnt of zx296702-pcu device node by > of_find_compatible_node() and leaves it undecremented on both > successful and error paths. > Just wonder - if it warns on the failed case it probably should

[GIT pull] perf fixes for 4.17

2018-06-03 Thread Thomas Gleixner
Linus, please pull the latest perf-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf-urgent-for-linus A set of fixes for perf tooling: - Fix 'perf test Session topology' segfault on s390 (Thomas Richter) - Fix NULL return handling

[PATCH 22/29] objtool: Support GCC 8 switch tables

2018-06-03 Thread Greg Kroah-Hartman
From: Josh Poimboeuf commit fd35c88b74170d9335530d9abf271d5d73eb5401 upstream. With GCC 8, some issues were found with the objtool switch table detection. 1) In the .rodata section, immediately after the switch table, there can be another object which contains a pointer to the function

[PATCH 20/29] objtool: sync up with the 4.14.47 version of objtool

2018-06-03 Thread Greg Kroah-Hartman
There are pros and cons of dealing with tools in the kernel directory. The pros are the fact that development happens fast, and new features can be added to the kernel and the tools at the same times. The cons are when dealing with backported kernel patches, it can be necessary to backport parts

[PATCH 09/29] tools include: Introduce atomic_cmpxchg_{relaxed,release}()

2018-06-03 Thread Greg Kroah-Hartman
From: Arnaldo Carvalho de Melo commit 2bcdeadbc094b4f6511aedea1e5b8052bf0cc89c upstream. Will be used by refcnt.h Cc: Adrian Hunter Cc: David Ahern Cc: Elena Reshetova Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-jszriruqfqpez1bkivwfj...@git.kernel.org

[PATCH 29/29] x86/xen: Add unwind hint annotations to xen_setup_gdt

2018-06-03 Thread Greg Kroah-Hartman
Not needed in mainline as this function got rewritten in 4.12 This enables objtool to grok the iret in the middle of a C function. This matches commit 76846bf3cb09 ("x86/asm: Add unwind hint annotations to sync_core()") Cc: Josh Poimboeuf Signed-off-by: Greg Kroah-Hartman ---

[PATCH 25/29] objtool: Fix "noreturn" detection for recursive sibling calls

2018-06-03 Thread Greg Kroah-Hartman
From: Josh Poimboeuf commit 0afd0d9e0e7879d666c1df2fa1bea4d8716909fe upstream. Objtool has some crude logic for detecting static "noreturn" functions (aka "dead ends"). This is necessary for being able to correctly follow GCC code flow when such functions are called. It's remotely possible

[PATCH 04/29] tools: add more bitmap functions

2018-06-03 Thread Greg Kroah-Hartman
From: Matthew Wilcox commit b328daf3b7130098b105c18bdae694ddaad5b6e3 upstream. I need the following functions for the radix tree: bitmap_fill bitmap_empty bitmap_full Copy the implementations from include/linux/bitmap.h Signed-off-by: Matthew Wilcox Tested-by: Kirill A. Shutemov Cc:

[PATCH 12/29] perf tools: Force fixdep compilation at the start of the build

2018-06-03 Thread Greg Kroah-Hartman
From: Jiri Olsa commit abb26210a39522a6645bce3f438ed9a26bedb11b upstream. The fixdep tool needs to be built before everything else, because it fixes every object dependency file. We handle this currently by making all objects to depend on fixdep, which is error prone and is easily forgotten

[PATCH 06/29] tools include: Introduce linux/compiler-gcc.h

2018-06-03 Thread Greg Kroah-Hartman
From: Arnaldo Carvalho de Melo commit 192614010a5052fe92611c7076ef664fd9bb60e8 upstream. To match the kernel headers structure, setting up things that are specific to gcc or to some specific version of gcc. It gets included by linux/compiler.h when gcc is the compiler being used. Cc: Adrian

[PATCH 07/29] radix tree test suite: Remove types.h

2018-06-03 Thread Greg Kroah-Hartman
From: Matthew Wilcox commit 12ea65390bd5a46f8a70f068eb0d48922576a781 upstream. Move the pieces we still need to tools/include and update a few implicit includes. Signed-off-by: Matthew Wilcox [ Just take the tools/include/linux/* portions of this patch - gregkh] Signed-off-by: Greg

[PATCH 02/29] objtool: Move checking code to check.c

2018-06-03 Thread Greg Kroah-Hartman
From: Josh Poimboeuf commit dcc914f44f065ef73685b37e59877a5bb3cb7358 upstream. In preparation for the new 'objtool undwarf generate' command, which will rely on 'objtool check', move the checking code from builtin-check.c to check.c where it can be used by other commands. Signed-off-by: Josh

[PATCH 27/29] perf/tools: header file sync up

2018-06-03 Thread Greg Kroah-Hartman
When building tools/perf/ it rightly complains about a number of .h files being out of sync. Fix this up by syncing them properly with the relevant in-kernel versions. Signed-off-by: Greg Kroah-Hartman --- tools/arch/arm/include/uapi/asm/kvm.h | 13 ++

Re: [PATCH v5 8/8] staging: rtl8192e: remove unnecessary parentheses - Coding Style

2018-06-03 Thread Greg KH
On Sun, Jun 03, 2018 at 01:04:13PM +0100, John Whitmore wrote: > Signed-off-by: John Whitmore > --- > drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c | 12 ++-- > 1 file changed, 6 insertions(+), 6 deletions(-) I can not take patches without any changelog text at all :(

[PATCH 15/29] tools include: Introduce linux/bug.h, from the kernel sources

2018-06-03 Thread Greg Kroah-Hartman
From: Arnaldo Carvalho de Melo commit 379d61b1c7d42512cded04d372f15a7e725db9e1 upstream. With just what we will need in the upcoming changesets, the BUILD_BUG_ON_ZERO() definition. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link:

[PATCH 17/29] tools include: Move ARRAY_SIZE() to linux/kernel.h

2018-06-03 Thread Greg Kroah-Hartman
From: Arnaldo Carvalho de Melo commit 8607c1ee734d12f62c6a46abef13a510e25a1839 upstream. To match the kernel, then look for places redefining it to make it use this version, which checks that its parameter is an array at build time. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc:

Re: [PATCH] rcu: Check the range of jiffies_till_{first,next}_fqs when setting them

2018-06-03 Thread Byungchul Park
On Sun, Jun 3, 2018 at 3:23 PM, Joel Fernandes wrote: > On Sun, Jun 03, 2018 at 02:38:04PM +0900, Byungchul Park wrote: >> On Sun, Jun 3, 2018 at 12:58 PM, Joel Fernandes >> wrote: >> > On Fri, Jun 01, 2018 at 11:03:09AM +0900, Byungchul Park wrote: >> >> Currently, the range of

Re: [PATCH 2/4] clk: imx6sl: remove clks_init_on array

2018-06-03 Thread Anson Huang
Hi, Fabio From Anson's iPhone 6 > 在 2018年6月3日,20:17,Fabio Estevam 写道: > > Hi Anson, > >> On Sun, Jun 3, 2018 at 12:00 AM, Anson Huang wrote: >> Clock framework will enable those clocks registered >> with CLK_IS_CRITICAL flag, so no need to have >> clks_init_on array during clock

business partnership

2018-06-03 Thread Kofi Quaye
Hello Dear, It is a Great privilege to unveil this important business transaction to you. I have the mandate of my Director, Senior Staff with Gold Mining Company based in Ghana West Africa. After much deliberation by the Gold Mining executives, we arrived at resolution of seeking for individual

Re: [PATCH] staging:r8188eu: Use lib80211 to encrypt (WEP) tx frames

2018-06-03 Thread Ivan Safonov
On 05/28/2018 04:53 PM, Dan Carpenter wrote: On Mon, May 28, 2018 at 09:18:21AM +0300, Ivan Safonov wrote: Put data to skb, decrypt with lib80211_crypt_wep, and place back to tx buffer. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_security.c | 72

Re: [PATCH 3/3] pinctrl: actions: Add interrupt support for OWL S900 SoC

2018-06-03 Thread Manivannan Sadhasivam
Hi Andy, On Sun, Jun 03, 2018 at 11:37:53AM +0300, Andy Shevchenko wrote: > On Sat, Jun 2, 2018 at 7:54 PM, Manivannan Sadhasivam > wrote: > > Add interrupt support for Actions Semi OWL S900 SoC. > > > + port = owl_gpio_get_port(pctrl, ); > > + if (WARN_ON(port == NULL)) > > +

[PATCH] IB/hns: Use zeroing memory allocator instead of allocator/memset

2018-06-03 Thread YueHaibing
Use dma_zalloc_coherent for allocating zeroed memory and remove unnecessary memset function. Signed-off-by: YueHaibing --- drivers/infiniband/hw/hns/hns_roce_alloc.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/infiniband/hw/hns/hns_roce_alloc.c

Re: [PATCH 1/4] clk: imx6q: remove clks_init_on array

2018-06-03 Thread Fabio Estevam
On Sun, Jun 3, 2018 at 12:00 AM, Anson Huang wrote: > Clock framework will enable those clocks registered > with CLK_IS_CRITICAL flag, so no need to have > clks_init_on array during clock initialization now. > > Signed-off-by: Anson Huang > --- > drivers/clk/imx/clk-imx6q.c | 14 ++

Re: [PATCH 0/3] Provide more fine grained control over multipathing

2018-06-03 Thread Mike Snitzer
On Sun, Jun 03 2018 at 7:00P -0400, Sagi Grimberg wrote: > > >I'm aware that most everything in multipath.conf is SCSI/FC specific. > >That isn't the point. dm-multipath and multipathd are an existing > >framework for managing multipath storage. > > > >It could be made to work with NVMe. But

Re: Common config for N900 and D4

2018-06-03 Thread Pavel Machek
Hi! > Aaro, I know I have asked before, but if you have common config for > N900 and Droid4, please send me a copy. Yes, it should be somewhere in > my inbox already, but I can't find it and version for v4.17 would be > more useful. > > While trying to came up with common config, I hit: > > [

Re: [PATCH 0/3] Provide more fine grained control over multipathing

2018-06-03 Thread Sagi Grimberg
I'm aware that most everything in multipath.conf is SCSI/FC specific. That isn't the point. dm-multipath and multipathd are an existing framework for managing multipath storage. It could be made to work with NVMe. But yes it would not be easy. Especially not with the native NVMe multipath

Re: [PATCH 2/4] clk: imx6sl: remove clks_init_on array

2018-06-03 Thread Fabio Estevam
Hi Anson, On Sun, Jun 3, 2018 at 12:00 AM, Anson Huang wrote: > Clock framework will enable those clocks registered > with CLK_IS_CRITICAL flag, so no need to have > clks_init_on array during clock initialization now. > > Signed-off-by: Anson Huang > --- > drivers/clk/imx/clk-imx6sl.c | 12

[PATCH 14/29] tools include uapi: Grab copies of stat.h and fcntl.h

2018-06-03 Thread Greg Kroah-Hartman
From: Arnaldo Carvalho de Melo commit 67ef28794d7e30f33936d655f2951e8dcae7cd5a upstream. We will need it to build tools/perf/trace/beauty/statx.h. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link:

[PATCH 18/29] tools include: Drop ARRAY_SIZE() definition from linux/hashtable.h

2018-06-03 Thread Greg Kroah-Hartman
From: Arnaldo Carvalho de Melo commit 68289cbd83eaa20faef7cc818121bc8e769065de upstream. As tools/include/linux/kernel.h has it now, with the goodies present in the kernel.h counterpart, i.e. checking that the parameter is an array at build time. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri

[PATCH 13/29] perf tools: Move headers check into bash script

2018-06-03 Thread Greg Kroah-Hartman
From: Jiri Olsa commit aeafd623f866c429307e3a4a39998f5f06b4f00e upstream. To make it nicer and easily maintainable. Also moving the check into fixdep sub make, so its output is not scattered around the build output. Removing extra $$ from mman*.h checks. Signed-off-by: Jiri Olsa Tested-by:

[PATCH 03/29] tools lib: Add for_each_clear_bit macro

2018-06-03 Thread Greg Kroah-Hartman
From: Jiri Olsa commit 02bc11de567273da8ab25c54336ddbb71986f38f upstream. Adding for_each_clear_bit macro plus all its the necessary backbone functions. Taken from related kernel code. It will be used in following patch. Signed-off-by: Jiri Olsa Cc: Adrian Hunter Cc: David Ahern Cc:

[PATCH 08/29] tools include: Adopt __compiletime_error

2018-06-03 Thread Greg Kroah-Hartman
From: Arnaldo Carvalho de Melo commit 4900653829175f60356efc279695bb23c59483c3 upstream. >From the kernel, get the gcc one and provide the fallback so that we can continue build with other compilers, such as with clang. Will be used by tools/arch/x86/include/asm/cmpxchg.h. Cc: Adrian Hunter

[PATCH 05/29] tools: enable endian checks for all sparse builds

2018-06-03 Thread Greg Kroah-Hartman
From: "Michael S. Tsirkin" commit 376a5fb34b04524af501a0c5979c5920be940e05 upstream. We dropped need for __CHECK_ENDIAN__ for linux, this mirrors this for tools. Signed-off-by: Michael S. Tsirkin Signed-off-by: Greg Kroah-Hartman --- tools/include/linux/types.h | 4 1 file changed, 4

Re: [PATCH v7 2/2] Refactor part of the oom report in dump_header

2018-06-03 Thread Mike Rapoport
On Sat, Jun 02, 2018 at 07:58:52PM +0800, ufo19890...@gmail.com wrote: > From: yuzhoujian > > The dump_header does not print the memcg's name when the system > oom happened, so users cannot locate the certain container which > contains the task that has been killed by the oom killer. > > I

Re: [PATCH][next] iio: tsl2x7x/tsl2772: avoid potential division by zero

2018-06-03 Thread Jonathan Cameron
On Thu, 31 May 2018 05:28:01 -0400 Brian Masney wrote: > On Wed, May 30, 2018 at 07:19:36PM +0100, Colin King wrote: > > From: Colin Ian King > > > > It may be possible for tsl2772_get_lux to return a zero lux value > > and hence a division by zero can occur when lux_val is zero. Check > > for

[PATCH 2/7] staging: mt7621-pci: remove trailing whitespace

2018-06-03 Thread Abdun Nihaal
This fixes the following checkpatch error: ERROR: trailing whitespace Signed-off-by: Abdun Nihaal --- drivers/staging/mt7621-pci/pci-mt7621.c | 32 - 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/staging/mt7621-pci/pci-mt7621.c

[PATCH] x86/platform/uv/BAU: gracefully disable BAU during panic

2018-06-03 Thread Andrew Banman
When panic happens while BAU is active there is a chance that outstanding broadcasts tie up BAU resources enough to cause timeouts in the UV ASIC. These timeouts are hardware errors that immediately bring down the system, preventing kdump from completing. Add uv_bau_crash_shutdown() to bring BAU

[GIT pull] scheduler fixes for 4.17

2018-06-03 Thread Thomas Gleixner
Linus, please pull the latest sched-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched-urgent-for-linus A set of scheduler fixes: - Two patches addressing the problem that the scheduler allows under certain conditions user space tasks to be

[PATCH 00/29] objtool sync up for the stable 4.9.y tree

2018-06-03 Thread Greg Kroah-Hartman
There are pros and cons of dealing with tools in the kernel directory. The pros are the fact that development happens fast, and new features can be added to the kernel and the tools at the same times. The cons are when dealing with backported kernel patches, it can be necessary to backport parts

Re: [PATCH 1/4] clk: imx6q: remove clks_init_on array

2018-06-03 Thread Fabio Estevam
Hi Anson, On Sun, Jun 3, 2018 at 9:48 AM, Anson Huang wrote: > As I explain in previous mail, busy divider clk type already include the flag > when registered. Ok, then please add this information in the commit log to make the review process easier.

Re: [PATCH] rcu: Check the range of jiffies_till_{first,next}_fqs when setting them

2018-06-03 Thread Joel Fernandes
On Sun, Jun 03, 2018 at 02:38:04PM +0900, Byungchul Park wrote: > On Sun, Jun 3, 2018 at 12:58 PM, Joel Fernandes > wrote: > > On Fri, Jun 01, 2018 at 11:03:09AM +0900, Byungchul Park wrote: > >> Currently, the range of jiffies_till_{first,next}_fqs are checked and > >> adjusted on and on in the

Common config for N900 and D4

2018-06-03 Thread Pavel Machek
Hi! Aaro, I know I have asked before, but if you have common config for N900 and Droid4, please send me a copy. Yes, it should be somewhere in my inbox already, but I can't find it and version for v4.17 would be more useful. While trying to came up with common config, I hit: [0.00]

[PATCH 21/29] objtool: Support GCC 8's cold subfunctions

2018-06-03 Thread Greg Kroah-Hartman
From: Josh Poimboeuf commit 13810435b9a7014fb92eb715f77da488f3b65b99 upstream. GCC 8 moves a lot of unlikely code out of line to "cold" subfunctions in .text.unlikely. Properly detect the new subfunctions and treat them as extensions of the original functions. This fixes a bunch of warnings

[PATCH 11/29] tools include: Adopt kernel's refcount.h

2018-06-03 Thread Greg Kroah-Hartman
From: Arnaldo Carvalho de Melo commit 73a9bf95ed1c05698ecabe2f28c47aedfa61b52b upstream. To aid in catching bugs when using atomics as a reference count. This is a trimmed down version with just what is used by tools/ at this point. After this, the patches submitted by Elena for tools/ doing

[PATCH 26/29] objtool, x86: Add several functions and files to the objtool whitelist

2018-06-03 Thread Greg Kroah-Hartman
From: Josh Poimboeuf commit c207aee48037abca71c669cbec407b9891965c34 upstream. In preparation for an objtool rewrite which will have broader checks, whitelist functions and files which cause problems because they do unusual things with the stack. These whitelists serve as a TODO list for which

[PATCH 10/29] tools include: Add UINT_MAX def to kernel.h

2018-06-03 Thread Greg Kroah-Hartman
From: Arnaldo Carvalho de Melo commit eaa75b5117d52adf1efd3c6c3fb4bd8f97de648b upstream. The kernel has it and some files we got from there would require us including the userland header for that, so add it conditionally. Cc: Adrian Hunter Cc: David Ahern Cc: Elena Reshetova Cc: Jiri Olsa

[PATCH 24/29] objtool: Detect RIP-relative switch table references, part 2

2018-06-03 Thread Greg Kroah-Hartman
From: Josh Poimboeuf commit 7dec80ccbe310fb7e225bf21c48c672bb780ce7b upstream. With the following commit: fd35c88b7417 ("objtool: Support GCC 8 switch tables") I added a "can't find switch jump table" warning, to stop covering up silent failures if add_switch_table() can't find anything.

[PATCH 19/29] tools include: Include missing headers for fls() and types in linux/log2.h

2018-06-03 Thread Greg Kroah-Hartman
From: Arnaldo Carvalho de Melo commit a12a4e023a55f058178afea1ada3ce7bf4db94c3 upstream. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-7wj865zidu5ylf87i6i7v...@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo

[PATCH 23/29] objtool: Detect RIP-relative switch table references

2018-06-03 Thread Greg Kroah-Hartman
From: Josh Poimboeuf commit 6f5ec2993b1f39aed12fa6fd56e8dc2272ee8a33 upstream. Typically a switch table can be found by detecting a .rodata access followed an indirect jump: 1969: 4a 8b 0c e5 00 00 00mov0x0(,%r12,8),%rcx 1970: 00 196d:

[PATCH 28/29] objtool: header file sync-up

2018-06-03 Thread Greg Kroah-Hartman
When building tools/objtool/ it rightly complains about a number of files being out of sync. Fix this up by syncing them properly with the relevant in-kernel versions. Signed-off-by: Greg Kroah-Hartman --- tools/objtool/arch/x86/include/asm/inat.h | 10 --

[PATCH 16/29] tools include: Adopt __same_type() and __must_be_array() from the kernel

2018-06-03 Thread Greg Kroah-Hartman
From: Arnaldo Carvalho de Melo commit f6441aff8946f7fd6ab730d7eb9eba18a9ebeba4 upstream. Will be used to adopt the more stringent version of ARRAY_SIZE(), the one in the kernel sources. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link:

[PATCH 1/7] staging: mt7621-pci: Remove space after open parenthesis

2018-06-03 Thread Abdun Nihaal
This fixes the following checkpatch error: ERROR: space prohibited after that open parenthesis '(' Signed-off-by: Abdun Nihaal --- drivers/staging/mt7621-pci/pci-mt7621.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/mt7621-pci/pci-mt7621.c

[PATCH 5/7] staging: mt7621-pci: add spaces around equal symbol

2018-06-03 Thread Abdun Nihaal
This fixes the following checkpatch error: ERROR: spaces required around that '=' (ctx:VxW) Signed-off-by: Abdun Nihaal --- drivers/staging/mt7621-pci/pci-mt7621.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/mt7621-pci/pci-mt7621.c

[PATCH 7/7] staging: mt7621-pci: fix coding style error

2018-06-03 Thread Abdun Nihaal
This fixes the following checkpatch error: ERROR: that open brace { should be on the previous line Signed-off-by: Abdun Nihaal --- drivers/staging/mt7621-pci/pci-mt7621.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging/mt7621-pci/pci-mt7621.c

[PATCH 4/7] staging: mt7621-pci: add space after comma symbol

2018-06-03 Thread Abdun Nihaal
This patch fixes the following checkpatch error: ERROR: space required after that ',' (ctx:VxV) Signed-off-by: Abdun Nihaal --- drivers/staging/mt7621-pci/pci-mt7621.c | 36 - 1 file changed, 18 insertions(+), 18 deletions(-) diff --git

[PATCH 6/7] staging: mt7621-pci: add space after '==' symbol

2018-06-03 Thread Abdun Nihaal
This fixes the following checkpatch error: ERROR: spaces required around that '==' (ctx:WxV) Signed-off-by: Abdun Nihaal --- drivers/staging/mt7621-pci/pci-mt7621.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/mt7621-pci/pci-mt7621.c

[PATCH 0/7] staging: mt7621-pci: Fix coding style issues

2018-06-03 Thread Abdun Nihaal
This patchset fixes the following set of coding style issues found using checkpatch. ERROR: space prohibited after that open parenthesis '(' ERROR: trailing whitespace ERROR: space required before the open parenthesis '(' ERROR: space required after that ',' (ctx:VxV) ERROR: spaces required

[PATCH 3/7] staging: mt7621-pci: add space before open parenthesis

2018-06-03 Thread Abdun Nihaal
This fixes the following checkpatch error: ERROR: space required before the open parenthesis '(' Signed-off-by: Abdun Nihaal --- drivers/staging/mt7621-pci/pci-mt7621.c | 28 - 1 file changed, 14 insertions(+), 14 deletions(-) diff --git

Re: [PATCH 3/3] pinctrl: actions: Add interrupt support for OWL S900 SoC

2018-06-03 Thread Andy Shevchenko
On Sat, Jun 2, 2018 at 7:54 PM, Manivannan Sadhasivam wrote: > Add interrupt support for Actions Semi OWL S900 SoC. > + port = owl_gpio_get_port(pctrl, ); > + if (WARN_ON(port == NULL)) > + return; At which circumstances the above possible? > + port =

[PATCH 01/29] objtool: Improve detection of BUG() and other dead ends

2018-06-03 Thread Greg Kroah-Hartman
From: Josh Poimboeuf commit d1091c7fa3d52ebce4dd3f15d04155b3469b2f90 upstream. The BUG() macro's use of __builtin_unreachable() via the unreachable() macro tells gcc that the instruction is a dead end, and that it's safe to assume the current code path will not execute past the previous

Re: [PATCH 3/4] clk: imx6sx: remove clks_init_on array

2018-06-03 Thread Fabio Estevam
On Sun, Jun 3, 2018 at 12:00 AM, Anson Huang wrote: > Clock framework will enable those clocks registered > with CLK_IS_CRITICAL flag, so no need to have > clks_init_on array during clock initialization now. > > Signed-off-by: Anson Huang > --- > drivers/clk/imx/clk-imx6sx.c | 40

Re: [PATCH v7 2/2] Refactor part of the oom report in dump_header

2018-06-03 Thread Tetsuo Handa
On 2018/06/02 20:58, yuzhoujian wrote: > -void mem_cgroup_print_oom_info(struct mem_cgroup *memcg, struct task_struct > *p) > +void mem_cgroup_print_oom_context(struct mem_cgroup *memcg, struct > task_struct *p, > + enum oom_constraint constraint, nodemask_t *nodemask) > { >

Re: [PATCH v1 1/2] PCI: shpchp: Use dev_printk() for OSHP-related messages

2018-06-03 Thread Rafael J. Wysocki
On Sat, Jun 2, 2018 at 7:42 AM, Bjorn Helgaas wrote: > From: Bjorn Helgaas > > Use dev_printk() for messages related to requesting control of SHPC hotplug > via the OSHP method. > > Signed-off-by: Bjorn Helgaas Reviewed-by: Rafael J. Wysocki > --- > drivers/pci/hotplug/acpi_pcihp.c | 13

Re: [PATCH v1 2/2] PCI: shpchp: Fix AMD POGO identification

2018-06-03 Thread Rafael J. Wysocki
On Sat, Jun 2, 2018 at 7:42 AM, Bjorn Helgaas wrote: > From: Bjorn Helgaas > > The fix for an AMD POGO erratum related to SHPC incorrectly identified the > device. The workaround should be applied only for AMD POGO devices, but it > was instead applied to: > > - all AMD bridges, and > - all

[PATCH] mtd: rawnand: mxc: set spare area size register explicitly

2018-06-03 Thread Martin Kaiser
The v21 version of the NAND flash controller contains a Spare Area Size Register (SPAS) at offset 0x10. Its setting defaults to the maximum spare area size of 218 bytes. The size that is set in this register is used by the controller when it calculates the ECC bytes internally in hardware.

Re: PROBLEM: [kernel BUG at fs/fat/inode.c:162] when writing to a broken VFAT

2018-06-03 Thread Anatoly Trosinenko
Thank you, it works! сб, 2 июн. 2018 г. в 14:19, OGAWA Hirofumi : > > Anatoly Trosinenko writes: > > > Description: > > > > Writing to some file on a broken VFAT partition causes kernel bug > > Thanks. This patch should fix this issue. > -- > OGAWA Hirofumi > > > [PATCH] fat: Use fat_fs_error()

Re: Mounting corrupted HFS+ causes kernel NULL pointer dereference

2018-06-03 Thread Anatoly Trosinenko
Hi, thank you! Excuse me for disturbance. вс, 3 июн. 2018 г. в 21:50, Ernesto A. Fernández : > > Hi, thank you for your report. > > On Sun, Jun 03, 2018 at 06:52:19PM +0300, Anatoly Trosinenko wrote: > > How to reproduce: > > 1. Take kernel source v4.17-rc7 > > 2. Compile it with the config

Re: [PATCH V2 1/3] ARM: imx: add L2 page power control for GPC

2018-06-03 Thread Fabio Estevam
On Sat, Jun 2, 2018 at 11:33 PM, Anson Huang wrote: > Some platforms like i.MX6UL/i.MX6SLL have L2 > page power control in GPC, it needs to be > disabled if ARM is power gated and L2 is NOT > flushed, add GPC interface to control it. > > Signed-off-by: Anson Huang Reviewed-by: Fabio Estevam

Re: [PATCH V2 3/3] ARM: imx: remove i.MX6SLL support in i.MX6SL cpu idle driver

2018-06-03 Thread Fabio Estevam
On Sat, Jun 2, 2018 at 11:33 PM, Anson Huang wrote: > i.MX6SLL supports ARM power off in cpu idle, better to reuse > i.MX6SX cpu idle driver instead of i.MX6SL which does NOT > support ARM power off. > > Signed-off-by: Anson Huang Reviewed-by: Fabio Estevam

Re: [PATCH V2 2/2] ARM: dts: imx6ul: add GPIO clocks

2018-06-03 Thread Fabio Estevam
On Sat, Jun 2, 2018 at 10:44 PM, Anson Huang wrote: > i.MX6UL has GPIO clock gates in CCM CCGR, add > clock property for GPIO driver to make sure all > GPIO banks work as expected. > > Signed-off-by: Anson Huang Reviewed-by: Fabio Estevam

There were supposed to be 200 emails a day on this list.

2018-06-03 Thread Jefferson Carpenter
Where are my 200 emails?

RE: [PATCH 4.4 011/268] Revert "ipc/shm: Fix shmat mmap nil-page protection"

2018-06-03 Thread Daniel Sangorrin
> -Original Message- > From: Naresh Kamboju [mailto:naresh.kamb...@linaro.org] > Sent: Friday, June 1, 2018 12:55 AM > To: Daniel Sangorrin > Cc: Greg Kroah-Hartman ; open list > ; linux- stable ; > Davidlohr Bueso ; Joe Lawrence ; > Andrea Arcangeli ; Manfred Spraul > ; Andrew Morton ; >

Re: [PATCH] rpmsg: smd: do not use mananged resources for endpoints and channels

2018-06-03 Thread Bjorn Andersson
On Fri 01 Jun 16:32 PDT 2018, Srinivas Kandagatla wrote: > @@ -1380,11 +1380,13 @@ static void qcom_smd_edge_release(struct device *dev) > { > struct qcom_smd_channel *channel; > struct qcom_smd_edge *edge = to_smd_edge(dev); > + struct list_head *this, *tmp; > > -

Re: [PATCH] power: Print wakeup_count instead of event_count in the sysfs attribute.

2018-06-03 Thread Ravi Chandra Sadineni
Hi Rafael, On Sun, Jun 3, 2018 at 1:05 AM, Rafael J. Wysocki wrote: > On Sat, Jun 2, 2018 at 4:32 AM, Ravi Chandra Sadineni > wrote: >> Currently we show event_count instead of wakeup_count as part of per >> device wakeup_count sysfs attribute. Change it to wakeup_count to make >> it more

Re: [PATCH v3 4/4] seccomp: add support for passing fds via USER_NOTIF

2018-06-03 Thread Tycho Andersen
Hi Alban, On Sat, Jun 02, 2018 at 09:14:09PM +0200, Alban Crequy wrote: > On Thu, 31 May 2018 at 16:52, Tycho Andersen wrote: > > > > The idea here is that the userspace handler should be able to pass an fd > > back to the trapped task, for example so it can be returned from socket(). > > > >

Re: [PATCH] rcu: Check the range of jiffies_till_{first,next}_fqs when setting them

2018-06-03 Thread Byungchul Park
On 2018-06-04 03:47, Joel Fernandes wrote: On Sun, Jun 03, 2018 at 04:51:06PM +0900, Byungchul Park wrote: On Sun, Jun 3, 2018 at 3:23 PM, Joel Fernandes wrote: On Sun, Jun 03, 2018 at 02:38:04PM +0900, Byungchul Park wrote: On Sun, Jun 3, 2018 at 12:58 PM, Joel Fernandes wrote: On Fri,

linux-next: manual merge of the overlayfs tree with Linus' tree

2018-06-03 Thread Stephen Rothwell
Hi Miklos, Today's linux-next merge of the overlayfs tree got a conflict in: fs/open.c between commit: af04fadcaa93 ("Revert "fs: fold open_check_o_direct into do_dentry_open"") from Linus' tree and commit: e0e3f7de6435 ("vfs: simplify dentry_open()") from the overlayfs tree. I have

Re: [PATCH] rcu: Check the range of jiffies_till_{first,next}_fqs when setting them

2018-06-03 Thread Joel Fernandes
On Sun, Jun 03, 2018 at 04:51:06PM +0900, Byungchul Park wrote: > On Sun, Jun 3, 2018 at 3:23 PM, Joel Fernandes wrote: > > On Sun, Jun 03, 2018 at 02:38:04PM +0900, Byungchul Park wrote: > >> On Sun, Jun 3, 2018 at 12:58 PM, Joel Fernandes > >> wrote: > >> > On Fri, Jun 01, 2018 at 11:03:09AM

[CFT][PATCH] kernfs: Correct kernfs directory seeks.

2018-06-03 Thread Eric W. Biederman
Over the years two bugs have crept into the code that handled the last returned kernfs directory being deleted, and handled general seeking in kernfs directories. The result is that reading the /sys/module directory while moduled are loading and unloading will sometimes skip over a module that

Re: Mounting corrupted HFS+ causes kernel NULL pointer dereference

2018-06-03 Thread Ernesto A . Fernández
Hi, thank you for your report. On Sun, Jun 03, 2018 at 06:52:19PM +0300, Anatoly Trosinenko wrote: > How to reproduce: > 1. Take kernel source v4.17-rc7 > 2. Compile it with the config attached > 3. Unpack and mount the attached FS image as hfsplus. We are aware of this issue and I've sent some

Re: [PATCH 0/7] staging: mt7621-pci: Fix coding style issues

2018-06-03 Thread NeilBrown
On Sun, Jun 03 2018, Abdun Nihaal wrote: > This patchset fixes the following set of coding style > issues found using checkpatch. > > ERROR: space prohibited after that open parenthesis '(' > ERROR: trailing whitespace > ERROR: space required before the open parenthesis '(' > ERROR: space

[git pull] vfs, pile 2

2018-06-03 Thread Al Viro
More shrink_dcache_parent()-related stuff - killing the main source of potentially contended calls of that on large subtrees. The following changes since commit 4faa99965e027cc057c5145ce45fa772caa04e8d: fix io_destroy()/aio_complete() race (2018-05-23 22:53:22 -0400) are available in

[git pull] vfs, pile 1

2018-06-03 Thread Al Viro
That pile is the first part of dealing with livelocks, etc. around shrink_dcache_parent(). The following changes since commit 60cc43fc888428bb2f18f08997432d426a243338: Linux 4.17-rc1 (2018-04-15 18:24:20 -0700) are available in the git repository at:

[tip:perf/urgent] tools headers: Sync x86 cpufeatures.h with the kernel sources

2018-06-03 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: a20d23bb7b04bac27df096d6be4565a1ffdd1ec4 Gitweb: https://git.kernel.org/tip/a20d23bb7b04bac27df096d6be4565a1ffdd1ec4 Author: Arnaldo Carvalho de Melo AuthorDate: Fri, 1 Jun 2018 11:27:37 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 1 Jun 2018 16:13:16 -0300

[tip:perf/urgent] perf trace beauty prctl: Default header_dir to cwd to work without parms

2018-06-03 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 0d690fc043f17fe7afab4b3dd9a57ffa07bc8064 Gitweb: https://git.kernel.org/tip/0d690fc043f17fe7afab4b3dd9a57ffa07bc8064 Author: Arnaldo Carvalho de Melo AuthorDate: Wed, 30 May 2018 10:29:52 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 1 Jun 2018 16:13:06 -0300

[tip:perf/urgent] tools headers: Synchronize prctl.h ABI header

2018-06-03 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 63b89a19cc9ef911dcc64d41b60930c346eee0c0 Gitweb: https://git.kernel.org/tip/63b89a19cc9ef911dcc64d41b60930c346eee0c0 Author: Arnaldo Carvalho de Melo AuthorDate: Fri, 1 Jun 2018 10:42:31 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 1 Jun 2018 16:13:15 -0300

[tip:perf/urgent] perf tools intel-pt-decoder: Update insn.h from the kernel sources

2018-06-03 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 0b3a18387f3e5cdcfaaf884860a4688280d09c9d Gitweb: https://git.kernel.org/tip/0b3a18387f3e5cdcfaaf884860a4688280d09c9d Author: Arnaldo Carvalho de Melo AuthorDate: Fri, 1 Jun 2018 13:15:19 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 1 Jun 2018 16:13:18 -0300

Re: [PATCH] x86/platform/uv/BAU: gracefully disable BAU during panic

2018-06-03 Thread kbuild test robot
Hi Andrew, Thank you for the patch! Yet something to improve: [auto build test ERROR on tip/auto-latest] [also build test ERROR on v4.17-rc7 next-20180601] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

  1   2   3   4   >