Re: [PATCH] iio:adc:at91-sama5d2: make array startup_lookup static to reduce code size

2017-07-09 Thread Jonathan Cameron
On Fri, 7 Jul 2017 17:08:35 +0100 Colin King wrote: > From: Colin Ian King > > Making the const array startup_lookup static rather having it on the > stack saves 69 bytes. Add in missing int specifier to clean up a > checkpatch warning. > > Before: >text data bss dec

Re: [GIT pull] smp/hotplug updates for 4.13

2017-07-09 Thread Linus Torvalds
On Sun, Jul 9, 2017 at 2:07 AM, Thomas Gleixner wrote: > > + /* Wait for the CPU to reach CPUHP_AP_ONLINE_IDLE */ > wait_for_completion(&st->done); > + BUG_ON(!cpu_online(cpu)); I realize this isn't actually a new BUG_ON(), just a moved one, but can we *please* just agree to g

Proposal

2017-07-09 Thread Ms.Lev
I have a confidential deal for you, please contact me for more details via this email immediately.

[PATCH v2 15/28] metag: move generic-y of exported headers to uapi/asm/Kbuild

2017-07-09 Thread Masahiro Yamada
Since commit fcc8487d477a ("uapi: export all headers under uapi directories"), all (and only) headers under uapi directories are exported, but asm-generic wrappers are still exceptions. To complete de-coupling the uapi from kernel headers, move generic-y of exported headers to uapi/asm/Kbuild. Wi

[PATCH v2 04/28] arm64: move generic-y of exported headers to uapi/asm/Kbuild

2017-07-09 Thread Masahiro Yamada
Since commit fcc8487d477a ("uapi: export all headers under uapi directories"), all (and only) headers under uapi directories are exported, but asm-generic wrappers are still exceptions. To complete de-coupling the uapi from kernel headers, move generic-y of exported headers to uapi/asm/Kbuild. Wi

[PATCH v2 19/28] openrisc: move generic-y of exported headers to uapi/asm/Kbuild

2017-07-09 Thread Masahiro Yamada
Since commit fcc8487d477a ("uapi: export all headers under uapi directories"), all (and only) headers under uapi directories are exported, but asm-generic wrappers are still exceptions. To complete de-coupling the uapi from kernel headers, move generic-y of exported headers to uapi/asm/Kbuild. Wi

[PATCH v2 27/28] kbuild: split exported generic header creation into uapi-asm-generic

2017-07-09 Thread Masahiro Yamada
When we install headers, we are interested only in headers under uapi directories. Split out uapi-asm-generic target and make headers_install depend on it. It will avoid generating unneeded asm-generic wrappers. Signed-off-by: Masahiro Yamada --- Makefile | 7 --- 1 file changed, 4 insert

[PATCH v2 28/28] kbuild: remove wrapper files handling from Makefile.headersinst

2017-07-09 Thread Masahiro Yamada
scripts/Makefike.headersinst creates asm-generic wrappers by itself because scripts/Makefile.asm-generic created some of exported wrappers outside uapi directories. Now this distortion has been fixed. scripts/Makefile.headersinst can simply copy wrappers created by scripts/Makefile.asm-generic.

[PATCH v2 24/28] unicore32: move generic-y of exported headers to uapi/asm/Kbuild

2017-07-09 Thread Masahiro Yamada
Since commit fcc8487d477a ("uapi: export all headers under uapi directories"), all (and only) headers under uapi directories are exported, but asm-generic wrappers are still exceptions. To complete de-coupling the uapi from kernel headers, move generic-y of exported headers to uapi/asm/Kbuild. Wi

[PATCH v2 25/28] xtensa: move generic-y of exported headers to uapi/asm/Kbuild

2017-07-09 Thread Masahiro Yamada
Since commit fcc8487d477a ("uapi: export all headers under uapi directories"), all (and only) headers under uapi directories are exported, but asm-generic wrappers are still exceptions. To complete de-coupling the uapi from kernel headers, move generic-y of exported headers to uapi/asm/Kbuild. Wi

[PATCH v2 23/28] tile: move generic-y of exported headers to uapi/asm/Kbuild

2017-07-09 Thread Masahiro Yamada
Since commit fcc8487d477a ("uapi: export all headers under uapi directories"), all (and only) headers under uapi directories are exported, but asm-generic wrappers are still exceptions. To complete de-coupling the uapi from kernel headers, move generic-y of exported headers to uapi/asm/Kbuild. Wi

[PATCH v2 22/28] sparc: move generic-y of exported headers to uapi/asm/Kbuild

2017-07-09 Thread Masahiro Yamada
Since commit fcc8487d477a ("uapi: export all headers under uapi directories"), all (and only) headers under uapi directories are exported, but asm-generic wrappers are still exceptions. To complete de-coupling the uapi from kernel headers, move generic-y of exported headers to uapi/asm/Kbuild. Wi

[PATCH v2 26/28] kbuild: do not include old-kbuild-file from Makefile.headersinst

