Re: [PATCH 13/14] vme: tsi148: Improve 17 size determinations

2017-08-26 Thread SF Markus Elfring
>> @@ -2363,5 +2364,5 @@ static int tsi148_probe(struct pci_dev *pdev, const >> struct pci_device_id *id) >> master_num--; >> >> tsi148_device->flush_image = >> -kmalloc(sizeof(struct vme_master_resource), GFP_KERNEL); >> +kmalloc

Re: [PATCH 00/14] VME: Adjustments for several function implementations

2017-08-26 Thread Greg Kroah-Hartman
On Fri, Aug 25, 2017 at 10:50:19PM +0100, Martyn Welch wrote: > On Fri, Aug 25, 2017 at 05:41:13PM +0200, SF Markus Elfring wrote: > > From: Markus Elfring > > Date: Fri, 25 Aug 2017 13:15:43 +0200 > > > > Several update suggestions were taken into account > > from static source code analysis. >

[GIT PULL] perf fix

2017-08-26 Thread Ingo Molnar
Linus, Please pull the latest perf-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf-urgent-for-linus # HEAD: 64aee2a965cf2954a038b5522f11d2cd2f0f8f3e perf/core: Fix group {cpu,task} validation A single fix to not allow nonsensical event grou

[GIT PULL] timer fix

2017-08-26 Thread Ingo Molnar
Linus, Please pull the latest timers-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers-urgent-for-linus # HEAD: 2fe59f507a65dbd734b990a11ebc7488f6f87a24 timers: Fix excessive granularity of new timers after a nohz idle Fix a timer granulari

[PATCH 3/4] i825xx: switch to switch to dma_alloc_attrs

2017-08-26 Thread Christoph Hellwig
This way we can always pass DMA_ATTR_NON_CONSISTENT, the SNI mips version will simply ignore the flag. Signed-off-by: Christoph Hellwig --- drivers/net/ethernet/i825xx/lasi_82596.c | 6 ++ drivers/net/ethernet/i825xx/lib82596.c | 9 + drivers/net/ethernet/i825xx/sni_82596.c | 6 ++

[PATCH 2/4] au1000_eth: switch to dma_alloc_attrs

2017-08-26 Thread Christoph Hellwig
Use dma_alloc_attrs directly instead of the dma_alloc_noncoherent wrapper. Signed-off-by: Christoph Hellwig --- drivers/net/ethernet/amd/au1000_eth.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/drivers/net/ethernet/amd/au1000_eth.c b/drivers/net/ether

[PATCH 4/4] dma-mapping: remove dma_alloc_noncoherent and dma_free_noncoherent

2017-08-26 Thread Christoph Hellwig
No users left, everyone switched to the _attrs versions. Signed-off-by: Christoph Hellwig --- Documentation/DMA-API.txt| 30 -- arch/metag/include/asm/dma-mapping.h | 2 +- arch/nios2/include/asm/dma-mapping.h | 2 +- arch/tile/include/asm/dma-mapping.h

remove dma_alloc_noncoherent V2

2017-08-26 Thread Christoph Hellwig
For many years we've had the dma_alloc_attrs API that is more flexible than dma_alloc_noncoherent. This series moves the remaining users over to the attrs API. After half of the series went in for the last merge window I'd really like to merge the remainer. Any chance to get some ACKs/reviews fo

[PATCH 1/4] sgiseeq: switch to dma_alloc_attrs

2017-08-26 Thread Christoph Hellwig
Use dma_alloc_attrs directly instead of the dma_alloc_noncoherent wrapper. Signed-off-by: Christoph Hellwig --- drivers/net/ethernet/seeq/sgiseeq.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/seeq/sgiseeq.c b/drivers/net/ethernet/seeq/sgiseeq

Re: linux-next: manual merge of the kvm tree with the tip tree

2017-08-26 Thread Ingo Molnar
* Paolo Bonzini wrote: > On 25/08/2017 22:41, Brijesh Singh wrote: > > > > >> Neither my version nor yours is correct. :) The right one has [0][i] > >> and [1][i] (I inverted the indices by mistake). > >> > >> With that change, you can include my > >> > >> Acked-by: Paolo Bonzini > >> >

[GIT PULL] x86 fixes

2017-08-26 Thread Ingo Molnar
Linus, Please pull the latest x86-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-urgent-for-linus # HEAD: ccd5b3235180eef3cfec337df1c8554ab151b5cc x86/mm: Fix use-after-free of ldt_struct Two fixes: one for an ldt_struct handling bug and a

[PATCH 2/2] dma-coherent: remove the DMA_MEMORY_MAP and DMA_MEMORY_IO flags

2017-08-26 Thread Christoph Hellwig
DMA_MEMORY_IO was never used in the tree, so remove it. That means there is no need for the DMA_MEMORY_MAP flag either now, so remove it as well and change dma_declare_coherent_memory to return a normal errno value. Signed-off-by: Christoph Hellwig --- Documentation/DMA-API.txt

clean up dma_declare_coherent_memory calling conventions V2

2017-08-26 Thread Christoph Hellwig
Remove various unused flags, and return a reasonable error code. Changes since V1: - rebased - fix an incorrect return value - propagate the error value in ohci-sm501

Re: [PATCH] net: stmmac: Handle possible fixed-link with need_mdio_ids

