Re: [PATCH 18/18] i2c-cht-wc: Add device-properties for fusb302 integration

2017-08-06 Thread Guenter Roeck
On 08/06/2017 05:35 AM, Hans de Goede wrote: Add device-properties to make the bq24292i controller connected to the bus get its input-current-limit from the fusb302 Type-C port controller which is used on boards with the cht-wc PMIC. Signed-off-by: Hans de Goede --- drivers/i2c/busses/Kconfig

Re: [PATCH 08/18] staging: typec: fusb302: Add support for USB2 charger detection through extcon

2017-08-06 Thread Hans de Goede
Hi, On 06-08-17 16:22, Guenter Roeck wrote: On 08/06/2017 05:35 AM, Hans de Goede wrote: The fusb302 port-controller relies on an external device doing USB2 charger-type detection. The Intel Whiskey Cove PMIC with which the fusb302 is combined on some X86/ACPI platforms already has a charger-t

Re: [PATCH 04/18] staging: typec: tcpm: Add helpers for exporting current-limit through a psy

2017-08-06 Thread Guenter Roeck
On 08/06/2017 07:21 AM, Hans de Goede wrote: Hi, On 06-08-17 16:13, Guenter Roeck wrote: On 08/06/2017 05:35 AM, Hans de Goede wrote: Not all type-c port-controller can control the current-limit directly, in cases where the current limit can not be controlled directly it needs to be exported s

Re: [PATCH 01/18] staging: typec: tcpm: Add get_usb2_current_limit tcpc_dev callback

2017-08-06 Thread Guenter Roeck
On 08/06/2017 07:29 AM, Hans de Goede wrote: Hi, On 06-08-17 16:18, Guenter Roeck wrote: On 08/06/2017 05:35 AM, Hans de Goede wrote: A Rp signalling the default current limit indicates that we're possibly connected to an USB2 power-source. In some cases the type-c port-controller may provide

Re: [PATCH 10/18] staging: typec: fusb302: Add support for fcs,vbus-regulator-name device-property

2017-08-06 Thread Hans de Goede
Hi, On 06-08-17 16:30, Guenter Roeck wrote: On 08/06/2017 05:35 AM, Hans de Goede wrote: On devicetree platforms the fusb302 dt-node will have a vbus regulator property with a phandle to the regulator. On ACPI platforms, there are no phandles and we need to get the vbus by a system wide unique

Re: [PATCH 11/18] power: supply: Fix power_supply_am_i_supplied to return -ENODEV when apropriate

2017-08-06 Thread Hans de Goede
Hi, On 06-08-17 16:31, Guenter Roeck wrote: On 08/06/2017 05:35 AM, Hans de Goede wrote: Commit 2848e039c562 ("power: supply: Make power_supply_am_i_supplied return -ENODEV if there are no suppliers") was supposed to make power_supply_am_i_supplied() return -ENODEV when there are no supplies wh

Re: [PATCH 08/18] staging: typec: fusb302: Add support for USB2 charger detection through extcon

2017-08-06 Thread Guenter Roeck
On 08/06/2017 07:36 AM, Hans de Goede wrote: Hi, On 06-08-17 16:22, Guenter Roeck wrote: On 08/06/2017 05:35 AM, Hans de Goede wrote: The fusb302 port-controller relies on an external device doing USB2 charger-type detection. The Intel Whiskey Cove PMIC with which the fusb302 is combined on s

Re: [PATCH 0/5] block-cciss: Fine-tuning for two function implementations

2017-08-06 Thread SF Markus Elfring
> Date: Thu, 18 Aug 2016 11:40:04 +0200 > > Some update suggestions were taken into account > from static source code analysis. > > Markus Elfring (5): > Use memdup_user() > Less function calls after error detection > Delete unnecessary initialisations > Move an assignment for the variabl

Re: [PATCH v2] sched: debug: use task_pid_nr_ns in /proc/$pid/sched

