[PATCH v3 24/77] ncr5380: Implement NCR5380_dma_xfer_len and remove LIMIT_TRANSFERSIZE macro

2015-12-21 Thread Finn Thain
Follow the example of the atari_NCR5380.c core driver and adopt the NCR5380_dma_xfer_len() hook. Implement NCR5380_dma_xfer_len() for dtc.c and g_NCR5380.c to take care of the limitations of these cards. Keep the default for drivers using PSEUDO_DMA. Eliminate the unused macro LIMIT_TRANSFERSIZE.

[PATCH v3 71/77] ncr5380: Cleanup whitespace and parentheses

2015-12-21 Thread Finn Thain
Signed-off-by: Finn Thain --- drivers/scsi/NCR5380.c | 30 +++--- drivers/scsi/atari_NCR5380.c | 26 +- 2 files changed, 32 insertions(+), 24 deletions(-) Index: linux/drivers/scsi/NCR5380.c

[PATCH v3 77/77] ncr5380: Add support for HP C2502

2015-12-21 Thread Finn Thain
From: Ondrej Zary HP C2502 cards (based on 53C400A chips) use different magic numbers for software-based I/O address configuration than other cards. The configuration is also extended to allow setting the IRQ. Move the configuration to a new function magic_configure() and move magic the magic

[PATCH v3 23/77] ncr5380: Always retry arbitration and selection

2015-12-21 Thread Finn Thain
If NCR5380_select() returns -1, it means arbitration was lost or selection failed and should be retried. If the main loop simply terminates when there are still commands on the issue queue, they will remain queued until they expire. Fix this by clearing the 'done' flag after selection failure or

[PATCH v3 62/77] ncr5380: Implement new eh_bus_reset_handler

2015-12-21 Thread Finn Thain
NCR5380.c lacks a sane eh_bus_reset_handler. The atari_NCR5380.c code is much better but it should not throw out the issue queue (that would be a host reset) and it neglects to set the result code for commands that it throws out. Fix these bugs and keep the two core drivers in sync.

[PATCH v3 49/77] ncr5380: Remove redundant ICR_ARBITRATION_LOST test and eliminate FLAG_DTC3181E

2015-12-21 Thread Finn Thain
Remove FLAG_DTC3181E. It was used to suppress a final Arbitration Lost (SEL asserted) test that isn't actually needed. The test was suppressed because it causes problems for DTC436 and DTC536 chips. It takes place after the host wins arbitration, so SEL has been asserted. These chips can't seem to

[PATCH v3 56/77] ncr5380: Remove redundant volatile qualifiers

2015-12-21 Thread Finn Thain
The hostdata struct is now protected by a spin lock so the volatile qualifiers are redundant. Remove them. Signed-off-by: Finn Thain --- drivers/scsi/NCR5380.h | 12 ++-- drivers/scsi/atari_NCR5380.c |2 +- 2 files changed, 7 insertions(+), 7 deletions(-) Index:

[PATCH v3 27/77] ncr5380: Add missing lock in eh_abort_handler

2015-12-21 Thread Finn Thain
The host spin lock needs to be acquired by NCR5380_abort() before it calls NCR5380_select(). This patch doesn't actually fix the EH issues in this driver but it does avoid this: BUG: spinlock already unlocked on CPU#0, kworker/u4:1/14 lock: 0xc0c0f834, .magic: dead4ead, .owner: /-1, .owner_cpu:

[PATCH v3 55/77] ncr5380: Remove LIST and REMOVE macros

2015-12-21 Thread Finn Thain
Printing command pointers can be useful when debugging queues. Other than that, the LIST and REMOVE macros are just clutter. These macros are redundant now that NDEBUG_QUEUES causes pointers to be printed, so remove them. Signed-off-by: Finn Thain --- drivers/scsi/NCR5380.c | 19

[PATCH v3 48/77] atari_NCR5380: Fix queue_size limit

2015-12-21 Thread Finn Thain
When a target reports a QUEUE_FULL condition it causes the driver to update the 'queue_size' limit with the number of currently allocated tags. At least, that's what's supposed to happen, according to the comments. Unfortunately the terms in the assignment are swapped. Fix this and cleanup some

[PATCH v3 39/77] ncr5380: Standardize interrupt handling

