Re: [PATCH 1/2] bcache: Remove redundant set_capacity

2016-11-26 Thread Coly Li
On 2016/11/25 上午9:39, Yijing Wang wrote: > set_capacity() has been called in bcache_device_init(), > remove the redundant one. > > Signed-off-by: Yijing Wang > --- > drivers/md/bcache/super.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/drivers/md/bcache/super.c b/drivers/md/bcach

Re: [PATCH 05/29] fscrypt: Let fs select encryption index/tweak

2016-11-26 Thread Eric Biggers
On Thu, Nov 24, 2016 at 04:57:51PM +0100, David Gstir wrote: > > > Also, if the intent is just that the 'index' represent the data's offset in > > filesystem blocks rather than in pages, then perhaps it should be > > documented as > > such. (This would be correct for ext4 and f2fs; they just hap

Re: [PATCH 01/29] fscrypt: Add in-place encryption mode

2016-11-26 Thread Eric Biggers
On Fri, Nov 25, 2016 at 01:09:05PM +0100, David Gstir wrote: > > > Additionally, after this change the name of the flag FS_WRITE_PATH_FL is > > misleading, since it now really indicates the presence of a bounce buffer > > rather > > than the "write path". > > I can see no use case for FS_WRITE_P

RE: [PATCH] net: fec: turn on device when extracting statistics

2016-11-26 Thread Andy Duan
From: Nikita Yushchenko Sent: Friday, November 25, 2016 6:02 PM >To: Andy Duan ; David S. Miller >; Troy Kisky ; >Andrew Lunn ; Eric Nelson ; Philippe >Reynes ; Johannes Berg ; >net...@vger.kernel.org; linux-kernel@vger.kernel.org >Cc: Chris Healy ; Nikita Yushchenko > >Subject: [PATCH] n

Xmas Offer

2016-11-26 Thread Mrs Julie Leach
You are a recipient to Mrs Julie Leach Donation of $3 million USD. Contact ( julieleac...@gmail.com ) for claims.

Did you get my message this time?

2016-11-26 Thread Friedrich Mayrhofer
This is the second time i am sending you this mail. I, Friedrich Mayrhofer Donate $ 1,000,000.00 to You, Email Me personally for more details. Regards. Friedrich Mayrhofer

Re: INFO: rcu_sched detected stalls on CPUs/tasks with `kswapd` and `mem_cgroup_shrink_node`

2016-11-26 Thread Christopher S. Aker
> On Nov 24, 2016, at 5:15 AM, Michal Hocko wrote: > >> * No rcu_* warnings on that machine with 4.7.2, but with 4.8.4 , 4.8.6 , >> 4.8.8 and now 4.9.0-rc5+Pauls patch > > I assume you haven't tried the Linus 4.8 kernel without any further > stable patches? Just to be sure we are not talking ab

[PATCH 3/3] hwmon: tmp108: Update driver to use hwmon_chip_info.

2016-11-26 Thread John Muir
Move the tmp108 driver from hwmon attribute groups to hwmon_chip_info. Signed-off-by: John Muir --- drivers/hwmon/tmp108.c | 142 + 1 file changed, 73 insertions(+), 69 deletions(-) diff --git a/drivers/hwmon/tmp108.c b/drivers/hwmon/tmp108.c inde

[PATCH 2/3] hwmon: tmp108: Use devm variants of registration interfaces.

2016-11-26 Thread John Muir
From: John Muir Use the devm hwmon and thermal zone registration functions to clean up the code and remove the need for an i2c_driver.remove callback. Signed-off-by: John Muir --- drivers/hwmon/tmp108.c | 28 1 file changed, 8 insertions(+), 20 deletions(-) diff -

[PATCH 1/3] hwmon: Add Texas Instruments TMP108 temperature sensor driver.

2016-11-26 Thread John Muir
Add support for the TI TMP108 temperature sensor with some device configuration parameters. Signed-off-by: John Muir --- Documentation/devicetree/bindings/hwmon/tmp108.txt | 27 ++ Documentation/hwmon/tmp108 | 38 ++ drivers/hwmon/Kconfig |

[PATCH 0/3] Texas Instruments TMP108 temperature sensor driver.

2016-11-26 Thread John Muir
(Attempting a resend due to apparent delivery failure.) This driver is split into three patches as it is being ported forward from a Linux 4.4 implementation where it was tested. The final driver code uses interfaces that are not available in 4.4. John Muir (3): hwmon: Add Texas Instruments TMP

Re: [PATCH] Avoid nested function definition

2016-11-26 Thread Coly Li
On 2016/11/27 上午6:24, Peter Foley wrote: > Fixes below error with clang: > ../drivers/md/bcache/sysfs.c:759:3: error: function definition is not allowed > here > { return *((uint16_t *) r) - *((uint16_t *) l); } > ^ > ../drivers/md/bcache/sysfs.c:789:32: error

Re: automatic IRQ affinity for virtio

2016-11-26 Thread Michael S. Tsirkin
On Fri, Nov 25, 2016 at 08:25:38AM +0100, Christoph Hellwig wrote: > Btw, what's the best way to get any response to this series? > But this and the predecessor seem to have completly fallen on deaf > ears. I'm sorry, I intend to review soon and if OK merge it. The fact that it depends on tip mea

Re: [PATCH v2 1/2] virtio: introduce little edian functions for virtio_cread/write# family

