Re: [PATCH v2 04/10] input: axp20x-pek: convert platform driver to use dev_groups

2019-08-11 Thread Dmitry Torokhov
On Wed, Jul 31, 2019 at 02:43:43PM +0200, Greg Kroah-Hartman wrote: > Platform drivers now have the option to have the platform core create > and remove any needed sysfs attribute files. So take advantage of that > and do not register "by hand" a sysfs group of attributes. > > Cc: Dmitry Torokhov

[PATCH 2/4] ia64: annotate switch fallthroughs in ia64_handle_unaligned

2019-08-11 Thread Christoph Hellwig
Replace the "no break" comments with something that the compiler recognizes. Signed-off-by: Christoph Hellwig --- arch/ia64/kernel/unaligned.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/ia64/kernel/unaligned.c b/arch/ia64/kernel/unaligned.c index eb7d5df59fa3.

[PATCH 4/4] kernel: only define task_struct_whitelist conditionally

2019-08-11 Thread Christoph Hellwig
If CONFIG_ARCH_TASK_STRUCT_ALLOCATOR is set task_struct_whitelist is never called, and thus generates a compiler warning. Signed-off-by: Christoph Hellwig --- kernel/fork.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/fork.c b/kernel/fork.c index 2852d0e76ea3..f79e3da0caaf 100644

[PATCH 3/4] ia64/kprobes: remove the unused ia64_get_bsp_cfm function

2019-08-11 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- arch/ia64/kernel/kprobes.c | 26 -- 1 file changed, 26 deletions(-) diff --git a/arch/ia64/kernel/kprobes.c b/arch/ia64/kernel/kprobes.c index 5de801a2c0f0..b8356edbde65 100644 --- a/arch/ia64/kernel/kprobes.c +++ b/arch/ia64/kernel/kp

fix misc compiler warnings in the ia64 build

2019-08-11 Thread Christoph Hellwig
Hi Tony, this little series fixes various warnings I see in ia64 builds.

[PATCH 1/4] ia64: annotate a switch fallthrough in ia64_do_signal

2019-08-11 Thread Christoph Hellwig
Also reindent the switch statement to use the normal kernel style while at it. Signed-off-by: Christoph Hellwig --- arch/ia64/kernel/signal.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/ia64/kernel/signal.c b/arch/ia64/kernel/signal.c index e5044aed9452..d

Re: [PATCH] dt-bindings: mfd: rn5t618: Document optional property system-power-controller

2019-08-11 Thread Jonathan Neuschäfer
On Mon, Aug 12, 2019 at 07:25:20AM +0100, Lee Jones wrote: > On Thu, 08 Aug 2019, Jonathan Neuschäfer wrote: > > On Fri, Feb 01, 2019 at 09:24:11AM +, Lee Jones wrote: > > > On Tue, 29 Jan 2019, Jonathan Neuschäfer wrote: > > > > Documentation/devicetree/bindings/mfd/rn5t618.txt | 5 + > >

Re: [PATCH v4 2/3] dt-bindings: eeprom: at25: Add Anvo ANV32E61W

2019-08-11 Thread Krzysztof Kozlowski
On Thu, 8 Aug 2019 at 20:09, Schrempf Frieder wrote: > > On 08.08.19 19:26, Krzysztof Kozlowski wrote: > > Document the compatible for ANV32E61W EEPROM chip. > > This chip is actually not an EEPROM, but a SPI nvSRAM. It can be > interfaced by the at25 driver similar to an EEPROM. This is not the >

Re: [PATCH v2 02/24] EDAC, ghes: Fix grain calculation

2019-08-11 Thread Robert Richter
On 09.08.19 15:15:59, Borislav Petkov wrote: > On Mon, Jun 24, 2019 at 03:08:57PM +, Robert Richter wrote: > > The conversion from the physical address mask to a grain (defined as > > granularity in bytes) is broken: > > > > e->grain = ~(mem_err->physical_addr_mask & ~PAGE_MASK); > > > >

Re: [PATCH v4 1/2] perf machine: Support arch's specific kernel start address

2019-08-11 Thread Adrian Hunter
On 10/08/19 10:21 AM, Leo Yan wrote: > machine__get_kernel_start() gives out the kernel start address; some > architectures need to tweak the start address so that can reflect the > kernel start address correctly. This is not only for x86_64 arch, but > it is also required by other architectures,

Re: [EXT] Re: i2c: imx: support slave mode for imx I2C driver

2019-08-11 Thread Sascha Hauer
On Fri, Aug 09, 2019 at 04:04:45AM +, Biwen Li wrote: > > > > Hi, > > > > On Thu, Aug 08, 2019 at 11:53:43AM +0800, Biwen Li wrote: > > > The patch supports slave mode for imx I2C driver > > > > > > Signed-off-by: Biwen Li > > > --- > > > drivers/i2c/busses/i2c-imx.c | 199 > > > +++

Re: [PATCH 2/2] vfio_pci: make use of update_irq_devid and optimize irq ops

