Re: pidfd design

2019-03-25 Thread Andy Lutomirski
On Mon, Mar 25, 2019 at 5:12 PM Christian Brauner wrote: > > On Mon, Mar 25, 2019 at 05:00:17PM -0700, Andy Lutomirski wrote: > > On Mon, Mar 25, 2019 at 4:45 PM Christian Brauner > > wrote: > > > > > > On Mon, Mar 25, 2019 at 04:42:14PM -0700, Andy Lutomirski wrote: > > > > On Mon, Mar 25, 2019

Re: pidfd design

2019-03-25 Thread Christian Brauner
On Mon, Mar 25, 2019 at 05:00:17PM -0700, Andy Lutomirski wrote: > On Mon, Mar 25, 2019 at 4:45 PM Christian Brauner > wrote: > > > > On Mon, Mar 25, 2019 at 04:42:14PM -0700, Andy Lutomirski wrote: > > > On Mon, Mar 25, 2019 at 1:23 PM Daniel Colascione > > > wrote: > > > > > > > > On Mon, Mar

Re: pidfd design

2019-03-25 Thread Andy Lutomirski
On Mon, Mar 25, 2019 at 4:45 PM Christian Brauner wrote: > > On Mon, Mar 25, 2019 at 04:42:14PM -0700, Andy Lutomirski wrote: > > On Mon, Mar 25, 2019 at 1:23 PM Daniel Colascione wrote: > > > > > > On Mon, Mar 25, 2019 at 1:14 PM Jann Horn wrote: > > > > > > > > On Mon, Mar 25, 2019 at 8:44 PM

Re: pidfd design

2019-03-25 Thread Christian Brauner
On Mon, Mar 25, 2019 at 04:42:14PM -0700, Andy Lutomirski wrote: > On Mon, Mar 25, 2019 at 1:23 PM Daniel Colascione wrote: > > > > On Mon, Mar 25, 2019 at 1:14 PM Jann Horn wrote: > > > > > > On Mon, Mar 25, 2019 at 8:44 PM Andy Lutomirski wrote: > > > > One ioctl on procfs roots to translate

Re: pidfd design

2019-03-25 Thread Andy Lutomirski
On Mon, Mar 25, 2019 at 1:23 PM Daniel Colascione wrote: > > On Mon, Mar 25, 2019 at 1:14 PM Jann Horn wrote: > > > > On Mon, Mar 25, 2019 at 8:44 PM Andy Lutomirski wrote: > > One ioctl on procfs roots to translate pidfds into that procfs, > > subject to both the normal lookup permission check

[PATCH] staging: emxx_udc: remove unneeded parenthesis

2019-03-25 Thread Emiliano Ingrassia
Fix 5 warnings detected by checkpatch.pl about unneeded parenthesis around conditions tests. Signed-off-by: Emiliano Ingrassia --- drivers/staging/emxx_udc/emxx_udc.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/emxx_udc/emxx_udc.c b/drivers/sta

Re: [PATCH v2] hv: utils: enhance code for human read

2019-03-25 Thread Jesús Castro
On Mon, Mar 11, 2019 at 06:29:49PM -0600, Jesús Castro wrote: > The if/else block from hvt_op_open function can be written > as a switch/case block, and the bool issue_reset variable > is avoided. > > No functional change made. > > Suggested-by: Joe Perches > Signed-off-by: Jesús Castro > ---

[PATCH] staging: wilc1000: use cfg80211 ssid list instead of repacking it

2019-03-25 Thread Adham.Abozaeid
From: Adham Abozaeid Avoid repacking ssid values into struct wilc_probe_ssid, and use the cfg80211 provided struct to pass the ssid list to wilc_scan. With this change, struct wilc_probe_ssid, struct wilc_probe_ssid_info and function wilc_wfi_cfg_alloc_fill_ssid will not be needed anymore. Signe

[PATCH] staging: octeon-ethernet: fix incorrect PHY mode

2019-03-25 Thread Aaro Koskinen
When connecting PHY, we set the mode to PHY_INTERFACE_MODE_GMII which is not always correct. Specifically on boards where RGMII_RXID is needed networking now longer works with at803x after commit 6d4cd041f0af ("net: phy: at803x: disable delay only for RGMII mode"). Fix by passing the correct mode.

Re: [PATCH] drivers/staging: fix styling of the comment related to SPDX-License-Identifier in vt6656/*.h

2019-03-25 Thread Greg Kroah-Hartman
On Mon, Mar 25, 2019 at 07:36:53PM +0530, Ojaswin Mujoo wrote: > From: ojaswin > > Fix checkpatch.pl styling error related to SPDX-License-Identifier comment > in vt6656/*.h > > Signed-off-by: Ojaswin Mujoo This also has to match the "From:" line :) And you have trailing whitespace in your c

[PATCH] drivers/staging: fix styling of the comment related to SPDX-License-Identifier in vt6656/*.h

2019-03-25 Thread Ojaswin Mujoo
From: ojaswin Fix checkpatch.pl styling error related to SPDX-License-Identifier comment in vt6656/*.h Signed-off-by: Ojaswin Mujoo --- drivers/staging/vt6656/baseband.h | 2 +- drivers/staging/vt6656/card.h | 2 +- drivers/staging/vt6656/channel.h | 2 +- drivers/staging/vt6656/desc.h

Re: [PATCH] spi: mt7621: Move SPI driver out of staging

2019-03-25 Thread Mark Brown
On Fri, Mar 22, 2019 at 03:02:54PM +0100, Stefan Roese wrote: > On 21.03.19 15:25, Mark Brown wrote: > > > + list_for_each_entry(t, &m->transfers, transfer_list) > > > + if (t->speed_hz < speed) > > > + speed = t->speed_hz; > > This should be in the core if it's needed, it

Re: [PATCH] vc04_services: vchiq_arm: fix a NULL pointer dereference

2019-03-25 Thread Stefan Wahren
Hi Kangjie, Am 24.03.19 um 23:43 schrieb Kangjie Lu: > When kzalloc fails, "platform_state->inited = 1" is a NULL pointer > dereference. The fix returns VCHIQ_ERROR in case it failed to > avoid NULL pointer dereference. > > Signed-off-by: Kangjie Lu please add a proper fixes tag. > --- > .../sta

Re: [PATCH] staging: vc04_services: Fix an error code in vchiq_probe()

2019-03-25 Thread Stefan Wahren
Am 25.03.19 um 09:56 schrieb Dan Carpenter: > We need to set "err" on this error path. > > Fixes: 187ac53e590c ("staging: vchiq_arm: rework probe and init functions") > Signed-off-by: Dan Carpenter Acked-by: Stefan Wahren Thanks ___ devel mailing lis

[PATCH] staging: vc04_services: Fix an error code in vchiq_probe()

2019-03-25 Thread Dan Carpenter
We need to set "err" on this error path. Fixes: 187ac53e590c ("staging: vchiq_arm: rework probe and init functions") Signed-off-by: Dan Carpenter --- .../staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/stag

[PATCH v2] spi: mt7621: Move SPI driver out of staging

2019-03-25 Thread Stefan Roese
This patch moves the MT7621 SPI driver, which is used on some Ralink / MediaTek MT76xx MIPS SoC's, out of the staging directory. No changes to the source code are done in this patch. This driver version was tested successfully on an MT7688 based platform with an SPI NOR on CS0 and an SPI NAND on C