2016-11-26 Thread Michael S. Tsirkin
On Tue, Nov 22, 2016 at 04:10:22PM +0800, Gonglei wrote: > Virtio modern devices are always little edian, let's introduce > the LE functions for read/write configuration space for > virtio modern devices, which avoid complaint by Sparse when > we use the virtio_creaed/virtio_cwrite in VIRTIO_1 devi

Re: [PATCH v2 2/2] crypto: add virtio-crypto driver

2016-11-26 Thread Michael S. Tsirkin
On Tue, Nov 22, 2016 at 04:10:23PM +0800, Gonglei wrote: > This patch introduces virtio-crypto driver for Linux Kernel. > > The virtio crypto device is a virtual cryptography device > as well as a kind of virtual hardware accelerator for > virtual machines. The encryption anddecryption requests >

Re: [git pull] vfs fix

2016-11-26 Thread Al Viro
On Sun, Nov 27, 2016 at 02:51:18AM +, Al Viro wrote: ... and screwed up Cc due to comma in S-O-B of commit in question. My apologies.

Re: [git pull] vfs fix

2016-11-26 Thread Linus Torvalds
On Sat, Nov 26, 2016 at 6:25 PM, Al Viro wrote: > > Two issues here. One is that iov_iter_get_pages{,_alloc}() calling > conventions are fucking ugly. No arguments there. I was going to suggest adding an "int *npages" argument and letting that function fill that in together with the page array,

Re: [PATCH 0/2] virtio: fix complaint by sparse

2016-11-26 Thread Michael S. Tsirkin
this is in my tree, will be in the next pull request. On Sat, Nov 26, 2016 at 09:36:50AM +, Gonglei (Arei) wrote: > Ping...? > > > -Original Message- > > From: Gonglei (Arei) > > Sent: Tuesday, November 22, 2016 1:52 PM > > To: virtualizat...@lists.linux-foundation.org; linux-kernel@v

Re: [git pull] vfs fix

2016-11-26 Thread Al Viro
On Sun, Nov 27, 2016 at 02:25:09AM +, Al Viro wrote: > Anyway, leaving that BUG_ON() had been wrong; I can send a followup > massaging that thing as you've suggested, if you are interested in > that. But keep in mind that the whole iov_iter_get_pages...() calling > conventions are going to be

Re: [PATCH 1/2] kbuild: provide include/asm/asm-prototypes.h for ARM

2016-11-26 Thread Nicolas Pitre
On Wed, 23 Nov 2016, Russell King - ARM Linux wrote: > On Wed, Nov 23, 2016 at 09:33:32AM +, Russell King - ARM Linux wrote: > > So, I still think the whole approach is wrong - it's added extra > > fragility that wasn't there with the armksyms.c approach. > > Here's what the diffstat and patc

Re: [git pull] vfs fix

2016-11-26 Thread Al Viro
On Sat, Nov 26, 2016 at 05:48:54PM -0800, Linus Torvalds wrote: > That's what all the other users do, and that's what should be the > "right usage pattern", afaik. The number of pages really *is* > calculated as > >int n = DIV_ROUND_UP(result + offs, PAGE_SIZE); > > in other iov_iter_get_

Re: [PATCH 0/3] Texas Instruments TMP108 temperature sensor driver.

2016-11-26 Thread Guenter Roeck
On 11/26/2016 05:26 PM, John Muir wrote: This driver is split into three patches as it is being ported forward from a Linux 4.4 implementation where it was tested. The final driver code uses interfaces that are not available in 4.4. John Muir (3): hwmon: Add Texas Instruments TMP108 temperatur

Re: [git pull] vfs fix

2016-11-26 Thread Linus Torvalds
On Sat, Nov 26, 2016 at 5:13 PM, Al Viro wrote: > > Al Viro (1): > fix default_file_splice_read() Ugh. I absolutely _hate_ this: BUG_ON(dummy); because it makes no sense. I'm assuming that "dummy" here is "start_offset", and that you want to make sure that there are no initial of

[PATCH 0/3] Texas Instruments TMP108 temperature sensor driver.

2016-11-26 Thread John Muir
This driver is split into three patches as it is being ported forward from a Linux 4.4 implementation where it was tested. The final driver code uses interfaces that are not available in 4.4. John Muir (3): hwmon: Add Texas Instruments TMP108 temperature sensor driver. hwmon: tmp108: Use devm

[git pull] vfs fix

