Re: [v4.9-rt PATCH v2] ARM: mm: remove tasklist locking from update_sections_early()

2017-04-21 Thread Kees Cook
On Wed, Apr 19, 2017 at 5:36 PM, Laura Abbott wrote: > On 04/19/2017 01:10 PM, Grygorii Strashko wrote: >> >> The below backtrace can be observed on -rt kernel with CONFIG_DEBUG_RODATA >> option enabled: >> >> BUG: sleeping function called from invalid context at >>

[PATCH 0/8] Fix clean target warnings

2017-04-21 Thread Shuah Khan
This patch series consists of changes to lib.mk to allow overriding common clean target from Makefiles. This fixes warnings when clean overriding and ignoring warnings. Also fixes splice clean target removing a script that runs the test from its clean target. Shuah Khan (8): selftests: splice:

[PATCH 5/8] selftests: powerpc: override clean in lib.mk to fix warnings

2017-04-21 Thread Shuah Khan
Add override for lib.mk clean to fix the following warnings from clean target run. Makefile:63: warning: overriding recipe for target 'clean' ../lib.mk:55: warning: ignoring old recipe for target 'clean' Signed-off-by: Shuah Khan ---

[PATCH 3/8] selftests: futex: override clean in lib.mk to fix warnings

2017-04-21 Thread Shuah Khan
Add override for lib.mk clean to fix the following warnings from clean target run. Makefile:36: warning: overriding recipe for target 'clean' ../lib.mk:55: warning: ignoring old recipe for target 'clean' Signed-off-by: Shuah Khan ---

Re: [PATCH v3 2/2] modules:capabilities: add a per-task modules autoload restriction

2017-04-21 Thread Andy Lutomirski
On Fri, Apr 21, 2017 at 4:40 PM, Kees Cook wrote: > On Fri, Apr 21, 2017 at 4:28 PM, Andy Lutomirski wrote: >> On Fri, Apr 21, 2017 at 4:19 PM, Kees Cook wrote: >>> On Wed, Apr 19, 2017 at 7:41 PM, Andy Lutomirski

Re: [PATCH] CHROMIUM: ecryptfs: sync before truncating lower inode

2017-04-21 Thread Andrey Pronin
On Thu, Apr 20, 2017 at 06:27:52PM -0500, Tyler Hicks wrote: > On 04/18/2017 06:36 PM, Andrey Pronin wrote: > > If the updated ecryptfs header data is not written to disk before > > the lower file is truncated, a crash may leave the filesystem > > in the state when the lower file truncation is

Re: [PATCH v3 2/2] modules:capabilities: add a per-task modules autoload restriction

2017-04-21 Thread Casey Schaufler
On 4/21/2017 4:28 PM, Andy Lutomirski wrote: > On Fri, Apr 21, 2017 at 4:19 PM, Kees Cook wrote: >> On Wed, Apr 19, 2017 at 7:41 PM, Andy Lutomirski wrote: >>> On Wed, Apr 19, 2017 at 4:43 PM, Kees Cook wrote: On Wed, Apr 19,

Re: [PATCH 1/2] f2fs: add braces for macro variables more

2017-04-21 Thread Chao Yu
On 2017/4/21 8:49, Jaegeuk Kim wrote: > This patch adds braces for macro variables more in include/linux/f2fs_fs.h. > > Signed-off-by: Jaegeuk Kim > --- > fs/f2fs/f2fs.h | 1 + > include/linux/f2fs_fs.h | 10 +- > 2 files changed, 6 insertions(+), 5

[PATCH] gdth: use offset_in_page() macro

2017-04-21 Thread Geliang Tang
Use offset_in_page() macro instead of open-coding. Signed-off-by: Geliang Tang --- drivers/scsi/gdth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/gdth.c b/drivers/scsi/gdth.c index d020a13..557ce73 100644 --- a/drivers/scsi/gdth.c +++

[PATCH] net: atheros: atl1: use offset_in_page() macro

2017-04-21 Thread Geliang Tang
Use offset_in_page() macro instead of open-coding. Signed-off-by: Geliang Tang --- drivers/net/ethernet/atheros/atlx/atl1.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/net/ethernet/atheros/atlx/atl1.c

[PATCH] fs/ocfs2/cluster: use offset_in_page() macro

2017-04-21 Thread Geliang Tang
Use offset_in_page() macro instead of open-coding. Signed-off-by: Geliang Tang --- fs/ocfs2/cluster/tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ocfs2/cluster/tcp.c b/fs/ocfs2/cluster/tcp.c index a4a6ba2..8d77922 100644 ---

Re: [PATCH V3 2/2] ARM64: dts: hi6220-hikey: Add clock binding for the pmic mfd

2017-04-21 Thread Stephen Boyd
On 04/17, Daniel Lezcano wrote: > Signed-off-by: Daniel Lezcano > --- > Documentation/devicetree/bindings/mfd/hisilicon,hi655x.txt | 6 ++ > arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 1 + > 2 files changed, 7 insertions(+) > I take it this goes

[PATCH] platform/x86: asus-wmi: fix cpufv sysfs file permission

