[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

[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 changed, 2 insertions(+), 2

Re: [PATCH] clk: at91: Use kcalloc() in of_at91_clk_pll_get_characteristics()

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

Re: [PATCH] clk: at91: Use kcalloc() in of_at91_clk_pll_get_characteristics()

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

Re: [PATCH V2] clk: hi6220: Add the hi655x's pmic clock

2017-04-21 Thread Stephen Boyd
On 04/19, Daniel Lezcano wrote: > On Wed, Apr 19, 2017 at 09:00:05AM -0700, Stephen Boyd wrote: > > On 04/16, Daniel Lezcano wrote: > > > On Wed, Apr 12, 2017 at 08:02:45AM -0700, Stephen Boyd wrote: > > > > On 04/08, Daniel Lezcano wrote: > > [ ... ] > > > > > > + ret =

Re: [PATCH V2] clk: hi6220: Add the hi655x's pmic clock

2017-04-21 Thread Stephen Boyd
On 04/19, Daniel Lezcano wrote: > On Wed, Apr 19, 2017 at 09:00:05AM -0700, Stephen Boyd wrote: > > On 04/16, Daniel Lezcano wrote: > > > On Wed, Apr 12, 2017 at 08:02:45AM -0700, Stephen Boyd wrote: > > > > On 04/08, Daniel Lezcano wrote: > > [ ... ] > > > > > > + ret =

Re: [PATCH V3 1/2] clk: hi6220: Add the hi655x's pmic clock

2017-04-21 Thread Stephen Boyd
On 04/17, Daniel Lezcano wrote: > The hi655x multi function device is a PMIC providing regulators. > > The PMIC also provides a clock for the WiFi and the Bluetooth, let's implement > this clock in order to add it in the hi655x MFD and allow proper wireless > initialization. > > Signed-off-by:

Re: [PATCH V3 1/2] clk: hi6220: Add the hi655x's pmic clock

2017-04-21 Thread Stephen Boyd
On 04/17, Daniel Lezcano wrote: > The hi655x multi function device is a PMIC providing regulators. > > The PMIC also provides a clock for the WiFi and the Bluetooth, let's implement > this clock in order to add it in the hi655x MFD and allow proper wireless > initialization. > > Signed-off-by:

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

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 through arm-soc? Not sure

Re: [PATCH 1/2] clk: ti: divider: try to fix ti_clk_register_divider

2017-04-21 Thread Stephen Boyd
On 04/20, Tero Kristo wrote: > On 19/04/17 20:44, Arnd Bergmann wrote: > >The newly introduced function is entirely bogus as I found when looking > >at this warning: > > > >drivers/clk/ti/divider.c: In function 'ti_clk_register_divider': > >drivers/clk/ti/divider.c:460:8: error: 'reg' may be used

Re: [PATCH 1/2] clk: ti: divider: try to fix ti_clk_register_divider

2017-04-21 Thread Stephen Boyd
On 04/20, Tero Kristo wrote: > On 19/04/17 20:44, Arnd Bergmann wrote: > >The newly introduced function is entirely bogus as I found when looking > >at this warning: > > > >drivers/clk/ti/divider.c: In function 'ti_clk_register_divider': > >drivers/clk/ti/divider.c:460:8: error: 'reg' may be used

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

2017-04-21 Thread Stephen Boyd
On 04/19, Arnd Bergmann wrote: > When none of the OMAP4-generation SoCs are enabled, we run into a link > error for am43xx/am43xx: > > drivers/clk/ti/dpll.o: In function `of_ti_am3_dpll_x2_setup': > dpll.c:(.init.text+0xd8): undefined reference to `clkhwops_omap4_dpllmx' > > This is easily fixed

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

2017-04-21 Thread Stephen Boyd
On 04/19, Arnd Bergmann wrote: > When none of the OMAP4-generation SoCs are enabled, we run into a link > error for am43xx/am43xx: > > drivers/clk/ti/dpll.o: In function `of_ti_am3_dpll_x2_setup': > dpll.c:(.init.text+0xd8): undefined reference to `clkhwops_omap4_dpllmx' > > This is easily fixed

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

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 am43xx/am43xx: > >>> >

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

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

[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 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 insertions(+), 9 deletions(-)

[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 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] serial: pch_uart: 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/pch_uart.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/tty/serial/pch_uart.c b/drivers/tty/serial/pch_uart.c index 42caccb..d3796dc

[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 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] serial: pch_uart: 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/pch_uart.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/tty/serial/pch_uart.c b/drivers/tty/serial/pch_uart.c index 42caccb..d3796dc 100644 ---

[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 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 a/arch/arm/boot/dts/imx7-colibri.dtsi

[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] 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] 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 c355ac9..f398db8 100644 ---

[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 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 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 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 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 Reviewed-by:

[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] 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 +++ b/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 b/drivers/net/ethernet/atheros/atlx/atl1.c index

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

[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 --- a/fs/ocfs2/cluster/tcp.c +++

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

2017-04-21 Thread Djalal Harouni
On Sat, Apr 22, 2017 at 2:12 AM, Djalal Harouni wrote: > On Sat, Apr 22, 2017 at 1:51 AM, Andy Lutomirski wrote: > [...] I personally like my implicit_rights idea, and it might be interesting to prototype it. >>> >>> I don't like blocking a needed

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

2017-04-21 Thread Djalal Harouni
On Sat, Apr 22, 2017 at 2:12 AM, Djalal Harouni wrote: > On Sat, Apr 22, 2017 at 1:51 AM, Andy Lutomirski wrote: > [...] I personally like my implicit_rights idea, and it might be interesting to prototype it. >>> >>> I don't like blocking a needed feature behind a large super-feature

[PATCH 2/3] dmaengine: mv_xor: 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/dma/mv_xor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dma/mv_xor.c b/drivers/dma/mv_xor.c index ea53b87..25bc5b1 100644 ---

[PATCH 3/3] dma-debug: 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 --- lib/dma-debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dma-debug.c b/lib/dma-debug.c index b157b46..cd5a5a4 100644 --- a/lib/dma-debug.c +++

[PATCH 3/3] dma-debug: 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 --- lib/dma-debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dma-debug.c b/lib/dma-debug.c index b157b46..cd5a5a4 100644 --- a/lib/dma-debug.c +++ b/lib/dma-debug.c @@ -1502,7

[PATCH 2/3] dmaengine: mv_xor: 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/dma/mv_xor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dma/mv_xor.c b/drivers/dma/mv_xor.c index ea53b87..25bc5b1 100644 --- a/drivers/dma/mv_xor.c +++

[PATCH 1/3] dmaengine: dmatest: 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/dma/dmatest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dma/dmatest.c b/drivers/dma/dmatest.c index 54d581d..d042b2b 100644 ---

[PATCH 1/3] dmaengine: dmatest: 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/dma/dmatest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dma/dmatest.c b/drivers/dma/dmatest.c index 54d581d..d042b2b 100644 --- a/drivers/dma/dmatest.c +++

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

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

Re: [resend PATCH v2 00/33] dax: introduce dax_operations

2017-04-21 Thread Dan Williams
[ adding akpm, sfr, and jens ] I applied this series and pushed it out for the nvdimm.git branch that gets auto pulled into -next. The set is still awaiting acks from device-mapper, ext4, xfs, and vfs (for the copy_from_iter_ops, patch 29/33). If those come next week perhaps this can be merged

Re: [resend PATCH v2 00/33] dax: introduce dax_operations

2017-04-21 Thread Dan Williams
[ adding akpm, sfr, and jens ] I applied this series and pushed it out for the nvdimm.git branch that gets auto pulled into -next. The set is still awaiting acks from device-mapper, ext4, xfs, and vfs (for the copy_from_iter_ops, patch 29/33). If those come next week perhaps this can be merged

Re: [PATCH v2 0/5] Re-order scsi_remove_host and sas_remove_host in SAS HBA LLDDs

2017-04-21 Thread wangyijing
>> >> Please repost the series against the current tree. Also a cover >> letter with a bit more explanation would be good. >> > > Great, I think that my colleagues can send an updated version next week. I will send a new version with a cover letter these days, before that, we need to do a

Re: [PATCH v2 0/5] Re-order scsi_remove_host and sas_remove_host in SAS HBA LLDDs

2017-04-21 Thread wangyijing
>> >> Please repost the series against the current tree. Also a cover >> letter with a bit more explanation would be good. >> > > Great, I think that my colleagues can send an updated version next week. I will send a new version with a cover letter these days, before that, we need to do a

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

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 deletions(-) > > diff

Re: [PATCH v3] kvm: arm/arm64: Fix locking for kvm_free_stage2_pgd

2017-04-21 Thread Alexander Graf
On 04.04.17 12:35, Suzuki K Poulose wrote: Hi Christoffer, On 04/04/17 11:13, Christoffer Dall wrote: Hi Suzuki, On Mon, Apr 03, 2017 at 03:12:43PM +0100, Suzuki K Poulose wrote: In kvm_free_stage2_pgd() we don't hold the kvm->mmu_lock while calling unmap_stage2_range() on the entire

Re: [PATCH v3] kvm: arm/arm64: Fix locking for kvm_free_stage2_pgd

2017-04-21 Thread Alexander Graf
On 04.04.17 12:35, Suzuki K Poulose wrote: Hi Christoffer, On 04/04/17 11:13, Christoffer Dall wrote: Hi Suzuki, On Mon, Apr 03, 2017 at 03:12:43PM +0100, Suzuki K Poulose wrote: In kvm_free_stage2_pgd() we don't hold the kvm->mmu_lock while calling unmap_stage2_range() on the entire

Re: [PATCH 2/3] usb: add DT bindings for farady fotg2 host controller

2017-04-21 Thread Linus Walleij
On Thu, Mar 30, 2017 at 8:31 PM, Hans Ulli Kroll wrote: >> On Tue, Feb 21, 2017 at 3:43 PM, Rob Herring wrote: >> > On Fri, Feb 17, 2017 at 4:07 AM, Hans Ulli Kroll >> > wrote: >> >> Hi Rob, >> >> >> >> On Wed, 15 Feb 2017,

Re: [PATCH 2/3] usb: add DT bindings for farady fotg2 host controller

2017-04-21 Thread Linus Walleij
On Thu, Mar 30, 2017 at 8:31 PM, Hans Ulli Kroll wrote: >> On Tue, Feb 21, 2017 at 3:43 PM, Rob Herring wrote: >> > On Fri, Feb 17, 2017 at 4:07 AM, Hans Ulli Kroll >> > wrote: >> >> Hi Rob, >> >> >> >> On Wed, 15 Feb 2017, Rob Herring wrote: >> >> >> >>> On Wed, Feb 08, 2017 at 09:00:09PM

[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

[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 a/drivers/net/ethernet/3com/3c515.c

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

2017-04-21 Thread Casey Schaufler
On 4/21/2017 5:00 PM, Andy Lutomirski wrote: > On Fri, Apr 21, 2017 at 4:52 PM, Casey Schaufler > wrote: >> 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,

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

2017-04-21 Thread Casey Schaufler
On 4/21/2017 5:00 PM, Andy Lutomirski wrote: > On Fri, Apr 21, 2017 at 4:52 PM, Casey Schaufler > wrote: >> 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

[PATCH 0/2] fixes to clean up goip generates files and gitignore

2017-04-21 Thread Shuah Khan
This two patch series fixes gpio clean target to clean all generated files and add them to gitignore. Shuah Khan (2): selftests: add gpio generated files to .gitignore selftests: gpio: fix clean target to remove all generated files and dirs tools/testing/selftests/.gitignore| 4

[PATCH 2/2] selftests: gpio: fix clean target to remove all generated files and dirs

2017-04-21 Thread Shuah Khan
gpio test creates executables, object files, and include directory under selftests directory. Enhance clean target to remove all files it generates. Signed-off-by: Shuah Khan --- tools/testing/selftests/gpio/Makefile | 8 +++- 1 file changed, 7 insertions(+), 1

[PATCH 0/2] fixes to clean up goip generates files and gitignore

2017-04-21 Thread Shuah Khan
This two patch series fixes gpio clean target to clean all generated files and add them to gitignore. Shuah Khan (2): selftests: add gpio generated files to .gitignore selftests: gpio: fix clean target to remove all generated files and dirs tools/testing/selftests/.gitignore| 4

[PATCH 2/2] selftests: gpio: fix clean target to remove all generated files and dirs

2017-04-21 Thread Shuah Khan
gpio test creates executables, object files, and include directory under selftests directory. Enhance clean target to remove all files it generates. Signed-off-by: Shuah Khan --- tools/testing/selftests/gpio/Makefile | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git

[PATCH 1/2] selftests: add gpio generated files to .gitignore

2017-04-21 Thread Shuah Khan
gpio test generates files in selftests directory. Add them to .gitignore. Signed-off-by: Shuah Khan --- tools/testing/selftests/.gitignore | 4 1 file changed, 4 insertions(+) diff --git a/tools/testing/selftests/.gitignore b/tools/testing/selftests/.gitignore

[PATCH 1/2] selftests: add gpio generated files to .gitignore

2017-04-21 Thread Shuah Khan
gpio test generates files in selftests directory. Add them to .gitignore. Signed-off-by: Shuah Khan --- tools/testing/selftests/.gitignore | 4 1 file changed, 4 insertions(+) diff --git a/tools/testing/selftests/.gitignore b/tools/testing/selftests/.gitignore index f0600d2..9175035

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

2017-04-21 Thread Djalal Harouni
On Sat, Apr 22, 2017 at 1:51 AM, Andy Lutomirski wrote: [...] >>> I personally like my implicit_rights idea, and it might be interesting >>> to prototype it. >> >> I don't like blocking a needed feature behind a large super-feature >> that doesn't exist yet. We'd be able to

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

2017-04-21 Thread Djalal Harouni
On Sat, Apr 22, 2017 at 1:51 AM, Andy Lutomirski wrote: [...] >>> I personally like my implicit_rights idea, and it might be interesting >>> to prototype it. >> >> I don't like blocking a needed feature behind a large super-feature >> that doesn't exist yet. We'd be able to refactor this code

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

2017-04-21 Thread Huang, Ying
Johannes Weiner writes: > On Fri, Apr 21, 2017 at 04:11:36PM +1000, Balbir Singh wrote: >> > In the future of THP swap optimization, some information of the >> > swapped out THP (such as compound map count) will be recorded in the >> > swap_cluster_info data structure. >> >

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

2017-04-21 Thread Huang, Ying
Johannes Weiner writes: > On Fri, Apr 21, 2017 at 04:11:36PM +1000, Balbir Singh wrote: >> > In the future of THP swap optimization, some information of the >> > swapped out THP (such as compound map count) will be recorded in the >> > swap_cluster_info data structure. >> > >> > The mem cgroup

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

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 execute the file

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:52 PM, Casey Schaufler wrote: > 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,

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:52 PM, Casey Schaufler wrote: > 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,

[PATCH] libnvdimm, region: sysfs trigger for nvdimm_flush()

2017-04-21 Thread Dan Williams
The nvdimm_flush() mechanism helps to reduce the impact of an ADR (asynchronous-dimm-refresh) failure. The ADR mechanism handles flushing platform WPQ (write-pending-queue) buffers when power is removed. The nvdimm_flush() mechanism performs that same function on-demand. When a pmem namespace is

[PATCH] libnvdimm, region: sysfs trigger for nvdimm_flush()

2017-04-21 Thread Dan Williams
The nvdimm_flush() mechanism helps to reduce the impact of an ADR (asynchronous-dimm-refresh) failure. The ADR mechanism handles flushing platform WPQ (write-pending-queue) buffers when power is removed. The nvdimm_flush() mechanism performs that same function on-demand. When a pmem namespace 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 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, 2017 at 4:15 PM, Andy Lutomirski wrote: > On Wed, Apr 19,

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] 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 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 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 wrote: On Wed, Apr 19, 2017 at 4:43 PM, Kees Cook wrote: > On Wed, Apr

Re: linux-next: build failure after merge of the arm tree

2017-04-21 Thread Russell King - ARM Linux
On Fri, Apr 21, 2017 at 06:12:30PM +1000, Stephen Rothwell wrote: > Hi Mason, > > On Fri, 21 Apr 2017 09:58:58 +0200 Mason wrote: > > > > Anyway, the fix is trivial. > > > > The "pchans_used" field is an unsigned long array. > > for_each_clear_bit_from() expects an unsigned

Re: linux-next: build failure after merge of the arm tree

2017-04-21 Thread Russell King - ARM Linux
On Fri, Apr 21, 2017 at 06:12:30PM +1000, Stephen Rothwell wrote: > Hi Mason, > > On Fri, 21 Apr 2017 09:58:58 +0200 Mason wrote: > > > > Anyway, the fix is trivial. > > > > The "pchans_used" field is an unsigned long array. > > for_each_clear_bit_from() expects an unsigned long pointer, > >

[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

[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 cpumask_available()"

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

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 wrote: On Wed, Apr 19, 2017 at 4:15 PM, Andy Lutomirski wrote: > On

<    1   2   3   4   5   6   7   8   9   10   >