2016-11-26 Thread Al Viro
The following changes since commit 3ad0e83cf86bcaeb6ca3c37060a3ce866b25fb42: Merge branch 'parisc-4.9-4' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux (2016-11-25 16:47:15 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/vi

Re: netlink: GPF in sock_sndtimeo

2016-11-26 Thread Cong Wang
On Sat, Nov 26, 2016 at 7:44 AM, Dmitry Vyukov wrote: > Hello, > > The following program triggers GPF in sock_sndtimeo: > https://gist.githubusercontent.com/dvyukov/c19cadd309791cf5cb9b2bf936d3f48d/raw/1743ba0211079a5465d039512b427bc6b59b1a76/gistfile1.txt > > On commit 16ae16c6e5616c084168740990f

Re: [PATCH v3 net-next 1/2] net: ethernet: slicoss: add slicoss gigabit ethernet driver

2016-11-26 Thread Lino Sanfilippo
Hi Rami, On 26.11.2016 16:48, Rami Rosen wrote: >> @@ -0,0 +1,28 @@ >> +config NET_VENDOR_ALACRITECH >> +bool "Alacritech devices" >> +default y >> +---help--- >> + If you have a network (Ethernet) card belonging to this class, >> say Y. >> + >> + Note

Re: [RFC PATCH v8 1/9] Restartable sequences system call

2016-11-26 Thread Paul Turner
On Sat, Aug 27, 2016 at 5:21 AM, Pavel Machek wrote: > > Hi! > >> Expose a new system call allowing each thread to register one userspace >> memory area to be used as an ABI between kernel and user-space for two >> purposes: user-space restartable sequences and quick access to read the >> current

Re: Linux 4.8.11

2016-11-26 Thread Adam Borowski
On Sat, Nov 26, 2016 at 05:12:35PM +0100, Greg KH wrote: > I'm announcing the release of the 4.8.11 kernel. ... which splats during early boot where 4.8.10 worked fine. [0.00] Linux version 4.8.11+ (kilobyte@umbar) (gcc version 6.2.1 20161124 (Debian 6.2.1-5) ) #1 SMP Sat Nov 26 22:32:52

[PATCH 02/22] cpufreq/acpi-cpufreq: drop rdmsr_on_cpus() usage

2016-11-26 Thread Sebastian Andrzej Siewior
The online / pre_down callback is invoked on the target CPU since commit 1cf4f629d9d2 ("cpu/hotplug: Move online calls to hotplugged cpu") which means for the hotplug callback we can use rmdsrl() instead of rdmsr_on_cpus(). This leaves us with set_boost() as the only user which still needs to read

[PATCH 01/22] cpufreq/acpi-cpufreq: Convert to hotplug state machine

2016-11-26 Thread Sebastian Andrzej Siewior
Install the callbacks via the state machine. Cc: "Rafael J. Wysocki" Cc: Viresh Kumar Cc: linux...@vger.kernel.org Signed-off-by: Sebastian Andrzej Siewior --- drivers/cpufreq/acpi-cpufreq.c | 93 -- 1 file changed, 45 insertions(+), 48 deletions(-) dif

[PATCH 07/22] mm/vmstat: Drop get_online_cpus() from init_cpu_node_state/vmstat_cpu_dead()

2016-11-26 Thread Sebastian Andrzej Siewior
Both functions are called with protection against cpu hotplug already so *_online_cpus() could be dropped. Cc: Andrew Morton Cc: Vlastimil Babka Cc: Mel Gorman Cc: Johannes Weiner Cc: linux...@kvack.org Signed-off-by: Sebastian Andrzej Siewior --- mm/vmstat.c | 7 +-- 1 file changed, 1 i

[PATCH 08/22] mm/vmstat: Avoid on each online CPU loops

2016-11-26 Thread Sebastian Andrzej Siewior
Both iterations over online cpus can be replaced by the proper node specific functions. Cc: Andrew Morton Cc: Vlastimil Babka Cc: Mel Gorman Cc: Johannes Weiner Cc: linux...@kvack.org Signed-off-by: Sebastian Andrzej Siewior --- mm/vmstat.c | 14 +++--- 1 file changed, 7 insertions(+

[PATCH 12/22] mm/zswap: Convert pool to hotplug state machine

2016-11-26 Thread Sebastian Andrzej Siewior
Install the callbacks via the state machine. Multi state is used to address the per-pool notifier. Uppon adding of the intance the callback is invoked for all online CPUs so the manual init can go. Cc: Seth Jennings Cc: linux...@kvack.org Signed-off-by: Sebastian Andrzej Siewior --- include/lin

[PATCH 06/22] tracing/rb: Convert to hotplug state machine

2016-11-26 Thread Sebastian Andrzej Siewior
Install the callbacks via the state machine. The notifier in struct ring_buffer is replaced by the multi instance interface. Upon __ring_buffer_alloc() invocation, cpuhp_state_add_instance() will invoke the trace_rb_cpu_prepare() on each CPU. This callback may now fail. This means __ring_buffer_a

[PATCH 10/22] mm/zsmalloc: Convert to hotplug state machine

2016-11-26 Thread Sebastian Andrzej Siewior
Install the callbacks via the state machine and let the core invoke the callbacks on the already online CPUs. Cc: Minchan Kim Cc: Nitin Gupta Cc: Sergey Senozhatsky CC: linux...@kvack.org Signed-off-by: Sebastian Andrzej Siewior --- include/linux/cpuhotplug.h | 1 + mm/zsmalloc.c

[PATCH 13/22] iommu/vt-d: Convert to hotplug state machine

2016-11-26 Thread Sebastian Andrzej Siewior
From: Anna-Maria Gleixner Install the callbacks via the state machine. Cc: David Woodhouse Cc: Joerg Roedel Cc: io...@lists.linux-foundation.org Signed-off-by: Anna-Maria Gleixner Signed-off-by: Sebastian Andrzej Siewior --- drivers/iommu/intel-iommu.c | 24 ++-- include

[PATCH 20/22] soc/fsl/qbman: Convert to hotplug state machine

2016-11-26 Thread Sebastian Andrzej Siewior
Install the callbacks via the state machine. Cc: Claudiu Manoil Cc: Scott Wood Cc: Roy Pledge Signed-off-by: Sebastian Andrzej Siewior --- drivers/soc/fsl/qbman/qman_portal.c | 39 - 1 file changed, 12 insertions(+), 27 deletions(-) diff --git a/drivers/so

[PATCH 11/22] mm/zswap: Convert dst-mem to hotplug state machine

2016-11-26 Thread Sebastian Andrzej Siewior
Install the callbacks via the state machine and let the core invoke the callbacks on the already online CPUs. Cc: Seth Jennings Cc: linux...@kvack.org Signed-off-by: Sebastian Andrzej Siewior --- include/linux/cpuhotplug.h | 1 + mm/zswap.c | 75 +++-

[PATCH 15/22] arm64/cpuinfo: Make hotplug notifier symmetric

2016-11-26 Thread Sebastian Andrzej Siewior
From: Anna-Maria Gleixner There is no requirement to keep the sysfs files around until the CPU is completely dead. Remove them during the DOWN_PREPARE notification. This is a preparatory patch for converting to the hotplug state machine. Cc: Catalin Marinas Cc: Will Deacon Cc: linux-arm-ker...

Re: [RFC] kernel/sysctl.c: return -EINVAL when write invalid val to ulong type sysctl

2016-11-26 Thread subashab
On 2016-11-26 02:13, Yisheng Xie wrote: I tried to echo an invalid value to an unsigned long type sysctl on 4.9.0-rc6: linux:~# cat /proc/sys/vm/user_reserve_kbytes 131072 linux:~# echo -1 > /proc/sys/vm/user_reserve_kbytes linux:~# cat /proc/sys/vm/user_reserve_kbytes 131072 The

[PATCH 14/22] mm/compaction: Convert to hotplug state machine

2016-11-26 Thread Sebastian Andrzej Siewior
From: Anna-Maria Gleixner Install the callbacks via the state machine. Should the hotplug init fail then no threads are spawned. Cc: Andrew Morton Cc: Vlastimil Babka Cc: Michal Hocko Cc: Mel Gorman Cc: linux...@kvack.org Signed-off-by: Anna-Maria Gleixner Signed-off-by: Sebastian Andrzej S

[PATCH 16/22] arm64/cpuinfo: Convert to hotplug state machine

2016-11-26 Thread Sebastian Andrzej Siewior
From: Anna-Maria Gleixner Install the callbacks via the state machine and let the core invoke the callbacks on the already online CPUs. Cc: Catalin Marinas Cc: Will Deacon Cc: linux-arm-ker...@lists.infradead.org Signed-off-by: Anna-Maria Gleixner Signed-off-by: Sebastian Andrzej Siewior ---

[PATCH 18/22] zram: Convert to hotplug state machine

2016-11-26 Thread Sebastian Andrzej Siewior
From: Anna-Maria Gleixner Install the callbacks via the state machine with multi instance support and let the core invoke the callbacks on the already online CPUs. Cc: Minchan Kim Cc: Nitin Gupta Cc: Sergey Senozhatsky [bigeasy: wire up the multi instance stuff] Signed-off-by: Anna-Maria Glei

[PATCH 09/22] mm/vmstat: Convert to hotplug state machine

2016-11-26 Thread Sebastian Andrzej Siewior
Install the callbacks via the state machine, but do not invoke them as we can initialize the node state without calling the callbacks on all online CPUs. start_shepherd_timer() is now called outside the get_online_cpus() block which is safe as it only operates on cpu possible mask. Cc: Andrew Mor

[PATCH 19/22] soc/fsl/qbman: Convert to hotplug state machine

2016-11-26 Thread Sebastian Andrzej Siewior
Install the callbacks via the state machine. Cc: Roy Pledge Cc: Scott Wood Cc: Claudiu Manoil Signed-off-by: Sebastian Andrzej Siewior --- drivers/soc/fsl/qbman/bman_portal.c | 46 + 1 file changed, 16 insertions(+), 30 deletions(-) diff --git a/drivers/so

[PATCH 21/22] staging/lustre/libcfs: Convert to hotplug state machine

2016-11-26 Thread Sebastian Andrzej Siewior
From: Anna-Maria Gleixner Install the callbacks via the state machine. Cc: Oleg Drokin Cc: Andreas Dilger Cc: James Simmons Cc: Greg Kroah-Hartman Cc: lustre-de...@lists.lustre.org Cc: de...@driverdev.osuosl.org Signed-off-by: Anna-Maria Gleixner Signed-off-by: Sebastian Andrzej Siewior --

[PATCH 04/22] idle/intel: Convert to hotplug state machine

2016-11-26 Thread Sebastian Andrzej Siewior
Install the callbacks via the state machine and let the core invoke the callbacks on the already online CPUs. The two smp_call_function_single() invocations in intel_idle_cpu_init() have been removed because intel_idle_cpu_init() is now invoked via the hotplug callback which runs on the target CPU

[PATCH 17/22] KVM/PPC/Book3S HV: Convert to hotplug state machine

2016-11-26 Thread Sebastian Andrzej Siewior
From: Anna-Maria Gleixner Install the callbacks via the state machine. Cc: Alexander Graf Cc: Paolo Bonzini Cc: "Radim Krčmář" Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: kvm-...@vger.kernel.org Cc: k...@vger.kernel.org Cc: linuxppc-...@lists.ozlabs.org Signed-of

[PATCH 22/22] Remove obsolete cpu hotplug register / unregister functions

2016-11-26 Thread Sebastian Andrzej Siewior
Users of hotcpu_notifier() cpu_notifier() __hotcpu_notifier() __cpu_notifier() register_hotcpu_notifier() register_cpu_notifier() __register_hotcpu_notifier() __register_cpu_notifier() unregister_hotcpu_notifier() unreg

[PATCH 05/22] oprofile/nmi timer: Convert to hotplug state machine

2016-11-26 Thread Sebastian Andrzej Siewior
Install the callbacks via the state machine and let the core invoke the callbacks on the already online CPUs. Cc: Robert Richter Cc: oprofile-l...@lists.sf.net Signed-off-by: Sebastian Andrzej Siewior --- drivers/oprofile/nmi_timer_int.c | 58 +--- 1 file cha

[PATCH 03/22] idle/intel: Remove superfluous SMP fuction call

2016-11-26 Thread Sebastian Andrzej Siewior
From: Anna-Maria Gleixner Since commit 1cf4f629d9d2 ("cpu/hotplug: Move online calls to hotplugged cpu") the CPU_ONLINE and CPU_DOWN_PREPARE notifiers are always run on the hot plugged CPU, and as of commit 3b9d6da67e11 ("cpu/hotplug: Fix rollback during error-out in __cpu_disable()") the CPU_DOW

cpu hotplug: convert more drivers (batch #6 and last)

2016-11-26 Thread Sebastian Andrzej Siewior
Another small batch of drivers converted to the new hotplug state engine. The whole series is also available at git://git.kernel.org/pub/scm/linux/kernel/git/bigeasy/hotplug-staging.git smp/hotplug on top of tip/smp/hotplug (which includes last batch and is still on top of v4.9-rc4). Sebastian

drivers/staging/greybus/bootrom.c:298:35-39: ERROR: fw is NULL but dereferenced.

2016-11-26 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: a0d60e62ea5c88a9823410e9d0929a513e29dea2 commit: f44dd184634d401f5cf88a6d8b4a60d5ff4f417f Merge greybus driver tree into 4.8-rc6 date: 10 weeks ago coccinelle warnings: (new ones prefixed by >>) >> driv

[PATCH v3] Staging: iio: adc: fix sysfs files modes in ad7192.c

2016-11-26 Thread Boyan Vladinov
Fixes warnings found by checkpatch.pl: - sysfs entries user/group modes to use their octal representation - use the IIO_DEVICE_ATTR_[RO|RW] macroses - coding style Signed-off-by: Boyan Vladinov --- drivers/staging/iio/adc/ad7192.c | 39 --- 1 file changed, 24

Add modules-next branch to linux-next

2016-11-26 Thread Jessica Yu
Hi Stephen, Could you please add the modules-next branch at: git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux.git modules-next to linux-next? The branch contains patches for modules targeted for the next merge window. It is meant to replace Rusty's old modules-next branch. Thanks, J

[PATCH] Fix multiple definition error under lto

2016-11-26 Thread Peter Foley
drivers/thermal/built-in.o: In function `type_show.lto_priv.33': (.text+0x3d80): multiple definition of `type_show.lto_priv.33' drivers/base/built-in.o:(.text+0x2a40): first defined here Signed-off-by: Peter Foley --- drivers/thermal/thermal_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 de

[PATCH] Avoid nested function definition

2016-11-26 Thread Peter Foley
Fixes below error with clang: ../drivers/md/bcache/sysfs.c:759:3: error: function definition is not allowed here { return *((uint16_t *) r) - *((uint16_t *) l); } ^ ../drivers/md/bcache/sysfs.c:789:32: error: use of undeclared identifier 'cmp'

[PATCH] Annotate die() with noreturn

2016-11-26 Thread Peter Foley
Fixes below warning with clang: In file included from ../arch/x86/tools/relocs_64.c:17: ../arch/x86/tools/relocs.c:977:6: warning: variable 'do_reloc' is used uninitialized whenever 'if' condition is f

[PATCH] Fix objtool with clang

2016-11-26 Thread Peter Foley
Clang doesn't support multiple arguments being passed to -Wp, so split them. Fixes this error: HOSTCC tools/objtool/fixdep.o cat: tools/objtool/.fixdep.o.d: No such file or directory Signed-off-by: Peter Foley --- tools/build/Build.include | 6 +++--- 1 file changed, 3 insertions(+), 3 deleti

[PULL REQUEST] i2c for 4.9

2016-11-26 Thread Wolfram Sang
Linus, here is a revert and two bugfixes for the I2C designware driver. Please pull. Please note that we are still hunting down a regression for the i2c-octeon driver. While there is a fix pending, we have unclear feedback from the testers currently. An rc8 would be quite helpful for this case.

Re: [PATCH RFC] HID: cp2112: add IRQ chip handling

2016-11-26 Thread Antonio Borneo
On Mon, Nov 21, 2016 at 12:07 PM, Benjamin Tissoires wrote: > The GPIO part doesn't provide interrupts when GPIO are toggled. > So use a polling mechanism if someone requests a GPIO as an IRQ. > > Signed-off-by: Benjamin Tissoires > --- > > I am currently running this patch in my local tree. > It

Re: [PATCH] of: Fix issue where code would fall through to error case.

2016-11-26 Thread Frank Rowand
On 11/23/16 13:58, Rob Herring wrote: > On Thu, Nov 17, 2016 at 6:10 PM, Moritz Fischer > wrote: >> On Thu, Nov 17, 2016 at 4:02 PM, Frank Rowand wrote: >>> On 11/17/16 15:40, Frank Rowand wrote: On 11/17/16 15:25, Moritz Fischer wrote: > No longer fall through into the error case that p

Re: [PATCH 2/2] x86/intel_rdt: Update task closid immediately on CPU in rmdir and unmount

2016-11-26 Thread Fenghua Yu
On Sat, Nov 26, 2016 at 10:08:57AM +0100, Thomas Gleixner wrote: > On Fri, 25 Nov 2016, Fenghua Yu wrote: > > On Wed, Nov 23, 2016 at 03:23:50PM +0100, Thomas Gleixner wrote: > > > +#ifdef CONFIG_SMP > > > + /* > > > + * This is safe on x86 w/o barriers as the order

[GIT] Networking

2016-11-26 Thread David Miller
1) Fix leak in fsl/fman driver, from Dan Carpenter. 2) Call flow dissector initcall earlier than any networking driver can register and start to use it, from Eric Dumazet. 3) Some dup header fixes from Geliang Tang. 4) TIPC link monitoring compat fix from Jon Paul Maloy. 5) Link changes req

