[PATCH] staging: unisys: replace kzalloc/kfree with UISMALLOC/UISFREE

2014-03-19 Thread Daeseok Youn
It doesn't need to trace status of buffer when buffers are allocated/deallocated. So stuff of tracing memory status are removed. And also UISMALLOC/UISFREE macro are removed completetly. just use kzalloc/kfree. Signed-off-by: Daeseok Youn --- drivers/staging/unisys/include/uisutils.h |6 --

[PATCH 2/5] staging: wlags49_h2: remove commented code in wl_netdev.c

2014-03-19 Thread Mathieu Maret
Remove unused code under C99 comment style Signed-off-by: Mathieu Maret --- drivers/staging/wlags49_h2/wl_netdev.c | 38 -- 1 file changed, 38 deletions(-) diff --git a/drivers/staging/wlags49_h2/wl_netdev.c b/drivers/staging/wlags49_h2/wl_netdev.c index ae42c8e

[PATCH 3/5] staging: wlags49_h2: Correct comment style in wl_netdev.c

2014-03-19 Thread Mathieu Maret
Code is using C99 code style, so change them to kernel style Signed-off-by: Mathieu Maret --- drivers/staging/wlags49_h2/wl_netdev.c | 158 +++-- 1 file changed, 89 insertions(+), 69 deletions(-) diff --git a/drivers/staging/wlags49_h2/wl_netdev.c b/drivers/staging/

[PATCH 4/5] staging: wlags49_h2: Correct macro style in wl_netdev.c

2014-03-19 Thread Mathieu Maret
Multi statement macro should use do{}while(0) Signed-off-by: Mathieu Maret --- drivers/staging/wlags49_h2/wl_netdev.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/staging/wlags49_h2/wl_netdev.c b/drivers/staging/wlags49_h2/wl_netdev.c index 255d291..645595

[PATCH 5/5] staging: wlags49_h2: Correct coding style in wl_netdev.c

2014-03-19 Thread Mathieu Maret
Remove space between parenthesis. Test with simple statement does not need brackets. Simplify test condition Signed-off-by: Mathieu Maret --- drivers/staging/wlags49_h2/wl_netdev.c | 29 +++-- 1 file changed, 11 insertions(+), 18 deletions(-) diff --git a/drivers/staging

Parabéns

2014-03-19 Thread Coca-Cola
Parabéns! Você ganhou £ 750.000,00 GBP em Coca-Cola Reino Unido on-line promo caridade. Para registrar em para suas reivindicações, o arquivo na seguinte; Nomes: Sexo: País: Tel: Saudações, Sra. Margaret Delaney ___ devel mailing list de...@linux

[PATCH 01/xx] staging: dgap: re-factor some code for 80+ lines as reported by checkpatch

2014-03-19 Thread Mark Hounschell
This patch re-factors some code to fix some 80+ lines as reported by checkpatch. This patch was suggested and authored by Dan Carpenter. A test case for this patch has been written and used to show the patch to be correct. Suggested-by: Dan Carpenter Signed-off-by: Mark Hounschell Tested-by: Mar

[PATCH 00/03] staging: dgap: Digi International dgap driver

2014-03-19 Thread Mark Hounschell
patch 1 re-factors some code to fix warnings by checkpatch about 80+ char lines. This patch was suggested by Dan Carpenter. A test case for this patch has been written and used and used to show the patch to be correct. patch 2 gets rid of the DGAP_LOCK and DGAP_UNLOCK macros patch 3 re-factors

[PATCH 02/xx] staging: dgap: get rid of DGAP_LOCK and DGAP_UNLOCK macros

2014-03-19 Thread Mark Hounschell
This patch replaces the DGAP_LOCK and DGAP_UNLOCK macros with spin_lock_irqsave spin_unlock_irqrestore. Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman --- drivers/staging/dgap/dgap.c | 442 ++-- drivers/staging/dgap/dgap.h | 7 - 2 files changed,

[PATCH 03/03] staging: dgap: re-factor some more code for 80+ lines

2014-03-19 Thread Mark Hounschell
This patch fixes more 80+ char lines as reported by checkpatch Signed-off-by: Mark Hounschell Tested-by: Mark Hounschell Cc: Greg Kroah-Hartman --- drivers/staging/dgap/dgap.c | 40 +--- 1 file changed, 25 insertions(+), 15 deletions(-) diff --git a/drivers

Re: [PATCH] staging: unisys: replace kzalloc/kfree with UISMALLOC/UISFREE