2015-12-21 Thread Finn Thain
Because interrupt handling is crucial to the core driver(s), all wrapper drivers need to agree on this code. This patch removes discrepancies. NCR5380_intr() in NCR5380.c has the following pointless loop that differs from the code in atari_NCR5380.c. done = 1; do {

[PATCH v3 01/77] atari_scsi: Fix SCSI host ID setting

2015-12-21 Thread Finn Thain
The NVRAM location of this byte is 16, as documented in http://toshyp.atari.org/en/004009.html This was confirmed by Michael Schmitz, by setting the SCSI host ID under EmuTOS and then checking the value in /proc/driver/nvram and /dev/nvram under Linux. Signed-off-by: Finn Thain Reviewed-by:

[PATCH v3 02/77] ncr5380: Remove redundant static variable initializers

2015-12-21 Thread Finn Thain
Signed-off-by: Finn Thain Reviewed-by: Hannes Reinecke --- drivers/scsi/NCR5380.c |2 +- drivers/scsi/dtc.c |4 ++-- drivers/scsi/g_NCR5380.c |4 ++-- drivers/scsi/pas16.c | 10 +- drivers/scsi/sun3_scsi.c |8 drivers/scsi/t128.c |4 ++--

[GIT PULL] VC4 3D fixes for -next

2015-12-21 Thread Eric Anholt
I've decided to just send this fixes-for-next pull request now, even if we don't have a patch for the CONFIG_PM_SLEEP build failure reviewed. If you like my patch for that, I'd be happy to see it applied directly. The following changes since commit 21de54b3c4d08d2b20e80876c6def0b421dfec2e:

Re: [RFC] free_pages stuff

2015-12-21 Thread Al Viro
On Mon, Dec 21, 2015 at 05:16:44PM -0800, Linus Torvalds wrote: > On Dec 21, 2015 17:04, "Al Viro" wrote: > > > > > And quite frankly, even the "new name" is likely a bad idea. If you > > > want to allocate a page, and get a pointer, just use "kmalloc()". > > > Boom, done! > > > > Erm... You've

Re: [PATCH] null_blk: fix use-after-free error

2015-12-21 Thread Ming Lei
On Tue, Dec 15, 2015 at 5:56 PM, Mike Krinkin wrote: > blk_end_request_all may free request, so we need to save > request_queue pointer before blk_end_request_all call. > > The problem was introduced in commit cf8ecc5a8455266f8d51 > ("null_blk: guarantee device restart in all irq modes") > and

Re: [REGRESSION] tcp/ipv4: kernel panic because of (possible) division by zero

2015-12-21 Thread Yuchung Cheng
On Mon, Dec 21, 2015 at 12:25 PM, Oleksandr Natalenko wrote: > Commit 3759824da87b30ce7a35b4873b62b0ba38905ef5 (tcp: PRR uses CRB mode by > default and SS mode conditionally) introduced changes to net/ipv4/tcp_input.c > tcp_cwnd_reduction() that, possibly, cause division by zero, and therefore, >

[PATCH] drm/vc4: Remove broken attempt at GPU reset using genpd.

2015-12-21 Thread Eric Anholt
I've tested and confirmed that it doesn't actually work. We'll need to sort out how to do this properly later, but for now just remove it since it also caused build breakage due to using CONFIG_PM_SLEEP functions without our Kconfig depending on PM_SLEEP. Signed-off-by: Eric Anholt ---

RE: [PATCH v1 2/2] dt-bindings: sound: add devicetree document for rt5616

2015-12-21 Thread Bard Liao
> -Original Message- > From: Caesar Wang [mailto:w...@rock-chips.com] > Sent: Monday, December 21, 2015 10:56 PM > To: broo...@kernel.org; robh...@kernel.org > Cc: linux-kernel@vger.kernel.org; devicet...@vger.kernel.org; > alsa-de...@alsa-project.org; Bard Liao; he...@sntech.de; Caesar

[PATCH 1/2] PCI: generic: Refactor code to enable reuse by other drivers.

2015-12-21 Thread David Daney
From: David Daney No change in functionality. Move structure definitions into a separate header file. Split probe function in to two parts: - a small driver specific probe function (gen_pci_probe) - a common probe that can be used by other drivers (gen_pci_common_probe)

[PATCH 0/2] pci: Add host controller driver for Cavium ThunderX PCIe

2015-12-21 Thread David Daney
From: David Daney Some Cavium ThunderX processors require quirky access methods for the config space of the PCIe bridge. There are two patches: 1) Refactor code in pci-host-generic so that it can more easily be used by other drivers. 2) Add the ThunderX PCIe driver, which leverages the

[PATCH 2/2] pci, pcie-thunder-pem: Add PCIe host driver for ThunderX processors.

2015-12-21 Thread David Daney
From: David Daney Some Cavium ThunderX processors require quirky access methods for the config space of the PCIe bridge. Add a driver to provide these config space accessor functions. The pci-host-generic driver code is used to configure the PCI machinery. Signed-off-by: David Daney ---

Re: [PATCH 2/5] watchdog: Separate and maintain variables based on variable lifetime

2015-12-21 Thread Guenter Roeck
On 12/21/2015 03:36 PM, Tomas Winkler wrote: On Mon, Dec 21, 2015 at 7:28 PM, Damien Riegel wrote: On Sun, Dec 20, 2015 at 01:05:00PM -0800, Guenter Roeck wrote: All variables required by the watchdog core to manage a watchdog are currently stored in struct watchdog_device. The lifetime of

Re: [BUG, bisect, linux-next] do_IRQ: No irq handler for vector