2019-08-11 Thread luoben
在 2019/8/12 下午1:44, Yunsheng Lin 写道: On 2019/8/8 20:07, Ben Luo wrote: When userspace (e.g. qemu) triggers a switch between KVM irqfd and userspace eventfd, only dev_id of irq action (i.e. the "trigger" in this patch's context) will be changed, but a free-then-request-irq action is taken in cu

Re: [linux-sunxi] [PATCH v5 3/3] arm64: defconfig: Enable Sun4i SPDIF module

2019-08-11 Thread Chen-Yu Tsai
On Mon, Aug 12, 2019 at 4:32 AM Clément Péron wrote: > > Allwinner A64 and H6 use the Sun4i SPDIF driver. > > Enable this to allow a proper support. > > Signed-off-by: Clément Péron Applied. Thanks.

[PATCH] rtc: bd70528: fix driver dependencies

2019-08-11 Thread Matti Vaittinen
With CONFIG_BD70528_WATCHDOG=m, a built-in rtc driver cannot call into the low-level functions that are part of the watchdog module: drivers/rtc/rtc-bd70528.o: In function `bd70528_set_time': rtc-bd70528.c:(.text+0x22c): undefined reference to `bd70528_wdt_lock' rtc-bd70528.c:(.text+0x2a8): undefi

[PATCH] net/mlx4_en: fix a memory leak bug

2019-08-11 Thread Wenwen Wang
In mlx4_en_config_rss_steer(), 'rss_map->indir_qp' is allocated through kzalloc(). After that, mlx4_qp_alloc() is invoked to configure RSS indirection. However, if mlx4_qp_alloc() fails, the allocated 'rss_map->indir_qp' is not deallocated, leading to a memory leak bug. To fix the above issue, add

Re: [linux-sunxi] [PATCH v5 1/3] arm64: dts: allwinner: Add SPDIF node for Allwinner H6

2019-08-11 Thread Chen-Yu Tsai
On Mon, Aug 12, 2019 at 12:52 PM Chen-Yu Tsai wrote: > > Hi, > > On Mon, Aug 12, 2019 at 4:31 AM Clément Péron wrote: > > > > The Allwinner H6 has a SPDIF controller called OWA (One Wire Audio). > > > > Only one pinmuxing is available so set it as default. > > > > Signed-off-by: Clément Péron >

Re: [PATCH v2 3/4] PCI: pciehp: Replace pciehp_set_attention_status()

2019-08-11 Thread Lukas Wunner
On Sun, Aug 11, 2019 at 10:59:43PM +0300, Denis Efremov wrote: > +#define pciehp_set_attention_status(ctrl, status) \ > + pciehp_set_indicators(ctrl, PWR_NONE, (status == 0 ? ATTN_OFF : status)) Reviewed-by: Lukas Wunner Good catch regarding the translation of the "off" value that's needed h

Re: [PATCH v2 1/4] PCI: pciehp: Add pciehp_set_indicators() to jointly set LED indicators

2019-08-11 Thread Lukas Wunner
On Sun, Aug 11, 2019 at 10:59:41PM +0300, Denis Efremov wrote: > Add pciehp_set_indicators() to set power and attention indicators with a > single register write. Thus, avoiding waiting twice for Command Complete. > enum pciehp_indicator introduced to switch between the indicators statuses. > > Si

Re: [PATCH] dt-bindings: mfd: rn5t618: Document optional property system-power-controller

2019-08-11 Thread Lee Jones
On Thu, 08 Aug 2019, Jonathan Neuschäfer wrote: > On Fri, Feb 01, 2019 at 09:24:11AM +, Lee Jones wrote: > > On Tue, 29 Jan 2019, Jonathan Neuschäfer wrote: > > > > > The RN5T618 family of PMICs can be used as system management > > > controllers, in which case they handle poweroff and restart

[git pull] habanalabs fixes for 5.3-rc5

2019-08-11 Thread Oded Gabbay
Hello Greg, This is habanalabs fixes pull request for 5.3-rc5. It is a bit larger than what I would like at this stage but it contains four very important fixes when running on s390 architecture. With these fixes the driver has been validated as fully functional on s390 (which is BE). In addition

Re: [PATCH 1/7] pwm: jz4740: Obtain regmap from parent node

2019-08-11 Thread Uwe Kleine-König
Hello Paul, On Fri, Aug 09, 2019 at 07:04:56PM +0200, Paul Cercueil wrote: > Le ven. 9 août 2019 à 18:51, Uwe =?iso-8859-1?q?Kleine-K=F6nig?= > a écrit : > > On Fri, Aug 09, 2019 at 02:30:25PM +0200, Paul Cercueil wrote: > > > The TCU registers are shared between a handful of drivers, accessing

Re: cleanup the walk_page_range interface

2019-08-11 Thread Mike Rapoport
On Thu, Aug 08, 2019 at 11:56:32PM +0200, Christoph Hellwig wrote: > On Thu, Aug 08, 2019 at 10:50:37AM -0700, Linus Torvalds wrote: > > > Note that both Thomas and Steven have series touching this area pending, > > > and there are a couple consumer in flux too - the hmm tree already > > > conflict

Re: [PATCH 4/7] pwm: jz4740: Improve algorithm of clock calculation

2019-08-11 Thread Uwe Kleine-König
Hello Paul, On Fri, Aug 09, 2019 at 07:14:45PM +0200, Paul Cercueil wrote: > Le ven. 9 août 2019 à 19:05, Uwe =?iso-8859-1?q?Kleine-K=F6nig?= > a écrit : > > On Fri, Aug 09, 2019 at 02:30:28PM +0200, Paul Cercueil wrote: > > > The previous algorithm hardcoded details about how the TCU clocks > >

Re: [PATCH] x86/apic: Handle missing global clockevent gracefully

2019-08-11 Thread Daniel Drake
On Fri, Aug 9, 2019 at 8:54 PM Thomas Gleixner wrote: > Some newer machines do not advertise legacy timers. The kernel can handle > that situation if the TSC and the CPU frequency are enumerated by CPUID or > MSRs and the CPU supports TSC deadline timer. If the CPU does not support > TSC deadline

linux-next: build failure after merge of the rcu tree

2019-08-11 Thread Stephen Rothwell
Hi all, After merging the rcu tree, today's linux-next build (x86_64 allmodconfig) failed like this: arch/x86/xen/smp_pv.c: In function 'xen_pv_play_dead': arch/x86/xen/smp_pv.c:439:2: error: implicit declaration of function 'tick_nohz_idle_stop_tick_protected'; did you mean 'tick_nohz_idle_stop

Re: [PATCH 3/7] pwm: jz4740: Drop dependency on MACH_INGENIC

2019-08-11 Thread Uwe Kleine-König
On Fri, Aug 09, 2019 at 11:40:59PM +0200, Paul Cercueil wrote: > > > Le ven. 9 août 2019 à 18:41, Uwe =?iso-8859-1?q?Kleine-K=F6nig?= > a écrit : > > On Fri, Aug 09, 2019 at 02:30:27PM +0200, Paul Cercueil wrote: > > > Depending on MACH_INGENIC prevent us from creating a generic kernel > > > th

[PATCH] e1000: fix memory leaks

2019-08-11 Thread Wenwen Wang
In e1000_set_ringparam(), 'tx_old' and 'rx_old' are not deallocated if e1000_up() fails, leading to memory leaks. Refactor the code to fix this issue. Signed-off-by: Wenwen Wang --- drivers/net/ethernet/intel/e1000/e1000_ethtool.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) dif