2017-07-09 Thread Masahiro Yamada
Now asm-generic wrappers to be exported are all listed in arch/*/include/uapi/asm/Kbuild. "make headers_install" no longer depends on any Kbuild files outside uapi directories. Signed-off-by: Masahiro Yamada --- scripts/Makefile.headersinst | 5 - 1 file changed, 5 deletions(-) diff --git

[PATCH v2 17/28] nios2: remove unneeded arch/nios2/include/(generated/)asm/signal.h

2017-07-09 Thread Masahiro Yamada
Currently, NIOS2 has three signal.h files under arch/nios2/include: [1] arch/nios2/include/asm/signal.h [2] arch/nios2/include/uapi/asm/signal.h [3] arch/nios2/include/generated/asm/signal.h [3] is build-time generated by scripts/Makefile.asm-generic. However, -I$(srctree)/arch/$(hdr-arch)/includ

[PATCH v2 20/28] parisc: move generic-y of exported headers to uapi/asm/Kbuild

2017-07-09 Thread Masahiro Yamada
Since commit fcc8487d477a ("uapi: export all headers under uapi directories"), all (and only) headers under uapi directories are exported, but asm-generic wrappers are still exceptions. To complete de-coupling the uapi from kernel headers, move generic-y of exported headers to uapi/asm/Kbuild. Wi

[PATCH v2 16/28] microblaze: move generic-y of exported headers to uapi/asm/Kbuild

2017-07-09 Thread Masahiro Yamada
Since commit fcc8487d477a ("uapi: export all headers under uapi directories"), all (and only) headers under uapi directories are exported, but asm-generic wrappers are still exceptions. To complete de-coupling the uapi from kernel headers, move generic-y of exported headers to uapi/asm/Kbuild. Wi

[PATCH v2 14/28] m68k: move generic-y of exported headers to uapi/asm/Kbuild

2017-07-09 Thread Masahiro Yamada
Since commit fcc8487d477a ("uapi: export all headers under uapi directories"), all (and only) headers under uapi directories are exported, but asm-generic wrappers are still exceptions. To complete de-coupling the uapi from kernel headers, move generic-y of exported headers to uapi/asm/Kbuild. Wi

[PATCH v2 18/28] nios2: move generic-y of exported headers to uapi/asm/Kbuild

2017-07-09 Thread Masahiro Yamada
Since commit fcc8487d477a ("uapi: export all headers under uapi directories"), all (and only) headers under uapi directories are exported, but asm-generic wrappers are still exceptions. To complete de-coupling the uapi from kernel headers, move generic-y of exported headers to uapi/asm/Kbuild. Wi

[PATCH v2 21/28] sh: move generic-y of exported headers to uapi/asm/Kbuild

2017-07-09 Thread Masahiro Yamada
Since commit fcc8487d477a ("uapi: export all headers under uapi directories"), all (and only) headers under uapi directories are exported, but asm-generic wrappers are still exceptions. To complete de-coupling the uapi from kernel headers, move generic-y of exported headers to uapi/asm/Kbuild. Wi

[PATCH v2 11/28] hexagon: move generic-y of exported headers to uapi/asm/Kbuild

2017-07-09 Thread Masahiro Yamada
Since commit fcc8487d477a ("uapi: export all headers under uapi directories"), all (and only) headers under uapi directories are exported, but asm-generic wrappers are still exceptions. To complete de-coupling the uapi from kernel headers, move generic-y of exported headers to uapi/asm/Kbuild. Wi

[PATCH v2 00/28] kbuild: complete UAPI de-coupling and cleanup scripts/Makefile.headersinst

2017-07-09 Thread Masahiro Yamada
In v4.12-rc1, we had a big progress for headers_install. All (and only) headers under UAPI directories are exported. However, asm-generic wrappers are still exceptions because most of arch/*/include/asm/Kbuild include "generic-y" for exported headers. As a result, many of generic-wrappers to be ex

[PATCH v2 08/28] c6x: move generic-y of exported headers to uapi/asm/Kbuild

2017-07-09 Thread Masahiro Yamada
Since commit fcc8487d477a ("uapi: export all headers under uapi directories"), all (and only) headers under uapi directories are exported, but asm-generic wrappers are still exceptions. To complete de-coupling the uapi from kernel headers, move generic-y of exported headers to uapi/asm/Kbuild. Wi

[PATCH v2 02/28] kbuild: fix comment about dst of headers_{install,check}_all

2017-07-09 Thread Masahiro Yamada
Commit 61562f981e92 ("uapi: export all arch specifics directories") changed the dst from asm- to arch- for headers_install_all or headers_check_all. Update the comment. Signed-off-by: Masahiro Yamada --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Ma

[PATCH v2 10/28] h8300: move generic-y of exported headers to uapi/asm/Kbuild

2017-07-09 Thread Masahiro Yamada
Since commit fcc8487d477a ("uapi: export all headers under uapi directories"), all (and only) headers under uapi directories are exported, but asm-generic wrappers are still exceptions. To complete de-coupling the uapi from kernel headers, move generic-y of exported headers to uapi/asm/Kbuild. Wi

[PATCH v2 09/28] cris: move generic-y of exported headers to uapi/asm/Kbuild

2017-07-09 Thread Masahiro Yamada
Since commit fcc8487d477a ("uapi: export all headers under uapi directories"), all (and only) headers under uapi directories are exported, but asm-generic wrappers are still exceptions. To complete de-coupling the uapi from kernel headers, move generic-y of exported headers to uapi/asm/Kbuild. Wi

[PATCH v2 03/28] kbuild: pass dst= to Makefile.headersinst from top Makefile