2017-08-06 Thread Eric W. Biederman
Aleksa Sarai writes: > It appears as though the addition of the PID namespace did not update > the output code for /proc/*/sched, which resulted in it providing PIDs > that were not self-consistent with the /proc mount. This additionally > made it trivial to detect whether a process was inside &i

Re: [PATCH 18/18] i2c-cht-wc: Add device-properties for fusb302 integration

2017-08-06 Thread Hans de Goede
Hi, On 06-08-17 16:35, Guenter Roeck wrote: On 08/06/2017 05:35 AM, Hans de Goede wrote: Add device-properties to make the bq24292i controller connected to the bus get its input-current-limit from the fusb302 Type-C port controller which is used on boards with the cht-wc PMIC. Signed-off-by: H

Re: [PATCH v2] module: use relative references for __ksymtab entries

2017-08-06 Thread kbuild test robot
-for-__ksymtab-entries/20170806-205309 config: x86_64-allyesdebian (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree make ARCH=x86_64 All error/warnings (new ones prefixed by >>): In file include

[PATCH] pinctrl: generic: update references to Documentation/pinctrl.txt

2017-08-06 Thread Ludovic Desroches
Update deprecated references to Documentation/pinctrl.txt since it has been moved to Documentation/driver-api/pinctl.rst. Signed-off-by: Ludovic Desroches Fixes: 5a9b73832e9e ("pinctrl.txt: move it to the driver-api book") --- Hi, Last time I wanted to have a look at the pinctrl documentation,

Re: [PATCH 10/18] staging: typec: fusb302: Add support for fcs,vbus-regulator-name device-property

2017-08-06 Thread Guenter Roeck
On 08/06/2017 07:52 AM, Hans de Goede wrote: Hi, On 06-08-17 16:30, Guenter Roeck wrote: On 08/06/2017 05:35 AM, Hans de Goede wrote: On devicetree platforms the fusb302 dt-node will have a vbus regulator property with a phandle to the regulator. On ACPI platforms, there are no phandles and w

[PATCH] block-AoE: Delete an error message for a failed memory allocation in aoechr_error()

2017-08-06 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 6 Aug 2017 17:27:18 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf Signe

Re: [PATCH] RFC: platform/x86: wmi: Fix check for method instance number

2017-08-06 Thread Pali Rohár
On Wednesday 05 July 2017 22:24:20 Pali Rohár wrote: > On Wednesday 05 July 2017 21:30:35 David Airlie wrote: > > - Original Message - > > > > > From: "Pali Rohár" > > > To: "Chun-Yi Lee" , "Corentin Chary" > > > , acpi4asus-u...@lists.sourceforge.net, > > > "Dave Airlie" , "Oleksij Rempe

Re: [PATCH 1/2] arm64: dts: rockchip: Add support for rk3399 sapphire SOM

2017-08-06 Thread Heiko Stuebner
Am Donnerstag, 3. August 2017, 18:32:36 CEST schrieb Jacob Chen: > Add support for the rk3399 sapphire SOM board. > This board works in a combination with the excavator main board. > > You can get more info from below link: > http://opensource.rock-chips.com/wiki_Excavator_sapphire_board > > Sign

Re: [PATCH] RFC: platform/x86: wmi: Fix check for method instance number

2017-08-06 Thread Pali Rohár
On Wednesday 14 June 2017 17:46:54 Pali Rohár wrote: > On Tuesday 13 June 2017 11:42:28 Darren Hart wrote: > > On Tue, Jun 13, 2017 at 08:04:57PM +0200, Pali Rohár wrote: > > > On Tuesday 13 June 2017 18:49:51 Darren Hart wrote: > > > > I'd suggest reaching out to the maintainers and contributors t

Re: [PATCH v1] platform/x86: wmi: Switch to use new generic UUID API

2017-08-06 Thread Andy Lutomirski
On Fri, Aug 4, 2017 at 8:27 AM, Andy Shevchenko wrote: > On Fri, Aug 4, 2017 at 6:01 PM, Andy Lutomirski wrote: >>> On Aug 2, 2017, at 9:28 AM, Andy Shevchenko >>> wrote: >>> >>> There are new types and helpers that are supposed to be used in new code. >>> >>> As a preparation to get rid of leg

Re: [PATCH 2/2] arm64: dts: rockchip: Add support for rk3399 excavator main board

2017-08-06 Thread Heiko Stuebner
Am Donnerstag, 3. August 2017, 18:32:37 CEST schrieb Jacob Chen: > Add support for the rk3399 excavator main board. > This board works in a combination with the sapphire SOM. > > This board have been sold as the rk3399 evaluation board for commercial > customers. > You can get more info from belo

Re: [PATCH 10/18] staging: typec: fusb302: Add support for fcs,vbus-regulator-name device-property

2017-08-06 Thread Hans de Goede
Hi, On 06-08-17 16:30, Guenter Roeck wrote: On 08/06/2017 05:35 AM, Hans de Goede wrote: On devicetree platforms the fusb302 dt-node will have a vbus regulator property with a phandle to the regulator. On ACPI platforms, there are no phandles and we need to get the vbus by a system wide uni

Re: [PATCH 2/2] arm64: dts: rockchip: Add support for rk3399 excavator main board

2017-08-06 Thread Heiko Stuebner
Am Freitag, 4. August 2017, 05:28:40 CEST schrieb kbuild test robot: > Hi Jacob, > > [auto build test ERROR on rockchip/for-next] > [also build test ERROR on v4.13-rc3 next-20170803] > [if your patch is applied to the wrong git tree, please drop us a note to > help improve the system] > > url:

Re: [PATCH] RFC: platform/x86: wmi: Fix check for method instance number

2017-08-06 Thread Andy Shevchenko
On Sun, Aug 6, 2017 at 6:35 PM, Pali Rohár wrote: > On Wednesday 05 July 2017 22:24:20 Pali Rohár wrote: >> On Wednesday 05 July 2017 21:30:35 David Airlie wrote: >> > > On Saturday 17 June 2017 18:47:54 Pali Rohár wrote: >> > > > > So problematic drivers which use instance=1 without any >> > > >

[PATCH v2] z3fold: use per-cpu unbuddied lists

2017-08-06 Thread Vitaly Wool
It's been noted that z3fold doesn't scale well when it's run in a large number of threads on many cores, which can be easily reproduced with fio 'randrw' test with --numjobs=32. E.g. the result for 1 cluster (4 cores) is: Run status group 0 (all jobs): READ: io=244785MB, aggrb=496883KB/s, minb=

Re: [PATCH] RFC: platform/x86: wmi: Fix check for method instance number

2017-08-06 Thread Hans de Goede
Hi, On 06-08-17 17:42, Pali Rohár wrote: On Wednesday 14 June 2017 17:46:54 Pali Rohár wrote: On Tuesday 13 June 2017 11:42:28 Darren Hart wrote: On Tue, Jun 13, 2017 at 08:04:57PM +0200, Pali Rohár wrote: On Tuesday 13 June 2017 18:49:51 Darren Hart wrote: I'd suggest reaching out to the ma

Re: [PATCH 18/18] i2c-cht-wc: Add device-properties for fusb302 integration

2017-08-06 Thread Andy Shevchenko
On Sun, Aug 6, 2017 at 6:05 PM, Hans de Goede wrote: > On 06-08-17 16:35, Guenter Roeck wrote: >> On 08/06/2017 05:35 AM, Hans de Goede wrote: > FWIW all DSTDs I've seen are all copy and paste and all declare a INT33FE > ACPI > device with identical i2c client addresses which strongly suggests th

Re: RCU stall when using function_graph

2017-08-06 Thread Paul E. McKenney
On Sat, Aug 05, 2017 at 02:24:21PM +0900, 김동현 wrote: > Dear All > > As for me, after configuring function_graph as below, crash disappears. > "echo 0 > d/tracing/tracing_on" > "sleep 1" > > "echo function_graph > d/tracing/current_tracer" > "sleep 1" > > "echo smp_call_function_single > d/tracin

[PATCH v06 15/36] uapi linux/socket.h: include sys/socket.h in user space

2017-08-06 Thread Mikko Rapeli
This libc header has sockaddr definition in user space. Fixes user space compilation errors like these from kernel headers including only linux/socket.h: error: field ‘ifru_addr’ has incomplete type struct sockaddr ifru_addr; error: field ‘_sockaddr’ has incomplete type struct sockaddr _sockaddr

[PATCH v06 21/36] uapi linux/kexec.h: use __kernel_size_t instead of size_t

2017-08-06 Thread Mikko Rapeli
Fixes userspace compilation error: error: unknown type name ‘size_t’ size_t bufsz; Signed-off-by: Mikko Rapeli Cc: ke...@lists.infradead.org Cc: Eric Biederman --- include/uapi/linux/kexec.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/uapi/linux/kexec.h b/

[PATCH v06 34/36] uapi: break dependency loop between and

2017-08-06 Thread Mikko Rapeli
Name structs in linux/hdlc/ioctl.h and forward declare and use them in linux/if.h. Then include linux/if.h in linux/hdlc/ioctl.h to fix user space compilation problem: hdlc/ioctl.h:73:14: error: ‘IFNAMSIZ’ undeclared here (not in a function) char master[IFNAMSIZ]; /* Name of master FRAD device *

[PATCH v06 19/36] uapi linux/omapfb.h: use __kernel_size_t instead of size_t

2017-08-06 Thread Mikko Rapeli
Fixes userspace compilation error: error: unknown type name ‘size_t’ Signed-off-by: Mikko Rapeli Cc: linux-o...@vger.kernel.org Cc: Tomi Valkeinen Cc: Aaro Koskinen --- include/uapi/linux/omapfb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/omapfb.h

[PATCH v06 23/36] uapi linux/coda.h: use __kernel_pid_t and add u_short etc definitions for userspace

2017-08-06 Thread Mikko Rapeli
Fixes userspace compilation errors about unknown pid_t, u_short etc types. Signed-off-by: Mikko Rapeli Cc: Jan Harkes Cc: codal...@coda.cs.cmu.edu --- include/uapi/linux/coda.h | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/include/uapi/linux/coda.h b/include/ua

[PATCH v06 08/36] uapi asm-generic/shmbuf.h: include fixes

2017-08-06 Thread Mikko Rapeli
Include linux/types.h and asm/msgbuf.h and use __kernel_size_t instead of size_t. Fixes userspace compilation errors like: error: field ‘shm_perm’ has incomplete type struct ipc64_perm shm_perm; /* operation perms */ error: unknown type name ‘size_t’ error: unknown type name ‘__kernel_time_t’ Si