Re: [PATCH 3.12 118/127] cgroup: use an ordered workqueue for cgroup destruction

2016-11-26 Thread Hugh Dickins
On Fri, 25 Nov 2016, Jiri Slaby wrote: > From: Hugh Dickins > > 3.12-stable review patch. If anyone has any objections, please let me know. > > === > > commit ab3f5faa6255a0eb4f832675507d9e295ca7e9ba upstream. > > Sometimes the cleanup after memcg hierarchy testing gets stuck in

[PATCH] amd-xgbe: Fix unused suspend handlers build warning

2016-11-26 Thread Borislav Petkov
From: Borislav Petkov Fix: drivers/net/ethernet/amd/xgbe/xgbe-main.c:835:12: warning: ‘xgbe_suspend’ defined but not used [-Wunused-function] drivers/net/ethernet/amd/xgbe/xgbe-main.c:855:12: warning: ‘xgbe_resume’ defined but not used [-Wunused-function] I see it during randconfi

Re: [RFC PATCH v3 20/20] x86: Add support to make use of Secure Memory Encryption

2016-11-26 Thread Borislav Petkov
On Wed, Nov 09, 2016 at 06:38:38PM -0600, Tom Lendacky wrote: > This patch adds the support to check if SME has been enabled and if the > mem_encrypt=on command line option is set. If both of these conditions > are true, then the encryption mask is set and the kernel is encrypted > "in place." > >

