arch/mips/include/asm/mach-cavium-octeon/mangle-port.h:19:40: error: right shift count >= width of type

2016-09-11 Thread kbuild test robot
Hi Steven, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 98ac9a608dc79ba8a20cee77fe959a6dfccdaa63 commit: 1685ddbe35cd4637f7f841d5f9755dd0470bd68d MIPS: Octeon: Changes to support readq()/writeq() usage. date: 9

Re: [PATCHv12 1/3] rdmacg: Added rdma cgroup controller

2016-09-11 Thread Matan Barak
On 10/09/2016 19:12, Christoph Hellwig wrote: On Wed, Sep 07, 2016 at 01:25:13PM +0530, Parav Pandit wrote: a) delay cgroups support until the grand rewrite is done b) add it now and deal with the consequences later Can we do (b) now and differ adding any HW resources to cgroup until they ar

Re: UBSAN: Undefined behaviour in arch/powerpc/kernel/cputable.c

2016-09-11 Thread Meelis Roos
> Does this fix it? Yes, thank you! > diff --git a/arch/powerpc/include/asm/cpu_has_feature.h > b/arch/powerpc/include/asm/cpu_has_feature.h > index 2ef55f8968a2..b312b152461b 100644 > --- a/arch/powerpc/include/asm/cpu_has_feature.h > +++ b/arch/powerpc/include/asm/cpu_has_feature.h > @@ -15,7

[PATCH 2/3] alpha: merge build rules of division routines

2016-09-11 Thread Masahiro Yamada
These four objects are generated by the same build rule, with different compile options. The build rules can be merged. Signed-off-by: Masahiro Yamada --- arch/alpha/lib/Makefile | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/arch/alpha/lib/Makefile b/arch/alpha/l

[PATCH 3/3] alpha: make short build log available for division routines