2017-07-09 Thread Masahiro Yamada
We can always pass dst= from the top Makefile. This will simplify the logic in Makefile.headersinst. Signed-off-by: Masahiro Yamada --- Makefile | 4 ++-- scripts/Makefile.headersinst | 8 ++-- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/Makefile b/Ma

[PATCH v2 13/28] m32r: move generic-y of exported headers to uapi/asm/Kbuild

2017-07-09 Thread Masahiro Yamada
Since commit fcc8487d477a ("uapi: export all headers under uapi directories"), all (and only) headers under uapi directories are exported, but asm-generic wrappers are still exceptions. To complete de-coupling the uapi from kernel headers, move generic-y of exported headers to uapi/asm/Kbuild. Wi

[PATCH v2 05/28] ARM: move generic-y of exported headers to uapi/asm/Kbuild

2017-07-09 Thread Masahiro Yamada
Since commit fcc8487d477a ("uapi: export all headers under uapi directories"), all (and only) headers under uapi directories are exported, but asm-generic wrappers are still exceptions. To complete de-coupling the uapi from kernel headers, move generic-y of exported headers to uapi/asm/Kbuild. Wi

[PATCH v2 12/28] ia64: remove redundant generic-y += kvm_para.h from asm/Kbuild

2017-07-09 Thread Masahiro Yamada
"generic-y += kvm_para.h" is doubled in asm/Kbuild and uapi/asm/Kbuild. The one in the former should be simply removed because kvm_para.h is exported. Signed-off-by: Masahiro Yamada --- arch/ia64/include/asm/Kbuild | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/ia64/include/asm/Kbuil

[PATCH v2 01/28] kbuild: remove useless $(gen) variable in Makefile.headersinst

2017-07-09 Thread Masahiro Yamada
We have no true case for the $(if $(gen), ...) conditional. Drop it to simplify the gendir calculation. Signed-off-by: Masahiro Yamada --- scripts/Makefile.headersinst | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/Makefile.headersinst b/scripts/Makefile.header

[PATCH v2 06/28] arc: move generic-y of exported headers to uapi/asm/Kbuild

2017-07-09 Thread Masahiro Yamada
Since commit fcc8487d477a ("uapi: export all headers under uapi directories"), all (and only) headers under uapi directories are exported, but asm-generic wrappers are still exceptions. To complete de-coupling the uapi from kernel headers, move generic-y of exported headers to uapi/asm/Kbuild. Wi

[PATCH v2 07/28] blackfin: move generic-y of exported headers to uapi/asm/Kbuild

2017-07-09 Thread Masahiro Yamada
Since commit fcc8487d477a ("uapi: export all headers under uapi directories"), all (and only) headers under uapi directories are exported, but asm-generic wrappers are still exceptions. To complete de-coupling the uapi from kernel headers, move generic-y of exported headers to uapi/asm/Kbuild. Wi

Re: [GIT] Networking

2017-07-09 Thread Linus Torvalds
On Sat, Jul 8, 2017 at 3:36 AM, David Miller wrote: > > 8) Fix socket leak on accept() in RDS, from Sowmini Varadhan. Also >add a WARN_ON() to sock_graft() so other protocol stacks don't trip >over this as well. Hmm. This one triggers for me on both my desktop and laptop at bootup. Bog-s

Re: [patch 1/3] tty: resolve tty contention between kernel and user space

2017-07-09 Thread Okash Khawaja
Hi, On Sun, Jul 09, 2017 at 06:04:17PM +0300, Andy Shevchenko wrote: > Above > 1. take mutex > 2. take reference > > Here: > 1. give mutex back > 2. give reference back > > I think we usually see symmetrical calls, i.e. > > 1. give reference back > 2. give mutex back > > So, what did I miss

Re: [GIT] Networking

2017-07-09 Thread Sowmini Varadhan
On (07/09/17 11:49), Linus Torvalds wrote: > > On Sat, Jul 8, 2017 at 3:36 AM, David Miller wrote: > > > > 8) Fix socket leak on accept() in RDS, from Sowmini Varadhan. Also > >add a WARN_ON() to sock_graft() so other protocol stacks don't trip > >over this as well. > > Hmm. This one tr

[PATCH] ASoC: pxa: SND_PXA2XX_SOC should depend on HAS_DMA