2017-08-26 Thread Corentin Labbe
On Fri, Aug 25, 2017 at 09:45:23AM -0700, Florian Fainelli wrote: > On 08/25/2017 09:28 AM, Andrew Lunn wrote: > > On Fri, Aug 25, 2017 at 04:42:08PM +0200, Corentin Labbe wrote: > >> In case of fixed link, there are no mdio node. > >> This patch add a test for fixed-link for bypassing MDIO node re

[PATCH 1/2] dma-coherent: remove the DMA_MEMORY_INCLUDES_CHILDREN flag

2017-08-26 Thread Christoph Hellwig
This flag was never implemented or used. Signed-off-by: Christoph Hellwig Reviewed-by: Robin Murphy --- Documentation/DMA-API.txt | 4 drivers/base/dma-coherent.c | 2 -- drivers/char/virtio_console.c | 3 --- include/linux/dma-mapping.h | 3 +-- 4 files changed, 1 insertion(+), 11

[PATCH v4 2/5] ARM: dts: sunxi: h3/h5: represent the mdio switch used by sun8i-h3-emac

2017-08-26 Thread Corentin Labbe
Since dwmac-sun8i could use either an integrated PHY or an external PHY (which could be at same MDIO address), we need to represent this selection by a MDIO switch. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 22 +- 1 file changed, 21 insertions(+),

[PATCH v4 5/5] net: stmmac: Register parent MDIO in case of fake mdio-mux

2017-08-26 Thread Corentin Labbe
In case of a fake MDIO switch/mux (like Allwinner H3), the registered MDIO node should be the parent of the PHY. Otherwise of_phy_connect will fail. Signed-off-by: Corentin Labbe --- drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 13 +++-- 1 file changed, 11 insertions(+), 2 del

[PATCH v4 3/5] dt-bindings: net: dwmac-sun8i: update documentation about integrated PHY

2017-08-26 Thread Corentin Labbe
This patch add documentation about the MDIO switch used on sun8i-h3-emac for integrated PHY. Signed-off-by: Corentin Labbe --- .../devicetree/bindings/net/dwmac-sun8i.txt| 117 - 1 file changed, 112 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/

[PATCH v4 4/5] net: stmmac: dwmac-sun8i: choose internal PHY via phy-is-integrated

2017-08-26 Thread Corentin Labbe
The current way to find if the phy is internal is to compare DT phy-mode and emac_variant/internal_phy. But it will negate a possible future SoC where an external PHY use the same phy mode than the internal one. This patch adds a new way to find if the PHY is internal, via the phy-is-integrated pr

[PATCH v4 0/5] net: stmmac: Detect PHY location with phy-is-integrated

2017-08-26 Thread Corentin Labbe
Hello The current way to find if the PHY is internal is to compare DT phy-mode and emac_variant/internal_phy. But it will negate a possible future SoC where an external PHY use the same phy mode than the integrated one. This patchs series adds a new way to find if the PHY is integrated, via the p

[PATCH v4 1/5] net: stmmac: Handle possible fixed-link with need_mdio_ids

2017-08-26 Thread Corentin Labbe
In case of fixed link, there are no mdio node. This patch add a test for fixed-link for bypassing MDIO node register that match need_mdio_ids. Note that this do not change behaviour for MDIO snps,dwmac-mdio nodes. Signed-off-by: Corentin Labbe --- drivers/net/ethernet/stmicro/stmmac/stmmac_plat

Re: [PATCH v6 3/5] mm: introduce mmap3 for safely defining new mmap flags

2017-08-26 Thread Helge Deller
* Dan Williams : > On Fri, Aug 25, 2017 at 9:19 AM, Helge Deller wrote: > > On 25.08.2017 18:16, Kirill A. Shutemov wrote: > >> On Fri, Aug 25, 2017 at 09:02:36AM -0700, Christoph Hellwig wrote: > >>> On Fri, Aug 25, 2017 at 06:58:03PM +0300, Kirill A. Shutemov wrote: > Not all archs are read

Re: [PATCH] crypto: axis - hide an unused variable

2017-08-26 Thread Lars Persson
> 25 aug. 2017 kl. 01:20 skrev Arnd Bergmann : > > Without CONFIG_DEBUG_FS, we get a harmless warning: > > drivers/crypto/axis/artpec6_crypto.c:352:23: error: 'dbgfs_root' defined but > not used [-Werror=unused-variable] > > This moves it into the #ifdef that hides the only user. > > Fixes: a

[tip:efi/core] efi/libstub: Enable reset attack mitigation

2017-08-26 Thread tip-bot for Matthew Garrett
Commit-ID: ccc829ba3624beb9a703fc995d016b836d9eead8 Gitweb: http://git.kernel.org/tip/ccc829ba3624beb9a703fc995d016b836d9eead8 Author: Matthew Garrett AuthorDate: Fri, 25 Aug 2017 16:50:15 +0100 Committer: Ingo Molnar CommitDate: Sat, 26 Aug 2017 09:20:33 +0200 efi/libstub: Enable rese

[tip:efi/core] efi/reboot: Make function pointer orig_pm_power_off static