[PATCH v06 04/36] uapi scsi/scsi_netlink_fc.h: use __u16, __u32 and __u64 from linux/types.h

2017-08-06 Thread Mikko Rapeli
Fixes userspace compilation errors like: scsi/scsi_netlink_fc.h:60:2: error: expected specifier-qualifier-list before ‘uint64_t’ Signed-off-by: Mikko Rapeli Cc: linux-s...@vger.kernel.org --- include/uapi/scsi/scsi_netlink_fc.h | 16 1 file changed, 8 insertions(+), 8 deletion

[PATCH v06 29/36] uapi linux/elfcore.h: remove non-compiling userspace parts

2017-08-06 Thread Mikko Rapeli
Remove typedef elf_greg_t greg_t and friends from userspace. Remove struct elf_prstatus completely from userspace. elfcore.h as such does not compile in userspace. All userspace users of like gcc/gdb and linux-tools contain their own modified versions of the file. With these changes the file comp

[PATCH v06 03/36] uapi scsi/scsi_netlink.h: use __u8, __u16 and __u64 from linux/types.h

2017-08-06 Thread Mikko Rapeli
Fixes userspace compilation errors like: scsi/scsi_netlink.h:43:2: error: unknown type name ‘uint8_t’ Signed-off-by: Mikko Rapeli Cc: linux-s...@vger.kernel.org --- include/uapi/scsi/scsi_netlink.h | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/incl

[PATCH v06 12/36] x86 uapi asm/signal.h: use __kernel_size_t instead of size_t

2017-08-06 Thread Mikko Rapeli
Fixes userspace compilation error: error: unknown type name ‘size_t’ Signed-off-by: Mikko Rapeli Cc: Al Viro Cc: Arnd Bergmann Cc: H. Peter Anvin --- arch/x86/include/uapi/asm/signal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/uapi/asm/signal.h b/a

[PATCH v06 22/36] uapi linux/reiserfs_xattr.h: use __kernel_size_t instead of size_t

2017-08-06 Thread Mikko Rapeli
Fixes userspace compilation error: error: unknown type name ‘size_t’ size_t length; Signed-off-by: Mikko Rapeli Cc: reiserfs-de...@vger.kernel.org --- include/uapi/linux/reiserfs_xattr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/reiserfs_xattr.h b