2017-07-09 Thread Geert Uytterhoeven
If NO_DMA=y: ERROR: "bad_dma_ops" [sound/soc/pxa/snd-soc-pxa2xx.ko] undefined! ERROR: "bad_dma_ops" [sound/arm/snd-pxa2xx-lib.ko] undefined! ERROR: "dma_common_mmap" [sound/arm/snd-pxa2xx-lib.ko] undefined! Add a dependency on HAS_DMA to fix this. Fixes: 73d7ee2e831f106c ("ASoC: pxa:

[PATCH] ALSA: pcm: Protect call to dma_mmap_coherent() by check for HAS_DMA

2017-07-09 Thread Geert Uytterhoeven
If NO_DMA=y: sound/core/pcm_native.o: In function `snd_pcm_lib_default_mmap': pcm_native.c:(.text+0x144c): undefined reference to `bad_dma_ops' pcm_native.c:(.text+0x1474): undefined reference to `dma_common_mmap' Add a check for HAS_DMA to fix this. Signed-off-by: Geert Uytterhoeven

[PATCH/RFC] dma-mapping: Provide dummy set_dma_ops() for NO_DMA=y

2017-07-09 Thread Geert Uytterhoeven
Adding a dummy for set_dma_ops() allows to compile (sub)drivers that don't actually use the DMA API, but propagate DMA ops configuration to a second driver that may or may not use the DMA API. Of course the second driver does have to depend on HAS_DMA if it uses the DMA API. An example is commit

Re: [kernel-hardening] [PATCH 00/11] S.A.R.A. a new stacked LSM

2017-07-09 Thread Mickaël Salaün
Hi, I think it make sense to merge the W^X features with the TPE/shebang LSM [1]. Regards, Mickaël [1] https://lkml.kernel.org/r/d9aca46b-97c6-4faf-b559-484feb4aa...@digikod.net On 12/06/2017 18:56, Salvatore Mesoraca wrote: > S.A.R.A. (S.A.R.A. is Another Recursive Acronym) is a stacked Linux

Re: [PATCH] of_mdio: Fix broken PHY IRQ in case of probe deferral

2017-07-09 Thread Geert Uytterhoeven
Hi Florian, Andrew, On Sun, Jul 9, 2017 at 7:28 PM, Andrew Lunn wrote: >> It sure does fix a real issue, but I am really concerned about the >> inability to test this patch in a configuration where we have multiple >> PHY(s) or MDIO device(s) hanging off the same MDIO bus and one of those >> requ

Re: [PATCH v2] staging: atomisp: use kstrdup to replace kmalloc and memcpy

2017-07-09 Thread Sakari Ailus
On Sun, Jul 09, 2017 at 05:56:15PM +0530, hari prasath wrote: > On 8 July 2017 at 16:31, Sakari Ailus wrote: > > Hi Hari, > > > > On Fri, Jul 07, 2017 at 08:15:21PM +0530, Hari Prasath wrote: > >> kstrdup kernel primitive can be used to replace kmalloc followed by > >> string copy. This was report

Re: [Patch] mqueue: fix the retry logic for netlink_attachskb()

2017-07-09 Thread Cong Wang
On Sat, Jul 8, 2017 at 11:55 AM, Linus Torvalds wrote: > On Sat, Jul 8, 2017 at 11:04 AM, Cong Wang wrote: >>> >>> Can you confirm that? I don't know where the original report is. >> >> Yes of course, setting 'sock' to NULL before 'goto retry' is sufficient >> to fix it, that is in fact my initia

Re: [PATCH v3 6/9] iio: trigger: Add STM32 LPTimer trigger driver

2017-07-09 Thread Jonathan Cameron
On Fri, 7 Jul 2017 18:31:05 +0200 Fabrice Gasnier wrote: > Add support for LPTIMx_OUT triggers that can be found on some STM32 > devices. These triggers can be used then by ADC or DAC. > Typical usage is to configure LPTimer as PWM output (via pwm-stm32-lp) > and have synchronised analog conversi

Re: [PATCH v3 8/9] iio: counter: Add support for STM32 LPTimer

2017-07-09 Thread Jonathan Cameron
On Fri, 7 Jul 2017 18:31:07 +0200 Fabrice Gasnier wrote: > Add support for STM32 Low-Power Timer, that can be used as counter > or quadrature encoder. > > Signed-off-by: Fabrice Gasnier So the obvious question on this one is whether to to delay merging until we have come to some decision on Wil

Re: [PATCH v3 9/9] iio: adc: stm32: add support for lptimer triggers

2017-07-09 Thread Jonathan Cameron
On Fri, 7 Jul 2017 18:31:08 +0200 Fabrice Gasnier wrote: > STM32 ADC supports hardware triggers like STM32 Low-Power Timer. > For instance, STM32H7 ADC may be triggered by instances 1, 2 or 3. > Add hardware triggered mode so Low-Power Timer Trigger driver can > validate device. > > Signed-off-b

[Patch v2] mqueue: fix a use-after-free in sys_mq_notify()

2017-07-09 Thread Cong Wang
The retry logic for netlink_attachskb() inside sys_mq_notify() is nasty and vulnerable: 1) The sock refcnt is already released when retry is needed 2) The fd is controllable by user-space because we already release the file refcnt so we when retry but the fd has been just closed by user-space

[PATCH v5] tty: serial: owl: Implement console driver

2017-07-09 Thread Andreas Färber
Implement serial console driver to complement earlycon. Based on LeMaker linux-actions tree. Signed-off-by: Andreas Färber --- v4 -> v5: * Don't clear HUPCL, IGNBRK or BRKINT (Alan) * Don't set CLOCAL (Alan) * Added tty_termios_encode_baud_rate() call (Alan) * Extended get_mctrl with RTS/CT

Re: [PATCH v2 0/3] rtc: make st-lpc robust against y2038/2106 bug

2017-07-09 Thread Alexandre Belloni
On 19/06/2017 at 11:36:19 +0200, Benjamin Gaignard wrote: > On 32bits platforms "struct timeval" or "time_t" are using u32 to code the > date, this cause tools like "date" or "hwclock" failed even before setting > the RTC device if the date is superior to year 2038 (or 2106). > > To avoid this pro

Re: [GIT] Networking