2014-03-19 Thread Greg KH
On Wed, Mar 19, 2014 at 04:58:52PM +0900, Daeseok Youn wrote: > > It doesn't need to trace status of buffer when buffers are > allocated/deallocated. So stuff of tracing memory status > are removed. And also UISMALLOC/UISFREE macro are removed > completetly. just use kzalloc/kfree. > > Signed-off

Re: [PATCH 4/5] staging: wlags49_h2: Correct macro style in wl_netdev.c

2014-03-19 Thread Greg KH
On Wed, Mar 19, 2014 at 09:20:34AM +0100, Mathieu Maret wrote: > Multi statement macro should use do{}while(0) > > Signed-off-by: Mathieu Maret > --- > drivers/staging/wlags49_h2/wl_netdev.c | 8 +--- > 1 file changed, 5 insertions(+), 3 deletions(-) > > diff --git a/drivers/staging/wlags49

Re: [PATCH 02/xx] staging: dgap: get rid of DGAP_LOCK and DGAP_UNLOCK macros

2014-03-19 Thread Greg Kroah-Hartman
Your subject [02/xx] seems a bit odd :) ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH RFC 26/46] drivers/base: provide an infrastructure for componentised subsystems

2014-03-19 Thread Laurent Pinchart
Hi Russell, (CC'ing Philipp Zabel who might be able to provide feedback as a user of the component framework) Could you please have a look at the questions below and provide an answer when you'll have time ? I'd like to bridge the gap between the component and the V4L2 asynchronous registratio

Re: [PATCH RFC 26/46] drivers/base: provide an infrastructure for componentised subsystems

2014-03-19 Thread Russell King - ARM Linux
On Wed, Mar 19, 2014 at 06:22:14PM +0100, Laurent Pinchart wrote: > Hi Russell, > > (CC'ing Philipp Zabel who might be able to provide feedback as a user of the > component framework) > > Could you please have a look at the questions below and provide an answer > when > you'll have time ? I'd

Re: [PATCH 4/5] staging: wlags49_h2: Correct macro style in wl_netdev.c

2014-03-19 Thread Greg KH
On Wed, Mar 19, 2014 at 05:42:43PM +0100, Mathieu Maret wrote: > > Le 19 mars 2014 16:34, "Greg KH" a écrit : > > > > On Wed, Mar 19, 2014 at 09:20:34AM +0100, Mathieu Maret wrote: > > > Multi statement macro should use do{}while(0) > > > > > > Signed-off-by: Mathieu Maret > > > --- > > >  drive

Re: [PATCH 02/xx] staging: dgap: get rid of DGAP_LOCK and DGAP_UNLOCK macros

2014-03-19 Thread Mark Hounschell
On 03/19/2014 11:49 AM, Greg Kroah-Hartman wrote: Your subject [02/xx] seems a bit odd :) Oops. The xx was there in my patches until I knew how many there would be in the series. Forgot to change it. Sorry. Want me to redo? Easy enough. ___ devel

[Patch 0/8] Staging: unisys: Get rid of goto statements in macros

2014-03-19 Thread Ken Cox
This series gets rid of a number of macros that ultimately include a goto statement. The first patches clean up unused macros and macros that reference other macros which eventually contain a goto statement. The latter patches actually remove the goto statements. __

[PATCH 4/8] Staging: unisys: Remove RETBOOL macro

2014-03-19 Thread Ken Cox
The RETBOOL macro contained a goto statement which is not allowed in the kernel. Signed-off-by: Ken Cox --- drivers/staging/unisys/include/timskmod.h | 4 --- drivers/staging/unisys/uislib/uisqueue.c | 1 - .../unisys/visorchannel/visorchannel_funcs.c | 37 +++-

[PATCH 1/8] Staging: unisys: include: Remove unused macros from timskmod.h

2014-03-19 Thread Ken Cox
The following macros were never referenced and have been removed: DEVFROMID DEVFROMFILE DEVFROMINODE DEVFROMIDX TRY_WPOSTCODE_3 Signed-off-by: Ken Cox --- drivers/staging/unisys/include/timskmod.h | 118 -- 1 file changed, 118 d

[PATCH 6/8] Staging: unisys: Remove RETVOID macro

2014-03-19 Thread Ken Cox
The RETVOID macro contained a goto statement which is not allowed in the kernel. Signed-off-by: Ken Cox --- drivers/staging/unisys/include/timskmod.h | 2 -- drivers/staging/unisys/uislib/uisqueue.c| 1 - drivers/staging/unisys/visorchipset/parser.c|

[PATCH 8/8] Staging: unisys: Remove RETINT macro

2014-03-19 Thread Ken Cox
The RETINT macro included a goto statement which is not allowed in the kernel. Signed-off-by: Ken Cox --- drivers/staging/unisys/include/timskmod.h | 4 -- drivers/staging/unisys/uislib/uisqueue.c | 9 ++-- .../unisys/visorchannel/visorchannel_funcs.c | 10 ++-- driver

[PATCH 2/8] Staging: unisys: Cleanup macros to get rid of goto statements

2014-03-19 Thread Ken Cox
Remove the following macros: TRY CHKFD CHKDD CHKFDX CHKDDX ADDPROCLINE TRY_WPOSTCODE_1 TRY_WPOSTCODE_2 FAIL_WPOSTCODE_2 FAIL_WPOSTCODE_3 Part of a series to get rid of goto statements embedded in macros. I'm breaking

[PATCH 5/8] Staging: unisys: Remove RETPTR macro

2014-03-19 Thread Ken Cox
The RETPTR macro contained a goto statement which is not allowed in the kernel. Signed-off-by: Ken Cox --- drivers/staging/unisys/include/timskmod.h | 4 --- drivers/staging/unisys/uislib/uislib.c | 11 --- drivers/staging/unisys/uislib/uisqueue.c | 1 - .../

[PATCH 7/8] Staging: unisys: Remove FAIL macro

2014-03-19 Thread Ken Cox
The FAIL macro ultimately includes a goto statement which is not allowed in the kernel. Signed-off-by: Ken Cox --- drivers/staging/unisys/include/timskmod.h | 12 --- .../unisys/visorchannel/visorchannel_funcs.c | 97 ++ drivers/staging/unisys/visorchipset/file

[PATCH 3/8] Staging: unisys: Remove FAIL_WPOSTCODE_1 macro

2014-03-19 Thread Ken Cox
Part of a series to get rid of goto statements embedded in macros. I'm breaking this up into a series of smaller patches for easier review. The later patches in the series will actually remove the goto statements. Signed-off-by: Ken Cox --- drivers/staging/unisys/include/timskmod.h |

[PATCH] staging: dgap: fix the rest of the checkpatch warnings in dgap.c

2014-03-19 Thread Mark Hounschell
This patch fixes all the simple_strtol and simple_strtoul warnings as reported by checkpatch. After this patch, checkpatch will report zero errors or warnings on dgap.c. Signed-off-by: Mark Hounschell Tested-by: Mark Hounschell Cc: Greg Kroah-Hartman --- drivers/staging/dgap/dgap.c | 69 ++

Re: [PATCH net-next,v3] hyperv: Add support for virtual Receive Side Scaling (vRSS)

2014-03-19 Thread David Miller
From: Haiyang Zhang Date: Tue, 18 Mar 2014 15:15:22 -0700 > +struct ndis_obj_header { > + u8 type; > + u8 rev; > + u16 size; > +} __packed; > + > + > +/* ndis_recv_scale_cap/cap_flag */ One empty line is sufficient, we don't need two of them here. > +extern u8 netvsc_hash_key[]; We

Re: [PATCH net-next,v3] hyperv: Add support for virtual Receive Side Scaling (vRSS)

2014-03-19 Thread Stephen Rothwell
On Thu, 20 Mar 2014 00:56:05 +0300 Sergei Shtylyov wrote: > > On 03/19/2014 11:40 PM, David Miller wrote: > > >> +extern u8 netvsc_hash_key[]; > > > We no longer use extern in header file function declarations. > > Wait, this is a variable declaration. :-) And the need for the extern on v