Re: [PATCH 2/2] rcu: Force resched_cpu when jiffies >= rcu_state.jiffies_resched

2016-11-26 Thread Paul E. McKenney
On Fri, Nov 25, 2016 at 12:34:26AM -0800, Paul E. McKenney wrote: > On Tue, Nov 22, 2016 at 05:12:20PM +0900, Byungchul Park wrote: > > On Wed, Nov 09, 2016 at 03:32:15PM +0900, Byungchul Park wrote: > > > Currently rcu code forces CPU into scheduler when jiffies >= > > > rcu_state.gp_start + jiffi

Re: net: GPF in eth_header

2016-11-26 Thread Eric Dumazet
2016-11-26 12:05 GMT-08:00 Eric Dumazet : >> Hi Eric, >> >> The crash happens when the kernel tries to access shadow for nonmapped >> memory. >> >> The issue here is an integer overflow which happens in >> neigh_resolve_output(). >> skb_network_offset(skb) can return negative number, but __skb_pu

Re: [PATCH 4/5] regulator: Add support for TI TWL6032

2016-11-26 Thread Rosia, Nicolae
Hi, On Sun, 2016-11-27 at 02:55 +0800, kbuild test robot wrote: > Hi Nicolae, > > [auto build test ERROR on omap/for-next] > [also build test ERROR on v4.9-rc6] > [cannot apply to next-20161125] > [if your patch is applied to the wrong git tree, please drop us a > note to help improve the system]