Re: [PATCH 6/7] pwm: jz4740: Make PWM start with the active part

2019-08-11 Thread Uwe Kleine-König
On Fri, Aug 09, 2019 at 07:33:24PM +0200, Paul Cercueil wrote: > > > Le ven. 9 août 2019 à 19:10, Uwe =?iso-8859-1?q?Kleine-K=F6nig?= > a écrit : > > On Fri, Aug 09, 2019 at 02:30:30PM +0200, Paul Cercueil wrote: > > > The PWM will always start with the inactive part. To counter that, > > > wh

Re: [PATCH net-next] net: can: Fix compiling warning

2019-08-11 Thread maowenan
On 2019/8/7 0:41, Oliver Hartkopp wrote: > Hello Dan, > > On 06/08/2019 15.52, Dan Carpenter wrote: >> On Fri, Aug 02, 2019 at 10:10:20AM +0200, Oliver Hartkopp wrote: > >>> Btw. what kind of compiler/make switches are you using so that I can see >>> these warnings myself the next time? >> >>

Re: [PATCH 2/2] vfio_pci: make use of update_irq_devid and optimize irq ops

2019-08-11 Thread Yunsheng Lin
On 2019/8/8 20:07, Ben Luo wrote: > When userspace (e.g. qemu) triggers a switch between KVM > irqfd and userspace eventfd, only dev_id of irq action > (i.e. the "trigger" in this patch's context) will be > changed, but a free-then-request-irq action is taken in > current code. And, irq affinity se

Re: [PATCH 1/2] powerpc: Allow flush_icache_range to work across ranges >4GB

2019-08-11 Thread Christophe Leroy
Le 12/08/2019 à 03:19, Alastair D'Silva a écrit : On Fri, 2019-08-09 at 10:59 +0200, Christophe Leroy wrote: Le 09/08/2019 à 02:45, Alastair D'Silva a écrit : From: Alastair D'Silva When calling flush_icache_range with a size >4GB, we were masking off the upper 32 bits, so we would incorr

Re: [PATCH v3 2/2] virtio: decrement avail idx with buffer detach for packed ring

2019-08-11 Thread Pankaj Gupta
> > On 2019/8/9 下午2:48, Pankaj Gupta wrote: > > This patch decrements 'next_avail_idx' count when detaching a buffer > > from vq for packed ring code. Split ring code already does this in > > virtqueue_detach_unused_buf_split function. This updates the > > 'next_avail_idx' to the previous correc

Re: [PATCH] powerpc: Avoid clang warnings around setjmp and longjmp

2019-08-11 Thread Christophe Leroy
Le 12/08/2019 à 04:32, Nathan Chancellor a écrit : Commit aea447141c7e ("powerpc: Disable -Wbuiltin-requires-header when setjmp is used") disabled -Wbuiltin-requires-header because of a warning about the setjmp and longjmp declarations. r367387 in clang added another diagnostic around this, c

Re: Add SPDX kernel tree to linux-next

2019-08-11 Thread Stephen Rothwell
Hi Greg, On Mon, 12 Aug 2019 06:57:31 +0200 Greg KH wrote: > > On Mon, Aug 12, 2019 at 07:26:59AM +1000, Stephen Rothwell wrote: > > Added from today. One question: is this meant to be a -next tree or a > > -fixes tree? > > A "-fixes" tree, it should be sent to Linus for the latest release.

Re: [PATCH v3 1/2] virtio_console: free unused buffers with port delete

2019-08-11 Thread Pankaj Gupta
> > On Fri, Aug 09, 2019 at 12:18:46PM +0530, Pankaj Gupta wrote: > > The commit a7a69ec0d8e4 ("virtio_console: free buffers after reset") > > deferred detaching of unused buffer to virtio device unplug time. > > This causes unplug/replug of single port in virtio device with an > > error "Error

[PATCH] [semaphore] Removed redundant code from semaphore's down family of function

2019-08-11 Thread Satendra Singh Thakur
-The semaphore code has four funcs down, down_interruptible, down_killable, down_timeout -These four funcs have almost similar code except that they all call lower level function __down_xyz. -This lower level func in-turn call inline func __down_common with appropriate arguments. -This patch create

Re: [PATCH 3/5] lib/mpi: Fix for building for MIPS32 with Clang

2019-08-11 Thread Nathan Chancellor
On Sun, Aug 11, 2019 at 10:23:55PM -0700, Nathan Chancellor wrote: > On Sun, Aug 11, 2019 at 08:31:18PM -0700, Nathan Chancellor wrote: > > From: Vladimir Serbinenko > > > > clang doesn't recognise =l / =h assembly operand specifiers but apparently > > handles C version well. > > > > lib/mpi/gen

Re: [PATCH 4/5] lib/mpi: Fix for building for MIPS64 with Clang

2019-08-11 Thread Nathan Chancellor
On Sun, Aug 11, 2019 at 08:31:19PM -0700, Nathan Chancellor wrote: > From: Werner Koch > > * mpi/longlong.h [MIPS64][__clang__]: Use the C version like we > already do for 32 bit MIPS > > clang errors: > > lib/mpi/generic_mpih-mul1.c:37:24: error: invalid use of a cast in a > inline asm context

Re: [PATCH 3/5] lib/mpi: Fix for building for MIPS32 with Clang

2019-08-11 Thread Nathan Chancellor
On Sun, Aug 11, 2019 at 08:31:18PM -0700, Nathan Chancellor wrote: > From: Vladimir Serbinenko > > clang doesn't recognise =l / =h assembly operand specifiers but apparently > handles C version well. > > lib/mpi/generic_mpih-mul1.c:37:24: error: invalid use of a cast in a > inline asm context re

Re: [PATCH 1/2] genirq/affinity: improve __irq_build_affinity_masks()

2019-08-11 Thread Ming Lei
On Sat, Aug 10, 2019 at 7:05 AM Ming Lei wrote: > > On Fri, Aug 9, 2019 at 10:44 PM Keith Busch wrote: > > > > On Fri, Aug 09, 2019 at 06:23:09PM +0800, Ming Lei wrote: > > > One invariant of __irq_build_affinity_masks() is that all CPUs in the > > > specified masks( cpu_mask AND node_to_cpumask

Re: [PATCH] Makefile: Convert -Wimplicit-fallthrough=3 to just -Wimplicit-fallthrough for clang

2019-08-11 Thread Joe Perches
On Sat, 2019-08-10 at 20:54 -0700, Joe Perches wrote: > On Sat, 2019-08-10 at 20:17 -0700, Nathan Chancellor wrote: > > On Sat, Aug 10, 2019 at 08:06:05PM -0700, Joe Perches wrote: > > > On Sat, 2019-08-10 at 19:04 -0700, Nathan Chancellor wrote: > > > > On a tangential note, how are you planning o

Re: [PATCH v3 2/2] virtio: decrement avail idx with buffer detach for packed ring

2019-08-11 Thread Pankaj Gupta
> On Fri, Aug 09, 2019 at 12:18:47PM +0530, Pankaj Gupta wrote: > > This patch decrements 'next_avail_idx' count when detaching a buffer > > from vq for packed ring code. Split ring code already does this in > > virtqueue_detach_unused_buf_split function. This updates the > > 'next_avail_idx' to

linux-next: build warning after merge of the security tree

2019-08-11 Thread Stephen Rothwell
Hi all, After merging the security tree, today's linux-next build (powerpc ppc64_defconfig) produced this warning: kernel/kexec_file.c: In function 'kimage_file_prepare_segments': kernel/kexec_file.c:189:14: warning: unused variable 'reason' [-Wunused-variable] const char *reason;

linux-next: build failure after merge of the security tree

2019-08-11 Thread Stephen Rothwell
Hi all, After merging the security tree, today's linux-next build (arm multi_v7_defconfig) failed like below. Caused by commit 45d29f9e9b8b ("security: Support early LSMs") I have added the following fix for today: From: Stephen Rothwell Date: Mon, 12 Aug 2019 14:54:20 +1000 Subject: [PATCH

Re: Add SPDX kernel tree to linux-next

2019-08-11 Thread Greg KH
On Mon, Aug 12, 2019 at 07:26:59AM +1000, Stephen Rothwell wrote: > Hi Greg, > > On Sat, 10 Aug 2019 13:55:33 +0200 Greg KH wrote: > > > > I realized that I've been sending patches to Linus from my "SPDX" kernel > > tree for a few releases now, and it's not included in linux-next, which > > is n

Re: [linux-sunxi] [PATCH v5 1/3] arm64: dts: allwinner: Add SPDIF node for Allwinner H6

2019-08-11 Thread Chen-Yu Tsai
Hi, On Mon, Aug 12, 2019 at 4:31 AM Clément Péron wrote: > > The Allwinner H6 has a SPDIF controller called OWA (One Wire Audio). > > Only one pinmuxing is available so set it as default. > > Signed-off-by: Clément Péron > --- > arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 38

Re: [PATCH net] net: phy: rtl8211f: do a double read to get real time link status

2019-08-11 Thread Yonglong Liu
On 2019/8/10 4:05, Heiner Kallweit wrote: > On 09.08.2019 06:57, Yonglong Liu wrote: >> >> >> On 2019/8/9 4:34, Andrew Lunn wrote: >>> On Thu, Aug 08, 2019 at 10:01:39PM +0200, Heiner Kallweit wrote: On 08.08.2019 21:40, Andrew Lunn wrote: >> @@ -568,6 +568,11 @@ int phy_start_aneg(stru

linux-next: manual merge of the security tree with Linus' tree

2019-08-11 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the security tree got a conflict in: kernel/trace/trace_kprobe.c between commit: 715fa2fd4c6c ("tracing/kprobe: Check registered state using kprobe") from Linus' tree and commit: e87402c063fd ("lockdown: Lock down tracing and perf kprobes when in con

Re: [PATCH 2/5] MIPS/ptrace: Update mips_get_syscall_arg's return type

2019-08-11 Thread Paul Burton
Hello, Nathan Chancellor wrote: > clang warns: > > arch/mips/include/asm/syscall.h:136:3: error: variable 'ret' is > uninitialized when used here [-Werror,-Wuninitialized] > ret |= mips_get_syscall_arg(args++, task, regs, i++); > ^~~ > arch/mips/include/asm/syscall

Re: [PATCH 5/5] MIPS: tlbex: Explicitly cast _PAGE_NO_EXEC to a boolean

2019-08-11 Thread Paul Burton
Hello, Nathan Chancellor wrote: > clang warns: > > arch/mips/mm/tlbex.c:634:19: error: use of logical '&&' with constant > operand [-Werror,-Wconstant-logical-operand] > if (cpu_has_rixi && _PAGE_NO_EXEC) { > ^ ~ > arch/mips/mm/tlbex.c:634:19: note: u

Re: [PATCH 1/5] MIPS: Don't use bc_false uninitialized in __mm_isBranchInstr

2019-08-11 Thread Paul Burton
Hello, Nathan Chancellor wrote: > clang warns: > > arch/mips/kernel/branch.c:148:8: error: variable 'bc_false' is used > uninitialized whenever switch case is taken > [-Werror,-Wsometimes-uninitialized] > case mm_bc2t_op: > ^~ > arch/mips/kernel/branch

Re: [PATCH v3 2/2] virtio: decrement avail idx with buffer detach for packed ring

2019-08-11 Thread Jason Wang
On 2019/8/9 下午2:48, Pankaj Gupta wrote: This patch decrements 'next_avail_idx' count when detaching a buffer from vq for packed ring code. Split ring code already does this in virtqueue_detach_unused_buf_split function. This updates the 'next_avail_idx' to the previous correct index after an un

linux-next: manual merge of the security tree with the vfs tree

2019-08-11 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the security tree got a conflict in: fs/tracefs/inode.c between commit: 67782f8ae148 ("vfs: Convert tracefs to use the new mount API") from the vfs tree and commit: 757ff7244358 ("tracefs: Restrict tracefs when the kernel is locked down") from the se

Re: [PATCH] net: tc35815: Explicitly check NET_IP_ALIGN is not zero in tc35815_rx

2019-08-11 Thread David Miller
From: Nathan Chancellor Date: Sun, 11 Aug 2019 20:13:45 -0700 > clang warns: > > drivers/net/ethernet/toshiba/tc35815.c:1507:30: warning: use of logical > '&&' with constant operand [-Wconstant-logical-operand] > if (!HAVE_DMA_RXALIGN(lp) && NET_IP_ALIGN) >

Re: [PATCH v3] tipc: initialise addr_trail_end when setting node addresses

2019-08-11 Thread David Miller
From: Chris Packham Date: Mon, 12 Aug 2019 08:18:25 +1200 > We set the field 'addr_trial_end' to 'jiffies', instead of the current > value 0, at the moment the node address is initialized. This guarantees > we don't inadvertently enter an address trial period when the node > address is explicitly

Re: [PATCH net v3] net: dsa: Check existence of .port_mdb_add callback before calling it

2019-08-11 Thread David Miller
From: Chen-Yu Tsai Date: Sun, 11 Aug 2019 22:18:25 +0800 > From: Chen-Yu Tsai > > The dsa framework has optional .port_mdb_{prepare,add,del} callback fields > for drivers to handle multicast database entries. When adding an entry, the > framework goes through a prepare phase, then a commit phas

Re: [PATCH] net: nps_enet: Fix function names in doc comments

2019-08-11 Thread David Miller
From: Jonathan Neuschäfer Date: Sat, 10 Aug 2019 13:11:56 +0200 > Adjust the function names in two doc comments to match the corresponding > functions. > > Signed-off-by: Jonathan Neuschäfer Applied.

Re: [PATCH net] rxrpc: Fix local refcounting

2019-08-11 Thread David Miller
From: David Howells Date: Fri, 09 Aug 2019 22:47:47 +0100 > Fix rxrpc_unuse_local() to handle a NULL local pointer as it can be called > on an unbound socket on which rx->local is not yet set. > > The following reproduced (includes omitted): > > int main(void) > { > so

[PATCH 1/4] dt-bingings: PCI: Remove the num-lanes from Required properties

2019-08-11 Thread Z.q. Hou
From: Hou Zhiqiang The num-lanes is not a mandatory property, e.g. on FSL Layerscape SoCs, the PCIe link training is completed automatically base on the selected SerDes protocol, it doesn't need the num-lanes to set-up the link width. It has been added in the Optional properties. This patch is t

[PATCH 2/4] PCI: dwc: Return directly when num-lanes is not found

2019-08-11 Thread Z.q. Hou
From: Hou Zhiqiang The num-lanes is optional, so probably it isn't added on some platforms. The subsequent programming is base on the num-lanes, hence return when it is not found. Signed-off-by: Hou Zhiqiang --- drivers/pci/controller/dwc/pcie-designware.c | 6 -- 1 file changed, 4 inserti

[PATCH 0/4] Layerscape: Remove num-lanes property from PCIe nodes

2019-08-11 Thread Z.q. Hou
From: Hou Zhiqiang On FSL Layerscape SoCs, the number of lanes assigned to PCIe controller is not fixed, it is determined by the selected SerDes protocol. The current num-lanes indicates the max lanes PCIe controller can support up to, instead of the lanes assigned to the PCIe controller. This ca

Re: [PATCH][net-next] rxrpc: fix uninitialized return value in variable err

2019-08-11 Thread David Miller
From: Colin King Date: Fri, 9 Aug 2019 18:02:59 +0100 > From: Colin Ian King > > An earlier commit removed the setting of err to -ENOMEM so currently > the skb_shinfo(skb)->nr_frags > 16 check returns with an uninitialized > bogus return code. Fix this by setting err to -ENOMEM to restore > t

[PATCH 4/4] arm64: dts: fsl: Remove num-lanes property from PCIe nodes

2019-08-11 Thread Z.q. Hou
From: Hou Zhiqiang On FSL Layerscape SoCs, the number of lanes assigned to PCIe controller is not fixed, it is determined by the selected SerDes protocol in the RCW (Reset Configuration Word), and the PCIe link training is completed automatically base on the selected SerDes protocol, and the link

[PATCH 3/4] ARM: dts: ls1021a: Remove num-lanes property from PCIe nodes

2019-08-11 Thread Z.q. Hou
From: Hou Zhiqiang On FSL Layerscape SoCs, the number of lanes assigned to PCIe controller is not fixed, it is determined by the selected SerDes protocol in the RCW (Reset Configuration Word), and the PCIe link training is completed automatically base on the selected SerDes protocol, and the link

RE: [EXT] Re: i2c: imx: support slave mode for imx I2C driver

2019-08-11 Thread Biwen Li
> On Fri, Aug 09, 2019 at 03:18:01AM +, Biwen Li wrote: > > > > The patch supports slave mode for imx I2C driver > > > > > > > > Signed-off-by: Biwen Li > > > > > > Wow, this is much simpler than the other approach flying around: > > > > > > http://patchwork.ozlabs.org/patch/1124048/ > > > > >

Re: [PATCH 2/2] arm64: allwinner: h6: enable i2c0 in PineH64

2019-08-11 Thread Chen-Yu Tsai
On Sun, Aug 11, 2019 at 5:05 PM Bhushan Shah wrote: > > i2c0 bus is exposed by PI-2 BUS in the PineH64, model B. > > Signed-off-by: Bhushan Shah > --- > arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts | 8 > 1 file changed, 8 insertions(+) > > diff --git a/arch/arm64/boot/dts/allwi

Geld überwiesen

2019-08-11 Thread Mr.WEHNER DAVID M
Büro des Leiters Internationale Überweisung Operation Zenith Bank (UK) Ltd LONDON United Königreich und Irland Tel .: +44 203 389 5674 Fax: +44 704 307 1539 Gruß, Ihre E-Mail-Adresse wurde zufällig in der Zentrale der Zenith Bank, International Transfer Operation in London, Großbritannien, gezog

Re: [PATCH V5 0/9] Fixes for vhost metadata acceleration

2019-08-11 Thread David Miller
From: Jason Wang Date: Mon, 12 Aug 2019 10:44:51 +0800 > On 2019/8/11 上午1:52, Michael S. Tsirkin wrote: >> At this point how about we revert >> 7f466032dc9e5a61217f22ea34b2df932786bbfc >> for this release, and then re-apply a corrected version >> for the next one? > > If possible, consider we've

Re: [PATCH 1/2] arm64: allwinner: h6: add I2C nodes

2019-08-11 Thread Chen-Yu Tsai
On Sun, Aug 11, 2019 at 5:05 PM Bhushan Shah wrote: > > Add device-tree nodes for i2c0 to i2c2, and also add relevant pinctrl > nodes. > > Suggested-by: Icenowy Zheng > Signed-off-by: Bhushan Shah > --- > arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 54 > 1 file changed,

Re: [PATCH v4 2/2] RISC-V: Implement sparsemem

2019-08-11 Thread Greentime Hu
Hi Logan, Logan Gunthorpe 於 2019年8月10日 週六 上午3:03寫道: > > > > On 2019-08-09 11:01 a.m., Greentime Hu wrote: > > Hi Logan, > > > > Logan Gunthorpe 於 2019年8月9日 週五 下午11:47寫道: > >> > >> > >> > >> On 2019-08-08 10:23 p.m., Greentime Hu wrote: > >>> diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig >

Re: [PATCH 01/16] ARM: remove ks8695 platform

2019-08-11 Thread Greg Ungerer
Hi Arnd, On 10/8/19 6:27 am, Arnd Bergmann wrote: ks8695 is an older SoC originally made by Kendin, which was later acquired by Micrel, and subsequently by Microchip. The platform port was originally contributed by Andrew Victor and Ben Dooks, and later maintained by Greg Ungerer. When I recen

Re: [PATCH] nfc: st-nci: Fix an incorrect skb_buff size in 'st_nci_i2c_read()'

2019-08-11 Thread David Miller
From: Christophe JAILLET Date: Tue, 6 Aug 2019 16:16:40 +0200 > In 'st_nci_i2c_read()', we allocate a sk_buff with a size of > ST_NCI_I2C_MIN_SIZE + len. > > However, later on, we first 'skb_reserve()' ST_NCI_I2C_MIN_SIZE bytes, then > we 'skb_put()' ST_NCI_I2C_MIN_SIZE bytes. > Finally, if 'le

[PATCH 4/5] lib/mpi: Fix for building for MIPS64 with Clang

2019-08-11 Thread Nathan Chancellor
From: Werner Koch * mpi/longlong.h [MIPS64][__clang__]: Use the C version like we already do for 32 bit MIPS clang errors: lib/mpi/generic_mpih-mul1.c:37:24: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions

[PATCH 1/5] MIPS: Don't use bc_false uninitialized in __mm_isBranchInstr

2019-08-11 Thread Nathan Chancellor
clang warns: arch/mips/kernel/branch.c:148:8: error: variable 'bc_false' is used uninitialized whenever switch case is taken [-Werror,-Wsometimes-uninitialized] case mm_bc2t_op: ^~ arch/mips/kernel/branch.c:157:8: note: uninitialized use occurs here

[PATCH 2/5] MIPS/ptrace: Update mips_get_syscall_arg's return type

2019-08-11 Thread Nathan Chancellor
clang warns: arch/mips/include/asm/syscall.h:136:3: error: variable 'ret' is uninitialized when used here [-Werror,-Wuninitialized] ret |= mips_get_syscall_arg(args++, task, regs, i++); ^~~ arch/mips/include/asm/syscall.h:129:9: note: initialize the variable 'ret' t

[PATCH 0/5] Clang build fixes for MIPS

2019-08-11 Thread Nathan Chancellor
Hi all, As of clang 9.0.0 at r366299 [1], we can build a QEMU bootable malta_defconfig kernel with the following fixes (mostly due to -Werror) and Nick's patch [2]. This has helped catch some potentially dubious behavior with -Wuninitialized, which is stronger than GCC's -Wmaybe-uninitialized. If

[PATCH 5/5] MIPS: tlbex: Explicitly cast _PAGE_NO_EXEC to a boolean

2019-08-11 Thread Nathan Chancellor
clang warns: arch/mips/mm/tlbex.c:634:19: error: use of logical '&&' with constant operand [-Werror,-Wconstant-logical-operand] if (cpu_has_rixi && _PAGE_NO_EXEC) { ^ ~ arch/mips/mm/tlbex.c:634:19: note: use '&' for a bitwise operation if (cpu_

[PATCH 3/5] lib/mpi: Fix for building for MIPS32 with Clang

2019-08-11 Thread Nathan Chancellor
From: Vladimir Serbinenko clang doesn't recognise =l / =h assembly operand specifiers but apparently handles C version well. lib/mpi/generic_mpih-mul1.c:37:24: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions

[PATCH] net: tc35815: Explicitly check NET_IP_ALIGN is not zero in tc35815_rx

2019-08-11 Thread Nathan Chancellor
clang warns: drivers/net/ethernet/toshiba/tc35815.c:1507:30: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand] if (!HAVE_DMA_RXALIGN(lp) && NET_IP_ALIGN) ^ drivers/net/ethernet/tos

Re: [PATCH] syscalls: Update the syscall #defines to match uapi

2019-08-11 Thread Alistair Francis
On Sun, Aug 11, 2019 at 5:00 PM Andy Lutomirski wrote: > > On Fri, Aug 9, 2019 at 6:11 PM Alistair Francis > wrote: > > > > Update the #defines around sys_fstat64() and sys_fstatat64() to match > > the #defines around the __NR3264_fstatat and __NR3264_fstat definitions > > in include/uapi/asm-gen

Re: [PATCH 1/2] genirq: introduce update_irq_devid()

2019-08-11 Thread luoben
在 2019/8/9 上午3:56, Thomas Gleixner 写道: On Thu, 8 Aug 2019, Ben Luo wrote: +int update_irq_devid(unsigned int irq, void *dev_id, void *new_dev_id) +{ + struct irq_desc *desc = irq_to_desc(irq); + struct irqaction *action, **action_ptr; + unsigned long flags; + + WARN(in_

Re: [PATCH v3 1/3] kasan: support backing vmalloc space with real shadow memory

2019-08-11 Thread Daniel Axtens
Mark Rutland writes: > On Thu, Aug 08, 2019 at 06:43:25PM +0100, Mark Rutland wrote: >> On Thu, Aug 08, 2019 at 02:50:37PM +0100, Mark Rutland wrote: >> > Hi Daniel, >> > >> > This is looking really good! >> > >> > I spotted a few more things we need to deal with, so I've suggested some >> > (n

[PATCH v3 1/2] dt-bindings: Add ipsps1 as a trivial device

2019-08-11 Thread John Wang
The ipsps1 is an Inspur Power System power supply unit Signed-off-by: John Wang --- v3: - Fix adding entry to the inappropriate line v2: - No changes. --- Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree

Re: [PATCH v3 4/4] ASoC: codecs: add wsa881x amplifier support

2019-08-11 Thread kbuild test robot
Hi Srinivas, I love your patch! Yet something to improve: [auto build test ERROR on linus/master] [cannot apply to v5.3-rc4 next-20190809] [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/Sriniva

Re: [PATCH V5 0/9] Fixes for vhost metadata acceleration

2019-08-11 Thread Jason Wang
On 2019/8/11 上午1:52, Michael S. Tsirkin wrote: On Fri, Aug 09, 2019 at 01:48:42AM -0400, Jason Wang wrote: Hi all: This series try to fix several issues introduced by meta data accelreation series. Please review. Changes from V4: - switch to use spinlock synchronize MMU notifier with accesso

[PATCH] powerpc: Avoid clang warnings around setjmp and longjmp

2019-08-11 Thread Nathan Chancellor
Commit aea447141c7e ("powerpc: Disable -Wbuiltin-requires-header when setjmp is used") disabled -Wbuiltin-requires-header because of a warning about the setjmp and longjmp declarations. r367387 in clang added another diagnostic around this, complaining that there is no jmp_buf declaration. In fil

[PATCH] i801_smbus: clear SMBALERT status bit and disable SMBALERT interrupt

2019-08-11 Thread lingyxu
From: Lingyan Xu In current i801 driver, SMBALERT interrupt is allowed (Slave Command Register bit2 is 0). But these is no handler for SMBALERT interrupt in i801_isr, if there is SMBALERT interrupt asserted and deasserted, i801 will have an irq flood for the related status bit is setted. So SMBA

Re: [PATCH] iio: adc: sc27xx: Change to polling mode to read data

2019-08-11 Thread Baolin Wang
On Sun, 11 Aug 2019 at 16:03, Jonathan Cameron wrote: > > On Tue, 6 Aug 2019 15:39:45 +0800 > Baolin Wang wrote: > > > Hi Jonathan, > > > > On Mon, 5 Aug 2019 at 21:50, Jonathan Cameron wrote: > > > > > > On Mon, 29 Jul 2019 10:19:48 +0800 > > > Baolin Wang wrote: > > > > > > > Hi Jonathan, > >

Re: [PATCH v2 2/2] mmc: sdhci: sdhci-pci-core: Add Genesis Logic GL975x support

2019-08-11 Thread Ben Chuang
On 8/7/19 8:25 PM, Adrian Hunter wrote: On 26/07/19 5:07 AM, Michael K. Johnson wrote: Add support for the GL9750 and GL9755 chipsets. Signed-off-by: Ben Chuang Co-developed-by: Michael K Johnson Signed-off-by: Michael K Johnson diff --git a/drivers/mmc/host/sdhci-gli.h b/drivers/mmc/host/s

linux-next: manual merge of the net-next tree with the net tree

2019-08-11 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: drivers/net/ethernet/mellanox/mlx5/core/en_tc.c between commit: 93b3586e070b ("net/mlx5: Support inner header match criteria for non decap flow action") from the net tree and commit: 226f2ca3075a ("net/mlx5e: Chan

BUG: Dentry still in use [unmount of nfsd nfsd]

2019-08-11 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:f4eb1423 Merge branch 'for-linus' of git://git.kernel.org/.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=11ab1c7460 kernel config: https://syzkaller.appspot.com/x/.config?x=a4c9e9f08e9e8960 da

RE: [PATCH 1/4] dt-bindings: watchdog: Add i.MX7ULP bindings

2019-08-11 Thread Anson Huang
Hi, Guenter > On Fri, Aug 09, 2019 at 03:13:59PM +0800, Anson Huang wrote: > > Add the watchdog bindings for Freescale i.MX7ULP. > > > > Signed-off-by: Anson Huang > > --- > > .../bindings/watchdog/fsl-imx7ulp-wdt.txt | 22 > ++ > > 1 file changed, 22 insertions(+) >

[RFC PATCH 2/2] mm/gup: introduce vaddr_pin_pages_remote()

2019-08-11 Thread john . hubbard
From: John Hubbard This is the "vaddr_pin_pages" corresponding variant to get_user_pages_remote(), but with FOLL_PIN semantics: the implementation sets FOLL_PIN. That, in turn, means that the pages must ultimately be released by put_user_page*()--typically, via vaddr_unpin_pages*(). Note that th

[RFC PATCH 0/2] mm/gup: introduce vaddr_pin_pages_remote(), FOLL_PIN

2019-08-11 Thread john . hubbard
From: John Hubbard Hi, Dave Chinner's head didn't seem to explode...much, when he saw Ira's series, so I optimistically started taking it from there...this builds on top of Ira's patchset that he just sent out: "[RFC PATCH v2 00/19] RDMA/FS DAX truncate proposal V1,000,002 ;-)" [1] ...whic

[RFC PATCH 1/2] mm/gup: introduce FOLL_PIN flag for get_user_pages()

2019-08-11 Thread john . hubbard
From: John Hubbard FOLL_PIN is set by vaddr_pin_pages(). This is different than FOLL_LONGTERM, because even short term page pins need a new kind of tracking, if those pinned pages' data is going to potentially be modified. This situation is described in more detail in commit fc1d8e7cca2d ("mm: i

RE: [PATCH 2/4] watchdog: Add i.MX7ULP watchdog support

2019-08-11 Thread Anson Huang
Hi, Guenter > On Fri, Aug 09, 2019 at 03:14:00PM +0800, Anson Huang wrote: > > The i.MX7ULP Watchdog Timer (WDOG) module is an independent timer > that > > is available for system use. > > It provides a safety feature to ensure that software is executing as > > planned and that the CPU is not stuc

linux-next: manual merge of the jc_docs tree with the mips tree

2019-08-11 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the jc_docs tree got a conflict in: Documentation/mips/index.rst between commit: 97689a1a3fda ("doc: Add doc for the Ingenic TCU hardware") from the mips tree and commit: 80b1505893b6 ("docs: mips: add to the documentation body as ReST") from the jc_

Re: [PATCH 1/2] augmented rbtree: use max3() in the *_compute_max() function

2019-08-11 Thread Michel Lespinasse
On Sun, Aug 11, 2019 at 11:46 AM Uladzislau Rezki (Sony) wrote: > > Recently there was introduced RB_DECLARE_CALLBACKS_MAX template. > One of the callback, to be more specific *_compute_max(), calculates > a maximum scalar value of node against its left/right sub-tree. > > To simplify the code and

Re: [PATCH 1/1] checkpatch: revert broken NOTIFIER_HEAD check

2019-08-11 Thread Stephen Rothwell
Hi John, On Sun, 11 Aug 2019 15:54:43 -0700 john.hubb...@gmail.com wrote: > > From: John Hubbard > > commit 1a47005dd5aa ("checkpatch: add *_NOTIFIER_HEAD as var > definition") causes the following warning when run on some > patches: > > Unescaped left brace in regex is passed through in regex;

Re: [PATCH 1/2] powerpc: Allow flush_icache_range to work across ranges >4GB

2019-08-11 Thread Alastair D'Silva
On Fri, 2019-08-09 at 10:59 +0200, Christophe Leroy wrote: > > Le 09/08/2019 à 02:45, Alastair D'Silva a écrit : > > From: Alastair D'Silva > > > > When calling flush_icache_range with a size >4GB, we were masking > > off the upper 32 bits, so we would incorrectly flush a range > > smaller > > t

  1   2   3   >