re: Staging: VME Framework for the Linux Kernel

2016-04-14 Thread Dan Carpenter
Hello Martyn Welch, The patch a17a75e2666f: "Staging: VME Framework for the Linux Kernel" from Jul 31, 2009, leads to the following static checker warning: drivers/vme/vme.c:161 vme_get_size() error: uninitialized variable 'size'. drivers/vme/vme.c 149 size_t vme_get_size(str

[PATCH v1 08/27] staging: lustre: avoid to use bio->bi_vcnt directly

2016-04-14 Thread Ming Lei
Acked-by: Greg Kroah-Hartman Signed-off-by: Ming Lei --- drivers/staging/lustre/lustre/llite/lloop.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/staging/lustre/lustre/llite/lloop.c b/drivers/staging/lustre/lustre/llite/lloop.c index f169c0d..c7bdc2f 1006

[PATCH v1 00/27] block: cleanup direct access to .bi_vcnt & .bi_io_vec

2016-04-14 Thread Ming Lei
Hi Guys, It is always not a good practice to access bio->bi_vcnt and bio->bi_io_vec from drivers directly. Also this kind of direct access will cause trouble when converting to multipage bvecs because currently drivers may suppose one bvec always include one page, and use the two fields to figure

[PATCH 2/2] staging: wilc1000: remove unused variables

2016-04-14 Thread Sudip Mukherjee
These variables were havnig the pointer returned by wiphy_priv() but they were never used. Signed-off-by: Sudip Mukherjee --- drivers/staging/wilc1000/linux_wlan.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/staging/wilc1000/linux_wlan.c b/drivers/staging/wilc1000/linux_w

[PATCH 1/2] staging: wilc1000: fix double unlock

2016-04-14 Thread Sudip Mukherjee
The semaphore was being released twice, once at the beginning of the thread and then again when the thread is about to close. The semaphore is acquired immediately after creating the thread so we should be releasing it when the thread ends. Signed-off-by: Sudip Mukherjee --- drivers/staging/wilc

[PATCH v2 18/19] staging: comedi: mite.h: rename CHSR_LxERR_mask

2016-04-14 Thread H Hartley Sweeten
Fix the checkpatch.pl issue: CHECK: Avoid CamelCase: Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/mite.h | 2 +- drivers/staging/comedi/drivers/ni_mio_common.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletion

[PATCH v2 01/19] staging: comedi: ni_mio_common: remove some unnecessary BUG_ON()

2016-04-14 Thread H Hartley Sweeten
The mite dma channels are only requested by a subdevice with a (*do_cmd) and they are released by a (*cancel). The comedi core will only call the (*do_cmd) if the subdevice is not already running a command and all commands are terminated by the core with a (*cancel). Remove the BUG_ON() checks in

[PATCH v2 12/19] staging: comedi: ni_mio_common: tidy up AO trigger selection

2016-04-14 Thread H Hartley Sweeten
The AO subdevice (*cancel), ni_ao_reset(), always sets the private data 'ao_trigger_select' to 0. So when a command is started the 'trigsel' value in ni_ao_cmd_set_trigger() will always start as 0. Remove the unnecessary member from the private data. The (*do_cmdtest) validates that the cmd->start

[PATCH v2 11/19] staging: comedi: ni_mio_common: convert NI_GPCT_SUBDEV to a macro

2016-04-14 Thread H Hartley Sweeten
The 'counter_index' is always in range (0 to < NUM_GPCT, which is 2). For aesthetics, convert this inline function into a macro and remove the BUG() which can never occur. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio

[PATCH v2 15/19] staging: comedi: ni_mio_common: usleep_range is preferred over udelay

2016-04-14 Thread H Hartley Sweeten
Fix the checkpatch.pl issues. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/comedi/drivers/ni_mio_common.c b/drivers/sta

[PATCH v2 14/19] staging: comedi: ni_mio_common: tidy up ni_gpct_write_register()

2016-04-14 Thread H Hartley Sweeten
The 'bits' value passed to this function is properly set by the callers so the BUG_ON() can never occur when writing to the NITIO_G[01]_INT_ENA and NITIO_G01_RESET registers. Remove the BUG_ON() checks. For aesthetic, also remove the static const variables. They don't add any additional clarity.

[PATCH v2 09/19] staging: comedi: ni_mio_common: multiple assignments should be avoided

2016-04-14 Thread H Hartley Sweeten
Fix the checkpatch.pl issues. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/comedi/drivers/ni_mio_common.c b/drivers/sta

[PATCH v2 17/19] staging: comedi: ni_mio_common: fix CamelCase in ni_serial_hw_readwrite8()

2016-04-14 Thread H Hartley Sweeten
Fix the checkpatch.pl issue: CHECK: Avoid CamelCase: Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/comedi/drivers/ni_m

[PATCH v2 08/19] staging: comedi: ni_mio_common: fix lines over 80 characters

2016-04-14 Thread H Hartley Sweeten
Fix the checkpatch.pl issues. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 78 -- 1 file changed, 49 insertions(+), 29 deletions(-) diff --git a/drivers/staging/comedi/drivers/ni_mi

[PATCH v2 13/19] staging: comedi: ni_mio_common: tidy up AO scan begin

2016-04-14 Thread H Hartley Sweeten
The (*do_cmdtest) validates that the cmd->scan_begin_src will only be TRIG_TIMER or TRIG_EXT. Refactor ni_ao_cmd_set_update() and remove the BUG() which can never occur. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_co

[PATCH v2 10/19] staging: comedi: ni_mio_common: fix logical continuations

2016-04-14 Thread H Hartley Sweeten
Fix the checkpatch.pl issues: CHECK: Logical continuations should be on the previous line Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-)