[PATCH v06 00/36] Userspace compile test and fixes for exported uapi header files

2017-08-06 Thread Mikko Rapeli
v6: Addressed v5 review comments. Dropped patches already applied from other developers for same problems: thanks Christoph Hellwig, Nicolas Dichtel, Arnd Bergmann, Dmitry V. Levin, Leon Romanovsky, David Lebrun, Jason Gunthorpe, Jonas Gorski, Stephen Hemminger, Davide Caratti and others! Moved gli

[PATCH v06 31/36] uapi linux/patchkey.h: change #error to #warning if file included directly

2017-08-06 Thread Mikko Rapeli
Would be nice to be able to compile all userspace header files also alone. Signed-off-by: Mikko Rapeli Cc: alsa-de...@alsa-project.org Cc: Andrew Veliath Cc: Riccardo Facchetti --- include/uapi/linux/patchkey.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/li

[PATCH v06 16/36] uapi linux/dlm_netlink.h: include linux/dlmconstants.h

2017-08-06 Thread Mikko Rapeli
Fixes userspace compilation error: error: ‘DLM_RESNAME_MAXLEN’ undeclared here (not in a function) char resource_name[DLM_RESNAME_MAXLEN]; Signed-off-by: Mikko Rapeli Cc: Christine Caulfield Cc: David Teigland Cc: cluster-de...@redhat.com --- include/uapi/linux/dlm_netlink.h | 1 + 1 file c

[PATCH] isdn: kcapi: make capi_version const

2017-08-06 Thread Bhumika Goyal
Declare this structure as const as it is only used during a copy operation. Signed-off-by: Bhumika Goyal --- drivers/isdn/capi/kcapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/isdn/capi/kcapi.c b/drivers/isdn/capi/kcapi.c index 9ca691d..46c189a 100644 --- a/dri

[PATCH v06 32/36] uapi drm/armada_drm.h: use __u32 and __u64 instead of uint32_t and uint64_t

2017-08-06 Thread Mikko Rapeli
These are defined in linux/types.h or drm/drm.h. Fixes user space compilation errors like: drm/armada_drm.h:26:2: error: unknown type name ‘uint32_t’ uint32_t handle; ^~~~ Signed-off-by: Mikko Rapeli Cc: Emil Velikov Cc: Gabriel Laskar Cc: Russell King Cc: Rob Clark --- include/uapi

[PATCH v06 14/36] arm uapi asm/signal.h: include for size_t in userspace

2017-08-06 Thread Mikko Rapeli
Arnd Bergmann doubts that __kernel_size_t could be used here so trying to fall back to gcc's . Fixes uapi header compilation error from userspace on ARCH=arm: asm/signal.h:112:2: error: unknown type name ‘size_t’ size_t ss_size; Signed-off-by: Mikko Rapeli Cc: Arnd Bergmann --- arch/arm/in

[PATCH v06 20/36] uapi linux/scc.h: include linux/sockios.h

2017-08-06 Thread Mikko Rapeli
Fixes userspace compilation error: error: ‘SIOCDEVPRIVATE’ undeclared here (not in a function) SIOCSCCRESERVED = SIOCDEVPRIVATE Signed-off-by: Mikko Rapeli Cc: net...@vger.kernel.org Cc: linux-h...@vger.kernel.org Cc: Joerg Reuter --- include/uapi/linux/scc.h | 1 + 1 file changed, 1 inserti

[PATCH v06 01/36] Add scripts/headers_compile_test.sh: compile test for exported uapi headers

2017-08-06 Thread Mikko Rapeli
Users of kernel uapi header files would be happier if they did not contain kernel specific parts and would contain #include statements for all other header files that they depend on, and in general would compile also in user space. If Linux kernal uapi headers compile in user space, then they can a

[PATCH v06 35/36] uapi linux/tls.h: don't include in user space

2017-08-06 Thread Mikko Rapeli
It is not needed and not part of uapi headers, but causes user space compilation error: fatal error: net/tcp.h: No such file or directory #include ^ Signed-off-by: Mikko Rapeli Cc: Dave Watson Cc: Ilya Lesokhin Cc: Aviad Yehezkel --- include/uapi/linux/tls.h | 2 ++ 1

[PATCH v06 05/36] uapi linux/sysctl.h: use __kernel_size_t instead of size_t

2017-08-06 Thread Mikko Rapeli
Fixes userspace compilation error: error: unknown type name ‘size_t’ Signed-off-by: Mikko Rapeli Cc: Arnd Bergmann Cc: David S. Miller --- include/uapi/linux/sysctl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/uapi/linux/sysctl.h b/include/uapi/linux/sysct

[PATCH v06 33/36] uapi linux/fsmap.h: use __kernel_size_t instead of size_t

2017-08-06 Thread Mikko Rapeli
Fixes user space compilation error: linux/fsmap.h:71:19: error: unknown type name ‘size_t’ static __inline__ size_t ^~ Signed-off-by: Mikko Rapeli Cc: Darrick J. Wong --- include/uapi/linux/fsmap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/incl

[PATCH] x86/platform/intel-mid: make bt_sfi_data const

2017-08-06 Thread Bhumika Goyal
Make this structure const as it is only used during copy operation. Signed-off-by: Bhumika Goyal --- arch/x86/platform/intel-mid/device_libs/platform_bt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/platform/intel-mid/device_libs/platform_bt.c b/arch/x86/platfor

[PATCH v06 11/36] uapi asm-generic/ucontext.h: include asm/signal.h and asm/sigcontext.h