Re: [PATCH net-next, v3] hyperv: Add support for virtual Receive Side Scaling (vRSS)

2014-03-19 Thread Sergei Shtylyov
Hello. On 03/19/2014 11:40 PM, David Miller wrote: +extern u8 netvsc_hash_key[]; We no longer use extern in header file function declarations. Wait, this is a variable declaration. :-) WBR, Sergei ___ devel mailing list de...@linuxdriverproj

RE: [PATCH net-next,v3] hyperv: Add support for virtual Receive Side Scaling (vRSS)

2014-03-19 Thread Haiyang Zhang
> -Original Message- > > + > > + > > +/* ndis_recv_scale_cap/cap_flag */ > > One empty line is sufficient, we don't need two of them here. I will fix this and other formats you pointed out below, also check the whole patch for similar issues. > > - net = alloc_etherdev(sizeof(struc

[PATCH] Staging: bcm: DDRInit: moved #defines from DDRInit.c to DDRInit.h

2014-03-19 Thread Gary Rookard
I moved the #defines from implementation file DDRInit.c to the proper specification file DDRInit.h. Signed-off-by: Gary Alan Rookard --- On branch staging-next drivers/staging/bcm/DDRInit.c | 15 --- drivers/staging/bcm/DDRInit.h | 15 +++ 2 files changed, 15 insertions(