[PATCH v2 02/19] staging: comedi: ni_mio_common: tidy up mite dma channel requests

2016-04-14 Thread H Hartley Sweeten
Tidy up the functions that request the mite dma channels by absorbing the inline helper functions that call ni_set_bitfield() to set the channel selection bits. Add support for the NI_M_CDIO_DMA_SEL_REG register to ni_set_bitfield() so that all the soft_reg_copy_lock spinlocking is done in one pla

[PATCH v2 00/19] staging: comedi: ni_mio_common: initial cleanup

2016-04-14 Thread H Hartley Sweeten
This "driver" is is bit of a mess. It's included by the ni_atmio, ni_mio_cs, and ni_pcimio drivers instead of being a separate module. Do some cleanup so I can work out what is needed to make it a module. This fixes all the checkpatch.pl issues except for two: CHECK: if this code is redundant con

[PATCH v2 03/19] staging: comedi: ni_mio_common: tidy up mite dma channel releases

2016-04-14 Thread H Hartley Sweeten
Absorb the inline helper functions that call ni_set_bitfield() to clear the dma channel selection bits. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 35 ++ 1 file changed, 8 insertio

[PATCH v2 06/19] staging: comedi: ni_mio_common: use 'unsigned int' instead of kernel types

2016-04-14 Thread H Hartley Sweeten
Generally comedi drivers use 'unsigned int' types instead of the kernel type 'u32' for unsigned 32-bit values. For aesthetics, change all the 'u32' and 'uin32_t' types and fix the checkpatch.pl issues about: CHECK: Prefer kernel type 'u32' over 'uint32_t' The various i/o helpers use for reading a

[PATCH v2 04/19] staging: comedi: ni_mio_common: tidy up DIO subdevice ifdef'ery

2016-04-14 Thread H Hartley Sweeten
This file is is bit of a mess. It's included by the ni_atmio, ni_mio_cs, and ni_pcimio drivers. The ni_pcimio driver is the only one that uses DMA. It defines PCIDMA so that the dma code is compiled it. This causes a bunch of ifdef'ery in the file. The DIO subdevice for the ni_pcidio "is_m_series"

[PATCH v2 16/19] staging: comedi: ni_mio_common: remove 'fudge_factor_80_to_20Mhz'

2016-04-14 Thread H Hartley Sweeten
For aesthetics, remove this local variable to fix the checkpatch.pl issue: CHECK: Avoid CamelCase: Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) dif