2017-08-06 Thread Mikko Rapeli
Fixes userspace compiler errors: error: unknown type name ‘stack_t’ error: field ‘uc_mcontext’ has incomplete type struct sigcontext uc_mcontext; error: unknown type name ‘sigset_t’ Signed-off-by: Mikko Rapeli Cc: H. Peter Anvin Cc: Arnd Bergmann Cc: Al Viro --- include/uapi/asm-generic/ucon

[PATCH v06 24/36] uapi linux/coda_psdev.h: move upc_req definition from uapi to kernel side headers

2017-08-06 Thread Mikko Rapeli
Only users of upc_req in kernel side fs/coda/psdev.c and fs/coda/upcall.c already include linux/coda_psdev.h. Suggested by Jan Harkes on lkml message <2015053913.ga23...@cs.cmu.edu>. Fixes these include/uapi/linux/coda_psdev.h compilation errors in userspace: ./linux/coda_psdev.h:12:19: err

[PATCH v06 30/36] uapi rdma/rdma_user_rxe.h: include in.h and in6.h

2017-08-06 Thread Mikko Rapeli
Fixes these userspace compilation errors when rdma_user_rxe.h is compiled alone: rdma/rdma_user_rxe.h:59:20: error: field ‘_sockaddr’ has incomplete type struct sockaddr _sockaddr; ^ rdma/rdma_user_rxe.h:60:22: error: field ‘_sockaddr_in’ has incomplete type stru

[PATCH v06 10/36] uapi asm-generic/signal.h: use __kernel_size_t instead of size_t

2017-08-06 Thread Mikko Rapeli
Fixes userspace compiler error: error: unknown type name ‘size_t’ Signed-off-by: Mikko Rapeli Acked-by: Arnd Bergmann Cc: Al Viro Cc: H. Peter Anvin --- include/uapi/asm-generic/signal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/asm-generic/signal.h b/

[PATCH v06 07/36] uapi asm-generic/msgbuf.h: include asm/ipcbuf.h

2017-08-06 Thread Mikko Rapeli
Fixes userspace compilation errors like: error: field ‘msg_perm’ has incomplete type struct ipc64_perm msg_perm Signed-off-by: Mikko Rapeli Acked-by: Arnd Bergmann Cc: H.J. Lu Cc: H. Peter Anvin --- include/uapi/asm-generic/msgbuf.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inclu

[PATCH v06 25/36] uapi linux/android/binder.h: use __kernel_pid_t and __kernel_uid_t

2017-08-06 Thread Mikko Rapeli
Fixes userspace compilation errors: error: unknown type name ‘pid_t’ pid_t sender_pid error: unknown type name ‘uid_t’ uid_t sender_euid; Signed-off-by: Mikko Rapeli Cc: Greg Kroah-Hartman Cc: Arve Hjønnevåg Cc: Riley Andrews Cc: Todd Kjos Cc: Martijn Coenen Cc: de...@driverdev.osuosl

[PATCH v06 28/36] uapi xen/evtchn.h: include xen/privcmd.h

2017-08-06 Thread Mikko Rapeli
It has definition of domid_t. Fixes userspace compiler error when xen/privcmd.h is compiled alone: xen/evtchn.h:100:2: error: unknown type name ‘domid_t’ domid_t domid; ^~~ Signed-off-by: Mikko Rapeli Cc: Boris Ostrovsky Cc: Juergen Gross Cc: xen-de...@lists.xenproject.org --- include

[PATCH v06 02/36] uapi scsi/scsi_bsg_fc.h: use __u8, __u32 and __u64 from linux/types.h

2017-08-06 Thread Mikko Rapeli
Fixes userspace compilation errors like: scsi/scsi_bsg_fc.h:83:2: error: unknown type name ‘uint8_t’ Signed-off-by: Mikko Rapeli Cc: linux-s...@vger.kernel.org --- include/uapi/scsi/scsi_bsg_fc.h | 54 + 1 file changed, 28 insertions(+), 26 deletions(-)

[PATCH v06 06/36] uapi asm-generic/ipcbuf.h: include linux/posix_types.h

2017-08-06 Thread Mikko Rapeli
Fixes userspace compilation error: error: unknown type name ‘__kernel_key_t’ Signed-off-by: Mikko Rapeli Acked-by: Arnd Bergmann Cc: "H. Peter Anvin" Cc: H.J. Lu --- include/uapi/asm-generic/ipcbuf.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/uapi/asm-generic/ipcbuf.h b/i

[PATCH v06 13/36] x86 uapi asm/sembuf.h: include linux/types.h and linux/ipc.h

2017-08-06 Thread Mikko Rapeli
Fixes userspace compile errors like: error: field ‘sem_perm’ has incomplete type struct ipc64_perm sem_perm; /* permissions .. see ipc.h */ error: unknown type name ‘__kernel_time_t’ __kernel_time_t sem_otime; /* last semop time */ Signed-off-by: Mikko Rapeli Cc: Al Viro Cc: Arnd Bergmann

[PATCH v06 18/36] uapi linux/errqueue.h: include linux/time.h in user space

2017-08-06 Thread Mikko Rapeli
linux/time.h conflicts with user space header time.h. Try to be compatible with both. Fixes userspace compilation error: error: array type has incomplete element type struct timespec ts[3]; Signed-off-by: Mikko Rapeli Cc: Willem de Bruijn Cc: Soheil Hassas Yeganeh Cc: net...@vger.kernel.org

[PATCH] dm integrity: make blk_integrity_profile structure const