2017-04-21 Thread Jérémy Lefaure
The cpufv sysfs file is defined as readable by anyone even if the attribute does not have a show function. The result of every read is an IO error. This file should be write only. Signed-off-by: Jérémy Lefaure --- drivers/platform/x86/asus-wmi.c | 4 ++-- 1 file

Re: [PATCH 2/2] clk: ti: fix building without legacy omap3

2017-04-21 Thread Stephen Boyd
On 04/19, Arnd Bergmann wrote: > When CONFIG_ATAGS or CONFIG_OMAP3 is disabled, we get a build error: > > In file included from include/linux/clk-provider.h:15:0, > from drivers/clk/ti/clk.c:19: > drivers/clk/ti/clk.c: In function 'ti_clk_add_aliases': >

Re: [PATCH v2 8/8] platform: x86: intel_bxtwc_tmu: remove first level irq unmask

2017-04-21 Thread Andy Shevchenko
On Sat, Apr 22, 2017 at 1:34 AM, sathyanarayanan kuppuswamy wrote: > Thanks for brining it up. I was planning to ask either Andy or Lee regarding > this issue after all patches in the series are reviewed. Darren, I'm planning to review this soon.

Re: [PATCH v1 1/1] srcu-cbmc: Use /usr/bin/awk instead of /bin/awk

2017-04-21 Thread Josh Triplett
On Fri, Apr 21, 2017 at 09:52:10PM +, Kushwaha, Priyalee wrote: > Tested 9 distros centos, Debian, Fedora, Gentoo, Opensuse, slackware, Ubuntu, > poky showed awk at /usr/bin/awk. > > Here is another similar patch which has been approved > https://patchwork.kernel.org/patch/9650581/ > >

[PATCH] ACPI / GED: use late init to allow other drivers init

2017-04-21 Thread Sinan Kaya
GED driver is currently set up as a platform driver. On modern operating systems, most of the drivers are compiled as kernel modules. It is possible that a GED interrupt event is received and the driver such as GHES/GPIO/I2C to service it is not available yet. To accommodate this use case, delay

Re: [PATCH v2 8/8] platform: x86: intel_bxtwc_tmu: remove first level irq unmask

2017-04-21 Thread sathyanarayanan kuppuswamy
Hi Darren, Thanks for the review. On 04/21/2017 03:00 PM, Darren Hart wrote: On Fri, Apr 14, 2017 at 04:26:00PM -0700, sathyanarayanan.kuppusw...@linux.intel.com wrote: From: Kuppuswamy Sathyanarayanan Currently in WCOVE PMIC mfd driver, all

[PATCH 1/5] lightnvm: pblk: fix race condition on line retry

2017-04-21 Thread Javier González
When a pblk line fails (or is recovered), make sure to take the line management lock. Fixes: a4bd217b4326 "lightnvm: physical block device (pblk) target" Signed-off-by: Javier González --- drivers/lightnvm/pblk-core.c | 6 +++--- 1 file changed, 3 insertions(+), 3

[PATCH 4/5] lightnvm: pblk: free metadata on line alloc failure

2017-04-21 Thread Javier González
When a line allocation fails, for example, due to having too many bad blocks, free its metadata correctly. Fixes: a4bd217b4326 "lightnvm: physical block device (pblk) target" Signed-off-by: Javier González --- drivers/lightnvm/pblk-core.c | 16 +--- 1 file

[PATCH 3/5] lightnvm: pblk: fix memory leak on error path

2017-04-21 Thread Javier González
When write recovery fails, Free memory for the recovery structure. Fixes: a4bd217b4326 "lightnvm: physical block device (pblk) target" Signed-off-by: Javier González --- drivers/lightnvm/pblk-write.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH 2/5] lightnvm: pblk: fix bad error check

2017-04-21 Thread Javier González
Fix bad error check Fixes: a4bd217b4326 "lightnvm: physical block device (pblk) target" Signed-off-by: Javier González --- drivers/lightnvm/pblk-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/lightnvm/pblk-core.c

Re: [PATCH v3 2/2] modules:capabilities: add a per-task modules autoload restriction

2017-04-21 Thread Kees Cook
On Fri, Apr 21, 2017 at 4:28 PM, Andy Lutomirski wrote: > On Fri, Apr 21, 2017 at 4:19 PM, Kees Cook wrote: >> On Wed, Apr 19, 2017 at 7:41 PM, Andy Lutomirski wrote: >>> On Wed, Apr 19, 2017 at 4:43 PM, Kees Cook

[PATCH] tracing: Use cpumask_available() to check if cpumask variable may be used

2017-04-21 Thread Matthias Kaehlcke
This fixes the following clang warning: kernel/trace/trace.c:3231:12: warning: address of array 'iter->started' will always evaluate to 'true' [-Wpointer-bool-conversion] if (iter->started) Signed-off-by: Matthias Kaehlcke --- Dependencies: - "cpumask: Add helper

Re: [PATCH 3/5] clk: mvebu: Use kcalloc() in two functions

2017-04-21 Thread Stephen Boyd
On 04/19, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 19 Apr 2017 21:08:54 +0200 > > * Multiplications for the size determination of memory allocations > indicated that array data structures should be processed. > Thus use the corresponding

[RFC][PATCH tip/sched/core] sched/rt: Simplify the IPI rt balancing logic

