[PATCH 0/10] use safer test on the result of find_first_zero_bit

2014-06-04 Thread Julia Lawall
Find_first_zero_bit considers BITS_PER_LONG bits at a time, and thus may return a larger number than the maximum position argument if that position is not a multiple of BITS_PER_LONG. ___ devel mailing list de...@linuxdriverproject.org

[PATCH 4/10] staging: tidspbridge: use safer test on the result of find_first_zero_bit

2014-06-04 Thread Julia Lawall
From: Julia Lawall julia.law...@lip6.fr Find_first_zero_bit considers BITS_PER_LONG bits at a time, and thus may return a larger number than the maximum position argument if that position is not a multiple of BITS_PER_LONG. The semantic match that finds this problem is as follows:

Re: [PATCH 0/10] use safer test on the result of find_first_zero_bit

2014-06-04 Thread Geert Uytterhoeven
Hi Julia, On Wed, Jun 4, 2014 at 11:07 AM, Julia Lawall julia.law...@lip6.fr wrote: Find_first_zero_bit considers BITS_PER_LONG bits at a time, and thus may return a larger number than the maximum position argument if that position is not a multiple of BITS_PER_LONG. Shouldn't this be fixed

Re: [PATCH 0/10] use safer test on the result of find_first_zero_bit

2014-06-04 Thread Julia Lawall
On Wed, 4 Jun 2014, Geert Uytterhoeven wrote: Hi Julia, On Wed, Jun 4, 2014 at 11:07 AM, Julia Lawall julia.law...@lip6.fr wrote: Find_first_zero_bit considers BITS_PER_LONG bits at a time, and thus may return a larger number than the maximum position argument if that position is not a

RE: [PATCH 0/10] use safer test on the result of find_first_zero_bit

2014-06-04 Thread David Laight
From: Julia Lawall On Wed, 4 Jun 2014, Geert Uytterhoeven wrote: Hi Julia, On Wed, Jun 4, 2014 at 11:07 AM, Julia Lawall julia.law...@lip6.fr wrote: Find_first_zero_bit considers BITS_PER_LONG bits at a time, and thus may return a larger number than the maximum position argument if

[PULL] Move IPUv3 core out of staging, add CSI support

2014-06-04 Thread Philipp Zabel
Hi Dave, The following changes since commit d1db0eea852497762cab43b905b879dfcd3b8987: Linux 3.15-rc3 (2014-04-27 19:29:27 -0700) are available in the git repository at: git://git.pengutronix.de/git/pza/linux.git topic/ipu-destaging for you to fetch changes up to

RE: [PATCH 0/10] use safer test on the result of find_first_zero_bit

2014-06-04 Thread Julia Lawall
On Wed, 4 Jun 2014, David Laight wrote: From: Julia Lawall On Wed, 4 Jun 2014, Geert Uytterhoeven wrote: Hi Julia, On Wed, Jun 4, 2014 at 11:07 AM, Julia Lawall julia.law...@lip6.fr wrote: Find_first_zero_bit considers BITS_PER_LONG bits at a time, and thus may return

Re: [PATCH 0/10] use safer test on the result of find_first_zero_bit

2014-06-04 Thread Geert Uytterhoeven
Hi Julia, On Wed, Jun 4, 2014 at 11:52 AM, Julia Lawall julia.law...@lip6.fr wrote: Maybe the documented return code should be changed to allow for the existing behaviour. Sorry, I'm not sure to understand what you suggest here. include/asm-generic/bitops/find.h: | /** | *

Re: [PATCH 0/10] use safer test on the result of find_first_zero_bit

2014-06-04 Thread Julia Lawall
On Wed, 4 Jun 2014, Geert Uytterhoeven wrote: Hi Julia, On Wed, Jun 4, 2014 at 11:52 AM, Julia Lawall julia.law...@lip6.fr wrote: Maybe the documented return code should be changed to allow for the existing behaviour. Sorry, I'm not sure to understand what you suggest here.

Re: [PATCH 0/10] use safer test on the result of find_first_zero_bit

2014-06-04 Thread Geert Uytterhoeven
Hi Julia, On Wed, Jun 4, 2014 at 1:00 PM, Julia Lawall julia.law...@lip6.fr wrote: OK, thanks. I was only looking at the C code. But the C code contains a loop that is followed by: if (!size) return result; tmp = *p; found_first: tmp |= ~0UL

RE: [PATCH 0/10] use safer test on the result of find_first_zero_bit

2014-06-04 Thread David Laight
From: Julia Lawall On Wed, 4 Jun 2014, Geert Uytterhoeven wrote: Hi Julia, On Wed, Jun 4, 2014 at 1:00 PM, Julia Lawall julia.law...@lip6.fr wrote: OK, thanks. I was only looking at the C code. But the C code contains a loop that is followed by: if (!size)

Re: [PATCH v2 1/4] dma-mapping: Add devm_ interface for dma_map_single()

2014-06-04 Thread Tejun Heo
Hello, On Wed, Jun 04, 2014 at 01:39:07AM +0200, Joerg Roedel wrote: I fully agree with the points Shuah brought up here. I don't think it is a good idea to add this kind of resource management to runtime-allocated (and de-allocated) resources of device drivers. Also DMA handles are not

[PATCH] Staging:tidspbridge Fix minor checkpatch.pl warning.

2014-06-04 Thread Adithya.K
From: Adithya K linux.challen...@gmail.com Fixed few checkpatch.pl warnings. Signed-off-by: Adithya K linux.challen...@gmail.com --- drivers/staging/tidspbridge/pmgr/chnl.c |1 + drivers/staging/tidspbridge/pmgr/dspapi.c |8 drivers/staging/tidspbridge/rmgr/dbdcd.c |1 +