2017-07-09 Thread David Miller
From: Sowmini Varadhan Date: Sun, 9 Jul 2017 15:11:31 -0400 > On (07/09/17 11:49), Linus Torvalds wrote: >> >> On Sat, Jul 8, 2017 at 3:36 AM, David Miller wrote: >> > >> > 8) Fix socket leak on accept() in RDS, from Sowmini Varadhan. Also >> >add a WARN_ON() to sock_graft() so other proto

Re: [PATCH v2 09/10] MIPS: i8042: Probe this device only if it exists

2017-07-09 Thread Dmitry Torokhov
On Wed, Jun 28, 2017 at 05:47:02PM +0200, Aleksandar Markovic wrote: > From: Miodrag Dinic > > ARCH_MIGHT_HAVE_PC_SERIO is selected by default for MIPS platforms. > As a consequence SERIO_I8042 would be automatically selected for any > MIPS board which wants to enable input support like keyboard

[PATCH] i2c: pmcmsp: constify i2c_algorithm and i2c_adapter_quirks structures

2017-07-09 Thread Gustavo A. R. Silva
Check for i2c_algorithm and i2c_adapter_quirks structures that are only stored in the algo and quirks fields of an i2c_adapter structure correspondingly. These fields are declared const, so i2c_algorithm and i2c_adapter_quirks structures that have this property can be declared as const also. These

[PATCH] i2c: stm32f4: constify i2c_algorithm structure

2017-07-09 Thread Gustavo A. R. Silva
Check for i2c_algorithm structures that are only stored in the algo field of an i2c_adapter structure. This field is declared const, so i2c_algorithm structures that have this property can be declared as const also. This issue was identified using Coccinelle and the following semantic patch: @r d

Re: [PATCH] KVM: arm/arm64: Fix bug in advertising KVM_CAP_MSI_DEVID capability

2017-07-09 Thread Auger Eric
Hi, On 08/07/2017 15:48, Shanker Donthineni wrote: > Commit 0e4e82f154e3 ("KVM: arm64: vgic-its: Enable ITS emulation as > a virtual MSI controller") tried to advertise KVM_CAP_MSI_DEVID, but > the code logic was not updating the dist->msis_require_devid field > correctly. If hypervisor tool creat

[PATCH] i2c: davinci: constify i2c_algorithm structure

2017-07-09 Thread Gustavo A. R. Silva
Check for i2c_algorithm structures that are only stored in the algo field of an i2c_adapter structure. This field is declared const, so i2c_algorithm structures that have this property can be declared as const also. This issue was identified using Coccinelle and the following semantic patch: @r d

[PATCH] staging: greybus: arche: wrap over-length lines

2017-07-09 Thread Mitchell Tasman
Adjust formatting of various statements to keep line length within the 80 column limit preferred by the Linux kernel coding style. Signed-off-by: Mitchell Tasman --- drivers/staging/greybus/arche-platform.c | 29 +++-- 1 file changed, 19 insertions(+), 10 deletions(-) di

Re: [PATCH v10 00/15] Replace PCI pool by DMA pool API

2017-07-09 Thread Doug Ledford
On Thu, 2017-07-06 at 10:12 +0200, Romain Perier wrote: > The current PCI pool API are simple macro functions direct expanded > to > the appropriate dma pool functions. The prototypes are almost the > same > and semantically, they are very similar. I propose to use the DMA > pool > API directly and

[PATCH]

2017-07-09 Thread armetallica
From 043428d63637a6dd8e52449b73dbb8341885d7e4 Mon Sep 17 00:00:00 2001 From: Armin Schoenlieb Date: Mon, 10 Jul 2017 01:12:52 +0200 Subject: [PATCH] Staging: media: atomisp2: fixed trailing whitespace error in atomisp_v4l2.c This is a patch to the atomisp_v4l2.c file that fixes up a trailing whi

[PATCH] i2c: designware-slave: constify i2c_algorithm structure

2017-07-09 Thread Gustavo A. R. Silva
Check for i2c_algorithm structures that are only stored in the algo field of an i2c_adapter structure. This field is declared const, so i2c_algorithm structures that have this property can be declared as const also. This issue was identified using Coccinelle and the following semantic patch: @r d

Re: [Patch v2] mqueue: fix a use-after-free in sys_mq_notify()

2017-07-09 Thread Linus Torvalds
On Sun, Jul 9, 2017 at 1:19 PM, Cong Wang wrote: > > Setting 'sock' to NULL here should be sufficient to fix it. Thanks. Applied and marked for stable. Linus

[PATCH] dvb-ttusb-budget: constify i2c_algorithm structure

2017-07-09 Thread Gustavo A. R. Silva
Check for i2c_algorithm structures that are only stored in the algo field of an i2c_adapter structure. This field is declared const, so i2c_algorithm structures that have this property can be declared as const also. This issue was identified using Coccinelle and the following semantic patch: @r d

[PATCH] staging: wilc1000: fix variable signedness

2017-07-09 Thread Ilia Sergachev
txq_count receives a value from wilc_wlan_handle_txq() and therefore should be u32 found using sparse: drivers/staging/wilc1000/linux_wlan.c:306:58: warning: incorrect type in argument 2 (different signedness) Signed-off-by: Ilia Sergachev --- drivers/staging/wilc1000/linux_wlan.c | 3 ++- 1 f

Re: [PATCH] ARM: owl: smp: Drop owl_secondary_boot()