2017-04-21 Thread Steven Rostedt
When a CPU lowers its priority (schedules out a high priority task for a lower priority one), a check is made to see if any other CPU has overloaded RT tasks (more than one). It checks the rto_mask to determine this and if so it will request to pull one of those tasks to itself if the non running

Re: [PATCH 8/8] clk: nomadik: Delete error messages for a failed memory allocation in two functions

2017-04-21 Thread Stephen Boyd
On 04/20, SF Markus Elfring wrote: > From: Markus Elfring > Date: Thu, 20 Apr 2017 10:04:00 +0200 > > The script "checkpatch.pl" pointed information out like the following. > > WARNING: Possible unnecessary 'out of memory' message > > Thus remove such statements

Re: [PATCH 7/8] clk: nomadik: Use seq_puts() in nomadik_src_clk_show()

2017-04-21 Thread Stephen Boyd
On 04/20, SF Markus Elfring wrote: > From: Markus Elfring > Date: Thu, 20 Apr 2017 09:45:04 +0200 > > A string which did not contain a data format specification should be put > into a sequence. Thus use the corresponding function "seq_puts". > > This issue was

Re: [PATCH 1/5] clk: mvebu: Use kcalloc() in of_cpu_clk_setup()

2017-04-21 Thread Stephen Boyd
On 04/19, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 19 Apr 2017 20:15:21 +0200 > > Multiplications for the size determination of memory allocations > indicated that array data structures should be processed. > Thus use the corresponding function

Re: [RFC] minimum gcc version for kernel: raise to gcc-4.3 or 4.6?

2017-04-21 Thread Maciej W. Rozycki
On Fri, 21 Apr 2017, Kees Cook wrote: > > The linux-4.2 x86 defconfig could still be built with gcc-4.0, but > > later kernels have several minor problems with that, and > > require at least gcc-4.3. > > > > If we are ok with this status quo, we could simply declare gcc-4.3 > > the absolute

Re: [RFC PATCH 1/3] clk: add clk_bulk_get accessories

2017-04-21 Thread Stephen Boyd
On 04/12, Dong Aisheng wrote: > > #ifdef CONFIG_HAVE_CLK > @@ -230,6 +257,32 @@ static inline void clk_unprepare(struct clk *clk) > struct clk *clk_get(struct device *dev, const char *id); > > /** > + * clk_bulk_get - lookup and obtain a number of references to clock producer. > + * @dev:

[PATCH] x86/refcount: Implement fast refcount_t handling

2017-04-21 Thread Kees Cook
This patch ports the x86-specific atomic overflow handling from PaX's PAX_REFCOUNT to the upstream refcount_t API. This is an updated version from PaX that eliminates the saturation race condition by resetting the atomic counter back to the INT_MAX saturation value on both overflow and underflow.

Re: [PATCH] ARM: omap2+: make omap4_get_cpu1_ns_pa_addr declaration usable

2017-04-21 Thread Tony Lindgren
* Arnd Bergmann [170421 14:59]: > When CONFIG_PM is disabled, we get a build error: > > arch/arm/mach-omap2/omap-smp.c: In function 'omap4_smp_maybe_reset_cpu1': > arch/arm/mach-omap2/omap-smp.c:309:20: error: implicit declaration of > function 'omap4_get_cpu1_ns_pa_addr'; did

Re: [PATCH] Introduce v3 namespaced file capabilities

2017-04-21 Thread Eric W. Biederman
"Serge E. Hallyn" writes: > Root in a non-initial user ns cannot be trusted to write a traditional > security.capability xattr. If it were allowed to do so, then any > unprivileged user on the host could map his own uid to root in a private > namespace, write the xattr, and

[PATCH 2/2] drivers:net:ethernet:3com:3c512: array char instead of char pointer

2017-04-21 Thread Karim Eshapa
char pointer creates two variables static string and pointer to it according to Jeff Garzik janitors TODO Signed-off-by: Karim Eshapa --- drivers/net/ethernet/3com/3c515.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH 1/3] f2fs: add ioctl to flush data from faster device to cold area

2017-04-21 Thread Chao Yu
On 2017/4/19 9:45, Jaegeuk Kim wrote: > This patch adds an ioctl to flush data in faster device to cold area. User can > give device number and number of segments to move. It doesn't move it if there > is only one device. > > The parameter looks like: > > struct f2fs_flush_device { > u32

[PATCH v2 2/5] mtd: nand: gpmi: add i.MX 7 SoC support

2017-04-21 Thread Stefan Agner
Add support for i.MX 7 SoC. The i.MX 7 has a slightly different clock architecture requiring only two clocks to be referenced. The IP is slightly different compared to i.MX 6, but currently none of this differences are in use, therefore reuse GPMI_IS_MX6. Signed-off-by: Stefan Agner

[PATCH v2 0/5] mtd: nand: gpmi: add i.MX 7 support

2017-04-21 Thread Stefan Agner
This patchset adds support for i.MX 7 SoC for the GPMI NAND controller. There have been similar patchsets already: https://lkml.org/lkml/2016/2/23/912 However, this patchset does not make use of any of the new features. The current feature set seems to work fine, I successfully run the MTD tests

[PATCH v2 3/5] mtd: gpmi: document current clock requirements