Re: [PATCH] MAINTAINERS: fscrypto: recommend linux-fsdevel for fscrypto patches

2016-11-26 Thread Theodore Ts'o
On Mon, Oct 24, 2016 at 01:29:15PM -0700, Eric Biggers wrote: > The filesystem level encryption support, currently used by ext4 and f2fs > and proposed for ubifs, does not yet have a dedicated mailing list. > Since no mailing lists were specified in MAINTAINERS, get_maintainer.pl > only recommended

Re: net: GPF in eth_header

2016-11-26 Thread Eric Dumazet
> Hi Eric, > > The crash happens when the kernel tries to access shadow for nonmapped memory. > > The issue here is an integer overflow which happens in neigh_resolve_output(). > skb_network_offset(skb) can return negative number, but __skb_pull() > accepts unsigned int as len. > As a result, the l

[PATCH 1/1] [media] tw686x: silent -Wformat-security warning

2016-11-26 Thread Nicolas Iooss
Using sprintf() with a non-literal string makes some compiler complain when building with -Wformat-security (eg. clang reports "format string is not a string literal (potentially insecure)"). Here sprintf() format parameter is indirectly a literal string so there is no security issue. Nevertheles

[PATCH 1/1] kthread: add __printf attributes

2016-11-26 Thread Nicolas Iooss
When commit fbae2d44aa1d ("kthread: add kthread_create_worker*()") introduced some kthread_create_...() functions which were taking printf-like parametter, it introduced __printf attributes to some functions (e.g. kthread_create_worker()). Nevertheless some new functions were forgotten (they have b

Re: [GIT PULL] Please pull powerpc/linux.git powerpc-4.9-6 tag

2016-11-26 Thread Linus Torvalds
On Sat, Nov 26, 2016 at 12:11 AM, Michael Ellerman wrote: > > powerpc fixes for 4.9 #6 > > Fixes marked for stable: > - Set missing wakeup bit in LPCR on POWER9 (Benjamin Herrenschmidt) > - Fix the early OPAL console wrappers (Oliver O'Halloran) > - Fixup kernel read only mapping (Aneesh Kumar

[PATCH 2/2] z3fold: fix locking issues

2016-11-26 Thread Vitaly Wool
Commit 570931c ("z3fold: use per-page spinlock") introduced locking issues in reclaim function reported in [1] and [2]. This patch addresses these issues, also fixing the check for empty lru list (it was only checked once, while it should be checked every time we want to get the last lru entry). [

[PATCH 1/1] libnvdimm, namespace: fix the type of name variable

2016-11-26 Thread Nicolas Iooss
In create_namespace_blk(), the local variable "name" is defined as an array of NSLABEL_NAME_LEN pointers: char *name[NSLABEL_NAME_LEN]; This variable is then used in calls to memcpy() and kmemdup() as if it were char[NSLABEL_NAME_LEN]. Remove the star in the variable definition to makes it lo

[PATCH 1/2] z3fold: fix header size related issues

2016-11-26 Thread Vitaly Wool
Currently the whole kernel build will be stopped if the size of struct z3fold_header is greater than the size of one chunk, which is 64 bytes by default. This patch instead defines the offset for z3fold objects as the size of the z3fold header in chunks. Fixed also are the calculation of num_free_

[PATCH 0/2] z3fold fixes

2016-11-26 Thread Vitaly Wool
Here come 2 patches with z3fold fixes for chunks counting and locking. As commit 50a50d2 ("z3fold: don't fail kernel build is z3fold_header is too big") was NAK'ed [1], I would suggest that we removed that one and the next z3fold commit cc1e9c8 ("z3fold: discourage use of pages that weren't comp

Re: net: stmmac: Meson GXBB: attempting to execute userspace memory

2016-11-26 Thread Ben Dooks
On 2016-11-26 07:53, Heinrich Schuchardt wrote: For Odroid C2 I have compiled kernel 4.9.0-rc6-next-20161124-1-gbf7e142 with one additional patch https://github.com/xypron/kernel-odroid-c2/blob/master/patch/0001-stmmac-RTL8211F-Meson-GXBB-TX-throughput-problems.patch I repeatedly see fault

Re: [PATCH v4 0/7] mux controller abstraction and iio/i2c muxes

2016-11-26 Thread Peter Rosin
On 2016-11-24 16:18, Peter Rosin wrote: > v3 -> v4 changes > - added support for having the mux-controller in a child node of a > mux-consumer if it is a sole consumer, to hopefully even further satisfy > the complaint from Rob (and later Lars-Peter) about dt complexity. > - the above came at t

Re: net: GPF in eth_header

2016-11-26 Thread Andrey Konovalov
On Sat, Nov 26, 2016 at 7:28 PM, 'Eric Dumazet' via syzkaller wrote: > On Sat, Nov 26, 2016 at 9:30 AM, Dmitry Vyukov wrote: >> Hello, >> >> The following program triggers GPF in eth_header: >> >> https://gist.githubusercontent.com/dvyukov/613cadf05543b55a419f237e419cd495/raw/5471231523d1a07c3de5

[GIT PULL] KVM fixes for v4.9-rc7

2016-11-26 Thread Radim Krčmář
Linus, The following changes since commit 9c763584b7c8911106bb77af7e648bef09af9d80: Linux 4.9-rc6 (2016-11-20 13:52:19 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/kvm.git tags/for-linus for you to fetch changes up to df492896e6dfb44fd1154f5402428d8e

Re: [PATCH 4/5] regulator: Add support for TI TWL6032

2016-11-26 Thread kbuild test robot
Hi Nicolae, [auto build test ERROR on omap/for-next] [also build test ERROR on v4.9-rc6] [cannot apply to next-20161125] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Nicolae-Rosia/mfd-twl-impr

[PATCH] bnx2fc: shift wrapping bug in bnx2fc_process_unsol_compl()

2016-11-26 Thread Christophe JAILLET
BNX2FC_NUM_ERR_BITS is 63. err_warn_bit_map is a u64. So, to make sure that no shift wrapping will occur, we need need additionnal casting. The same test is already done a few lines above and '(u64)1' is already used there. So just do the same here. Signed-off-by: Christophe JAILLET --- I guess

[PATCH] drivers/pci/host/vmd: Fix suspend handlers unused warning

2016-11-26 Thread Borislav Petkov
From: Borislav Petkov Fix: drivers/pci/host/vmd.c:731:12: warning: ‘vmd_suspend’ defined but not used [-Wunused-function] static int vmd_suspend(struct device *dev) ^ drivers/pci/host/vmd.c:739:12: warning: ‘vmd_resume’ defined but not used [-Wunused-function] static in

Re: net: GPF in eth_header

2016-11-26 Thread Eric Dumazet
On Sat, Nov 26, 2016 at 9:30 AM, Dmitry Vyukov wrote: > Hello, > > The following program triggers GPF in eth_header: > > https://gist.githubusercontent.com/dvyukov/613cadf05543b55a419f237e419cd495/raw/5471231523d1a07c3de55f11f87472c2816ee06c/gistfile1.txt > > On commit 16ae16c6e5616c084168740990fc

Re: [PATCH v2] mfd: twl-core: make driver DT only

2016-11-26 Thread Nicolae Rosia
Hi, Please ignore this patch, I've sent it in a patch series here [0] Thanks, Nicolae [0] https://www.spinics.net/lists/kernel/msg2392364.html

Re: drm: GPF in drm_getcap

2016-11-26 Thread David Herrmann
Hi On Sat, Nov 26, 2016 at 7:07 PM, Dmitry Vyukov wrote: > grep "card0" dmesg: > [5.298617] device: 'card0': device_add > [5.298946] PM: Adding info for No Bus:card0 > [6.436178] device: 'card0': device_add > [6.436488] PM: Adding info for No Bus:card0 > > > # ls -l /dev/dri/card0

[PATCH v3] Fixes for compiling with clang

2016-11-26 Thread Peter Foley
Move definition of HOSTCC to allow use of cc-name. Suppress warnings about unsupported optimization options. Disable clang's integrated assembler which is incompatible with kernel asm constructs. Changes from v1: * Move the $(cc-name) conditional below the definition of $(CC) Changes from v2: * Ac

[PATCH 1/5] mfd: twl-core: make driver DT only

2016-11-26 Thread Nicolae Rosia
All users are DT-only and it makes no sense to keep unused code Signed-off-by: Nicolae Rosia --- drivers/mfd/Kconfig| 1 + drivers/mfd/twl-core.c | 399 + 2 files changed, 8 insertions(+), 392 deletions(-) diff --git a/drivers/mfd/Kconfig b/

[PATCH 5/5] mfd: twl: use mfd_add_devices for TWL6032 regulator

2016-11-26 Thread Nicolae Rosia
TWL6032 regulator driver uses the drvdata twl_priv pointer. In order to avoid accessing an invalid drvdata when the driver gets unbinded, make sure we remove the child devices before deleting the drvdata. Signed-off-by: Nicolae Rosia --- drivers/mfd/twl-core.c | 22 ++ 1 file

[PATCH 2/5] mfd: twl: remove useless header

2016-11-26 Thread Nicolae Rosia
This header has one user, twl-core.c . Remove it before it gets more users. Signed-off-by: Nicolae Rosia --- drivers/mfd/twl-core.c| 8 ++-- drivers/mfd/twl-core.h| 10 -- drivers/mfd/twl4030-irq.c | 2 -- drivers/mfd/twl6030-irq.c | 2 -- 4 files changed, 6 insertions(+),

[PATCH 4/5] regulator: Add support for TI TWL6032

2016-11-26 Thread Nicolae Rosia
The TWL6032 PMIC is similar to TWL6030, has different output names, and regulator control logic. It is used on Barnes & Noble Nook HD and HD+. Signed-off-by: Nicolae Rosia --- .../bindings/regulator/twl6032-regulator.txt | 109 drivers/regulator/Kconfig | 7

[PATCH 05/39] mtd: nand: denali: fix comment of denali_nand_info::flash_mem

2016-11-26 Thread Masahiro Yamada
The same comment "Mapped io reg base address" for flash_reg and flash_mem probably due to the mistake of copy-paste work. Of course, the latter is not the register base address. Reword the comments using the terminology in the Denali User's Guide. Signed-off-by: Masahiro Yamada --- drivers/mtd

[PATCH 03/39] mtd: nand: denali: remove redundant define of BANK(x)

2016-11-26 Thread Masahiro Yamada
This macro is defined twice in denali.c (around line 103 and line 656), so remove the second one. Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/denali.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c index 9b3140f..61e1e33 100644 -

[PATCH 18/39] mtd: nand: denali: move denali_read_page_raw() above denali_read_page()

2016-11-26 Thread Masahiro Yamada
This will be needed in the next commit to call denali_read_page_raw() from denali_read_page(). Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/denali.c | 76 +++ 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/drivers/mtd/nand/dena

[PATCH 01/39] mtd: nand: allow to set only one of ECC size and ECC strength from DT

2016-11-26 Thread Masahiro Yamada
Currently, it is valid to specify both "nand-ecc-step-size" and "nand-ecc-strength", but not allowed to set only one of them. This requirement has a conflict with "nand-ecc-maximize"; this flag is used when you want the driver to choose the best ECC strength. If "nand-ecc-maximize" is set, "nand-e

[PATCH 3/5] mfd: twl: move structure definitions to a public header

2016-11-26 Thread Nicolae Rosia
We want to get rid of exported symbols and have the child devices use structure members directly. Move the structure definitions to header and set drvdata so child devices can access it. Signed-off-by: Nicolae Rosia --- drivers/mfd/twl-core.c | 27 --- include/linux

  1   2   3   >