2017-08-06 Thread Bhumika Goyal
Make this structure const as it is only stored in the profile field of a blk_integrity structure. This field is of type const, so make structure as const. Signed-off-by: Bhumika Goyal --- drivers/md/dm-integrity.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/md/dm-

[PATCH v06 27/36] uapi xen/gntdev.h: include xen/privcmd.h and define grant_ref_t

2017-08-06 Thread Mikko Rapeli
Both are needed to compile in userspace. Fixes these userspace compile errors: xen/gntdev.h:151:4: error: unknown type name ‘grant_ref_t’ grant_ref_t ref; ^ xen/gntdev.h:153:4: error: unknown type name ‘domid_t’ domid_t domid; ^ Signed-off-by: Mikko Rapeli Cc: Boris Ostrovsky C

[PATCH v06 36/36] uapi linux/kfd_ioctl.h: use __u32 and __u64 instead of uint32_t and uint64_t

2017-08-06 Thread Mikko Rapeli
Include instead of which on Linux includes and on non-Linux platforms defines __u32 etc types. Fixes user space compilation errors like: linux/kfd_ioctl.h:33:2: error: unknown type name ‘uint32_t’ uint32_t major_version; /* from KFD */ ^~~~ Signed-off-by: Mikko Rapeli Cc: Yair Shacha

[PATCH v06 09/36] uapi asm-generic/sembuf.h: include asm/posix_types.h and asm/ipcbuf.h

2017-08-06 Thread Mikko Rapeli
Fixes userspace compilation errors like: error: field ‘msg_perm’ has incomplete type struct ipc64_perm msg_perm; error: unknown type name ‘__kernel_ulong_t’ Signed-off-by: Mikko Rapeli Acked-by: Arnd Bergmann Cc: H.J. Lu Cc: H. Peter Anvin --- include/uapi/asm-generic/sembuf.h | 2 ++ 1 file

[PATCH v06 26/36] uapi xen/privcmd.h: fix compilation in userspace

2017-08-06 Thread Mikko Rapeli
xen/interface/xen.h is not exported from kernel headers so remove the dependency and provide needed defines for domid_t and xen_pfn_t if they are not already defined by some other e.g. Xen specific headers. Suggested by Andrew Cooper on lkml message <5569f9c9.8000...@citrix.com>. The ifdef for A

[PATCH v06 17/36] uapi linux/sctp.h: use __u8, __u16 and __u32 from linux/types.h

2017-08-06 Thread Mikko Rapeli
Fixes userspace compilation errors like: linux/sctp.h:652:2: error: unknown type name ‘uint32_t’ Acked-by: Neil Horman Signed-off-by: Mikko Rapeli Cc: Marcelo Ricardo Leitner Cc: Xin Long Cc: Phil Sutter --- include/uapi/linux/sctp.h | 20 ++-- 1 file changed, 10 insertions(

[PATCH v1] fuse: add configurable max_pages parameter

2017-08-06 Thread Constantine Shulyupin
Replace define FUSE_MAX_PAGES_PER_REQ with the configurable mount parameter max_pages to improve performance. To utilize the max_pages parameter you must also increase the value of bufsize in the user mode library. Signed-off-by: Constantine Shulyupin --- Documentation/filesystems/fuse.txt | 5

Re: [PATCH] Allow automatic kernel taint on unsigned module load to be disabled

2017-08-06 Thread Matthew Garrett
On Sat, Aug 5, 2017 at 11:54 PM, Rusty Russell wrote: > Matthew Garrett writes: >> Distributions may wish to provide kernels that permit loading of >> unsigned modules based on certain policy decisions. > > Sorry, that's way too vague to accept this patch. > > So I'm guessing a binary module is b

Re: [PATCH 1/3] drm: Widen vblank UAPI to 64 bits. Change vblank time to ktime_t [v2]

2017-08-06 Thread Keith Packard
Daniel Vetter writes: > Subject is a bit confusing since you say uapi, but this is just the > internal prep work. Dropping UAPI fixes that. With that fixed: Yeah, thanks. > Reviewed-by: Daniel Vetter Added. > Two more optional comments below, feel free to adapt or ignore. I'll wait > for Mic

Re: [PATCH net-next v2 1/3] net: dsa: remove useless argument in legacy setup

2017-08-06 Thread Florian Fainelli
On 08/05/2017 01:20 PM, Vivien Didelot wrote: > dsa_switch_alloc() already assigns ds-dev, which can be used in > dsa_switch_setup_one and dsa_cpu_dsa_setups instead of requiring an > additional struct device argument. > > Signed-off-by: Vivien Didelot Reviewed-by: Florian Fainelli -- Floria

Re: [PATCH net-next v2 2/3] net: dsa: remove useless args of dsa_cpu_dsa_setup

2017-08-06 Thread Florian Fainelli
On 08/05/2017 01:20 PM, Vivien Didelot wrote: > dsa_cpu_dsa_setup currently takes 4 arguments but they are all available > from the dsa_port argument. Remove all others. > > Signed-off-by: Vivien Didelot Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH net-next v2 3/3] net: dsa: remove useless args of dsa_slave_create

2017-08-06 Thread Florian Fainelli
On 08/05/2017 01:20 PM, Vivien Didelot wrote: > dsa_slave_create currently takes 4 arguments while it only needs the > related dsa_port and its name. Remove all other arguments. > > Signed-off-by: Vivien Didelot Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH] Fix compat_sys_sigpending breakage introduced by v4.13-rc1~6^2~12