2017-04-21 Thread Stefan Agner
The clock requirements are completely missing, add the clocks currently required by the driver. Signed-off-by: Stefan Agner --- Documentation/devicetree/bindings/mtd/gpmi-nand.txt | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git

[PATCH v2 1/5] mtd: nand: gpmi: unify clock handling

2017-04-21 Thread Stefan Agner
Add device specific list of clocks required, and handle all clocks in a single for loop. This avoids further code duplication when adding i.MX 7 support. Signed-off-by: Stefan Agner Reviewed-by: Marek Vasut --- drivers/mtd/nand/gpmi-nand/gpmi-nand.c | 41

[PATCH v2 4/5] ARM: dts: imx7: add GPMI NAND

2017-04-21 Thread Stefan Agner
Add i.MX 7 GPMI NAND module. Signed-off-by: Stefan Agner --- arch/arm/boot/dts/imx7s.dtsi | 31 +++ 1 file changed, 31 insertions(+) diff --git a/arch/arm/boot/dts/imx7s.dtsi b/arch/arm/boot/dts/imx7s.dtsi index 843eb379e1ea..9645257638d4 100644 ---

[PATCH] tty/serial: atmel: use offset_in_page() macro

2017-04-21 Thread Geliang Tang
Use offset_in_page() macro instead of open-coding. Signed-off-by: Geliang Tang --- drivers/tty/serial/atmel_serial.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c index

[PATCH] xprtrdma: use offset_in_page() macro

2017-04-21 Thread Geliang Tang
Use offset_in_page() macro instead of open-coding. Signed-off-by: Geliang Tang --- net/sunrpc/xprtrdma/rpc_rdma.c| 4 ++-- net/sunrpc/xprtrdma/svc_rdma_sendto.c | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/net/sunrpc/xprtrdma/rpc_rdma.c

[PATCH v2 5/5] ARM: dts: imx7-colibri: add NAND support

2017-04-21 Thread Stefan Agner
The Colibri iMX7 modules come with 512MB on-module SLC NAND flash populated. Make use of it by enabling the GPMI controller. Signed-off-by: Stefan Agner --- arch/arm/boot/dts/imx7-colibri.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git

[PATCH] xen/scsifront: use offset_in_page() macro

2017-04-21 Thread Geliang Tang
Use offset_in_page() macro instead of open-coding. Signed-off-by: Geliang Tang --- drivers/scsi/xen-scsifront.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/xen-scsifront.c b/drivers/scsi/xen-scsifront.c index 9aa1fe1..a6a8b60 100644

[PATCH 1/3] IB/i40iw: use setup_timer

2017-04-21 Thread Geliang Tang
Use setup_timer() instead of init_timer() to simplify the code. Signed-off-by: Geliang Tang --- drivers/infiniband/hw/i40iw/i40iw_cm.c| 5 ++--- drivers/infiniband/hw/i40iw/i40iw_utils.c | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git

[PATCH 2/3] IB/nes: use setup_timer

2017-04-21 Thread Geliang Tang
Use setup_timer() instead of init_timer() to simplify the code. Signed-off-by: Geliang Tang --- drivers/infiniband/hw/nes/nes_hw.c| 5 ++--- drivers/infiniband/hw/nes/nes_mgt.c | 5 ++--- drivers/infiniband/hw/nes/nes_verbs.c | 5 ++--- 3 files changed, 6

[PATCH 3/3] IB/qib: use setup_timer

2017-04-21 Thread Geliang Tang
Use setup_timer() instead of init_timer() to simplify the code. Signed-off-by: Geliang Tang --- drivers/infiniband/hw/qib/qib_iba6120.c | 10 -- drivers/infiniband/hw/qib/qib_iba7220.c | 5 ++--- drivers/infiniband/hw/qib/qib_iba7322.c | 10 --

Re: [PATCH] clk: ti: fix linker error with !SOC_OMAP4

2017-04-21 Thread Stephen Boyd
On 04/20, Tero Kristo wrote: > On 20/04/17 18:06, Arnd Bergmann wrote: > >On Thu, Apr 20, 2017 at 4:57 PM, Tero Kristo wrote: > >>On 20/04/17 00:43, Arnd Bergmann wrote: > >>> > >>>When none of the OMAP4-generation SoCs are enabled, we run into a link > >>>error for

[PATCH v2] nfs/filelayout: fix NULL pointer dereference in fl_pnfs_update_layout()

2017-04-21 Thread Artem Savkov
Calling pnfs_put_lset on an IS_ERR pointer results in a NULL pointer dereference like the one below. At the same time the check of retvalue of filelayout_check_deviceid() sets lseg to error, but does not free it before that. [ 3000.636161] BUG: unable to handle kernel NULL pointer dereference at

Re: [PATCH 2/8] clk: si5351: Delete an error message for a failed memory allocation in si5351_i2c_probe()

2017-04-21 Thread Stephen Boyd
On 04/20, SF Markus Elfring wrote: > From: Markus Elfring > Date: Thu, 20 Apr 2017 07:34:54 +0200 > > The script "checkpatch.pl" pointed information out like the following. > > * CHECK: Comparison to NULL could be written "!drvdata" > > Thus adjust this

Re: [PATCH 1/8] clk: si5351: Use devm_kcalloc() in si5351_i2c_probe()