2015-12-21 Thread Jeremiah Mahler
0:00:00 2001 > From: Jiang Liu > Date: Mon, 30 Nov 2015 16:09:29 +0800 > Subject: [PATCH] x86/irq: Fix a race condition between vector assigning and >cleanup > [...] Thank you to whoever yanked this patch. It is gone from -next 20151221+ and my machine is working ag

Re: [RFC] free_pages stuff

2015-12-21 Thread Linus Torvalds
[ Grr. Resending because the stupid android gmail app still can't do text emails ] On Dec 21, 2015 17:04, "Al Viro" wrote: > > > And quite frankly, even the "new name" is likely a bad idea. If you > > want to allocate a page, and get a pointer, just use "kmalloc()". > > Boom, done! > > Erm...

Re: [PATCH 1/6] perf, tools, stat: Abstract stat metrics printing

2015-12-21 Thread Andi Kleen
> > - fprintf(out, " "); > > + print_metric(ctxp, NULL, NULL, "insn per cycle", 0); > > } > > total = > > avg_stats(_stalled_cycles_front_stats[ctx][cpu]); > > total = max(total, > >

Re: [PATCH v2 9/9] MIPS: dts: jz4780/ci20: Add compatible property to "partitions" node

2015-12-21 Thread Ralf Baechle
On Mon, Dec 21, 2015 at 11:33:53AM +0100, Geert Uytterhoeven wrote: > Date: Mon, 21 Dec 2015 11:33:53 +0100 > From: Geert Uytterhoeven > To: a...@kernel.org, Andrew Lunn , Gregory Clement > , Sebastian Hesselbarth > , Simon Horman , > Magnus Damm , Ralf Baechle , > Alex Smith > Cc: Brian

Re: [PATCH v5] extcon: add Maxim MAX3355 driver

2015-12-21 Thread Chanwoo Choi
On 2015년 12월 21일 20:01, Sergei Shtylyov wrote: > Hello. > > On 12/21/2015 5:38 AM, Chanwoo Choi wrote: > This patch depend on GPIOLIB configuration as following: I modified it with following diff and applied it. diff --git a/drivers/extcon/Kconfig b/drivers/extcon/Kconfig

Re: [PATCH 2/5] watchdog: Separate and maintain variables based on variable lifetime

2015-12-21 Thread Guenter Roeck
On 12/21/2015 09:28 AM, Damien Riegel wrote: On Sun, Dec 20, 2015 at 01:05:00PM -0800, Guenter Roeck wrote: All variables required by the watchdog core to manage a watchdog are currently stored in struct watchdog_device. The lifetime of those variables is determined by the watchdog driver.

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

2015-12-21 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the drm-intel tree got a conflict in: drivers/gpu/drm/i915/intel_pm.c between commit: 344df9809f45 ("drm/i915/skl: Disable coarse power gating up until F0") from Linus' tree and commit: 06e668ac91c9 ("drm/i915: Apply broader

Re: [RFC] free_pages stuff

2015-12-21 Thread Al Viro
On Mon, Dec 21, 2015 at 04:03:11PM -0800, Linus Torvalds wrote: > If you want to have versions of the function that return pointers, you > had damn well better give them new names. Not use the same name for a > different function, causing confusion and forcing this kind of crazy > "change

RE: [PATCH v4 7/7] ACPI / x86: introduce acpi_os_readable() support

2015-12-21 Thread Chen, Yu C
Hi Andy, thanks for your review, > -Original Message- > From: Andy Lutomirski [mailto:l...@amacapital.net] > Sent: Friday, December 18, 2015 1:00 AM > To: Zheng, Lv > Cc: Chen, Yu C; Moore, Robert; Wysocki, Rafael J; Brown, Len; Andy > Lutomirski; Lv Zheng; linux-kernel@vger.kernel.org;

Re: bad page state due to PF_ALG socket

2015-12-21 Thread Cong Wang
On Thu, Dec 17, 2015 at 4:58 AM, Dmitry Vyukov wrote: > kasan: GPF could be caused by NULL-ptr deref or user memory access > general protection fault: [#1] SMP KASAN > Modules linked in: > CPU: 3 PID: 7168 Comm: a.out Tainted: GB 4.4.0-rc3+ #151 > Hardware name: QEMU Standard

Re: [PATCH 2/2] irqchip/gic: Only populate set_affinity for the root controller

2015-12-21 Thread kbuild test robot
Hi Jon, [auto build test ERROR on tip/irq/core] [also build test ERROR on next-20151221] [cannot apply to v4.4-rc6] url: https://github.com/0day-ci/linux/commits/Jon-Hunter/irqchip-gic-Remove-static-irq_chip-definition-for-eoimode1/20151221-221639 config: arm-realview_defconfig (attached

[PATCH 1/2] drivers/pci: make host/pcie-rcar.c explicitly non-modular

2015-12-21 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/pci/host/Kconfig:config PCI_RCAR_GEN2_PCIE drivers/pci/host/Kconfig: bool "Renesas R-Car PCIe controller" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is

[PATCH 0/2] drivers/pci: use builtin_platform_driver in renesas

2015-12-21 Thread Paul Gortmaker
These two commits are extracted from what was a larger series[1] of demodularization in PCI host code that was bool Kconfig. With the other commits, there was some mixed opinions whether we should make it explicitly non-modular or move towards making it functionally working as a tristate in order

[PATCH 2/2] drivers/pci: make host/pci-rcar-gen2.c explicitly non-modular

2015-12-21 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/pci/host/Kconfig:config PCI_RCAR_GEN2 drivers/pci/host/Kconfig: bool "Renesas R-Car Gen2 Internal PCI controller" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code

Re: [PATCH 4/6] soc: rockchip: add reboot mode driver

2015-12-21 Thread kbuild test robot
Hi Andy, [auto build test WARNING on robh/for-next] [also build test WARNING on v4.4-rc6 next-20151221] [cannot apply to rockchip/for-next] url: https://github.com/0day-ci/linux/commits/Andy-Yan/misc-add-reboot-mode-driver/20151221-195031 base: https://git.kernel.org/pub/scm/linux/kernel

Re: [PATCH] mm, oom: initiallize all new zap_details fields before use

2015-12-21 Thread Sasha Levin
On 12/21/2015 05:24 PM, Andrew Morton wrote: >>> Should we use c99 initializer instead to make it future-proof? >> > >> > I didn't do that to make these sort of failures obvious. In this case, if >> > we would have >> > used an initializer and it would default to the "wrong" values it would be

Re: [PATCH v1 2/2] dt-bindings: sound: add devicetree document for rt5616

2015-12-21 Thread Caesar Wang
Hi 在 2015年12月22日 05:15, Frank Rowand 写道: On 12/21/2015 6:56 AM, Caesar Wang wrote: Add the description for rt5616 codec. Signed-off-by: Caesar Wang --- Changes in v1: - As Heiko comments, remove the not exist option properties. Documentation/devicetree/bindings/sound/rt5616.txt | 36

[lkp] [ipv4, ipv6] c5e8d791ca: BUG: unable to handle kernel

2015-12-21 Thread kernel test robot
FYI, we noticed the below changes on https://github.com/0day-ci/linux Geliang-Tang/Bluetooth-use-list_for_each_entry/20151218-234306 commit c5e8d791cacac62eeec48e00a1a14a6a350670f4 ("ipv4, ipv6: use list_for_each_entry*") [6.848404] IPv6: Attempt to override permanent protocol 33 [

Re: 4.4-rc5 crash (af_unix)

2015-12-21 Thread Cong Wang
(Cc'ing netdev and Rainer) On Thu, Dec 17, 2015 at 9:12 PM, Mika Penttilä wrote: > Still something with af_unix and/or wake code on rc5 : > > > [34971.300210] Unable to handle kernel paging request at virtual address > 56ac56ac > > [34971.307455] pgd = a8c3 > > [34971.310164] [56ac56ac]

linux-next: manual merge of the drm tree with the imx-mxs tree

2015-12-21 Thread Stephen Rothwell
Hi Dave, Today's linux-next merge of the drm tree got a conflict in: Documentation/devicetree/bindings/vendor-prefixes.txt between commit: 453bb38ce504 ("devicetree: bindings: Add vendor prefix for Kosagi") from the imx-mxs tree and commit: f42fb5539ab5 ("devicetree: add vendor prefix

Re: [lustre-devel] [PATCH] staging: lustre: Handle nodemask on UMP machines

2015-12-21 Thread Dilger, Andreas
On 2015/12/21, 15:08, "lustre-devel on behalf of Greg Kroah-Hartman" wrote: >On Sun, Nov 08, 2015 at 11:34:55AM -0500, James Simmons wrote: >> For UMP and SMP machines the struct cfs_cpt_table are >> defined differently. In the case handled by this patch >> nodemask is defined as a integer for

Re: [PATCH v4 5/5] misc: eeprom_93xx46: Add support for a GPIO 'select' line.

2015-12-21 Thread Vladimir Zapolskiy
Hi Cory, On 10.12.2015 06:00, Cory Tusar wrote: > This commit adds support to the eeprom_93x46 driver allowing a GPIO line > to function as a 'select' or 'enable' signal prior to accessing the > EEPROM. > > Signed-off-by: Cory Tusar > Tested-by: Chris Healy > --- >

Re: [PATCH 3/8] cgroup: implement cgroup_get_from_path() and expose cgroup_put()

2015-12-21 Thread Serge E. Hallyn
On Mon, Dec 07, 2015 at 05:38:50PM -0500, Tejun Heo wrote: > Implement cgroup_get_from_path() using kernfs_walk_and_get() which > obtains a default hierarchy cgroup from its path. This will be used > to allow cgroup path based matching from outside cgroup proper - > e.g. networking and perf. Hi

Re: [PATCH v4 4/5] misc: eeprom_93xx46: Add quirks to support Atmel AT93C46D device.

2015-12-21 Thread Vladimir Zapolskiy
With best wishes, Vladimir On 10.12.2015 06:00, Cory Tusar wrote: > Atmel devices in this family have some quirks not found in other similar > chips - they do not support a sequential read of the entire EEPROM > contents, and the control word sent at the start of each operation > varies in bit

[POC][PATCH 08/83] affs_evict_inode(): get rid of pointless casts

2015-12-21 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- fs/affs/inode.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/affs/inode.c b/fs/affs/inode.c index dcfa753..dac9c7a 100644 --- a/fs/affs/inode.c +++ b/fs/affs/inode.c @@ -256,7 +256,7 @@ out: void affs_evict_inode(struct

[POC][PATCH 07/83] drivers/net/wireless/mwifiex/debugfs.c: get rid of pointless casts

2015-12-21 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- drivers/net/wireless/mwifiex/debugfs.c | 84 ++ 1 file changed, 35 insertions(+), 49 deletions(-) diff --git a/drivers/net/wireless/mwifiex/debugfs.c b/drivers/net/wireless/mwifiex/debugfs.c index bc23464..c9d83f9

[POC][PATCH 06/83] drivers/net/wireless/libertas/debugfs.c: get rid of pointless casts

2015-12-21 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- drivers/net/wireless/libertas/debugfs.c | 81 + 1 file changed, 32 insertions(+), 49 deletions(-) diff --git a/drivers/net/wireless/libertas/debugfs.c b/drivers/net/wireless/libertas/debugfs.c index 12da2fa..a189a09

[POC][PATCH 02/83] switch free_pages() from unsigned long to const void *

2015-12-21 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- arch/alpha/include/asm/agp.h | 2 +- arch/alpha/kernel/pci-noop.c | 2 +- arch/alpha/kernel/pci_iommu.c | 4 ++-- arch/arc/include/asm/pgalloc.h | 6 +++---

Re: [PATCH v4 3/5] misc: eeprom_93xx46: Implement eeprom_93xx46 DT bindings.

2015-12-21 Thread Vladimir Zapolskiy
Hi Cory, On 10.12.2015 06:00, Cory Tusar wrote: > This commit implements bindings in the eeprom_93xx46 driver allowing > device word size and read-only attributes to be specified via > devicetree. > > Signed-off-by: Cory Tusar > Tested-by: Chris Healy > --- >

[POC][PATCH 03/83] switch get_zeroed_page() to returning void *

2015-12-21 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- arch/arm64/kernel/vdso.c| 2 +- arch/ia64/hp/sim/simserial.c| 2 +- arch/nios2/mm/init.c| 2 +- arch/s390/kernel/perf_cpum_sf.c | 2 +- arch/s390/kernel/vdso.c | 4 ++--

[POC][PATCH 13/83] rds: keep pointers in ->m_page_addrs[]

2015-12-21 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- net/rds/cong.c | 16 net/rds/ib_recv.c | 2 +- net/rds/iw_recv.c | 2 +- net/rds/message.c | 2 +- net/rds/rds.h | 4 ++-- net/rds/tcp_recv.c | 2 +- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git

[POC][PATCH 14/83] proc_dev_atm_read(): get rid of pointless casts

2015-12-21 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- net/atm/proc.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/net/atm/proc.c b/net/atm/proc.c index cf8993a..d04e11f 100644 --- a/net/atm/proc.c +++ b/net/atm/proc.c @@ -377,28 +377,28 @@ static ssize_t

[POC][PATCH 09/83] configfs_follow_link(): get rid of pointless casts

2015-12-21 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- fs/configfs/symlink.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/configfs/symlink.c b/fs/configfs/symlink.c index f8f4d9a..ae41e92 100644 --- a/fs/configfs/symlink.c +++ b/fs/configfs/symlink.c @@ -281,18 +281,18 @@

[POC][PATCH 11/83] sound/oss/vidc: keep dma_buf[] as pointers

2015-12-21 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- sound/oss/vidc.c | 8 sound/oss/vidc.h | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/sound/oss/vidc.c b/sound/oss/vidc.c index 3196f35..6ab875d 100644 --- a/sound/oss/vidc.c +++ b/sound/oss/vidc.c @@ -468,13 +468,13 @@

[POC][PATCH 12/83] drivers/tty: get rid of pointless casts

2015-12-21 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- drivers/tty/amiserial.c | 10 +- drivers/tty/cyclades.c | 10 +- drivers/tty/mxser.c | 8 drivers/tty/rocket.c | 8 drivers/tty/serial/crisv10.c | 10 +-

[POC][PATCH 10/83] kernfs_iop_follow_link(): get rid of pointless casts

2015-12-21 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- fs/kernfs/symlink.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/kernfs/symlink.c b/fs/kernfs/symlink.c index 9662b66..ac8768b 100644 --- a/fs/kernfs/symlink.c +++ b/fs/kernfs/symlink.c @@ -115,15 +115,15 @@ static int

[POC][PATCH 17/83] ftrace: get rid of pointless casts

2015-12-21 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- kernel/trace/ftrace.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index b995e08..927cdd4 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c @@ -741,10 +741,10 @@ int

[POC][PATCH 19/83] xenstored_local_init(): get rid of pointless casts

2015-12-21 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- drivers/xen/xenbus/xenbus_probe.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/xen/xenbus/xenbus_probe.c b/drivers/xen/xenbus/xenbus_probe.c index 3e43b5a..d896283 100644 --- a/drivers/xen/xenbus/xenbus_probe.c

[POC][PATCH 16/83] user_namespace: get rid of pointless casts

2015-12-21 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- kernel/user_namespace.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/kernel/user_namespace.c b/kernel/user_namespace.c index b01948c..badce97 100644 --- a/kernel/user_namespace.c +++ b/kernel/user_namespace.c @@ -602,8

Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel

2015-12-21 Thread Måns Rullgård
Andy Shevchenko writes: > On Mon, 2015-12-21 at 19:27 +, Måns Rullgård wrote: >> Andy Shevchenko writes: >> >> > I can share my working branch with a set of patches regarding to >> > dw_dmac. We may do our work based on that code and after I'll >> > submit >> > everything to upstream. Does

[POC][PATCH 18/83] sysctl: get rid of pointless casts

2015-12-21 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- kernel/sysctl.c | 31 --- 1 file changed, 12 insertions(+), 19 deletions(-) diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 8e9cfe4..edb7da4 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -2047,9 +2047,8 @@

[POC][PATCH 25/83] dma_4u_alloc_coherent(): don't mix virtual and physical addresses

2015-12-21 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- arch/sparc/kernel/iommu.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/arch/sparc/kernel/iommu.c b/arch/sparc/kernel/iommu.c index eae7b6b..18a40c6 100644 --- a/arch/sparc/kernel/iommu.c +++ b/arch/sparc/kernel/iommu.c @@

[POC][PATCH 24/83] ppc: keep ->hpt_virt as a pointer

2015-12-21 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- arch/powerpc/include/asm/kvm_host.h | 2 +- arch/powerpc/kvm/book3s_64_mmu_hv.c | 19 ++- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/arch/powerpc/include/asm/kvm_host.h b/arch/powerpc/include/asm/kvm_host.h index

[POC][PATCH 23/83] fd_dma_mem_free(): pass address as void * instead of unsigned long

2015-12-21 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- arch/m68k/include/asm/floppy.h | 4 ++-- arch/mips/include/asm/mach-generic/floppy.h | 4 ++-- arch/mips/include/asm/mach-jazz/floppy.h| 6 +++--- arch/parisc/include/asm/floppy.h| 6 +++---

[POC][PATCH 21/83] c6x: remove unused macros

2015-12-21 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- arch/c6x/include/asm/processor.h | 4 1 file changed, 4 deletions(-) diff --git a/arch/c6x/include/asm/processor.h b/arch/c6x/include/asm/processor.h index b5b5a87..22f07a4 100644 --- a/arch/c6x/include/asm/processor.h +++

[POC][PATCH 22/83] [davinci] ccdc_update_raw_params() frees the wrong thing

2015-12-21 Thread Al Viro
From: Al Viro Passing a physical address to free_pages() is a bad idea. config_params->fault_pxl.fpc_table_addr is set to virt_to_phys() of __get_free_pages() return value; what we should pass to free_pages() is its phys_to_virt(). ccdc_close() does that properly, but

[POC][PATCH 26/83] dma_4v_alloc_coherent(): don't mix virtual and physical addresses

2015-12-21 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- arch/sparc/kernel/pci_sun4v.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/arch/sparc/kernel/pci_sun4v.c b/arch/sparc/kernel/pci_sun4v.c index 3eb8907..3ea1937 100644 --- a/arch/sparc/kernel/pci_sun4v.c +++

Re: [PATCH v4 2/5] Documentation: devicetree: Add DT bindings to eeprom_93xx46 driver.

2015-12-21 Thread Vladimir Zapolskiy
Hi Cory, On 10.12.2015 06:00, Cory Tusar wrote: > This commit documents bindings to be added to the eeprom_93xx46 driver > which will allow: > > - Device word size and read-only attributes to be specified. > - A device-specific compatible string for use with Atmel AT93C46D > EEPROMs. >

[POC][PATCH 33/83] drivers/pci: get rid of pointless casts

2015-12-21 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- drivers/pci/host/pci-tegra.c | 10 +- drivers/pci/host/pcie-designware.c | 6 +++--- drivers/pci/host/pcie-designware.h | 2 +- drivers/pci/host/pcie-rcar.c | 6 +++--- drivers/pci/host/pcie-xilinx.c | 10 +- 5 files

[POC][PATCH 29/83] switch the remaining users of __get_dma_pages() to get_dma_pages()

2015-12-21 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- drivers/char/mbcs.c | 24 drivers/net/appletalk/ltpc.c | 8 +++- drivers/net/ethernet/amd/mvme147.c | 8 drivers/net/ethernet/cirrus/cs89x0.c | 3 +-- include/linux/gfp.h

[POC][PATCH 32/83] lguest: get rid of pointless casts

2015-12-21 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- drivers/lguest/lg.h | 2 +- drivers/lguest/lguest_user.c | 8 drivers/lguest/page_tables.c | 8 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/lguest/lg.h b/drivers/lguest/lg.h index ac8ad04..3334ca0

[POC][PATCH 20/83] staging/rdma: get rid of pointless casts

2015-12-21 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- drivers/staging/rdma/ehca/ehca_pd.c | 2 +- drivers/staging/rdma/ehca/ipz_pt_fn.c | 6 +++--- drivers/staging/rdma/ehca/ipz_pt_fn.h | 2 +- drivers/staging/rdma/hfi1/qp.c| 6 +++--- drivers/staging/rdma/ipath/ipath_qp.c | 6 +++--- 5 files

Re: [RFC] free_pages stuff

2015-12-21 Thread Linus Torvalds
On Mon, Dec 21, 2015 at 3:46 PM, Al Viro wrote: > FWIW, I'd done a proof-of-concept patch series converting the things > to > * free_page() and free_pages() taking the address to free as a pointer > * get_zeroed_page() returning a pointer > *

[POC][PATCH 31/83] efficeon: get rid of pointless casts

2015-12-21 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- drivers/char/agp/efficeon-agp.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/char/agp/efficeon-agp.c b/drivers/char/agp/efficeon-agp.c index c3d0d44..d64e601 100644 ---

[POC][PATCH 27/83] new helper: get_dma_pages()

2015-12-21 Thread Al Viro
From: Al Viro same as __get_dma_pages(), except that it returns a pointer Signed-off-by: Al Viro --- include/linux/gfp.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/gfp.h b/include/linux/gfp.h index f4304c1..07b714d 100644 --- a/include/linux/gfp.h +++

[POC][PATCH 28/83] make fd_dma_mem_alloc/nodma_mem_alloc return a pointer

2015-12-21 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- arch/m68k/include/asm/floppy.h | 4 ++-- arch/mips/include/asm/mach-generic/floppy.h | 8 ++-- arch/mips/include/asm/mach-jazz/floppy.h| 10 -- arch/parisc/include/asm/floppy.h| 15 +--

[POC][PATCH 30/83] sparc: get rid of pointless casts

2015-12-21 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- arch/sparc/include/asm/dma.h | 2 +- arch/sparc/include/asm/iommu_64.h | 2 +- arch/sparc/kernel/iommu.c | 8 arch/sparc/kernel/ioport.c| 8 arch/sparc/kernel/irq_64.c| 4 ++--

[POC][PATCH 35/83] s390 kvm: get rid of pointless casts

2015-12-21 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- arch/s390/kvm/priv.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/s390/kvm/priv.c b/arch/s390/kvm/priv.c index af22195..93963ff 100644 --- a/arch/s390/kvm/priv.c +++ b/arch/s390/kvm/priv.c @@ -504,7 +504,7 @@

[POC][PATCH 34/83] drivers/s390: ger rid of pointless casts

2015-12-21 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- drivers/s390/block/xpram.c| 24 drivers/s390/char/sclp_ftp.c | 10 +- drivers/s390/cio/qdio.h | 2 +- drivers/s390/cio/qdio_main.c | 2 +- drivers/s390/cio/qdio_setup.c | 4 ++--

Re: [PATCH] Staging: comedi: fix block comments coding style issue in comedi.h

2015-12-21 Thread Greg KH
On Mon, Dec 14, 2015 at 03:41:10PM +0800, maomao xu wrote: > Fix up block comments to make a trailing */ on a separate line > > Signed-off-by: maomao xu > --- > drivers/staging/comedi/comedi.h | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) Doesn't apply to my tree :( -- To

Re: [PATCH] comedi/comedilib.h: cleanup coding style

2015-12-21 Thread Greg KH
On Tue, Dec 15, 2015 at 12:34:11AM +0400, George Kobiashvili wrote: > Signed-off-by: George Kobiashvili > --- > drivers/staging/comedi/comedilib.h | 32 > 1 file changed, 16 insertions(+), 16 deletions(-) Doesn't apply to my tree :( -- To unsubscribe from this

[POC][PATCH 37/83] ste_dma40: get rid of pointless casts

2015-12-21 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- drivers/dma/ste_dma40.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c index 2971d47..e2e0225 100644 --- a/drivers/dma/ste_dma40.c +++ b/drivers/dma/ste_dma40.c @@

[POC][PATCH 39/83] gnttab_end_foreign_access(): switch the last argument to void *

2015-12-21 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- drivers/block/xen-blkfront.c | 12 ++-- drivers/char/tpm/xen-tpmfront.c | 2 +- drivers/input/misc/xen-kbdfront.c | 4 ++-- drivers/net/xen-netfront.c| 6 +++--- drivers/pci/xen-pcifront.c| 2 +-

[POC][PATCH 36/83] pcibios: get rid of pointless casts

2015-12-21 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- arch/x86/pci/pcbios.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/x86/pci/pcbios.c b/arch/x86/pci/pcbios.c index 7958c26..674ecff 100644 --- a/arch/x86/pci/pcbios.c +++ b/arch/x86/pci/pcbios.c @@ -381,14 +381,14

[POC][PATCH 45/83] arm: switch kvm_arm_hyp_stack_page to void *

2015-12-21 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- arch/arm/include/asm/kvm_host.h | 4 ++-- arch/arm/kvm/arm.c| 13 + arch/arm64/include/asm/kvm_host.h | 2 +- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/arch/arm/include/asm/kvm_host.h

[POC][PATCH 38/83] usb_mon: get rid of pointless casts

2015-12-21 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- drivers/usb/mon/mon_bin.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/usb/mon/mon_bin.c b/drivers/usb/mon/mon_bin.c index cdc68e5..26d497b 100644 --- a/drivers/usb/mon/mon_bin.c +++ b/drivers/usb/mon/mon_bin.c @@

[POC][PATCH 40/83] nios2: dma_free_coherent(): get rid of pointless casts

2015-12-21 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- arch/nios2/mm/dma-mapping.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/nios2/mm/dma-mapping.c b/arch/nios2/mm/dma-mapping.c index fa242ab..0195f8f 100644 --- a/arch/nios2/mm/dma-mapping.c +++

[POC][PATCH 42/83] simserial: get rid of pointless casts

2015-12-21 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- arch/ia64/hp/sim/simserial.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/arch/ia64/hp/sim/simserial.c b/arch/ia64/hp/sim/simserial.c index 6e81449..7c3871e 100644 --- a/arch/ia64/hp/sim/simserial.c +++

[POC][PATCH 44/83] cris free_init_page(): switch to __free_page()

2015-12-21 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- arch/cris/mm/init.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/cris/mm/init.c b/arch/cris/mm/init.c index dd87022..71a012c 100644 --- a/arch/cris/mm/init.c +++ b/arch/cris/mm/init.c @@ -40,9 +40,10 @@ void

[POC][PATCH 41/83] hsi: get rid of pointless casts

2015-12-21 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- drivers/hsi/clients/cmt_speech.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/hsi/clients/cmt_speech.c b/drivers/hsi/clients/cmt_speech.c index 96d98fc..86ef330 100644 ---

[POC][PATCH 43/83] arm64 vdso: get rid of pointless casts

2015-12-21 Thread Al Viro
From: Al Viro ... with two added to cope with flush_icache_range() calling conventions Signed-off-by: Al Viro --- arch/arm64/kernel/vdso.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/arch/arm64/kernel/vdso.c b/arch/arm64/kernel/vdso.c index 07e4d14..f49e158

[POC][PATCH 47/83] ia64: uncached_add_chunk(): switch to __free_pages()

2015-12-21 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- arch/ia64/kernel/uncached.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/ia64/kernel/uncached.c b/arch/ia64/kernel/uncached.c index 9b90526..35494cc 100644 --- a/arch/ia64/kernel/uncached.c +++ b/arch/ia64/kernel/uncached.c

[POC][PATCH 48/83] jfs_readdir(): make dirent_buf a pointer

2015-12-21 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- fs/jfs/jfs_dtree.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/fs/jfs/jfs_dtree.c b/fs/jfs/jfs_dtree.c index e585852..56d18de 100644 --- a/fs/jfs/jfs_dtree.c +++ b/fs/jfs/jfs_dtree.c @@ -3023,7 +3023,7 @@ int

[POC][PATCH 49/83] get rid of casts in alloc_exact stuff

2015-12-21 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- mm/page_alloc.c | 27 --- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index aa37489..a1aa8eb 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -3449,20 +3449,20 @@ void

[POC][PATCH 46/83] frv consistent_alloc(): switch page to void *

2015-12-21 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- arch/frv/mm/dma-alloc.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/arch/frv/mm/dma-alloc.c b/arch/frv/mm/dma-alloc.c index c4c19ff..62268e1 100644 --- a/arch/frv/mm/dma-alloc.c +++ b/arch/frv/mm/dma-alloc.c @@ -81,7

[POC][PATCH 59/83] add pointer-returning variants of __get_free_pages/__get_free_page

2015-12-21 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- drivers/block/xen-blkback/blkback.c | 4 ++-- drivers/xen/xen-scsiback.c | 6 +++--- include/linux/gfp.h | 9 +++-- mm/page_alloc.c | 8 4 files changed, 16 insertions(+), 11 deletions(-) diff

[POC][PATCH 58/83] iwlwifi: get rid of pointless casts

2015-12-21 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- drivers/net/wireless/iwlwifi/iwl-trans.h | 4 ++-- drivers/net/wireless/iwlwifi/pcie/tx.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/iwlwifi/iwl-trans.h b/drivers/net/wireless/iwlwifi/iwl-trans.h index

<    1   2   3   4   5   6   7   8   9   10   >