[PATCH 2/2] coding style: fix line over 80 characters

2014-03-19 Thread Cédric Cabessa
Signed-off-by: Cédric Cabessa --- drivers/staging/usbip/vhci_hcd.c | 33 ++--- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/drivers/staging/usbip/vhci_hcd.c b/drivers/staging/usbip/vhci_hcd.c index f690668..1e84577 100644 --- a/drivers/staging/usbip/

[PATCH 1/2] coding style: fix quoted string split across lines

2014-03-19 Thread Cédric Cabessa
Signed-off-by: Cédric Cabessa --- drivers/staging/usbip/stub_tx.c | 16 drivers/staging/usbip/usbip_common.c | 10 -- drivers/staging/usbip/vhci_sysfs.c | 4 ++-- 3 files changed, 14 insertions(+), 16 deletions(-) diff --git a/drivers/staging/usbip/stub_tx.c b/dr

[PATCH 0/2] coding style for drivers/staging/usbip

2014-03-19 Thread Cédric Cabessa
Various coding style fixes for drivers/staging/usbip Cédric Cabessa (2): coding style: fix quoted string split across lines coding style: fix line over 80 characters drivers/staging/usbip/stub_tx.c | 16 drivers/staging/usbip/usbip_common.c | 10 -- drivers/stag

[PATCH] staging: octeon-usb: prevent memory corruption

2014-03-19 Thread Aaro Koskinen
octeon-hcd will crash the kernel when SLOB is used. This usually happens after the 18-byte control transfer when a device descriptor is read. The DMA engine is always transfering full 32-bit words and if the transfer is shorter, some random garbage appears after the buffer. The problem is not visib

[PATCHv2 4/5] staging: wlags49_h2: Correct macro style in wl_netdev.c

2014-03-19 Thread Mathieu Maret
Multi statement macro should use do{}while(0) patch v2 does not break compilation --- drivers/staging/wlags49_h2/wl_netdev.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/staging/wlags49_h2/wl_netdev.c b/drivers/staging/wlags49_h2/wl_netdev.c index 255d291..

Re: [PATCH] staging: unisys: replace kzalloc/kfree with UISMALLOC/UISFREE

2014-03-19 Thread DaeSeok Youn
OK. I will remove __GFP_NORETRY for kmalloc/kzalloc and sent this again. Thanks. Daeseok Youn 2014-03-20 0:28 GMT+09:00 Greg KH : > On Wed, Mar 19, 2014 at 04:58:52PM +0900, Daeseok Youn wrote: >> >> It doesn't need to trace status of buffer when buffers are >> allocated/deallocated. So stuff of

[PATCH v2] staging: unisys: replace kzalloc/kfree with UISMALLOC/UISFREE

2014-03-19 Thread Daeseok Youn
It doesn't need to trace status of buffer when buffers are allocated/deallocated. So stuff of tracing memory status are removed. And also UISMALLOC/UISFREE macro are removed completetly. just use kzalloc/kfree. Signed-off-by: Daeseok Youn --- v2: removed __GFP_NORETRY flag for kzalloc() driver

[PATCH] staging: comedi: poc: remove obsolete driver

2014-03-19 Thread H Hartley Sweeten
The DAC02 board, which is the only board supported by this driver, now has its own comedi driver (dac02). Remove this obsolete driver. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/Kconfig | 9 -- drivers/staging/comedi/drivers/Ma

RE: [PATCH 2/2] staging: comedi: poc: remove obsolete driver

2014-03-19 Thread Hartley Sweeten
On Monday, March 17, 2014 2:14 PM, Greg KH wrote: > On Tue, Mar 11, 2014 at 12:04:18PM -0700, H Hartley Sweeten wrote: >> From: H Hartley Sweeten >> >> The DAC02 board, which is the only board supported by this driver, now >> has its own comedi driver (dac02). >> >> Remove this obsolete driver.

Re: [PATCH 2/2] staging: comedi: poc: remove obsolete driver

2014-03-19 Thread Greg KH
On Wed, Mar 19, 2014 at 11:26:04PM +, Hartley Sweeten wrote: > On Monday, March 17, 2014 2:14 PM, Greg KH wrote: > > On Tue, Mar 11, 2014 at 12:04:18PM -0700, H Hartley Sweeten wrote: > >> From: H Hartley Sweeten > >> > >> The DAC02 board, which is the only board supported by this driver, now