2017-04-21 Thread Stephen Boyd
On 04/20, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 19 Apr 2017 22:37:30 +0200 > > Multiplications for the size determination of memory allocations > indicated that array data structures should be processed. > Thus use the corresponding function

Re: [RFC PATCH 0/3] clk: introduce clk_bulk_get accessories

2017-04-21 Thread Stephen Boyd
On 04/12, Dong Aisheng wrote: > > Together with the err path handling for each clocks, it does make > things a bit ugly. > > Since we already have regulator_bulk_get accessories, i thought we > probably could introduce clk_bulk_get as well to handle such case to > ease the driver owners' life.

[HMM 03/15] mm/unaddressable-memory: new type of ZONE_DEVICE for unaddressable memory

2017-04-21 Thread Jérôme Glisse
HMM (heterogeneous memory management) need struct page to support migration from system main memory to device memory. Reasons for HMM and migration to device memory is explained with HMM core patch. This patch deals with device memory that is un-addressable memory (ie CPU can not access it).

Re: [PATCH] make TIOCSTI ioctl require CAP_SYS_ADMIN

2017-04-21 Thread Kees Cook
On Thu, Apr 20, 2017 at 10:24 PM, Serge E. Hallyn wrote: > On Fri, Apr 21, 2017 at 01:09:59AM -0400, Matt Brown wrote: >> On 04/20/2017 01:41 PM, Serge E. Hallyn wrote: >> >Quoting m...@nmatt.com (m...@nmatt.com): >> >>On 2017-04-20 11:19, Serge E. Hallyn wrote: >> >>>Quoting Matt Brown

Re: [PATCH -mm -v9 1/3] mm, THP, swap: Delay splitting THP during swap out

2017-04-21 Thread Balbir Singh
On Wed, 2017-04-19 at 15:06 +0800, Huang, Ying wrote: > From: Huang Ying > > In this patch, splitting huge page is delayed from almost the first > step of swapping out to after allocating the swap space for the > THP (Transparent Huge Page) and adding the THP into the swap cache. > This will

Re: [PATCH v5 06/11] mm: thp: check pmd migration entry in common path

2017-04-21 Thread Anshuman Khandual
On 04/21/2017 02:17 AM, Zi Yan wrote: > From: Zi Yan > > If one of callers of page migration starts to handle thp, > memory management code start to see pmd migration entry, so we need > to prepare for it before enabling. This patch changes various code > point which checks the status of given

[PATCH v2 1/2] kbuild: consolidate redundant sed script ASM offset generation