2017-08-06 Thread Al Viro
On Sat, Aug 05, 2017 at 11:00:50PM +0300, Dmitry V. Levin wrote: > The latest change of compat_sys_sigpending has broken it in two ways. > > First, it tries to write 4 bytes more than userspace expects: > sizeof(old_sigset_t) == sizeof(long) == 8 instead of > sizeof(compat_old_sigset_t) == sizeof(

Re: [PATCH v06 04/36] uapi scsi/scsi_netlink_fc.h: use __u16, __u32 and __u64 from linux/types.h

2017-08-06 Thread James Bottomley
On Sun, 2017-08-06 at 18:43 +0200, Mikko Rapeli wrote: > Fixes userspace compilation errors like: > > scsi/scsi_netlink_fc.h:60:2: error: expected specifier-qualifier-list > before ‘uint64_t’ Rather than patching the kernel, why not #include in your userspace programme? James

[PATCH 3/3] fpga: intel: Add QSPI FPGA Management Entity Feature

2017-08-06 Thread matthew . gerlach
From: Matthew Gerlach Add FPGA Management Entity Feature to support Atera ASMI Parallel 2 IP core. This feature allows the flash used to configure the FPGA at power up to be updated over PCIe using mtd-utils. Signed-off-by: Matthew Gerlach --- drivers/fpga/intel/feature-dev.h | 6 ++- driver

[PATCH 2/2] mtd: spi-nor: Altera ASMI Parallel II IP Core

2017-08-06 Thread matthew . gerlach
From: Matthew Gerlach Signed-off-by: Matthew Gerlach --- MAINTAINERS | 7 + drivers/mtd/spi-nor/Kconfig | 6 + drivers/mtd/spi-nor/Makefile| 3 +- drivers/mtd/spi-nor/altera-asmip2.c | 474 include/linux/mtd/alte

[PATCH 1/2] dt-bindings: mtd: Altera ASMI Parallel II IP Core

2017-08-06 Thread matthew . gerlach
From: Matthew Gerlach Device Tree bindinds for Altera ASMI Parallel II IP Core. Signed-off-by: Matthew Gerlach --- .../devicetree/bindings/mtd/altera-asmip2.txt | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/altera-a

[PATCH 0/3] Altera ASMI Parallel II IP Core

2017-08-06 Thread matthew . gerlach
From: Matthew Gerlach This patch set adds a spi-nor flash driver for the Altera ASMI Parallel II IP Core. This driver was created based on feedback from Marek Vasut, Cyrill Pitchen, and Michal Suchanek regarding Version 2 of the Altera Quadspi Controller: https://lkml.org/lkml/2017/6/26/518 Th

Re: [PATCH] platform/x86: ideapad-laptop: Expose conservation mode switch

2017-08-06 Thread Andy Shevchenko
On Sat, Aug 5, 2017 at 6:18 PM, Hao Wei Tee wrote: > On 30/5/2017 21:22, Andy Shevchenko wrote: >> On Sun, May 28, 2017 at 4:47 PM, Hao Wei Tee wrote: >>> On 5/27/17 3:31 PM, Hao Wei Tee wrote: This exposes the battery conservation mode present on some (?) IdeaPads. The mode is set by c

Re: [RFC v1 0/6] PMC/PUNIT IPC driver cleanup

2017-08-06 Thread Andy Shevchenko
On Tue, Aug 1, 2017 at 9:13 PM, wrote: > From: Kuppuswamy Sathyanarayanan > > Hi All, > > Currently intel_pmc_ipc.c, intel_punit_ipc.c, intel_scu_ipc.c drivers > implements the same IPC features. > This code duplication could be avoided if we implement the IPC driver as a > single library and l

Re: [PATCH] Fix compat_sys_sigpending breakage introduced by v4.13-rc1~6^2~12

2017-08-06 Thread Linus Torvalds
On Sun, Aug 6, 2017 at 11:22 AM, Al Viro wrote: > Anyway, all of that can be done later; for now let's go with your patch. > ACKed-by: Al Viro > > I would pick it through my tree, but the local network is half-disasembled > for move (containers arrive tomorrow, flight to Boston on 9th, stuff shou

Re: [PATCH v2 0/5] fs, xfs: block map immutable files for dax, dma-to-storage, and swap

2017-08-06 Thread Dan Williams
On Sat, Aug 5, 2017 at 2:50 AM, Christoph Hellwig wrote: > On Thu, Aug 03, 2017 at 07:38:11PM -0700, Dan Williams wrote: >> [ adding linux-api to the cover letter for notification, will send the >> full set to linux-api for v3 ] > > Just don't send this crap ever again. All the so called use case

Re: [PATCH 2/4] atm: idt77252: Delete an error message for a failed memory allocation in seven functions

2017-08-06 Thread kbuild test robot
-four-function-calls-together-with-a-variable-assignment/20170806-081417 config: x86_64-randconfig-b0-08070032 (attached as .config) compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7 reproduce: # save the attached .config to linux build tree make ARCH=x86_64 All warnings (new ones prefixed by

[PATCH 0/5] mtip32xx: Adjustments for some function implementations

2017-08-06 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 6 Aug 2017 21:02:34 +0200 A few update suggestions were taken into account from static source code analysis. Markus Elfring (5): Delete an error message for a failed memory allocation in five functions Improve a size determination in two functions Delete an

[PATCH 1/5] mtip32xx: Delete an error message for a failed memory allocation in five functions

2017-08-06 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 6 Aug 2017 19:09:04 +0200 Omit an extra message for a memory allocation failure in these functions. This issue was detected by using the Coccinelle software. Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf Sig

[PATCH 2/5] mtip32xx: Improve a size determination in two functions

2017-08-06 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 6 Aug 2017 19:54:49 +0200 Replace the specification of data structures by pointer dereferences as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. Signed-off-by: Markus

[PATCH 3/5] mtip32xx: Delete an unnecessary variable initialisation in mtip_pci_probe()

2017-08-06 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 6 Aug 2017 20:06:42 +0200 The local variable "dd" will be set to an appropriate pointer a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/block/mtip32xx/mtip32xx.c | 2 +- 1 file changed, 1 insertion(+

[PATCH 4/5] mtip32xx: Fix a typo in a comment line in mtip_hw_get_identify()

2017-08-06 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 6 Aug 2017 20:28:48 +0200 Add a missing character in this description. Signed-off-by: Markus Elfring --- drivers/block/mtip32xx/mtip32xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/mtip32xx/mtip32xx.c b/drivers/block/mtip

[PATCH 5/5] mtip32xx: Adjust an input validation check in mtip_hw_debugfs_exit()

2017-08-06 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 6 Aug 2017 20:52:26 +0200 The script "checkpatch.pl" pointed information out like the following. WARNING: debugfs_remove_recursive(NULL) is safe and this check is probably not required Thus adjust this source code place. Signed-off-by: Markus Elfring --- driv

[GIT PULL] ext4 bug fixes for 4.13

2017-08-06 Thread Theodore Ts'o
The following changes since commit 16f73eb02d7e1765ccab3d2018e0bd98eb93d973: Linux 4.13-rc3 (2017-07-30 12:40:36 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git tags/ext4_for_linus_stable for you to fetch changes up to 4e562013214

Re: [GIT PULL] ext4 bug fixes for 4.13

2017-08-06 Thread Linus Torvalds
On Sun, Aug 6, 2017 at 12:27 PM, Theodore Ts'o wrote: > > A large number of ext4 bug fixes and cleanups for v4.13 A couple of these appear to be neither cleanups nor fixes. And a lot of them appear to be very recent. I've pulled this, but if I hear about problems, ext4 is going to be on my shit-

[PATCH] ext4: add missing xattr hash update

2017-08-06 Thread Tahsin Erdogan
When updating an extended attribute, if the padded value sizes are the same, a shortcut is taken to avoid the bulk of the work. This was fine until the xattr hash update was moved inside ext4_xattr_set_entry(). With that change, the hash update got missed in the shortcut case. Thanks to ZhangYi (y

Re: xattr hash error in 4.13-rc with overlayfs over ext4

2017-08-06 Thread Tahsin Erdogan
On Sun, Aug 6, 2017 at 5:47 AM, zhangyi (F) wrote: > I think the root cause of this problem is the hash value not updated > when we overwrite the same xattr, please see ext4_xattr_set_entry(): Yes, you are right. Thanks a lot for finding the root cause. I just sent out a fix: ("[PATCH] ext4: add

[PATCH 0/5] Drivers: hv: Miscellaneous fixes

2017-08-06 Thread kys
From: K. Y. Srinivasan Miscellaneous fixes. Alex Ng (5): Tools: hv: vss: Skip freezing filesystems backed by loop Drivers: hv: balloon: Correctly update onlined page count Drivers: hv: balloon: Show the max dynamic memory assigned Drivers: hv: balloon: Initialize last_post_time on startu

[PATCH 1/5] Tools: hv: vss: Skip freezing filesystems backed by loop

2017-08-06 Thread kys
From: Alex Ng Since a loop device is backed by a file, a backup will already result in its parent filesystem being frozen. It's sufficient to just freeze the parent filesystem, so we can skip the loop device. This avoids a situation where a loop device and its parent filesystem are both frozen a

[PATCH 2/5] Drivers: hv: balloon: Correctly update onlined page count

2017-08-06 Thread kys
From: Alex Ng Previously, num_pages_onlined was updated using value from memory online notifier. This is incorrect because they assume that all hot-added pages are online, even though we only online the amount that's backed by the host. We should update num_pages_onlined only when the balloon dri

[PATCH 3/5] Drivers: hv: balloon: Show the max dynamic memory assigned

2017-08-06 Thread kys
From: Alex Ng Previously we were only showing max number of pages. We should make it more clear that this value is the max amount of dynamic memory that the Hyper-V host is willing to assign to this guest. Signed-off-by: Alex Ng Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_balloon.c |

[PATCH 4/5] Drivers: hv: balloon: Initialize last_post_time on startup

2017-08-06 Thread kys
From: Alex Ng When left uninitialized, this sometimes fails the following check in post_status(): if (!time_after(now, (last_post_time + HZ))) { return; } This causes unnecessary delays in reporting memory pressure to host after booting up. Signed-off-by: Alex N

[PATCH 5/5] Drivers: hv: kvp: Use MAX_ADAPTER_ID_SIZE for translating adapter id

2017-08-06 Thread kys
From: Alex Ng There's a bug which passes the output buffer size as MAX_IP_ADDR_SIZE, when converting the adapter_id field to UTF16. This is much larger than the actual size (MAX_ADAPTER_ID_SIZE). Fix this by passing the proper size. Fortunately, the translation is limited by the length of the in

Re: [PATCH] RFC: platform/x86: wmi: Fix check for method instance number

2017-08-06 Thread Pali Rohár
On Sunday 06 August 2017 18:18:06 Hans de Goede wrote: > Hi, > > On 06-08-17 17:42, Pali Rohár wrote: > > On Wednesday 14 June 2017 17:46:54 Pali Rohár wrote: > >> On Tuesday 13 June 2017 11:42:28 Darren Hart wrote: > >>> On Tue, Jun 13, 2017 at 08:04:57PM +0200, Pali Rohár wrote: > On Tuesda

<    1   2   3   4   >