2017-08-26 Thread tip-bot for Colin Ian King
Commit-ID: 68ee51cb773bed81f9ff7144eca0a08550e1f9a1 Gitweb: http://git.kernel.org/tip/68ee51cb773bed81f9ff7144eca0a08550e1f9a1 Author: Colin Ian King AuthorDate: Fri, 25 Aug 2017 16:50:17 +0100 Committer: Ingo Molnar CommitDate: Sat, 26 Aug 2017 09:20:33 +0200 efi/reboot: Make function

[tip:efi/core] efi/random: Increase size of firmware supplied randomness

2017-08-26 Thread tip-bot for Ard Biesheuvel
Commit-ID: c2ceb5fd4e921506e86208b82fca716a2c3aad59 Gitweb: http://git.kernel.org/tip/c2ceb5fd4e921506e86208b82fca716a2c3aad59 Author: Ard Biesheuvel AuthorDate: Fri, 25 Aug 2017 16:50:16 +0100 Committer: Ingo Molnar CommitDate: Sat, 26 Aug 2017 09:20:33 +0200 efi/random: Increase size

[PATCH 1/5] rapidio: idt_gen2: constify rio_device_id

2017-08-26 Thread Arvind Yadav
rio_device_id are not supposed to change at runtime. rio driver is working with const 'id_table'. So mark the non-const rio_device_id structs as const. Signed-off-by: Arvind Yadav --- drivers/rapidio/switches/idt_gen2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/

[PATCH 4/5] rapidio: tsi568: constify rio_device_id

2017-08-26 Thread Arvind Yadav
rio_device_id are not supposed to change at runtime. rio driver is working with const 'id_table'. So mark the non-const rio_device_id structs as const. Signed-off-by: Arvind Yadav --- drivers/rapidio/switches/tsi568.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ra

[tip:efi/core] efi/bgrt: Use efi_mem_type()

2017-08-26 Thread tip-bot for Jan Beulich
Commit-ID: 6de47a5e371f75f80544986e6c9636211a2ae8af Gitweb: http://git.kernel.org/tip/6de47a5e371f75f80544986e6c9636211a2ae8af Author: Jan Beulich AuthorDate: Fri, 25 Aug 2017 16:50:19 +0100 Committer: Ingo Molnar CommitDate: Sat, 26 Aug 2017 09:20:33 +0200 efi/bgrt: Use efi_mem_type()

[tip:efi/core] efi: Move efi_mem_type() to common code

2017-08-26 Thread tip-bot for Jan Beulich
Commit-ID: 23f0571c9fd184504f7a2f27011750e0ad99bb73 Gitweb: http://git.kernel.org/tip/23f0571c9fd184504f7a2f27011750e0ad99bb73 Author: Jan Beulich AuthorDate: Fri, 25 Aug 2017 16:50:18 +0100 Committer: Ingo Molnar CommitDate: Sat, 26 Aug 2017 09:20:33 +0200 efi: Move efi_mem_type() to

[tip:x86/mm] kvm/x86: Avoid clearing the C-bit in rsvd_bits()

2017-08-26 Thread tip-bot for Brijesh Singh
Commit-ID: ea2800ddb20d6e66042051a61f66e6bea4fa0db7 Gitweb: http://git.kernel.org/tip/ea2800ddb20d6e66042051a61f66e6bea4fa0db7 Author: Brijesh Singh AuthorDate: Fri, 25 Aug 2017 15:55:40 -0500 Committer: Ingo Molnar CommitDate: Sat, 26 Aug 2017 09:23:00 +0200 kvm/x86: Avoid clearing th

[PATCH 3/5] rapidio: idtcps: constify rio_device_id

2017-08-26 Thread Arvind Yadav
rio_device_id are not supposed to change at runtime. rio driver is working with const 'id_table'. So mark the non-const rio_device_id structs as const. Signed-off-by: Arvind Yadav --- drivers/rapidio/switches/idtcps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ra

[PATCH 5/5] rapidio: tsi57x: constify rio_device_id

2017-08-26 Thread Arvind Yadav
rio_device_id are not supposed to change at runtime. rio driver is working with const 'id_table'. So mark the non-const rio_device_id structs as const. Signed-off-by: Arvind Yadav --- drivers/rapidio/switches/tsi57x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ra

[PATCH 2/5] rapidio: idt_gen3: constify rio_device_id

2017-08-26 Thread Arvind Yadav
rio_device_id are not supposed to change at runtime. rio driver is working with const 'id_table'. So mark the non-const rio_device_id structs as const. Signed-off-by: Arvind Yadav --- drivers/rapidio/switches/idt_gen3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/

[PATCH 0/5] constify rio_device_id

2017-08-26 Thread Arvind Yadav
rio_device_id are not supposed to change at runtime. rio driver is working with const 'id_table'. So mark the non-const rio_device_id structs as const. Arvind Yadav (5): [PATCH 1/5] rapidio: idt_gen2: constify rio_device_id [PATCH 2/5] rapidio: idt_gen3: constify rio_device_id [PATCH 3/5] ra

Re: [PATCH RESEND] tpm: migrate pubek_show to struct tpm_buf

2017-08-26 Thread Jarkko Sakkinen
On Fri, Aug 25, 2017 at 08:29:46PM +0300, Jarkko Sakkinen wrote: > Migrated pubek_show to struct tpm_buf and cleaned up its implementation. > Previously the output parameter structure was declared but left > completely unused. Now it is used to refer different fields of the > output. We can move it