2016-09-11 Thread Masahiro Yamada
This enables the Kbuild standard log style as follows: AS arch/alpha/lib/__divlu.o AS arch/alpha/lib/__divqu.o AS arch/alpha/lib/__remlu.o AS arch/alpha/lib/__remqu.o Signed-off-by: Masahiro Yamada --- arch/alpha/lib/Makefile | 4 ++-- 1 file changed, 2 insertions(+

[PATCH 1/3] alpha: add $(src)/ rather than $(obj)/ to make source file path

2016-09-11 Thread Masahiro Yamada
$(ev6-y)divide.S is a source file, not a build-time generated file. So, it should be prefixed with $(src)/ rather than $(obj)/. Signed-off-by: Masahiro Yamada --- arch/alpha/lib/Makefile | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/alpha/lib/Makefile b/arch/a

[PATCH 0/3] alpha: improvements of arch/alpha/lib/Makefile

2016-09-11 Thread Masahiro Yamada
While building for Alpha architecture, I noticed ugly long log for division routines. So, I took a look at the Makefile. Here is a series of build rule cleanups. Masahiro Yamada (3): alpha: add $(src)/ rather than $(obj)/ to make source file path alpha: merge build rules of division routines

Re: [PATCH] pinctrl: cherryview: Do not mask all interrupts on probe

2016-09-11 Thread Mika Westerberg
On Fri, Sep 09, 2016 at 11:58:32AM +0300, Mika Westerberg wrote: > On Fri, Sep 09, 2016 at 04:23:58PM +0800, Phidias Chiang wrote: > > On Fri, Sep 09, 2016 at 09:18:34AM +0300, Mika Westerberg wrote: > > > On Fri, Sep 09, 2016 at 12:28:43AM +0800, Phidias Chiang wrote: > > > > > > Hmm, how can tha

drivers/media/v4l2-core/videobuf2-dma-contig.c:486:2: error: implicit declaration of function 'dma_get_cache_alignment'

2016-09-11 Thread kbuild test robot
Hi Hans, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 98ac9a608dc79ba8a20cee77fe959a6dfccdaa63 commit: c1023ba74fc77dc56dc317bd98f5060aab889ac1 [media] drivers/media/platform/Kconfig: fix VIDEO_MEDIATEK_VCODEC de

[PATCH] pinctrl: ret needs to be an int for -ve return value from regmap_update_bits

2016-09-11 Thread Colin King
From: Colin Ian King Macro regmap_update_bits can return a -ve on an error value so ret needs to be an integer rather than a bool type. Fixes warning found by static analysis with cppcheck: [drivers/pinctrl/aspeed/pinctrl-aspeed.c:192]: (warning) Comparison of a boolean expression with an inte

Re: [PATCHv12 1/3] rdmacg: Added rdma cgroup controller

2016-09-11 Thread Matan Barak
On 10/09/2016 20:01, Jason Gunthorpe wrote: On Sat, Sep 10, 2016 at 06:14:42PM +0200, Christoph Hellwig wrote: OFVWG meetings have absolutely zero relevance for Linux development. Well, to be fair there are a fair number of kernel developers on that particular call.. More "flexibility" for d

Re: Linux 3.14.79

2016-09-11 Thread Greg KH
diff --git a/Makefile b/Makefile index 74346f0d89c1..0ed6ce300543 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 14 -SUBLEVEL = 78 +SUBLEVEL = 79 EXTRAVERSION = NAME = Remembering Coco diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c index a413f76e

Linux 3.14.79

2016-09-11 Thread Greg KH
- NOTE - the 3.14.y kernel series is now end-of-life. It will not be receiving any more updates and should no longer be used at all. Please use 4.4 if you want a LTS kernel that will last for another year, or even better yet, just use the

Re: [v2] musb: omap2430: do not assume balanced enable()/disable()

2016-09-11 Thread Laurent Pinchart
Hi Tony, On Saturday 10 Sep 2016 06:07:50 Tony Lindgren wrote: > * Andreas Kemnade [160910 04:27]: > > On Fri, 9 Sep 2016 16:40:15 -0700 Tony Lindgren wrote: > >> * Tony Lindgren [160909 14:33]: > >>> * Andreas Kemnade [160909 14:22]: > We have two independant things: > 1. phy-twl4030

[GIT PULL] USB driver fixes for 4.8-rc6

2016-09-11 Thread Greg KH
The following changes since commit c6935931c1894ff857616ff8549b61236a19148f: Linux 4.8-rc5 (2016-09-04 14:31:46 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git/ tags/usb-4.8-rc6 for you to fetch changes up to 6b98174b957ce87e0efe7c

[GIT PULL] Staging/IIO driver fixes for 4.8-rc6

2016-09-11 Thread Greg KH
The following changes since commit c6935931c1894ff857616ff8549b61236a19148f: Linux 4.8-rc5 (2016-09-04 14:31:46 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git/ tags/staging-4.8-rc6 for you to fetch changes up to 72d508ad488a6

[PATCH kernel.org] 3.14 is now dead

2016-09-11 Thread Greg KH
The 3.14 longterm kernel is now end-of-life, so remove it from the website. Signed-off-by: Greg Kroah-Hartman diff --git a/content/releases.rst b/content/releases.rst index fe701e3c543d..3c2eb973f66b 100644 --- a/content/releases.rst +++ b/content/releases.rst @@ -44,7 +44,6 @@ Longterm 4.1

Re: [PATCH 3/3] drivers: Add visorbus to the drivers/virt directory

2016-09-11 Thread 'Greg KH'
On Tue, Aug 30, 2016 at 04:29:07PM +, Sell, Timothy C wrote: > E.g., so even though no obvious error-recovery occurs above in-response to > kzalloc() failures, the fact that -CONTROLVM_RESP_ERROR_KMALLOC_FAILED is > provided to bus_epilog() is in-fact sufficient to report the error. > > Is thi

STRICTLY CONFIDENTIAL

2016-09-11 Thread Acct. Dept.
I have important transaction for you as next of kin to claim US$18.37m Mail me on my private email: chimwia...@gmail.com so i can send you more details Thanks Mr.Chim Wai Kim === DISCLAIMER: This email and any

Re: [PATCH] x86/apic: Use byte array apic_version[], not int array. Saves up to 96k

2016-09-11 Thread Borislav Petkov
On Fri, Sep 09, 2016 at 10:32:04AM +0200, Denys Vlasenko wrote: > This array is [MAX_LOCAL_APIC], and MAX_LOCAL_APIC can easily be up to 32k. > > This patch changes apic_version[] array elements from int to u8 - > APIC version values as of year 2016 are no larger than 0x1f on all known CPUs. > Ver

Re: [RESEND PATCH v7 3/4] usb: dwc2: assert phy reset when waking up in rk3288 platform

2016-09-11 Thread kbuild test robot
Hi Randy, [auto build test ERROR on rockchip/for-next] [also build test ERROR on v4.8-rc5 next-20160909] [cannot apply to phy/next] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] [Suggest to use git(>=2.9.0) format-patch --base= (or --base=auto

Re: DVB: Unable to find symbol dib7000p_attach()

2016-09-11 Thread Toralf Förster
On 08/25/2016 08:31 PM, Toralf Förster wrote: > Aug 25 20:28:27 t44 kernel: DVB: registering new adapter (Terratec Cinergy T > USB XXS (HD)/ T3) > Aug 25 20:28:27 t44 kernel: DVB: Unable to find symbol dib7000p_attach() > Aug 25 20:28:27 t44 kernel: dvb-usb: no frontend was attached by 'Terratec

[PATCH] fs/ncpfs: Fix a build warning when CONFIG_NCPFS_NLS is not set

2016-09-11 Thread Borislav Petkov
From: Borislav Petkov I get this when doing randconfig builds: fs/ncpfs/dir.c: In function ‘ncp_hash_dentry’: fs/ncpfs/dir.c:136:23: warning: unused variable ‘sb’ [-Wunused-variable] struct super_block *sb = dentry->d_sb; because NCP_IO_TABLE macro is NULL in the !CONFIG_NCPFS_NLS case

[PATCH] drm/panel: simple: Fix bus_format for the Olimex LCD-OLinuXino-4.3TS

2016-09-11 Thread Jonathan Liu
The format is RGB888 not RGB666. Signed-off-by: Jonathan Liu --- drivers/gpu/drm/panel/panel-simple.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 85143d1..d4aa68e 100644 --- a/drivers/gpu/d

RE: [PATCH] Fix chance of sign extension to nsec after its msb is set during calculation.

2016-09-11 Thread Liav Rehana
>> > > During the calculation of the nsec variable, "delta * tkr->mult" > >> > may cause overflow to the msb, if the suspended time is too long. > >> > In that case, we need to guarantee that the variable will not go > >> > through a sign extension during its shift, and thus it will result > >>

[PATCH v1 1/1] at25: fix debug and error messaging

2016-09-11 Thread Andy Shevchenko
The patch does the following: - fixes specifiers and removes explicit casting of the parameters - joins literals to one line - increases readability of the parameters Signed-off-by: Andy Shevchenko --- drivers/misc/eeprom/at25.c | 20 +++- 1 file changed, 7 insertions(+), 13 dele

[PATCH v5] lib/bitmap.c: enhance bitmap syntax

2016-09-11 Thread Noam Camus
From: Noam Camus Today there are platforms with many CPUs (up to 4K). Trying to boot only part of the CPUs may result in too long string. For example lets take NPS platform that is part of arch/arc. This platform have SMP system with 256 cores each with 16 HW threads (SMT machine) where HW threa

[PATCH] tpm: fix buffer overflow in /dev/tpm0

2016-09-11 Thread Jarkko Sakkinen
tpm_write() does not check whether the buffer has at least enough space for the header before passing it to tpm_transmit() so an overflow can happen. Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm-interface.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/char/tpm/tpm-in

Re: cmsg newgroup alt.sex.fetish.bool (was Re: [PATCH] arch: all: include: asm: bitops: Use bool instead of int for all bit test functions)

2016-09-11 Thread Chen Gang
On 9/4/16 09:01, Al Viro wrote: > On Sun, Sep 04, 2016 at 06:36:56AM +0800, Chen Gang wrote: > >> And for all: shall I provide the proof for another archs? >> >> For me, Boolean gives additional chance to compiler to improve the code. > > Whereas for compiler it gives nothing. Not in those cas

[PATCH 0/6] constify gpio_chip structures

2016-09-11 Thread Julia Lawall
Constify gpio_chip structures --- drivers/gpio/gpio-arizona.c |2 +- drivers/gpio/gpio-bcm-kona.c |2 +- drivers/gpio/gpio-da9052.c|2 +- drivers/gpio/gpio-da9055.c|2 +- drivers/gpio/gpio-it87.c

[PATCH 2/6] mfd: sm501: constify gpio_chip structures

2016-09-11 Thread Julia Lawall
These structures are only used to copy into other structures, so declare them as const. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @r disable optional_qualifier@ identifier i; position p; @@ static struct gpio_chip i@p = { ... }; @ok@ identifier r.i

[PATCH 6/6] ASoC: constify gpio_chip structures

2016-09-11 Thread Julia Lawall
These structures are only used to copy into other structures, so declare them as const. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @r disable optional_qualifier@ identifier i; position p; @@ static struct gpio_chip i@p = { ... }; @ok@ identifier r.i

[PATCH 5/6] ASoC: ac97: constify gpio_chip structures

2016-09-11 Thread Julia Lawall
These structures are only used to copy into other structures, so declare them as const. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @r disable optional_qualifier@ identifier i; position p; @@ static struct gpio_chip i@p = { ... }; @ok@ identifier r.i

[PATCH 1/6] gpio: constify gpio_chip structures

2016-09-11 Thread Julia Lawall
These structures are only used to copy into other structures, so declare them as const. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @r disable optional_qualifier@ identifier i; position p; @@ static struct gpio_chip i@p = { ... }; @ok@ identifier r.i

[PATCH 4/6] pinctrl: stm32: constify gpio_chip structures

2016-09-11 Thread Julia Lawall
These structures are only used to copy into other structures, so declare them as const. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @r disable optional_qualifier@ identifier i; position p; @@ static struct gpio_chip i@p = { ... }; @ok@ identifier r.i

[PATCH 3/6] pinctrl: mediatek: constify gpio_chip structures

2016-09-11 Thread Julia Lawall
These structures are only used to copy into other structures, so declare them as const. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @r disable optional_qualifier@ identifier i; position p; @@ static struct gpio_chip i@p = { ... }; @ok@ identifier r.i

Re: [BISECTED REGRESSION] v4.8-rc: DT/OCTEON driver probing broken

2016-09-11 Thread Thorsten Leemhuis
Hi! On 30.08.2016 00:39, Rob Herring wrote: > On Sun, Aug 28, 2016 at 7:22 AM, Aaro Koskinen wrote: >> On Sun, Aug 28, 2016 at 12:34:06PM +0200, Thorsten Leemhuis wrote: >> There is a fix proposal here: >> https://patchwork.linux-mips.org/patch/14041/ >> There is still few other boards rem

Re: [BISECTED REGRESSION] v4.8-rc: gpio-leds broken on OCTEON

2016-09-11 Thread Thorsten Leemhuis
Hi! On 25.08.2016 20:24, Aaro Koskinen wrote: > On Wed, Aug 24, 2016 at 11:42:00AM -0500, Steven J. Hill wrote: >> It is actually two patches that cause the breakage. The other is: >>commit e55aeb6ba4e8cc3549bff1e75ea1d029324bce21 >>of/irq: Mark interrupt controllers as populated before ini

Re: [PATCH v2 2/9] ext2: tell DAX the size of allocation holes

2016-09-11 Thread Christoph Hellwig
On Sat, Sep 10, 2016 at 07:52:53AM +, Matthew Wilcox wrote: > DAX code over to using iomap requires converting all of ext2 away from > buffer_head; are you saying he's wrong? Not sure if he's really saying that, but it's wrong for sure. Just to prove that I came up with a working ext2 iomap D

Re: [PATCH] tpm: fix buffer overflow in /dev/tpm0

2016-09-11 Thread Jarkko Sakkinen
On Sun, Sep 11, 2016 at 03:19:00PM +0300, Jarkko Sakkinen wrote: > tpm_write() does not check whether the buffer has at least enough space > for the header before passing it to tpm_transmit() so an overflow can > happen. > > Signed-off-by: Jarkko Sakkinen This is usable neither as read nor write

RE: [PATCH v6 2/8] thunderbolt: Updating the register definitions

2016-09-11 Thread Levy, Amir (Jer)
On Sun, Sep 11 2016, 03:02 AM, Andreas Noever wrote: > On Mon, Aug 1, 2016 at 2:23 PM, Amir Levy wrote: > > Adding more Thunderbolt(TM) register definitions and some helper > > macros. > > Thinking about this again I would prefer it if you would put your definitions > into a separate file under i

[PATCH 14/26] spi: dw-pci: constify local structures

2016-09-11 Thread Julia Lawall
For structure types defined in the same file or local header files, find top-level static structure declarations that have the following properties: 1. Never reassigned. 2. Address never taken 3. Not passed to a top-level macro call 4. No pointer or array-typed field passed to a function or stored

[PATCH 13/26] [media]: constify local structures

2016-09-11 Thread Julia Lawall
For structure types defined in the same file or local header files, find top-level static structure declarations that have the following properties: 1. Never reassigned. 2. Address never taken 3. Not passed to a top-level macro call 4. No pointer or array-typed field passed to a function or stored

[PATCH 02/26] lib: constify local structures

2016-09-11 Thread Julia Lawall
For structure types defined in the same file or local header files, find top-level static structure declarations that have the following properties: 1. Never reassigned. 2. Address never taken 3. Not passed to a top-level macro call 4. No pointer or array-typed field passed to a function or stored

[PATCH 01/26] ALSA: pci: constify local structures

2016-09-11 Thread Julia Lawall
For structure types defined in the same file or local header files, find top-level static structure declarations that have the following properties: 1. Never reassigned. 2. Address never taken 3. Not passed to a top-level macro call 4. No pointer or array-typed field passed to a function or stored

[PATCH 12/26] [SCSI] hptiop: constify local structures

2016-09-11 Thread Julia Lawall
For structure types defined in the same file or local header files, find top-level static structure declarations that have the following properties: 1. Never reassigned. 2. Address never taken 3. Not passed to a top-level macro call 4. No pointer or array-typed field passed to a function or stored

[PATCH 26/26] sgi-xp: constify local structures

2016-09-11 Thread Julia Lawall
For structure types defined in the same file or local header files, find top-level static structure declarations that have the following properties: 1. Never reassigned. 2. Address never taken 3. Not passed to a top-level macro call 4. No pointer or array-typed field passed to a function or stored

[PATCH 25/26] pch_gbe: constify local structures

2016-09-11 Thread Julia Lawall
For structure types defined in the same file or local header files, find top-level static structure declarations that have the following properties: 1. Never reassigned. 2. Address never taken 3. Not passed to a top-level macro call 4. No pointer or array-typed field passed to a function or stored

[PATCH 22/26] esas2r: constify local structures

2016-09-11 Thread Julia Lawall
For structure types defined in the same file or local header files, find top-level static structure declarations that have the following properties: 1. Never reassigned. 2. Address never taken 3. Not passed to a top-level macro call 4. No pointer or array-typed field passed to a function or stored

[PATCH 00/26] constify local structures

2016-09-11 Thread Julia Lawall
Constify local structures. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // // The first rule ignores some cases that posed problems @r disable optional_qualifier@ identifier s != {peri_clk_data,threshold_attr,tracer_flags,tracer}; identifier i != {s5k5baf

[PATCH 19/26] intel_pstate: constify local structures

2016-09-11 Thread Julia Lawall
For structure types defined in the same file or local header files, find top-level static structure declarations that have the following properties: 1. Never reassigned. 2. Address never taken 3. Not passed to a top-level macro call 4. No pointer or array-typed field passed to a function or stored

[PATCH 03/26] staging: rtl8192e: constify local structures

2016-09-11 Thread Julia Lawall
For structure types defined in the same file or local header files, find top-level static structure declarations that have the following properties: 1. Never reassigned. 2. Address never taken 3. Not passed to a top-level macro call 4. No pointer or array-typed field passed to a function or stored

[PATCH 24/26] ACPI / APD: constify local structures

2016-09-11 Thread Julia Lawall
For structure types defined in the same file or local header files, find top-level static structure declarations that have the following properties: 1. Never reassigned. 2. Address never taken 3. Not passed to a top-level macro call 4. No pointer or array-typed field passed to a function or stored

[PATCH 18/26] intel_scu_ipc: constify local structures

2016-09-11 Thread Julia Lawall
For structure types defined in the same file or local header files, find top-level static structure declarations that have the following properties: 1. Never reassigned. 2. Address never taken 3. Not passed to a top-level macro call 4. No pointer or array-typed field passed to a function or stored

[PATCH 21/26] rtlwifi: rtl818x: constify local structures

2016-09-11 Thread Julia Lawall
For structure types defined in the same file or local header files, find top-level static structure declarations that have the following properties: 1. Never reassigned. 2. Address never taken 3. Not passed to a top-level macro call 4. No pointer or array-typed field passed to a function or stored

[PATCH 20/26] stmmac: pci: constify local structures

2016-09-11 Thread Julia Lawall
For structure types defined in the same file or local header files, find top-level static structure declarations that have the following properties: 1. Never reassigned. 2. Address never taken 3. Not passed to a top-level macro call 4. No pointer or array-typed field passed to a function or stored

[PATCH 23/26] sh_eth: constify local structures

2016-09-11 Thread Julia Lawall
For structure types defined in the same file or local header files, find top-level static structure declarations that have the following properties: 1. Never reassigned. 2. Address never taken 3. Not passed to a top-level macro call 4. No pointer or array-typed field passed to a function or stored

[PATCH 16/26] ezusb: constify local structures

2016-09-11 Thread Julia Lawall
For structure types defined in the same file or local header files, find top-level static structure declarations that have the following properties: 1. Never reassigned. 2. Address never taken 3. Not passed to a top-level macro call 4. No pointer or array-typed field passed to a function or stored

[PATCH 06/26] ath: constify local structures

2016-09-11 Thread Julia Lawall
For structure types defined in the same file or local header files, find top-level static structure declarations that have the following properties: 1. Never reassigned. 2. Address never taken 3. Not passed to a top-level macro call 4. No pointer or array-typed field passed to a function or stored

[PATCH 5/6] genwqe: use pci_irq_allocate_vectors

2016-09-11 Thread Christoph Hellwig
Simply the interrupt setup by using the new PCI layer helpers. One odd thing about this driver is that it looks like it could request multiple MSI vectors, but it will then only ever use a single one. Signed-off-by: Christoph Hellwig --- drivers/misc/genwqe/card_base.h | 1 - drivers/misc/gen

[PATCH 1/6] arcmsr: use pci_alloc_irq_vectors

2016-09-11 Thread Christoph Hellwig
Switch the arcmsr driver to use pci_alloc_irq_vectors. We need to two calls to pci_alloc_irq_vectors as arcmsr only supports multiple MSI-X vectors, but not multiple MSI vectors. Otherwise this cleans up a lot of cruft and allows to use a common request_irq loop for irq types, which happens to on

[PATCH 6/6] media/cobalt: use pci_irq_allocate_vectors

2016-09-11 Thread Christoph Hellwig
Simply the interrupt setup by using the new PCI layer helpers. Despite using pci_enable_msi_range, this driver was only requesting a single MSI vector anyway. Signed-off-by: Christoph Hellwig --- drivers/media/pci/cobalt/cobalt-driver.c | 8 ++-- drivers/media/pci/cobalt/cobalt-driver.h | 2

[PATCH 4/6] vfio_pci: use pci_irq_allocate_vectors

2016-09-11 Thread Christoph Hellwig
Simply the interrupt setup by using the new PCI layer helpers. Signed-off-by: Christoph Hellwig --- drivers/vfio/pci/vfio_pci_intrs.c | 45 + drivers/vfio/pci/vfio_pci_private.h | 1 - 2 files changed, 10 insertions(+), 36 deletions(-) diff --git a/drivers

replace pci_enable_msi_{exact_range} with pci_alloc_irq_vectors

2016-09-11 Thread Christoph Hellwig
Hi all, this series switch the remaining users of pci_enable_msi_{exact_range} (accounting for ahci and nvme being done through other channels) to use the pci_alloc_irq_vectors helper instead and thus simplify the interrupt code in those drivers a lot. I decided to post it as a series to everyone

[PATCH 3/6] skd: use pci_alloc_irq_vectors

2016-09-11 Thread Christoph Hellwig
Switch the skd driver to use pci_alloc_irq_vectors. We need to two calls to pci_alloc_irq_vectors as skd only supports multiple MSI-X vectors, but not multiple MSI vectors. Otherwise this cleans up a lot of cruft and allows to a lot more common code. Signed-off-by: Christoph Hellwig --- driver

[PATCH 15/26] platform/chrome: constify local structures

2016-09-11 Thread Julia Lawall
For structure types defined in the same file or local header files, find top-level static structure declarations that have the following properties: 1. Never reassigned. 2. Address never taken 3. Not passed to a top-level macro call 4. No pointer or array-typed field passed to a function or stored

[PATCH 11/26] can: constify local structures

2016-09-11 Thread Julia Lawall
For structure types defined in the same file or local header files, find top-level static structure declarations that have the following properties: 1. Never reassigned. 2. Address never taken 3. Not passed to a top-level macro call 4. No pointer or array-typed field passed to a function or stored

Re: [PATCH 1/6] gpio: constify gpio_chip structures

2016-09-11 Thread Joachim Eastwood
Hi Julia, On 11 September 2016 at 14:14, Julia Lawall wrote: > These structures are only used to copy into other structures, so declare > them as const. > > The semantic patch that makes this change is as follows: > (http://coccinelle.lip6.fr/) > > // > @r disable optional_qualifier@ > identifie

[PATCH 17/26] intel_telemetry_debugfs: constify local structures

2016-09-11 Thread Julia Lawall
For structure types defined in the same file or local header files, find top-level static structure declarations that have the following properties: 1. Never reassigned. 2. Address never taken 3. Not passed to a top-level macro call 4. No pointer or array-typed field passed to a function or stored

[PATCH 2/6] ipr: use pci_irq_allocate_vectors

2016-09-11 Thread Christoph Hellwig
Switch the ipr driver to use pci_alloc_irq_vectors. We need to two calls to pci_alloc_irq_vectors as ipr only supports multiple MSI-X vectors, but not multiple MSI vectors. Otherwise this cleans up a lot of cruft and allows to use a common request_irq loop for irq types, which happens to only ite

[PATCH 04/26] matroxfb: constify local structures

2016-09-11 Thread Julia Lawall
For structure types defined in the same file or local header files, find top-level static structure declarations that have the following properties: 1. Never reassigned. 2. Address never taken 3. Not passed to a top-level macro call 4. No pointer or array-typed field passed to a function or stored

[PATCH 09/26] i40iw: constify local structures

2016-09-11 Thread Julia Lawall
For structure types defined in the same file or local header files, find top-level static structure declarations that have the following properties: 1. Never reassigned. 2. Address never taken 3. Not passed to a top-level macro call 4. No pointer or array-typed field passed to a function or stored

Re: [PATCHv12 1/3] rdmacg: Added rdma cgroup controller

2016-09-11 Thread Christoph Hellwig
On Sat, Sep 10, 2016 at 11:01:51AM -0600, Jason Gunthorpe wrote: > Sadly, it isn't a step backwards, it is status quo - at least as far > as the uapi is concerned. Sort of, see below: > struct mlx5_create_cq { > struct ibv_create_cqibv_cmd; > __u64

[PATCH 10/26] tpm: constify local structures

2016-09-11 Thread Julia Lawall
For structure types defined in the same file or local header files, find top-level static structure declarations that have the following properties: 1. Never reassigned. 2. Address never taken 3. Not passed to a top-level macro call 4. No pointer or array-typed field passed to a function or stored

[PATCH 05/26] ARCNET: constify local structures

2016-09-11 Thread Julia Lawall
For structure types defined in the same file or local header files, find top-level static structure declarations that have the following properties: 1. Never reassigned. 2. Address never taken 3. Not passed to a top-level macro call 4. No pointer or array-typed field passed to a function or stored

[PATCH 08/26] iwlegacy: constify local structures

2016-09-11 Thread Julia Lawall
For structure types defined in the same file or local header files, find top-level static structure declarations that have the following properties: 1. Never reassigned. 2. Address never taken 3. Not passed to a top-level macro call 4. No pointer or array-typed field passed to a function or stored

[PATCH 07/26] net/mlx4_core: constify local structures

2016-09-11 Thread Julia Lawall
For structure types defined in the same file or local header files, find top-level static structure declarations that have the following properties: 1. Never reassigned. 2. Address never taken 3. Not passed to a top-level macro call 4. No pointer or array-typed field passed to a function or stored

Re: [RFC/RFT][PATCH v2 2/7] driver core: Functional dependencies tracking support

2016-09-11 Thread Lukas Wunner
On Thu, Sep 08, 2016 at 11:27:45PM +0200, Rafael J. Wysocki wrote: > +/** > + * device_is_dependent - Check if one device depends on another one > + * @dev: Device to check dependencies for. > + * @target: Device to check against. > + * > + * Check if @dev or any device dependent on it (its child o

Linux 4.8: Reported regressions as of Sunday, 2016-09-11

2016-09-11 Thread Thorsten Leemhuis
Hi! Here is my third regression report for Linux 4.8. It lists 10 regressions I'm aware of. 6 of them are new; 3 mentioned in the last report sent two weeks ago got fixed; 3 got removed for other reasons (see below). As always: Are you aware of any other regressions? Then please let me know (simpl

[PATCH] drm/i915: Ignore OpRegion panel type on Ivy Bridge + Mobile

2016-09-11 Thread Adrien Vergé
On Terra Mobile Ultrabook 1450 II (Core i5-3337U, i915 devid = 0x166), the screen is tiled in many 480×320 screens (like a mosaic) since v4.7. This laptop is simply unusable. I have bisected the cause to commit a05628195a0d ("drm/i915: Get panel_type from OpRegion panel details"). Like for Skylak

[PATCH] kprobes: include instead of

2016-09-11 Thread Christoph Hellwig
asm-generic headers are generic implementations for architecture specific code and should not be included by common code. Thus use the asm/ version of sections.h to get at the linker sections. Signed-off-by: Christoph Hellwig --- kernel/kprobes.c | 2 +- 1 file changed, 1 insertion(+), 1 deleti

[PATCH] DMA-API-HOWTO: is no more

2016-09-11 Thread Christoph Hellwig
So don't mention it. Signed-off-by: Christoph Hellwig --- Documentation/DMA-API-HOWTO.txt | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Documentation/DMA-API-HOWTO.txt b/Documentation/DMA-API-HOWTO.txt index 781024e..494ffac 100644 --- a/Documentation/DMA-API-HOWTO.tx

Re: [Intel-gfx] Bad flicker on skylake HQD due to code in the 4.7 merge window

2016-09-11 Thread James Hogan
On 7 July 2016 at 20:19, James Bottomley wrote: > On Thu, 2016-07-07 at 09:55 -0700, James Bottomley wrote: >> On Thu, 2016-07-07 at 19:14 +0300, Ville Syrjälä wrote: >> > On Tue, Jun 21, 2016 at 06:44:34PM +0300, Ville Syrjälä wrote: >> > > On Tue, Jun 21, 2016 at 09:53:15AM -0400, James Bottomle

Re: [PATCHv12 1/3] rdmacg: Added rdma cgroup controller

2016-09-11 Thread Leon Romanovsky
On Sun, Sep 11, 2016 at 03:34:21PM +0200, Christoph Hellwig wrote: > On Sat, Sep 10, 2016 at 11:01:51AM -0600, Jason Gunthorpe wrote: > > Sadly, it isn't a step backwards, it is status quo - at least as far > > as the uapi is concerned. > > Sort of, see below: > > > struct mlx5_create_cq { > >

[PATCH 0/3] constify dvb_tuner_ops structures

2016-09-11 Thread Julia Lawall
Constify dvb_tuner_ops structures --- drivers/media/dvb-frontends/ascot2e.c |2 +- drivers/media/dvb-frontends/dvb-pll.c |2 +- drivers/media/dvb-frontends/helene.c |4 ++-- drivers/media/dvb-frontends/horus3a.c |2 +- drivers/media/dvb-frontends/

[PATCH 1/3] [media] dvb-frontends: constify dvb_tuner_ops structures

2016-09-11 Thread Julia Lawall
These structures are only used to copy into other structures, so declare them as const. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @r disable optional_qualifier@ identifier i; position p; @@ static struct dvb_tuner_ops i@p = { ... }; @ok1@ identifie

[PATCH 3/3] [media] mxl111sf-tuner: constify dvb_tuner_ops structures

2016-09-11 Thread Julia Lawall
These structures are only used to copy into other structures, so declare them as const. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @r disable optional_qualifier@ identifier i; position p; @@ static struct dvb_tuner_ops i@p = { ... }; @ok1@ identifie

[PATCH 2/3] [media] tuners: constify dvb_tuner_ops structures

2016-09-11 Thread Julia Lawall
These structures are only used to copy into other structures, so declare them as const. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @r disable optional_qualifier@ identifier i; position p; @@ static struct dvb_tuner_ops i@p = { ... }; @ok1@ identifie

RE: [PATCH 3/3] drivers: Add visorbus to the drivers/virt directory

2016-09-11 Thread Sell, Timothy C
On Sun, 11 Sep 2016 02:17:10 -0700, Greg KH wrote: > On Tue, Aug 30, 2016 at 04:29:07PM +, Sell, Timothy C wrote: >> E.g., so even though no obvious error-recovery occurs above in-response to >> kzalloc() failures, the fact that -CONTROLVM_RESP_ERROR_KMALLOC_FAILED is >> provided to bus_epilog(

[PATCH] video: fbdev: constify fb_fix_screeninfo and fb_var_screeninfo structures

2016-09-11 Thread Julia Lawall
These structures are only used to copy into other structures, so declare them as const. The semantic patch that makes this change in the fb_fix_screeninfo case is as follows (http://coccinelle.lip6.fr/). The fb_var_screeninfo case is analogous. // @r disable optional_qualifier@ identifier i; po

[PATCH 1/2] net: ethernet: apm: xgene: use phydev from struct net_device

2016-09-11 Thread Philippe Reynes
The private structure contain a pointer to phydev, but the structure net_device already contain such pointer. So we can remove the pointer phy_dev in the private structure, and update the driver to use the one contained in struct net_device. Signed-off-by: Philippe Reynes --- .../net/ethernet/ap

[PATCH 2/2] net: ethernet: apm: xgene: use new api ethtool_{get|set}_link_ksettings

2016-09-11 Thread Philippe Reynes
The ethtool api {get|set}_settings is deprecated. We move this driver to new api {get|set}_link_ksettings. Signed-off-by: Philippe Reynes --- .../net/ethernet/apm/xgene/xgene_enet_ethtool.c| 61 1 files changed, 37 insertions(+), 24 deletions(-) diff --git a/drivers/n

Re: [PATCH] sched,numa,mm: revert to checking pmd/pte_write instead of VMA flags

2016-09-11 Thread Mel Gorman
On Thu, Sep 08, 2016 at 09:30:53PM -0400, Rik van Riel wrote: > Commit 4d9424669946 ("mm: convert p[te|md]_mknonnuma and remaining > page table manipulations") changed NUMA balancing from _PAGE_NUMA > to using PROT_NONE, and was quickly found to introduce a regression > with NUMA grouping. > > It

[PATCH] swiotlb: remove unused swiotlb_map_sg and swiotlb_unmap_sg functions

2016-09-11 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- include/linux/swiotlb.h | 8 lib/swiotlb.c | 16 2 files changed, 24 deletions(-) diff --git a/include/linux/swiotlb.h b/include/linux/swiotlb.h index 5f81f8a..f0d2589 100644 --- a/include/linux/swiotlb.h +++ b/include/lin

[PATCH] xen: consolidate swiotbl_xen dma_ops

2016-09-11 Thread Christoph Hellwig
x86 wasn't wiring up ->set_dma_mask before, but it's the same as the default so we are fine. (arm can't remove it just yet, but eventually we'll get there). Signed-off-by: Christoph Hellwig --- arch/arm/xen/mm.c | 16 --- arch/x86/xen/pci-swiotlb-xen.c | 15 -- driv

[PATCH] staging: gdm724x: gdm_lte: Constify gdm_netdev_ops

2016-09-11 Thread Imre Deak
Fix the following checkpatch.pl warning: WARNING: struct net_device_ops should normally be const +static struct net_device_ops gdm_netdev_ops = { Signed-off-by: Imre Deak --- drivers/staging/gdm724x/gdm_lte.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/gdm

Re: [PATCH 10/26] tpm: constify local structures

2016-09-11 Thread Jarkko Sakkinen
On Sun, Sep 11, 2016 at 03:05:52PM +0200, Julia Lawall wrote: > For structure types defined in the same file or local header files, find > top-level static structure declarations that have the following > properties: > 1. Never reassigned. > 2. Address never taken > 3. Not passed to a top-level mac

Re: [PATCHv12 1/3] rdmacg: Added rdma cgroup controller

2016-09-11 Thread Jason Gunthorpe
On Sun, Sep 11, 2016 at 05:35:22PM +0300, Leon Romanovsky wrote: > > We stil always have the common structure first. And at least for > > cgroups supports that's what matters. > > > > Re the actual structures - we'll really need to make sure we > > > > a) expose proper userspace abi headers in t

Re: [PATCH 00/26] constify local structures

2016-09-11 Thread Jarkko Sakkinen
On Sun, Sep 11, 2016 at 03:05:42PM +0200, Julia Lawall wrote: > Constify local structures. > > The semantic patch that makes this change is as follows: > (http://coccinelle.lip6.fr/) Just my two cents but: 1. You *can* use a static analysis too to find bugs or other issues. 2. However, you shoul

Re: [PATCHv12 1/3] rdmacg: Added rdma cgroup controller

2016-09-11 Thread Christoph Hellwig
On Sun, Sep 11, 2016 at 11:14:09AM -0600, Jason Gunthorpe wrote: > > > We stil always have the common structure first. And at least for > > > cgroups supports that's what matters. > > > > > > Re the actual structures - we'll really need to make sure we > > > > > > a) expose proper userspace abi h

  1   2   3   >