[PATCH v2 19/19] staging: comedi: ni_mio_common: introduce NI_STC_DMA_CHAN_SEL()

2016-04-14 Thread H Hartley Sweeten
The inline helper ni_stc_dma_channel_select_bitfield() returns the bits needed to select a MITE channel to use for DMA. The MITE code is setup to handle up to 8 channels but in reality only channels 0 to 3 are used by most of the drivers. The PCI-6032E and PCI-6033E boards can also use channels 4 a

[PATCH v2 05/19] staging: comedi: ni_mio_common: Prefer 'unsigned int' to bare use of 'unsigned'

2016-04-14 Thread H Hartley Sweeten
Fix the checkpatch.pl issues. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 172 + 1 file changed, 90 insertions(+), 82 deletions(-) diff --git a/drivers/staging/comedi/drivers/ni_mi

[PATCH v2 07/19] staging: comedi: ni_mio_common: tidy up block comments

2016-04-14 Thread H Hartley Sweeten
Fix the checkpatch.pl issues. WARNING: Block comments use * on subsequent lines Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 211 ++--- 1 file changed, 117 insertions(+), 94 deletions(-)

Re: [PATCH] staging/rdma/hfi1: select CRC32

2016-04-14 Thread Ira Weiny
On Fri, Apr 01, 2016 at 01:04:05AM +0200, Markus Böhme wrote: > The function parse_platform_config in firmware.c calls crc32_le. > Building without CRC32 selected causes a link error: > > drivers/built-in.o: In function `parse_platform_config': > (.text+0x92ffa): undefined reference to `crc32_le'

Re: [PATCH v10 3/3] staging/android: refactor SYNC IOCTLs

2016-04-14 Thread Gustavo Padovan
Hi Greg, Any comment on this? Thanks, Gustavo 2016-03-18 Gustavo Padovan : > From: Gustavo Padovan > > Change SYNC_IOC_FILE_INFO (former SYNC_IOC_FENCE_INFO) behaviour to avoid > future API breaks and optimize buffer allocation. > > Now num_fences can be filled by the caller to inform how m

[PATCH] Staging: android: change memory allocation style in ion.c

2016-04-14 Thread Ben Marsh
Modify the memory allocation style in ion.c in order to silence a checkpatch.pl warning. Signed-off-by: Ben Marsh --- drivers/staging/android/ion/ion.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/

RE: [PATCH 1/1] hv_netvsc: Implement support for VF drivers on Hyper-V

2016-04-14 Thread KY Srinivasan
> -Original Message- > From: K. Y. Srinivasan [mailto:k...@microsoft.com] > Sent: Wednesday, April 13, 2016 4:58 PM > To: da...@davemloft.net; net...@vger.kernel.org; linux- > ker...@vger.kernel.org; de...@linuxdriverproject.org; o...@aepfle.de; > a...@canonical.com; jasow...@redhat.com >

Administrador do sistema

2016-04-14 Thread ADMIN
Sua caixa de correio excedeu o limite de armazenamento, que é de 20 GB como conjunto pelo administrador, você está executando atualmente a 20,9 GB, você pode não ser capaz de Enviar ou receber novas mensagens até que você re-validar sua caixa de correio. Para Re-validar sua caixa de correio, por

[PATCH] staging: fsl-mc: bus: Drop warning

2016-04-14 Thread Matthias Brugger
When updating the irq_chip and msi_domain_ops, the code checkes for already present functions. When more then one ITS controller are present in the system, irq_chip and msi_domain_ops got already set and a warning is invoked. This patch deletes the warning, as the funtions are just already set to

[PATCH net-next 1/1] hv_netvsc: Implement support for VF drivers on Hyper-V

2016-04-14 Thread K. Y. Srinivasan
Support VF drivers on Hyper-V. On Hyper-V, each VF instance presented to the guest has an associated synthetic interface that shares the MAC address with the VF instance. Typically these are bonded together to support live migration. By default, the host delivers all the incoming packets on the syn

Administrador do sistema