Re: [PATCH] iio: multiplexer: check memory allocation failure

2017-08-26 Thread Peter Rosin
On 2017-08-26 07:49, Christophe JAILLET wrote: > Check memory allocation failures and return -ENOMEM in such cases, as > already done few lines above for another memory allocation. > > This avoids NULL pointers dereference. > > Signed-off-by: Christophe JAILLET Hi! This is a dup of an older pa

Re: [patch V2 35/44] x86/idt: Switch early trap init to IDT tables

2017-08-26 Thread Thomas Gleixner
On Fri, 25 Aug 2017, Boris Ostrovsky wrote: > On 08/25/2017 05:47 PM, Thomas Gleixner wrote: > > > > -/* Set of traps needed for early debugging. */ > > -void __init early_trap_init(void) > > -{ > > - /* > > -* Don't use IST to set DEBUG_STACK as it doesn't work until TSS > > -* is read

[PATCH 02/11] [media] stkwebcam: make video_device const

2017-08-26 Thread Bhumika Goyal
Make this const as it is only used in a copy operation. Signed-off-by: Bhumika Goyal --- drivers/media/usb/stkwebcam/stk-webcam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/usb/stkwebcam/stk-webcam.c b/drivers/media/usb/stkwebcam/stk-webcam.c index 39abb58

[PATCH 00/11] [media]: make video_device const

2017-08-26 Thread Bhumika Goyal
Make video_device const. Bhumika Goyal (11): [media] zr364xx: make video_device const [media] stkwebcam: make video_device const [media] stk1160: make video_device const [media] s2255drv: make video_device const [media] pwc: make video_device const [media] pvrusb2: make video_device

[PATCH 01/11] [media] zr364xx: make video_device const

2017-08-26 Thread Bhumika Goyal
Make this const as it is only used in a copy operation. Signed-off-by: Bhumika Goyal --- drivers/media/usb/zr364xx/zr364xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/usb/zr364xx/zr364xx.c b/drivers/media/usb/zr364xx/zr364xx.c index d4bb56b..4ff8d0a 10064

[PATCH 04/11] [media] s2255drv: make video_device const

2017-08-26 Thread Bhumika Goyal
Make this const as it is only used in a copy operation. Signed-off-by: Bhumika Goyal --- drivers/media/usb/s2255/s2255drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/usb/s2255/s2255drv.c b/drivers/media/usb/s2255/s2255drv.c index 23f606e..b2f239c 100644 -

[PATCH 03/11] [media] stk1160: make video_device const

2017-08-26 Thread Bhumika Goyal
Make this const as it is only used in a copy operation. Signed-off-by: Bhumika Goyal --- drivers/media/usb/stk1160/stk1160-v4l.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/usb/stk1160/stk1160-v4l.c b/drivers/media/usb/stk1160/stk1160-v4l.c index a132faa..7

[PATCH 06/11] [media] pvrusb2: make video_device const

2017-08-26 Thread Bhumika Goyal
Make this const as it is only used in a copy operation. Signed-off-by: Bhumika Goyal --- drivers/media/usb/pvrusb2/pvrusb2-v4l2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/usb/pvrusb2/pvrusb2-v4l2.c b/drivers/media/usb/pvrusb2/pvrusb2-v4l2.c index 8f13c60

[PATCH 07/11] [media] msi2500: make video_device const

2017-08-26 Thread Bhumika Goyal
Make this const as it is only used in a copy operation. Signed-off-by: Bhumika Goyal --- drivers/media/usb/msi2500/msi2500.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/usb/msi2500/msi2500.c b/drivers/media/usb/msi2500/msi2500.c index 79bfd2d..a097d3d 10064

[PATCH 08/11] [media] hackrf: make video_device const

2017-08-26 Thread Bhumika Goyal
Make this const as it is only used in a copy operation. Signed-off-by: Bhumika Goyal --- drivers/media/usb/hackrf/hackrf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/usb/hackrf/hackrf.c b/drivers/media/usb/hackrf/hackrf.c index a41b305..7eb5351 100644 ---

[PATCH 05/11] [media] pwc: make video_device const

2017-08-26 Thread Bhumika Goyal
Make this const as it is only used in a copy operation. Signed-off-by: Bhumika Goyal --- drivers/media/usb/pwc/pwc-if.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/usb/pwc/pwc-if.c b/drivers/media/usb/pwc/pwc-if.c index 22420c1..eb6921d 100644 --- a/drivers/

[PATCH 10/11] [media] cpia2: make video_device const

2017-08-26 Thread Bhumika Goyal
Make this const as it is only used in a copy operation. Signed-off-by: Bhumika Goyal --- drivers/media/usb/cpia2/cpia2_v4l.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/usb/cpia2/cpia2_v4l.c b/drivers/media/usb/cpia2/cpia2_v4l.c index 7122023..3dedd83 10064

[PATCH 11/11] [media] airspy: make video_device const

2017-08-26 Thread Bhumika Goyal
Make this const as it is only used in a copy operation. Signed-off-by: Bhumika Goyal --- drivers/media/usb/airspy/airspy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/usb/airspy/airspy.c b/drivers/media/usb/airspy/airspy.c index 07f3f4e..e70c9e2 100644 ---

[PATCH 09/11] [media] go7007: make video_device const

2017-08-26 Thread Bhumika Goyal
Make this const as it is only used in a copy operation. Signed-off-by: Bhumika Goyal --- drivers/media/usb/go7007/go7007-v4l2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/usb/go7007/go7007-v4l2.c b/drivers/media/usb/go7007/go7007-v4l2.c index 445f17b..98cd

[PATCH] [media] radio: make video_device const

2017-08-26 Thread Bhumika Goyal
Make these const as they are only used in a copy operation. Signed-off-by: Bhumika Goyal --- drivers/media/radio/radio-tea5764.c| 2 +- drivers/media/radio/radio-wl1273.c | 2 +- drivers/media/radio/si4713/radio-platform-si4713.c | 2 +- drivers/media/radio/wl128x

[PATCH 1/4] docs-rst: fix verbatim font size on tables

2017-08-26 Thread Mauro Carvalho Chehab
On Sphinx 1.6, fancy boxes are used for verbatim. The sphinx.sty sets verbatim font is always \small. That causes a problem inside tables that use smaller fonts, as it can be too big for the box. Signed-off-by: Mauro Carvalho Chehab --- Documentation/conf.py | 2 +- 1 file changed, 1 insertion(+

[PATCH] MAINTAINERS: use the iommu list for the dma-mapping subsystem

2017-08-26 Thread Christoph Hellwig
Maintaining a subsystem with linux-kernel as the main list is painful as it has way to much traffic. On the other hand the dma-mapping subsystem is small enough that a list on its own would be silly. So use the list for the closes subsystem instead instead. Signed-off-by: Christoph Hellwig ---

[PATCH 2/4] media: fix pdf build with Spinx 1.6

2017-08-26 Thread Mauro Carvalho Chehab
Sphinx 1.6 generates some LaTeX code before each table, starting its own environment before calling tabulary, apparently to improve table layout. The problem is that such environment is incompatible with adjustbox. While, in thesis, it should be possible to override it or to redefine tabulary, I w

[PATCH 3/4] sphinx.rst: Allow Sphinx version 1.6 at the docs

2017-08-26 Thread Mauro Carvalho Chehab
Now that the PDF building issues with Sphinx 1.6 got fixed, update the documentation and scripts accordingly. Signed-off-by: Mauro Carvalho Chehab --- Documentation/doc-guide/sphinx.rst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Documentation/doc-guide/sphinx.rst b/D

[PATCH 0/4] Fix problems on building documentation with Sphinx 1.6

2017-08-26 Thread Mauro Carvalho Chehab
Sphinx 1.6 changed the way tables are produced, adding some new macros before tables that do vertical alignments. This is incompatible with adjustbox, used by the media book, causing build to fail. This series fix such issues and make the layout on Sphinx 1.6 acceptable. The first patch in this s

[PATCH 4/4] docs-rst: don't require adjustbox anymore

2017-08-26 Thread Mauro Carvalho Chehab
Only the media PDF book was requiring adjustbox, in order to scale big tables. That worked pretty good with Sphinx versions 1.4 and 1.5, but Spinx 1.6 changed the way tables are produced, by introducing some weird macros before tabulary. That causes adjustbox to fail. So, it can't be used anymore,

RE: [PATCH] watchdog: mei_wdt: constify mei_cl_device_id

2017-08-26 Thread Winkler, Tomas
> > mei_cl_device_id are not supposed to change at runtime. All functions > working with mei_cl_device_id provided by work with > const mei_cl_device_id. So mark the non-const structs as const. > > Signed-off-by: Arvind Yadav Ack. > --- > drivers/watchdog/mei_wdt.c | 2 +- > 1 file changed, 1

RE: [PATCH] nfc: microread: mei: constify mei_cl_device_id

2017-08-26 Thread Winkler, Tomas
> mei_cl_device_id are not supposed to change at runtime. > mei driver is working with const 'id_table'. So mark the non-const > mei_cl_device_id structs as const. > > Signed-off-by: Arvind Yadav Ack. > drivers/nfc/microread/mei.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff

RE: [PATCH] nfc: pn544: mei: constify mei_cl_device_id

2017-08-26 Thread Winkler, Tomas
> > mei_cl_device_id are not supposed to change at runtime. > mei driver is working with const 'id_table'. So mark the non-const > mei_cl_device_id structs as const. > > Signed-off-by: Arvind Yadav Ack > drivers/nfc/pn544/mei.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff

Re: [PATCH v2 4/4] docs-rst: Allow Sphinx version 1.6

2017-08-26 Thread Mauro Carvalho Chehab
Em Thu, 24 Aug 2017 13:29:14 -0600 Jonathan Corbet escreveu: > On Thu, 24 Aug 2017 13:26:28 -0600 > Jonathan Corbet wrote: > > > > - % To allow adjusting table sizes > > > - \\usepackage{adjustbox} > > > - > > > ''' > > > } > > > > So this change doesn't quite match the changelog...

Re: [PATCH 2/2] ARM: dts: rockchip: Add rk3288 vyasa board

2017-08-26 Thread Heiko Stuebner
Hi Jagan, Am Samstag, 26. August 2017, 12:21:43 CEST schrieb Jagan Teki: > From: Jagan Teki > > This patch adds initial support for rk3288 based > Vyasa board, which is made by Amarula Solutions. > > Signed-off-by: Jagan Teki > --- > arch/arm/boot/dts/Makefile | 3 +- > arch/arm/boo

[PATCH v2 2/2] ARM: dts: rockchip: Add rk3288 vyasa board

2017-08-26 Thread Jagan Teki
From: Jagan Teki This patch adds initial support for rk3288 based Vyasa board, which is made by Amarula Solutions. Signed-off-by: Jagan Teki --- Changes for v2: - Added entry in Documentation/devicetree/bindings/arm/rockchip.txt Documentation/devicetree/bindings/arm/rockchip.txt | 4 + arch

[PATCH 00/10] [media] platform: make video_device const

2017-08-26 Thread Bhumika Goyal
Make make video_device const. Bhumika Goyal (10): [media] cx88: make video_device const [media] dt3155: make video_device const [media]: marvell-ccic: make video_device const [media] mx2-emmaprp: make video_device const [media]: s5p-g2d: make video_device const [media]: ti-vpe: make v

[PATCH 02/10] [media] dt3155: make video_device const

2017-08-26 Thread Bhumika Goyal
Make this const as it is only used in a copy operation. Signed-off-by: Bhumika Goyal --- drivers/media/pci/dt3155/dt3155.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/pci/dt3155/dt3155.c b/drivers/media/pci/dt3155/dt3155.c index 6a21969..1775c36 100644 ---

[PATCH 01/10] [media] cx88: make video_device const

2017-08-26 Thread Bhumika Goyal
Make this const as it is only passed to the const argument of the function cx88_vdev_init. Signed-off-by: Bhumika Goyal --- drivers/media/pci/cx88/cx88-blackbird.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/pci/cx88/cx88-blackbird.c b/drivers/media/pci/cx8

[PATCH 03/10] [media]: marvell-ccic: make video_device const

2017-08-26 Thread Bhumika Goyal
Make this const as it is only used in a copy operation. Signed-off-by: Bhumika Goyal --- drivers/media/platform/marvell-ccic/mcam-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/marvell-ccic/mcam-core.c b/drivers/media/platform/marvell-ccic/mcam

[PATCH 05/10] [media]: s5p-g2d: make video_device const

2017-08-26 Thread Bhumika Goyal
Make this const as it is only used in a copy operation. Signed-off-by: Bhumika Goyal --- drivers/media/platform/s5p-g2d/g2d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/s5p-g2d/g2d.c b/drivers/media/platform/s5p-g2d/g2d.c index bd655b5..66aa8cf 10

Re: [RFC][PATCH] time: Fix ktime_get_raw() issues caused by incorrect base accumulation

2017-08-26 Thread Chris Wilson
Quoting John Stultz (2017-08-25 23:57:04) > In commit fc6eead7c1e2 ("time: Clean up CLOCK_MONOTONIC_RAW time > handling"), I mistakenly added the following: > > /* Update the monotonic raw base */ > seconds = tk->raw_sec; > nsec = (u32)(tk->tkr_raw.xtime_nsec >> tk->tkr_raw.shift); > tk->tkr_r

[PATCH 07/10] [media] via-camera: make video_device const

2017-08-26 Thread Bhumika Goyal
Make this const as it is only used in a copy operation. Signed-off-by: Bhumika Goyal --- drivers/media/platform/via-camera.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/via-camera.c b/drivers/media/platform/via-camera.c index e16f70a..805d4a8 10064

[PATCH 06/10] [media]: ti-vpe: make video_device const

2017-08-26 Thread Bhumika Goyal
Make this const as it is only used in a copy operation. Signed-off-by: Bhumika Goyal --- drivers/media/platform/ti-vpe/cal.c | 2 +- drivers/media/platform/ti-vpe/vpe.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/ti-vpe/cal.c b/drivers/media/pla

[PATCH 04/10] [media] mx2-emmaprp: make video_device const

2017-08-26 Thread Bhumika Goyal
Make this const as it is only used in a copy operation. Signed-off-by: Bhumika Goyal --- drivers/media/platform/mx2_emmaprp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/mx2_emmaprp.c b/drivers/media/platform/mx2_emmaprp.c index 7fd209e..3493d40 10

[PATCH 08/10] [media]: fsl-viu: make video_device const

2017-08-26 Thread Bhumika Goyal
Make this const as it is only used in a copy operation. Signed-off-by: Bhumika Goyal --- drivers/media/platform/fsl-viu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/fsl-viu.c b/drivers/media/platform/fsl-viu.c index f7b88e5..b3b91cb 100644 --- a/dr

[PATCH 09/10] [media] m2m-deinterlace: make video_device const

2017-08-26 Thread Bhumika Goyal
Make this const as it is only used in a copy operation. Signed-off-by: Bhumika Goyal --- drivers/media/platform/m2m-deinterlace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/m2m-deinterlace.c b/drivers/media/platform/m2m-deinterlace.c index 98f6db2

[PATCH 10/10] [media] vim2m: make video_device const

2017-08-26 Thread Bhumika Goyal
Make this const as it is only used in a copy operation. Signed-off-by: Bhumika Goyal --- drivers/media/platform/vim2m.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/vim2m.c b/drivers/media/platform/vim2m.c index afbaa35..b01fba0 100644 --- a/drivers/

Re: I/O hangs after resuming from suspend-to-ram

2017-08-26 Thread Oleksandr Natalenko
Hi. I've re-checked this issue with 4.12.9, and it is still there. Also, I've managed to reproduce it in a VM with non-virtio disks (just -hda/- hdb pair in QEMU). I'm not able to reproduce it with blk_mq disabled. Also, if blk_mq is enabled, scheduler does not make any difference, even setting

[PATCH] netfilter: ipv4: nf_defrag: constify nf_hook_ops

2017-08-26 Thread Arvind Yadav
nf_hook_ops are not supposed to change at runtime. nf_register_net_hooks and nf_unregister_net_hooks are working with const nf_hook_ops. So mark the non-const nf_hook_ops structs as const. Signed-off-by: Arvind Yadav --- net/ipv4/netfilter/nf_defrag_ipv4.c | 2 +- 1 file changed, 1 insertion(+),

[PATCH] netfilter: ipv6: nf_defrag: constify nf_hook_ops

2017-08-26 Thread Arvind Yadav
nf_hook_ops are not supposed to change at runtime. nf_register_net_hooks and nf_unregister_net_hooks are working with const nf_hook_ops. So mark the non-const nf_hook_ops structs as const. Signed-off-by: Arvind Yadav --- net/ipv6/netfilter/nf_defrag_ipv6_hooks.c | 2 +- 1 file changed, 1 inserti

[PATCH] selinux: constify nf_hook_ops

2017-08-26 Thread Arvind Yadav
nf_hook_ops are not supposed to change at runtime. nf_register_net_hooks and nf_unregister_net_hooks are working with const nf_hook_ops. So mark the non-const nf_hook_ops structs as const. Signed-off-by: Arvind Yadav --- security/selinux/hooks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

Re: I/O hangs after resuming from suspend-to-ram

2017-08-26 Thread Oleksandr Natalenko
Quick update: reproduced on both v4.12.7 and v4.13.0-rc6. On sobota 26. srpna 2017 12:37:29 CEST Oleksandr Natalenko wrote: > Hi. > > I've re-checked this issue with 4.12.9, and it is still there. > > Also, I've managed to reproduce it in a VM with non-virtio disks (just > -hda/- hdb pair in QEM

Re: [PATCH] netfilter: ipv4: nf_defrag: constify nf_hook_ops

2017-08-26 Thread Florian Westphal
Arvind Yadav wrote: > nf_hook_ops are not supposed to change at runtime. nf_register_net_hooks > and nf_unregister_net_hooks are working with const nf_hook_ops. > So mark the non-const nf_hook_ops structs as const. please update your nf-next tree, all nf_hook_ops are suppoed to be const already.

[PATCH] smack: constify nf_hook_ops

2017-08-26 Thread Arvind Yadav
nf_hook_ops are not supposed to change at runtime. nf_register_net_hooks and nf_unregister_net_hooks are working with const nf_hook_ops. So mark the non-const nf_hook_ops structs as const. Signed-off-by: Arvind Yadav --- security/smack/smack_netfilter.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH v2 2/3] media: open.rst: document devnode-centric and mc-centric types

2017-08-26 Thread Mauro Carvalho Chehab
Em Fri, 25 Aug 2017 15:42:21 +0200 Hans Verkuil escreveu: > On 25/08/17 14:52, Mauro Carvalho Chehab wrote: > > From: "mche...@s-opensource.com" > > > > When we added support for omap3, back in 2010, we added a new > > type of V4L2 devices that aren't fully controlled via the V4L2 > > device no

Re: [patch V2 35/44] x86/idt: Switch early trap init to IDT tables

2017-08-26 Thread Juergen Gross
On 26/08/17 10:16, Thomas Gleixner wrote: > On Fri, 25 Aug 2017, Boris Ostrovsky wrote: >> On 08/25/2017 05:47 PM, Thomas Gleixner wrote: >>> >>> -/* Set of traps needed for early debugging. */ >>> -void __init early_trap_init(void) >>> -{ >>> - /* >>> -* Don't use IST to set DEBUG_STACK as

[PATCH v3] arm64: allwinner: h5: add support for NanoPi NEO Plus 2

2017-08-26 Thread Antony Antony
Add initial DT support for NanoPi NEO Plus 2 by FriendlyELEC Allwinner quad core H5 Cortex A53 with an ARM Mali-450MP GPU 1 GB DDR3 RAM 8GB eMMC flash (Samsung KLM8G1WEPD-B031) micro SD card slot Gigabit Etherne

[PATCH 2/5] [media] saa7134: make video_device const

2017-08-26 Thread Bhumika Goyal
Make this const as it is only used in a copy operation. Signed-off-by: Bhumika Goyal --- drivers/media/pci/saa7134/saa7134-empress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/pci/saa7134/saa7134-empress.c b/drivers/media/pci/saa7134/saa7134-empress.c inde

[PATCH 1/5] [media] meye: make video_device const

2017-08-26 Thread Bhumika Goyal
Make this const as it is only used in a copy operation. Signed-off-by: Bhumika Goyal --- drivers/media/pci/meye/meye.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/pci/meye/meye.c b/drivers/media/pci/meye/meye.c index 0fe76be..49e047e 100644 --- a/drivers/med

[PATCH 0/5] [media] PCI: make video_device const

2017-08-26 Thread Bhumika Goyal
Make video_device const. Bhumika Goyal (5): [media] meye: make video_device const [media] saa7134: make video_device const [media] solo6x10: make video_device const [media] sta2x11: make video_device const [media] tw68: make video_device const drivers/media/pci/meye/meye.c

[PATCH 4/5] [media] sta2x11: make video_device const

2017-08-26 Thread Bhumika Goyal
Make this const as it is only used in a copy operation. Signed-off-by: Bhumika Goyal --- drivers/media/pci/sta2x11/sta2x11_vip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/pci/sta2x11/sta2x11_vip.c b/drivers/media/pci/sta2x11/sta2x11_vip.c index 6343d24..e

[PATCH 3/5] [media] solo6x10: make video_device const

2017-08-26 Thread Bhumika Goyal
Make this const as it is only used in a copy operation. Signed-off-by: Bhumika Goyal --- drivers/media/pci/solo6x10/solo6x10-v4l2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/pci/solo6x10/solo6x10-v4l2.c b/drivers/media/pci/solo6x10/solo6x10-v4l2.c index 3

[PATCH 5/5] [media] tw68: make video_device const

2017-08-26 Thread Bhumika Goyal
Make this const as it is only used in a copy operation. Signed-off-by: Bhumika Goyal --- drivers/media/pci/tw68/tw68-video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/pci/tw68/tw68-video.c b/drivers/media/pci/tw68/tw68-video.c index 58c4dd7..8c1f4a0 10064

Re: scsi: ufs: Delete an error message for a failed memory allocation in ufshcd_memory_alloc()

2017-08-26 Thread SF Markus Elfring
>> PS: ufshcd_memory_alloc() also does some DMA coherent memory allocation >> (via dmam_alloc_coherent() APIs) and tries to print out the message on >> allocation failure. Although i don't know "out of memory" messages will >> be printed out by dmam_alloc_coherent() APIs or not. If it does print

Re: [PATCH RESEND] tpm: migrate pubek_show to struct tpm_buf

2017-08-26 Thread Jarkko Sakkinen
On Sat, Aug 26, 2017 at 11:10:04AM +0300, Jarkko Sakkinen wrote: > On Fri, Aug 25, 2017 at 08:29:46PM +0300, Jarkko Sakkinen wrote: > > Migrated pubek_show to struct tpm_buf and cleaned up its implementation. > > Previously the output parameter structure was declared but left > > completely unused.

Re: I/O hangs after resuming from suspend-to-ram

2017-08-26 Thread Martin Steigerwald
Hello Oleksandr, Oleksandr Natalenko - 26.08.17, 12:48: > Quick update: reproduced on both v4.12.7 and v4.13.0-rc6. > > On sobota 26. srpna 2017 12:37:29 CEST Oleksandr Natalenko wrote: […] > > I've re-checked this issue with 4.12.9, and it is still there. […] > > On úterý 22. srpna 2017 13:45:43

[PATCH] sparc: leon: grpci1: constify of_device_id

2017-08-26 Thread Arvind Yadav
of_device_id are not supposed to change at runtime. All functions working with of_device_id provided by work with const of_device_ids. So mark the const and __initconst. Signed-off-by: Arvind Yadav --- arch/sparc/kernel/leon_pci_grpci1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di

[PATCH] sparc: leon: grpci2: constify of_device_id

2017-08-26 Thread Arvind Yadav
of_device_id are not supposed to change at runtime. All functions working with of_device_id provided by work with const of_device_ids. So mark the const and __initconst. Signed-off-by: Arvind Yadav --- arch/sparc/kernel/leon_pci_grpci2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di

[PATCH] staging: bcm2835-camera: make video_device const

2017-08-26 Thread Bhumika Goyal
Make this const as it is only used in a copy operation. Signed-off-by: Bhumika Goyal --- drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c b/drivers/stag

[PATCH] [media] Staging: media: radio-bcm2048: make video_device const

2017-08-26 Thread Bhumika Goyal
Make this const as it is only used in a copy operation. Signed-off-by: Bhumika Goyal --- drivers/staging/media/bcm2048/radio-bcm2048.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/bcm2048/radio-bcm2048.c b/drivers/staging/media/bcm2048/radio-bcm2048.

[PATCH] f2fs: collect prefree segments to avoild write checkpoint fail

2017-08-26 Thread Yunlong Song
In come corner case, the reserved segments are used to do gc, and there are not enough free segments for write checkpoint to finish its job, then the gc process will fail to change the prefree segments to free segments. Signed-off-by: Yunlong Song --- fs/f2fs/gc.c | 7 +++ 1 file changed, 7

[PATCH v4 4/7] media: open.rst: document devnode-centric and mc-centric types

2017-08-26 Thread Mauro Carvalho Chehab
When we added support for omap3, back in 2010, we added a new type of V4L2 devices that aren't fully controlled via the V4L2 device node. Yet, we have never clearly documented in the V4L2 specification the differences between the two types. Let's document them based on the the current implementat

  1   2   3   >