2017-04-21 Thread Masahiro Yamada
This part ended up in redundant code after touched by multiple people. [1] Commit 3234282f33b2 ("x86, asm: Fix CFI macro invocations to deal with shortcomings in gas") added parentheses for defined expressions to support old gas for x86. [2] Commit a22dcdb0032c ("x86, asm: Fix ancient-GAS

[PATCH v2 2/2] kbuild: fix asm-offset generation to work with clang

2017-04-21 Thread Masahiro Yamada
From: Jeroen Hofstee KBuild abuses the asm statement to write to a file and clang chokes about these invalid asm statements. Hack it even more by fooling this is actual valid asm code. [masahiro: Import Jeroen's work for U-Boot: http://patchwork.ozlabs.org/patch/375026/ Tweak sed script a

[PATCH v2 0/2] kbuild: cleanup asm-offset generation, and make it work with clang

2017-04-21 Thread Masahiro Yamada
1/2 is a trivial cleanup of sed script 2/2 imports clang work-around from U-Boot. Changes in v2: - V1 did not work with LLVM's integrated assembler because it uses instead of around the .ascii string. Restore [:space:]. Jeroen Hofstee (1): kbuild: fix asm-offset generation to

Re: [PATCH 2/2] module: Add module name to modinfo

2017-04-21 Thread Jessica Yu
+++ Kees Cook [12/04/17 16:16 -0700]: Accessing the mod structure (e.g. for mod->name) prior to having completed check_modstruct_version() can result in writing garbage to the error logs if the layout of the mod structure loaded from disk doesn't match the running kernel's mod structure layout.

Re: Review request: draft userfaultfd(2) manual page

2017-04-21 Thread Michael Kerrisk (man-pages)
Hello Mike, On 03/21/2017 03:01 PM, Mike Rapoport wrote: > Hello Michael, > > On Mon, Mar 20, 2017 at 09:08:05PM +0100, Michael Kerrisk (man-pages) wrote: >> Hello Andrea, Mike, and all, >> >> Mike: thanks for the page that you sent. I've reworked it >> a bit, and also added a lot of further

Re: [PATCH 2/2] i2c: xgene-slimpro: Add ACPI support by using PCC mailbox

2017-04-21 Thread Wolfram Sang
> > I think it doesn't make sense to print a dev_err and return ENODEV which > > is treated by the driver core as a non-error. It means "not present, but > > OK". You probably want other error codes here. > > How about -EINVAL for these -ENODEV error codes? Do you have any suggestion? -EINVAL

Re: [PATCH] checkpatch: add --typedefsfile

2017-04-21 Thread Jerome Forissier
On 04/20/2017 06:49 PM, Joe Perches wrote: > On Thu, 2017-04-20 at 17:39 +0200, Jerome Forissier wrote: >> When using checkpatch on out-of-tree code, it may occur that some >> project-specific types are used, which will cause spurious warnings. >> Add the --typedefsfile option as a way to extend

Re: linux-next: manual merge of the pm tree with the arm-soc tree

2017-04-21 Thread santosh.shilim...@oracle.com
On 4/20/17 10:53 PM, Arnd Bergmann wrote: On Fri, Apr 21, 2017 at 2:54 AM, Stephen Rothwell wrote: Hi all, Today's linux-next merge of the pm tree got a conflict in: include/dt-bindings/genpd/k2g.h between commit: 7cc119f29b19 ("dt-bindings: Add TI SCI PM Domains") from the arm-soc

Re: [PATCH 2/2] xen/input: add multi-touch support

2017-04-21 Thread Oleksandr Andrushchenko
Hi, Dmitry! On 04/21/2017 05:10 AM, Dmitry Torokhov wrote: Hi Oleksandr, On Thu, Apr 13, 2017 at 02:38:04PM +0300, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko Extend xen_kbdfront to provide multi-touch support to unprivileged domains. Signed-off-by: Oleksandr Andrushchenko

Re: [PATCH 1/2] xen/input: use string constants from PV protocol

2017-04-21 Thread Oleksandr Andrushchenko
On 04/21/2017 05:11 AM, Dmitry Torokhov wrote: On Thu, Apr 13, 2017 at 02:38:03PM +0300, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko Xen input para-virtual protocol defines string constants used by both back and frontend. Use those instead of explicit strings in the frontend

Re: [PATCH v2 00/11] Documentation: Add ABI to the admin guide

2017-04-21 Thread Markus Heiser
Am 21.04.2017 um 01:21 schrieb Mauro Carvalho Chehab : > - I'm not a python programmer ;-) I just took Markus "generic" kernel-cmd > code, hardcoding there a call to the script. > > With (a lot of) time, I would likely be able to find a solution to add > the entire ABI logic there, but, in

linux-next: Tree for Apr 21

2017-04-21 Thread Stephen Rothwell
Hi all, Changes since 20170420: The arm tree gained a build failure so I used the version from next-20170420. The pci tree gained a conflict against the kbuild tree. The pm tree gained conflict against the arm-soc tree. The rdma tree gained a build failure so I used the version from

Re: [PATCH v7 0/7] Introduce ZONE_CMA

2017-04-21 Thread Michal Hocko
On Fri 21-04-17 10:35:03, Joonsoo Kim wrote: [...] > Hello, Michal. > > If you don't have any more question, I will send next version with > updated cover-letter. I am sorry but I am bussy as hell this week and didn't get to your email yet. I will try as soon as possible. -- Michal Hocko SUSE

[PATCH][-next] i2c: tegra: fix spelling mistake: "contoller" -> "controller"

2017-04-21 Thread Colin King
From: Colin Ian King trivial fix to spelling mistake in MODULE_DESCRIPTION text Signed-off-by: Colin Ian King --- drivers/i2c/busses/i2c-tegra-bpmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-tegra-bpmp.c b/drivers/i2c/busses/i2c-tegra-bpmp.c

[PATCH] arcpgu: Simplify driver name

2017-04-21 Thread Alexey Brodkin
This very minor change is still useful because it aligns ARC PGU driver name with other DRM drivers and makes usage of that driver name a bit easier. For example in libdrm's test app we'll use "arcpgu" instead of a bit more ugly "drm-arcpgu". Signed-off-by: Alexey Brodkin Cc: Daniel Vetter ---

Re: [PATCH] ceph: Fix file open flags on ppc64

2017-04-21 Thread Jan Fajerski
On Fri, Apr 21, 2017 at 10:22:16AM +0800, Yan, Zheng wrote: On 20 Apr 2017, at 20:40, Alexander Graf wrote: The file open flags (O_foo) are platform specific and should never go out to an interface that is not local to the system. Unfortunately these flags have leaked out onto the wire in

Re: [PATCH 2/6] locking: Introduce range reader/writer lock

2017-04-21 Thread Laurent Dufour
On 20/04/2017 18:01, Davidlohr Bueso wrote: >>> +int range_read_trylock(struct range_rwlock_tree *tree, struct >>> range_rwlock *lock) >>> +{ >>> +int ret = true; >>> +unsigned long flags; >>> +struct interval_tree_node *node; >>> + >>> +spin_lock_irqsave(>lock, flags); >>> + >>> +

[PATCH] PCI: imx6: fix spelling mistake: "contol" -> "control"

2017-04-21 Thread Colin King
From: Colin Ian King trivial fix to spelling mistake in dev_err message Signed-off-by: Colin Ian King --- drivers/pci/dwc/pci-imx6.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pci/dwc/pci-imx6.c b/drivers/pci/dwc/pci-imx6.c index 102edcf1e261..129717ae5022

Re: your mail

2017-04-21 Thread Michal Hocko
On Fri 21-04-17 13:38:28, Joonsoo Kim wrote: > On Thu, Apr 20, 2017 at 09:28:20AM +0200, Michal Hocko wrote: > > On Thu 20-04-17 10:27:55, Joonsoo Kim wrote: > > > On Mon, Apr 17, 2017 at 10:15:15AM +0200, Michal Hocko wrote: > > [...] > > > > Which pfn walkers you have in mind? > > > > > > For

Re: [PATCH 3.18 000/124] 3.18.50-stable review

2017-04-21 Thread Greg Kroah-Hartman
On Thu, Apr 20, 2017 at 01:37:56PM -0700, kernelci.org bot wrote: > stable-rc/linux-3.18.y boot: 283 boots: 3 failed, 262 passed with 18 offline > (v3.18.49-125-g7379419992fb) Yeah, thanks for adding 3.18 back to the builds! I'm guessing this is all ok... thanks, greg k-h

Re: [PATCH] platform/x86: INT33FE: add i2c dependency

2017-04-21 Thread Hans de Goede
Hi, On 20-04-17 14:51, Tobias Regnery wrote: With CONFIG_I2C=m and CONFIG_INTEL_CHT_INT33FE=y we see the following link errors: drivers/built-in.o: In function 'cht_int33fe_remove': intel_cht_int33fe.c:(.text+0x391f6e): undefined reference to 'i2c_unregister_device'

Re: [PATCH -mm -v9 1/3] mm, THP, swap: Delay splitting THP during swap out

2017-04-21 Thread Huang, Ying
Balbir Singh writes: > On Wed, 2017-04-19 at 15:06 +0800, Huang, Ying wrote: >> From: Huang Ying >> >> In this patch, splitting huge page is delayed from almost the first >> step of swapping out to after allocating the swap space for the >> THP (Transparent Huge Page) and adding the THP into

Re: [PATCH] ceph: Fix file open flags on ppc64

2017-04-21 Thread Alexander Graf
> Am 21.04.2017 um 08:59 schrieb Jan Fajerski : > >> On Fri, Apr 21, 2017 at 10:22:16AM +0800, Yan, Zheng wrote: >> >>> On 20 Apr 2017, at 20:40, Alexander Graf wrote: >>> >>> The file open flags (O_foo) are platform specific and should never go >>> out to an interface that is not local to

Re: [PATCH 3/4] nfs: remove the objlayout driver

2017-04-21 Thread Valentin Rothberg
Hi Christoph, I just came across this patch in linux-next commit 6d22323b2e9f. scripts/checkkconfigsymbols.py reports that there is a leftover reference on PNFS_OBJLAYOUT in fs/exofs/Kconfig.ore line 10 (depends on EXOFS_FS || PNFS_OBJLAYOUT). I assume that this reference can safely be removed

Re: powerpc KVM build break in linux-next (was Re: [PATCH tip/core/rcu 40/40] srcu: Parallelize callback handling)

2017-04-21 Thread Paolo Bonzini
On 21/04/2017 06:17, Paul E. McKenney wrote: >> Thanks, this looks perfect to me, and if you're happy to put it on top >> of your tree that would limit the breakage to a smaller history window, >> so that would be ideal. >> >> Tested-by: Michael Ellerman > Thank you, Michael! > > Paolo, does

Re: [PATCH net-next] net: dsa: Remove redundant NULL dst check

2017-04-21 Thread Juergen Borleis
Hi Florian, On Friday 21 April 2017 00:47:22 Florian Fainelli wrote: > tag_lan9303.c does check for a NULL dst but that's already checked by > dsa_switch_rcv() one layer above. > > Signed-off-by: Florian Fainelli > --- > net/dsa/tag_lan9303.c | 5 - > 1 file changed, 5 deletions(-) > > diff

Re: [PATCH V5 5/7] ARM: sun8i: Use - instead of @ for DT OPP entries

2017-04-21 Thread Maxime Ripard
On Thu, Apr 20, 2017 at 04:25:09PM +0530, Viresh Kumar wrote: > Compiling the DT file with W=1, DTC warns like follows: > > Warning (unit_address_vs_reg): Node /opp_table0/opp@10 has a > unit name, but no reg property > > Fix this by replacing '@' with '-' as the OPP nodes will never

Re: [PATCH v3] Staging: most: use __func__ instead of the function name

2017-04-21 Thread Chandra Annamaneni
Third Reminder. Please review. -- Chandra On Sun, 9 Apr 2017, chandrasekhar annamaneni wrote: > > Second reminder, please review. > > Thanks. > Chandra > > > On Fri, Mar 17, 2017 at 12:49 PM, Chandra Annamaneni > wrote: > > Change video.c to use %s, __func__ instead of function

Re: [PATCH RESEND] Makefile, LLVM: add -no-integrated-as to KBUILD_[AC]FLAGS

2017-04-21 Thread Masahiro Yamada
2017-04-21 4:42 GMT+09:00 Matthias Kaehlcke : > From: Michael Davidson > > Add -no-integrated-as to KBUILD_AFLAGS and KBUILD_CFLAGS > for clang. > > Signed-off-by: Michael Davidson > Signed-off-by: Matthias Kaehlcke Michael sent this to the kbuild ML, so you need not re-send it with your

[PATCH 2/2 v3 resend] dt-bindings: display: imx: entry for AUS mode

2017-04-21 Thread Martin Kaiser
Allow setting the AUS mode for a display from the device tree. Use an optional boolean property. AUS mode can be set only on imx21 and compatible chipsets. Signed-off-by: Martin Kaiser Acked-by: Rob Herring --- re-sending v3, rebased against current linux-next it seems this got lost along the

RE: [PATCH V8 4/5] PCI/ASPM: save power on values during bridge init

2017-04-21 Thread Patel, Mayurkumar
Hi Bjorn/Kaya, > >On 4/17/2017 12:38 PM, Bjorn Helgaas wrote: >>> Like you said, what do we do by default is the question. Should we opt >>> for safe like we are doing, or try to save some power. >> I think safety is paramount. Every user should be able to boot safely >> without any kernel

[PATCH 1/2 v3 resend] video: fbdev: imxfb: support AUS mode

2017-04-21 Thread Martin Kaiser
Some displays require setting AUS mode in the LDCD AUS Mode Control Register to work with the imxfb driver. Like the value of the Panel Configuration Register, the AUS mode setting depends on the display mode. Allow setting AUS mode from the device tree by adding a boolean property. Make this

Re: [PATCH v6 0/6] add support for AXP20X and AXP22X battery power supply driver

2017-04-21 Thread Maxime Ripard
On Tue, Apr 18, 2017 at 09:34:15AM +0200, Quentin Schulz wrote: > This is a series for AXP20X and AXP22X battery power supply without the > support for changing constant charge current from the DT. The patches for > supporting the constant charge current from DT are ready and will be sent > once

Re: Linux 4.4.63

2017-04-21 Thread Greg KH
diff --git a/Makefile b/Makefile index 0309acc34472..ec52973043f6 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 4 -SUBLEVEL = 62 +SUBLEVEL = 63 EXTRAVERSION = NAME = Blurry Fish Butt diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index

Linux 4.9.24

2017-04-21 Thread Greg KH
I'm announcing the release of the 4.9.24 kernel. All users of the 4.9 kernel series must upgrade. The updated 4.9.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.9.y and can be browsed at the normal kernel.org git web browser:

Linux 4.4.63

2017-04-21 Thread Greg KH
I'm announcing the release of the 4.4.63 kernel. All users of the 4.4 kernel series must upgrade. The updated 4.4.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.4.y and can be browsed at the normal kernel.org git web browser:

[tip:x86/asm] x86/ftrace: Fix ebp in ftrace_regs_caller that screws up unwinder

2017-04-21 Thread tip-bot for Steven Rostedt (VMware)
Commit-ID: dc912c303517b01960dcee6875a78b2999f7c098 Gitweb: http://git.kernel.org/tip/dc912c303517b01960dcee6875a78b2999f7c098 Author: Steven Rostedt (VMware) AuthorDate: Thu, 20 Apr 2017 17:22:36 -0400 Committer: Thomas Gleixner CommitDate: Fri, 21 Apr 2017 09:48:16 +0200 x86/ftrace:

Re: [PATCH 1/7] Makefile, LLVM: add -no-integrated-as to KBUILD_[AC]FLAGS

2017-04-21 Thread Masahiro Yamada
Hi Michael, 2017-03-17 9:15 GMT+09:00 Michael Davidson : > Add -no-integrated-as to KBUILD_AFLAGS and KBUILD_CFLAGS > for clang. >From the code-diff, it is apparent that you added -no-integrated-as. Rather, I'd like to see "why" in the git-log. Obviously, clang needs this patch to build the

Re: Linux 4.9.24

2017-04-21 Thread Greg KH
diff --git a/Makefile b/Makefile index 0de75976cad5..50436f502d81 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 9 -SUBLEVEL = 23 +SUBLEVEL = 24 EXTRAVERSION = NAME = Roaring Lionus diff --git a/arch/mips/lantiq/irq.c b/arch/mips/lantiq/irq.c index

Linux 4.10.12

2017-04-21 Thread Greg KH
I'm announcing the release of the 4.10.12 kernel. All users of the 4.10 kernel series must upgrade. The updated 4.10.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.10.y and can be browsed at the normal kernel.org git web

Re: Linux 4.10.12

2017-04-21 Thread Greg KH
diff --git a/Makefile b/Makefile index 412f2a0a3814..9689d3f644ea 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 10 -SUBLEVEL = 11 +SUBLEVEL = 12 EXTRAVERSION = NAME = Fearless Coyote diff --git a/arch/mips/lantiq/irq.c b/arch/mips/lantiq/irq.c index

[PATCH 5/5] Fix errata A-007728 for flextimer

2017-04-21 Thread ying.zhang22455
From: Meng Yi If the FTM counter reaches the FTM_MOD value between the reading of the TOF bit and the writing of 0 to the TOF bit, the process of clearing the TOF bit does not work as expected when FTMx_CONF[NUMTOF] != 0 and the current TOF count is less than FTMx_CONF[NUMTOF]. If the above

[PATCH 4/5] arm64: ls1043a: dts: add rcpm and ftm0 nodes

2017-04-21 Thread ying.zhang22455
From: Wang Dongsheng Add rcpm and ftm0 nodes. The Power Management related features need these nodes. Signed-off-by: Zhang Ying-22455 --- arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git

<    4   5   6   7   8   9   10   11   12   13   >