Re: [PATCH] Staging:tidspbridge Fix minor checkpatch.pl warning.

2014-06-04 Thread Greg KH
On Wed, Jun 04, 2014 at 08:28:36PM +0530, Adithya.K wrote: From: Adithya K linux.challen...@gmail.com Fixed few checkpatch.pl warnings. Be specific about _what_ warnings you fixed. And if you fix more than one type of warning, please break it up into different patches (each patch only can do

[PATCH 1/1] [SCSI] Fix a bug in deriving the FLUSH_TIMEOUT from the basic I/O timeout

2014-06-04 Thread K. Y. Srinivasan
Commit ID: 7e660100d85af860e7ad763202fff717adcdaacd added code to derive the FLUSH_TIMEOUT from the basic I/O timeout. However, this patch did not use the basic I/O timeout of the device. Fix this bug. Signed-off-by: K. Y. Srinivasan k...@microsoft.com --- drivers/scsi/sd.c |4 +++- 1 files

Re: [PATCH 0/6] staging: comedi: addi_common.h: remove some cruft

2014-06-04 Thread Ian Abbott
On 2014-05-29 18:29, H Hartley Sweeten wrote: Many of the ADDI-DATA drivers have been separated from the addi_common code and cleaned up. Because of this cleanup there are some unnecessary members hanging around in the private data struct and a number of defines that don't add any sigificant

Re: [PATCH 1/1] [SCSI] Fix a bug in deriving the FLUSH_TIMEOUT from the basic I/O timeout

2014-06-04 Thread James Bottomley
On Wed, 2014-06-04 at 09:33 -0700, K. Y. Srinivasan wrote: Commit ID: 7e660100d85af860e7ad763202fff717adcdaacd added code to derive the FLUSH_TIMEOUT from the basic I/O timeout. However, this patch did not use the basic I/O timeout of the device. Fix this bug. Signed-off-by: K. Y. Srinivasan

RE: [PATCH 1/1] [SCSI] Fix a bug in deriving the FLUSH_TIMEOUT from the basic I/O timeout

2014-06-04 Thread KY Srinivasan
-Original Message- From: James Bottomley [mailto:jbottom...@parallels.com] Sent: Wednesday, June 4, 2014 10:02 AM To: KY Srinivasan Cc: linux-ker...@vger.kernel.org; a...@canonical.com; de...@linuxdriverproject.org; h...@infradead.org; linux- s...@vger.kernel.org;

Re: [PATCH 1/3] staging: comedi: adl_pci9111: remove PCI9111_DRIVER_NAME define

2014-06-04 Thread Ian Abbott
On 2014-05-29 18:35, H Hartley Sweeten wrote: This define is only used in a comedi_error() message. The addition of the driver name to the message is not necessary. Remove the define. For aesthetics, convert the comedi_error() into a dev_dbg(). Signed-off-by: H Hartley Sweeten

Re: [PATCH 2/3] staging: comedi: adl_pci9111: remove PCI9111_HR_DEVICE_ID define

2014-06-04 Thread Ian Abbott
On 2014-05-29 18:35, H Hartley Sweeten wrote: This define is only used in the pci_device_id table and doesn't add any additional clarity to the code. Remove the define and just open code the value. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk

Re: [PATCH 3/3] staging: comedi: adl_pci9111: simplify A/D trigger selection code

2014-06-04 Thread Ian Abbott
On 2014-05-29 18:35, H Hartley Sweeten wrote: The functions pci9111_trigger_source_set(), pci9111_pretrigger_set(), and pci9111_autoscan_set() are all used to select the A/D trigger type. They all do a read/mask/set/write of the A/D Trigger Mode Control register. Simplify the code by removing

[PATCH] Staging: rtl8821ae: use kmalloc instead of variable length stack arrays

2014-06-04 Thread Remi Pommarel
This removes stack arrays of variable length and use kmalloc() instead, thus removing the sparse warnings Variable length array is used. Signed-off-by: Remi Pommarel r...@triplefau.lt --- drivers/staging/rtl8821ae/efuse.c | 38 +++--- 1 file changed, 31

Re: [PATCH] staging: comedi: comedi_buf: introduce comedi_buf_n_bytes_ready()

2014-06-04 Thread Ian Abbott
On 2014-05-29 18:38, H Hartley Sweeten wrote: Introduce a helper function to return the number of bytes that are ready to read/write from/to the comedi_async buffer. The write to use doesn't really make much sense but is handled for completeness. Use the helper function in the comedi drivers

RE: [PATCH] staging: comedi: comedi_buf: introduce comedi_buf_n_bytes_ready()

2014-06-04 Thread Hartley Sweeten
On Wednesday, June 04, 2014 11:17 AM, Ian Abbott wrote: On 2014-05-29 18:38, H Hartley Sweeten wrote: Introduce a helper function to return the number of bytes that are ready to read/write from/to the comedi_async buffer. The write to use doesn't really make much sense but is handled for

Re: [PATCH 1/2] staging: comedi: pcl730: add support for Diamond Systems IR104-PBF module

2014-06-04 Thread Ian Abbott
On 2014-05-29 18:42, H Hartley Sweeten wrote: The Diamond Systems IR104-PBF board is a PC/104 module with 20 optoisolated inputs and 20 relay outputs. This board can be supported by the pcl730 driver. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott

Re: [PATCH v2 1/4] dma-mapping: Add devm_ interface for dma_map_single()

2014-06-04 Thread Joerg Roedel
Hi, On Wed, Jun 04, 2014 at 06:03:36PM +0300, Eli Billauer wrote: I believe that I need a managed dma_map_single() my own driver, which doesn't fall in the case of a single use: The driver allocates its buffers with __get_free_pages() (or the to-be managed version of it). Then it cuts the