2016-04-14 Thread ADMIN
Sua caixa de correio excedeu o limite de armazenamento, que é de 20 GB como conjunto pelo administrador, você está executando atualmente a 20,9 GB, você pode não ser capaz de Enviar ou receber novas mensagens até que você re-validar sua caixa de correio. Para Re-validar sua caixa de correio, por

[PATCH net-next 0/2] ethernet: intel: Support Hyper-V hosts

2016-04-14 Thread K. Y. Srinivasan
Make adjustments to the Intel 10G VF driver to support running on Hyper-V hosts. K. Y. Srinivasan (2): ethernet: intel: Add the device ID's presented while running on Hyper-V intel: ixgbevf: Support Windows hosts (Hyper-V) drivers/net/ethernet/intel/ixgbevf/defines.h |5 + drive

[PATCH net-next 1/2] ethernet: intel: Add the device ID's presented while running on Hyper-V

2016-04-14 Thread K. Y. Srinivasan
Intel SR-IOV cards present different ID when running on Hyper-V. Add the device IDs presented while running on Hyper-V. Signed-off-by: K. Y. Srinivasan --- drivers/net/ethernet/intel/ixgbevf/defines.h |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/net/ethern

[PATCH net-next 2/2] intel: ixgbevf: Support Windows hosts (Hyper-V)

2016-04-14 Thread K. Y. Srinivasan
On Hyper-V, the VF/PF communication is a via software mediated path as opposed to the hardware mailbox. Make the necessary adjustments to support Hyper-V. Signed-off-by: K. Y. Srinivasan --- drivers/net/ethernet/intel/ixgbevf/ixgbevf.h | 11 ++ drivers/net/ethernet/intel/ixgbevf/ixgbevf_m

Re: [PATCH net-next 2/2] intel: ixgbevf: Support Windows hosts (Hyper-V)

2016-04-14 Thread kbuild test robot
Hi Srinivasan, [auto build test ERROR on net-next/master] url: https://github.com/0day-ci/linux/commits/K-Y-Srinivasan/ethernet-intel-Add-the-device-ID-s-presented-while-running-on-Hyper-V/20160415-061821 config: sparc64-allyesconfig (attached as .config) reproduce: wget https://git.

Re: [PATCH net-next 2/2] intel: ixgbevf: Support Windows hosts (Hyper-V)

2016-04-14 Thread Rustad, Mark D
Some comments below: K. Y. Srinivasan wrote: On Hyper-V, the VF/PF communication is a via software mediated path as opposed to the hardware mailbox. Make the necessary adjustments to support Hyper-V. Signed-off-by: K. Y. Srinivasan --- drivers/net/ethernet/intel/ixgbevf/ixgbevf.h | 1

RE: [PATCH] staging: fsl-mc: bus: Drop warning

2016-04-14 Thread Stuart Yoder
> -Original Message- > From: Matthias Brugger [mailto:mbrug...@suse.com] > Sent: Thursday, April 14, 2016 4:24 PM > To: german.riv...@freescale.com; gre...@linuxfoundation.org > Cc: Stuart Yoder ; Scott Wood ; > ag...@suse.de; linux- > ker...@vger.kernel.org; de...@driverdev.osuosl.org;

Re: [PATCH net-next 2/2] intel: ixgbevf: Support Windows hosts (Hyper-V)

2016-04-14 Thread Alexander Duyck
On Thu, Apr 14, 2016 at 4:55 PM, K. Y. Srinivasan wrote: > On Hyper-V, the VF/PF communication is a via software mediated path > as opposed to the hardware mailbox. Make the necessary > adjustments to support Hyper-V. > > Signed-off-by: K. Y. Srinivasan > --- > drivers/net/ethernet/intel/ixgbevf

RE: [PATCH net-next 2/2] intel: ixgbevf: Support Windows hosts (Hyper-V)

2016-04-14 Thread KY Srinivasan
> -Original Message- > From: Rustad, Mark D [mailto:mark.d.rus...@intel.com] > Sent: Thursday, April 14, 2016 4:01 PM > To: KY Srinivasan > Cc: David Miller ; netdev > ; linux-ker...@vger.kernel.org; > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; > jasow...@redhat.co