Re: [PATCH 1/2] coding style: fix quoted string split across lines

2014-03-19 Thread Greg Kroah-Hartman
On Wed, Mar 19, 2014 at 11:04:56PM +0100, Cédric Cabessa wrote: > Signed-off-by: Cédric Cabessa In the future, please pick a subject line that says what part of the kernel you are changing. For example, this patch would be: staging: usbip: fix quoted string split across lines I'll fix t

Re: [PATCH] Staging: bcm: DDRInit: moved #defines from DDRInit.c to DDRInit.h

2014-03-19 Thread Greg KH
On Wed, Mar 19, 2014 at 05:30:53PM -0400, Gary Rookard wrote: > I moved the #defines from implementation file DDRInit.c to > the proper specification file DDRInit.h. > > Signed-off-by: Gary Alan Rookard > > --- > On branch staging-next > drivers/staging/bcm/DDRInit.c | 15 --- > dri

Re: [PATCHv2 4/5] staging: wlags49_h2: Correct macro style in wl_netdev.c

2014-03-19 Thread Greg KH
On Wed, Mar 19, 2014 at 11:56:14PM +0100, Mathieu Maret wrote: > Multi statement macro should use do{}while(0) > > patch v2 does not break compilation > --- > drivers/staging/wlags49_h2/wl_netdev.c | 8 +--- > 1 file changed, 5 insertions(+), 3 deletions(-) > > diff --git a/drivers/staging/w

Re: [PATCH] Staging: bcm: DDRInit: moved #defines from DDRInit.c to DDRInit.h

2014-03-19 Thread Gary Rookard
On Thu, 20 Mar 2014, Greg KH wrote: On Wed, Mar 19, 2014 at 05:30:53PM -0400, Gary Rookard wrote: I moved the #defines from implementation file DDRInit.c to the proper specification file DDRInit.h. Signed-off-by: Gary Alan Rookard --- On branch staging-next drivers/staging/bcm/DDRInit.c |

Re: [PATCH] Staging: bcm: DDRInit: moved #defines from DDRInit.c to DDRInit.h

2014-03-19 Thread Greg KH
On Wed, Mar 19, 2014 at 10:29:42PM -0400, Gary Rookard wrote: > > > On Thu, 20 Mar 2014, Greg KH wrote: > > > On Wed, Mar 19, 2014 at 05:30:53PM -0400, Gary Rookard wrote: > >> I moved the #defines from implementation file DDRInit.c to > >> the proper specification file DDRInit.h. > >> > >> Sign

Re: [PATCH] Staging: bcm: DDRInit: moved #defines from DDRInit.c to DDRInit.h

2014-03-19 Thread Gary Rookard
On Thu, 20 Mar 2014, Greg KH wrote: On Wed, Mar 19, 2014 at 10:29:42PM -0400, Gary Rookard wrote: On Thu, 20 Mar 2014, Greg KH wrote: On Wed, Mar 19, 2014 at 05:30:53PM -0400, Gary Rookard wrote: I moved the #defines from implementation file DDRInit.c to the proper specification file DDR

Re: [PATCH net-next,v3] hyperv: Add support for virtual Receive Side Scaling (vRSS)

2014-03-19 Thread David Miller
From: Sergei Shtylyov Date: Thu, 20 Mar 2014 00:56:05 +0300 > Hello. > > On 03/19/2014 11:40 PM, David Miller wrote: > >>> +extern u8 netvsc_hash_key[]; > >> We no longer use extern in header file function declarations. > >Wait, this is a variable declaration. :-) My bad :) _

[PATCH] staging: fix up speakup kobject mode

2014-03-19 Thread Rusty Russell
It uses the unnecessary S_IFREG bit which will break when my stricter-checking-for-mode patch goes in. Since we're fixing it anyway, the extra level of indirection is confusing for readers (ROOT_W == rw-r--r-- for example). Also, many of these are other-writable. Is that really intended? Signed

Re: [PATCH] staging: fix up speakup kobject mode

2014-03-19 Thread Greg KH
On Thu, Mar 20, 2014 at 01:42:57PM +1030, Rusty Russell wrote: > It uses the unnecessary S_IFREG bit which will break when my > stricter-checking-for-mode patch goes in. > > Since we're fixing it anyway, the extra level of indirection is > confusing for readers (ROOT_W == rw-r--r-- for example). >