2017-07-09 Thread Andreas Färber
Am 06.07.2017 um 19:17 schrieb Andreas Färber: > Am 05.07.2017 um 04:36 schrieb Florian Fainelli: >> On July 4, 2017 4:32:18 PM PDT, "Andreas Färber" wrote: >>> - writel(virt_to_phys(owl_secondary_startup), >>> + writel(virt_to_phys(secondary_startup), >>>timer_base_addr + OWL_CPU1

[PATCH]

2017-07-09 Thread armetallica
From bb1aac6ae6b21b903d8743712e21aeb1a6b22163 Mon Sep 17 00:00:00 2001 From: Armin Schoenlieb Date: Mon, 10 Jul 2017 01:52:41 +0200 Subject: [PATCH] staging: unisys: visorbus: fix brace coding style issue in visorbus_main.c This is a patch to the visorbus_main.c file that fixes up six brace erro

[PATCH] usbvision: constify i2c_algorithm structure

2017-07-09 Thread Gustavo A. R. Silva
Check for i2c_algorithm structures that are only stored in the algo field of an i2c_adapter structure. This field is declared const, so i2c_algorithm structures that have this property can be declared as const also. This issue was identified using Coccinelle and the following semantic patch: @r d

Re: [PATCH 1/3] ipc: convert ipc_namespace.count from atomic_t to refcount_t

2017-07-09 Thread Eric W. Biederman
Elena Reshetova writes: > refcount_t type and corresponding API should be > used instead of atomic_t when the variable is used as > a reference counter. This allows to avoid accidental > refcounter overflows that might lead to use-after-free > situations. In this patch you can see all of the use

[PATCH] saa7146: constify i2c_algorithm structure

2017-07-09 Thread Gustavo A. R. Silva
Check for i2c_algorithm structures that are only stored in the algo field of an i2c_adapter structure. This field is declared const, so i2c_algorithm structures that have this property can be declared as const also. This issue was identified using Coccinelle and the following semantic patch: @r d

[PATCH] marvell-ccic: constify i2c_algorithm structure

2017-07-09 Thread Gustavo A. R. Silva
Check for i2c_algorithm structures that are only stored in the algo field of an i2c_adapter structure. This field is declared const, so i2c_algorithm structures that have this property can be declared as const also. This issue was identified using Coccinelle and the following semantic patch: @r d

[PATCH] dib7000p: constify i2c_algorithm structure

2017-07-09 Thread Gustavo A. R. Silva
Check for i2c_algorithm structures that are only stored in the algo field of an i2c_adapter structure. This field is declared const, so i2c_algorithm structures that have this property can be declared as const also. This issue was identified using Coccinelle and the following semantic patch: @r d

[PATCH] dib9000: constify i2c_algorithm structure

2017-07-09 Thread Gustavo A. R. Silva
Check for i2c_algorithm structures that are only stored in the algo field of an i2c_adapter structure. This field is declared const, so i2c_algorithm structures that have this property can be declared as const also. This issue was identified using Coccinelle and the following semantic patch: @r d

[RFC v1 2/2] tracing/ring_buffer: Try harder to allocate

2017-07-09 Thread Joel Fernandes
ftrace can fail to allocate per-CPU ring buffer on systems with a large number of CPUs coupled while large amounts of cache happening in the page cache. Currently the ring buffer allocation doesn't retry in the VM implementation even if direct-reclaim made some progress but still wasn't able to fin

[RFC v1 1/2] mm/page_alloc: Prevent OOM killer from triggering if requested

2017-07-09 Thread Joel Fernandes
Certain allocation paths such as the ftrace ring buffer allocator want to try hard to allocate but not trigger OOM killer and de-stabilize the system. Currently the ring buffer uses __GFP_NO_RETRY to prevent the OOM killer from triggering situation however this has an issue. Its possible the system

[no subject]

2017-07-09 Thread Corporate Lenders
Schönen Tag, Ich bin Thomas Walter, der Finanzagent dieser Firma, bekannt als Corporate Lenders. Wir leihen Geld für Einzelpersonen und Unternehmen, die finanzielle Hilfe benötigen. Hast du einen schlechten Kredit oder du brauchst Geld, um deine Rechnungen zu bezahlen? Wir verwenden dieses Medi

Re: linux-next: build warning after merge of the vfs tree

2017-07-09 Thread Stephen Rothwell
Hi Al, On Mon, 3 Jul 2017 10:53:47 +1000 Stephen Rothwell wrote: > > After merging the vfs tree, today's linux-next build (x86_64 allmodconfig) > produced this warning: > > drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c: In function > 'kiblnd_send': > drivers/staging/lustre/lnet/klnds/

RE: [PATCH]

2017-07-09 Thread Kershner, David A
> -Original Message- > From: armetallica [mailto:armetall...@gmail.com] > Sent: Sunday, July 9, 2017 7:58 PM > To: gre...@linuxfoundation.org > Cc: *S-Par-Maintainer ; > de...@driverdev.osuosl.org; linux-kernel@vger.kernel.org > Subject: [PATCH] > > From bb1aac6ae6b21b903d8743712e21aeb1a6b

Re: [PATCH 1/2] trace-cmd: use asprintf when possible

2017-07-09 Thread Federico Vaga
On Friday, July 7, 2017 12:25:32 AM CEST Steven Rostedt wrote: > On Mon, 5 Jun 2017 11:31:17 +0200 > Federico Vaga wrote: > > Hi Federico, > > I finally got around to looking at these. Sorry for the really slow > reply, but I had a bunch of kernel work I needed to get done before > digging agai

Re: [PATCH 2/2] trace-cmd: replace show_file() -> show_instance_file()

2017-07-09 Thread Federico Vaga
On Friday, July 7, 2017 12:29:35 AM CEST Steven Rostedt wrote: > On Mon, 5 Jun 2017 11:31:18 +0200 > > Federico Vaga wrote: > > show_file(name) and show_instance_file(&top_instance, name) are > > equivalent. > > > > Remove the show_file() function in order to have a single function for > > this

linux-next: manual merge of the unicore32 tree with the kbuild tree

2017-07-09 Thread Stephen Rothwell
Hi Xuetao, Today's linux-next merge of the unicore32 tree got a conflict in: arch/unicore32/include/asm/Kbuild between commits: e8c83e6b045c ("unicore32: move generic-y of exported headers to uapi/asm/Kbuild") from the kbuild tree and commits: bb3d836a8767 ("unicore32-oldabi: add stat.

Re: tracing/kprobes: [Bug] Identical timestamps on two kprobes that are few instructions apart

2017-07-09 Thread Masami Hiramatsu
Hello Arun, On Fri, 7 Jul 2017 16:06:40 -0700 Arun Kalyanasundaram wrote: > Hi Steven, > > Thank you very much for your reply. I am using kernel - v4.12-rc3. > > I did something like this and see the issue: > # trace-cmd record -e kprobes:s1 -e kprobes:s2 -- taskset -c 0 my_program > # ./trace

[PATCH v2] staging: greybus: arche: wrap over-length lines

2017-07-09 Thread Mitchell Tasman
Adjust formatting of various statements to keep line length within the 80 column limit preferred by the Linux kernel coding style. Signed-off-by: Mitchell Tasman --- Changes in v2: Add back a missing space in a comment drivers/staging/greybus/arche-platform.c | 29 +++--

Re: [PATCH v4 2/2] perf report: Implement visual marker for macro fusion in annotate

2017-07-09 Thread Jin, Yao
I applied this one, no unnecessary parsing of cpuid done at each jump->target arrow rendering, much better, thanks! One thing for a follow up patch: We have this when the cursor is at a jump instruction: │ ┌──test %ecx,%ecx -> │ ├──je 714cf │ │ mov

Re: [PATCH 1/2] drivers: dma-coherent: Add support for default DMA coherent pool

2017-07-09 Thread Rob Herring
On Mon, Jul 03, 2017 at 05:51:14PM +0300, vitaly_kuzmic...@mentor.com wrote: > From: "George G. Davis" > > Use concept similar to the default CMA region for DMA coherent pools. Why do we need this in DT? CMA is a carveout and has to be reserved early, but DMA coherent memory is just different M

Re: [PATCH 3/3 v7] ARC: hsdk: initial port for HSDK board

2017-07-09 Thread Rob Herring
On Mon, Jul 03, 2017 at 07:51:09PM +0300, Eugeniy Paltsev wrote: > From: Alexey Brodkin > > This initial port adds support of ARC HS Development Kit board with some > basic features such serial port, USB, SD/MMC and Ethernet. > > Essentially we run Linux kernel on all 4 cores (i.e. utilize SMP)

Re: [PATCH v2] ASoC: samsung: i2s: Support more resolution rates

2017-07-09 Thread Chanwoo Choi
Hi Jaechul, Looks good to me. Reviewed-by: Chanwoo Choi On 2017년 07월 07일 10:31, Jaechul Lee wrote: > This driver can support more frequencies over 96KHz. There are no reasons > to limit the frequency range below 96KHz. If codecs/amps or something else > can't support higher resolution rates, the

[PATCH] s5h1420: constify i2c_algorithm structure

2017-07-09 Thread Gustavo A. R. Silva
Check for i2c_algorithm structures that are only stored in the algo field of an i2c_adapter structure. This field is declared const, so i2c_algorithm structures that have this property can be declared as const also. This issue was identified using Coccinelle and the following semantic patch: @r d

Re: [PATCH] dt-bindings: nvmem: mediatek: add support for MediaTek MT7623 and MT7622 SoC

2017-07-09 Thread Rob Herring
On Fri, Jun 30, 2017 at 03:49:00PM +0800, sean.w...@mediatek.com wrote: > From: Sean Wang > > This updates dt-binding documentation for MediaTek MT7622 and > MT7623 SoC. For the both SoCs supported all rely on the fallback > binding of the generic case with "mediatek,efuse". > > Signed-off-by: S

[PATCH] dib8000: constify i2c_algorithm structure

2017-07-09 Thread Gustavo A. R. Silva
Check for i2c_algorithm structures that are only stored in the algo field of an i2c_adapter structure. This field is declared const, so i2c_algorithm structures that have this property can be declared as const also. This issue was identified using Coccinelle and the following semantic patch: @r d

Re: [PATCH v2 7/9] ASoC: atmel-classd: remove aclk clock from DT binding

2017-07-09 Thread Rob Herring
On Tue, Jul 04, 2017 at 01:59:25PM +0200, Quentin Schulz wrote: > Since gclk (generated-clk) is now able to determine the rate of the > audio_pll, there is no need for classd to have a direct phandle to the > audio_pll while already having a phandle to gclk. > > This binding is used by no board in

[PATCH] zd1301_demod: constify i2c_algorithm structure

2017-07-09 Thread Gustavo A. R. Silva
Check for i2c_algorithm structures that are only stored in the algo field of an i2c_adapter structure. This field is declared const, so i2c_algorithm structures that have this property can be declared as const also. This issue was identified using Coccinelle and the following semantic patch: @r d

[PATCH] cx24123: constify i2c_algorithm structure

2017-07-09 Thread Gustavo A. R. Silva
Check for i2c_algorithm structures that are only stored in the algo field of an i2c_adapter structure. This field is declared const, so i2c_algorithm structures that have this property can be declared as const also. This issue was identified using Coccinelle and the following semantic patch: @r d

[PATCH] ngene: constify i2c_algorithm structure

2017-07-09 Thread Gustavo A. R. Silva
Check for i2c_algorithm structures that are only stored in the algo field of an i2c_adapter structure. This field is declared const, so i2c_algorithm structures that have this property can be declared as const also. This issue was identified using Coccinelle and the following semantic patch: @r d

[PATCH] dm1105: constify i2c_algorithm structure

2017-07-09 Thread Gustavo A. R. Silva
Check for i2c_algorithm structures that are only stored in the algo field of an i2c_adapter structure. This field is declared const, so i2c_algorithm structures that have this property can be declared as const also. This issue was identified using Coccinelle and the following semantic patch: @r d

Re: [PATCH v2 5/5] Documentation/devicetree/bindings: Add FSI device documentation

2017-07-09 Thread Rob Herring
On Wed, Jul 05, 2017 at 04:36:57PM -0500, Eddie James wrote: > From: "Edward A. James" "dt-bindings: fsi: ..." for the subject. > > Document the bindings for the SBE and OCC devices. SBE devices are > located on a CFAM on an FSI bus, and OCC devices are accessed through > the SBEFIFO. > > Sign

Re: [PATCH 1/2] nvmem: rockchip-efuse: parse 'rockchip,efuse-size'

2017-07-09 Thread Rob Herring
On Thu, Jul 06, 2017 at 03:36:36PM +0800, Finley Xiao wrote: > The eFuse size is defined in property before, but the length > of registers is not equal to the size on some platforms, so we > add a new property to redefine it. > > Signed-off-by: Finley Xiao > --- > Documentation/devicetree/bindi

Re: [PATCH 2/2] nvmem: rockchip-efuse: add support for rk3328-efuse

2017-07-09 Thread Rob Herring
On Thu, Jul 06, 2017 at 03:36:37PM +0800, Finley Xiao wrote: > This adds the necessary data for handling eFuse on the rk3328. > > Signed-off-by: Finley Xiao > --- > .../devicetree/bindings/nvmem/rockchip-efuse.txt | 1 + Acked-by: Rob Herring > drivers/nvmem/rockchip-efuse.c

[PATCH] mantis: constify i2c_algorithm structure

2017-07-09 Thread Gustavo A. R. Silva
Check for i2c_algorithm structures that are only stored in the algo field of an i2c_adapter structure. This field is declared const, so i2c_algorithm structures that have this property can be declared as const also. This issue was identified using Coccinelle and the following semantic patch: @r d

Re: [PATCH v4 4/4] x86/boot/KASLR: Restrict kernel to be randomized in mirror regions

2017-07-09 Thread Baoquan He
On 07/09/17 at 07:11am, Kees Cook wrote: > On Sun, Jul 9, 2017 at 5:37 AM, Baoquan He wrote: > > Signed-off-by: Baoquan He > > +/* Marks if efi mirror regions have been found and handled. */ > > +static bool efi_mirror_found; > > I think this is only ever checked once? How about having > process

[RFC PATCH v1 00/11] Create fast idle path for short idle periods

2017-07-09 Thread Aubrey Li
From: Aubrey Li Under some latency intensive workloads, short idle periods occurs very common, so that idle entry and exit path starts to dominate. It's important to optimize them for the short idle period pattern. A fast idle path proposal is introduced here for this purpose. This proposal uses

[RFC PATCH v1 06/11] timers: keep sleep length updated as needed

2017-07-09 Thread Aubrey Li
From: Aubrey Li sleep length indicates how long we'll be idle. Currently, it's updated only when tick nohz enters. These patch series make a new requirement with tick, so we should keep sleep length updated as needed --- kernel/time/tick-sched.c | 3 +++ 1 file changed, 3 insertions(+) diff --g

[RFC PATCH v1 05/11] cpuidle: update idle statistics before cpuidle governor

2017-07-09 Thread Aubrey Li
From: Aubrey Li Promote menu governor update functionality into cpuidle governor, so that cpuidle can make a prediction based on the fresh data. --- drivers/cpuidle/cpuidle.c | 77 +++ 1 file changed, 77 insertions(+) diff --git a/drivers/cpuidle/cpui

[RFC PATCH v1 11/11] sched/idle: Add a tuning knob to allow changing fast idle threshold

2017-07-09 Thread Aubrey Li
From: Aubrey Li Short idle periods varies from different workload, make the switch tunable --- include/linux/sched/sysctl.h | 1 + kernel/sched/idle.c | 5 +++-- kernel/sysctl.c | 10 ++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/include/linux

<    1   2   3   4   >