Re: [PATCH net-next 2/2] intel: ixgbevf: Support Windows hosts (Hyper-V)

2016-04-14 Thread Rustad, Mark D
KY Srinivasan wrote: -Original Message- From: Rustad, Mark D [mailto:mark.d.rus...@intel.com] Sent: Thursday, April 14, 2016 4:01 PM To: KY Srinivasan Cc: David Miller ; netdev ; linux-ker...@vger.kernel.org; de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; jasow...

RE: [PATCH net-next 2/2] intel: ixgbevf: Support Windows hosts (Hyper-V)

2016-04-14 Thread KY Srinivasan
> -Original Message- > From: Rustad, Mark D [mailto:mark.d.rus...@intel.com] > Sent: Thursday, April 14, 2016 5:07 PM > To: KY Srinivasan > Cc: David Miller ; netdev > ; linux-ker...@vger.kernel.org; > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; > jasow...@redhat.co

Re: [PATCH net-next 2/2] intel: ixgbevf: Support Windows hosts (Hyper-V)

2016-04-14 Thread Alexander Duyck
On Thu, Apr 14, 2016 at 5:11 PM, KY Srinivasan wrote: > > >> -Original Message- >> From: Rustad, Mark D [mailto:mark.d.rus...@intel.com] >> Sent: Thursday, April 14, 2016 5:07 PM >> To: KY Srinivasan >> Cc: David Miller ; netdev >> ; linux-ker...@vger.kernel.org; >> de...@linuxdriverproje

Re: [PATCH net-next 2/2] intel: ixgbevf: Support Windows hosts (Hyper-V)

2016-04-14 Thread Rustad, Mark D
KY Srinivasan wrote: -Original Message- From: Rustad, Mark D [mailto:mark.d.rus...@intel.com] Sent: Thursday, April 14, 2016 5:07 PM To: KY Srinivasan Cc: David Miller ; netdev ; linux-ker...@vger.kernel.org; de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; jasow...

RE: [PATCH net-next 2/2] intel: ixgbevf: Support Windows hosts (Hyper-V)

2016-04-14 Thread KY Srinivasan
> -Original Message- > From: Alexander Duyck [mailto:alexander.du...@gmail.com] > Sent: Thursday, April 14, 2016 5:19 PM > To: KY Srinivasan > Cc: Rustad, Mark D ; David Miller > ; netdev ; linux- > ker...@vger.kernel.org; de...@linuxdriverproject.org; o...@aepfle.de; > a...@canonical.co

Re: [PATCH net-next 0/2] ethernet: intel: Support Hyper-V hosts

2016-04-14 Thread Jeff Kirsher
On Thu, Apr 14, 2016 at 4:55 PM, K. Y. Srinivasan wrote: > Make adjustments to the Intel 10G VF driver to support > running on Hyper-V hosts. > > K. Y. Srinivasan (2): > ethernet: intel: Add the device ID's presented while running on > Hyper-V > intel: ixgbevf: Support Windows hosts (Hyper

RE: [PATCH net-next 2/2] intel: ixgbevf: Support Windows hosts (Hyper-V)

2016-04-14 Thread KY Srinivasan
> -Original Message- > From: Alexander Duyck [mailto:alexander.du...@gmail.com] > Sent: Thursday, April 14, 2016 4:18 PM > To: KY Srinivasan > Cc: David Miller ; Netdev > ; linux-ker...@vger.kernel.org; > de...@linuxdriverproject.org; o...@aepfle.de; Robo Bot > ; Jason Wang ; > e...@mell

RE: [PATCH net-next 0/2] ethernet: intel: Support Hyper-V hosts

2016-04-14 Thread KY Srinivasan
> -Original Message- > From: tar...@gmail.com [mailto:tar...@gmail.com] On Behalf Of Jeff Kirsher > Sent: Thursday, April 14, 2016 7:21 PM > To: KY Srinivasan > Cc: David Miller ; netdev > ; LKML ; > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; > jasow...@redhat.com;