Re: [PATCH v3 1/2] Staging: comedi: fix line longer than 80 chars in cb_pcidas64.c

2015-05-19 Thread Sudip Mukherjee
On Tue, May 19, 2015 at 07:57:49PM +0200, Amaury Denoyelle wrote: > This patch fixes coding style errors reported by checkpatch.pl for > cb_pcidas64.c, about too long source code lines. > > Signed-off-by: Amaury Denoyelle > --- > drivers/staging/comedi/drivers/cb_pcidas64.c | 14 ++ >

[PATCH] staging: lustre: remove unused variable warning

2015-05-19 Thread Arnd Bergmann
A recent patch to simplify the lustre large memory allocation causes new warnings as an unintended side-effect: lustre/lov/lov_request.c: In function 'lov_finish_set': lustre/lov/lov_request.c:78:7: warning: unused variable 'len' [-Wunused-variable] int len = set->set_oabufs * sizeof(*set->set

Re: [PATCH 1/3 v3] Staging: rtl8192u: Simplify error check code at prism2_wep_init

2015-05-19 Thread Dan Carpenter
I was planning to leave this one for Greg but since you asked me to comment... This patch is ok as one patch. The subject is "clean up prism2_wep_init()" and that's one thing. Breaking it up into tiny patches would probably make it harder to review. On Tue, May 19, 2015 at 01:32:22AM +0200, Ped

RE: INSTRUCTION ON HOW TO CREDIT YOUR ACCOUNT WITH THE SUM$5, 800.000.00

2015-05-19 Thread Barlay Bank Plc London
Barclays Bank PLC 1 Churchill Place London, E14 5HP, United Kingdom Dear Customer, We are deeply sorry that your fund has not been transferred to you till now because of the activities of some bad persons here in London and their evil collaborators in Nigeria,Africa. Therefore, we have been na

Re: [PATCH 1/3 v3] Staging: rtl8192u: Simplify error check code at prism2_wep_init

2015-05-19 Thread pmarzo
On Tue, 2015-05-19 at 11:04 +0530, Sudip Mukherjee wrote: > On Tue, May 19, 2015 at 01:32:22AM +0200, Pedro Marzo Perez wrote: > > Merge two pr_debug lines with literal strings splitted across several lines > > into one single line, simplifying prism2_wep_init error check code. > > I would have sp

Re: [RFC] Driver for Arduino-as-I2C-adapter

2015-05-19 Thread Alex Beregszaszi
Hi, Bernhard Kraft wrote: Hi Alex, On 2015-05-19 14:20, Alex Beregszaszi wrote: So I sat down and wrote an Arduino implementation of that specification just to see what the performance would be. You can find it at: https://github.com/axic/dtiic I already took a look at the robot-electronics

[PATCH v3 0/2] staging: comedi: fix coding style in cb_pcidas64.c

2015-05-19 Thread Amaury Denoyelle
These two patches fixes various coding style error in cb_pcidas64.c file. 1/2: - address line longer than 80 characters 2/2: - format multi-line comments according to the kernel coding style Amaury Denoyelle (2): Staging: comedi: fix line longer than 80 chars in cb_pcidas64.c Staging: comedi:

[PATCH v3 1/2] Staging: comedi: fix line longer than 80 chars in cb_pcidas64.c

2015-05-19 Thread Amaury Denoyelle
This patch fixes coding style errors reported by checkpatch.pl for cb_pcidas64.c, about too long source code lines. Signed-off-by: Amaury Denoyelle --- drivers/staging/comedi/drivers/cb_pcidas64.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/drivers/staging

[PATCH v3 2/2] Staging: comedi: fix style for multi-line comments in cb_pcidas64.c

2015-05-19 Thread Amaury Denoyelle
This patch reformat multi-line comments which are not properly written according to the kernel coding style in cb_pcidas64.c Signed-off-by: Amaury Denoyelle --- drivers/staging/comedi/drivers/cb_pcidas64.c | 140 ++- 1 file changed, 93 insertions(+), 47 deletions(-) diff

[PATCH] staging: rtl8192u: Patch to modify if, else conditions

2015-05-19 Thread Dhere, Chaitanya (C.)
In this patch: 1. the if condition is modified to remove the unnecessary equality check. 2. The else if condition is replaced by an else condition since the variable checked in the if statement is a bool making the else if unnecessary. 3. Fixed indentation problem on line 1369. These changes were d

[PATCH] staging: wlan-ng: fix long line

2015-05-19 Thread Douglas Barbonaglia Sathler Figueiredo
Style (line over 80 chars) in drivers/staging/wlan-ng/prism2fw.c Signed-off-by: Douglas Barbonaglia Sathler Figueiredo --- drivers/staging/wlan-ng/prism2fw.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/staging/wlan-ng/prism2fw.c b/drivers/staging/wlan-ng

Re: [PATCH 1/2] cpu-hotplug: export cpu_hotplug_enable/cpu_hotplug_disable

2015-05-19 Thread Vitaly Kuznetsov
Peter Zijlstra writes: > On Tue, May 19, 2015 at 02:15:41PM +0200, Vitaly Kuznetsov wrote: >> Loaded Hyper-V module will use these functions to disable CPU hotplug >> under certain circumstances. > > What's wrong with get_online_cpus() ? We need to disable cpu offlining permanently (till the mod

Re: [PATCH 1/2] cpu-hotplug: export cpu_hotplug_enable/cpu_hotplug_disable

2015-05-19 Thread Peter Zijlstra
On Tue, May 19, 2015 at 02:15:41PM +0200, Vitaly Kuznetsov wrote: > Loaded Hyper-V module will use these functions to disable CPU hotplug > under certain circumstances. What's wrong with get_online_cpus() ? ___ devel mailing list de...@linuxdriverproject

Re: [RFC] Driver for Arduino-as-I2C-adapter

2015-05-19 Thread Bernhard Kraft
Hi Alex, On 2015-05-19 14:20, Alex Beregszaszi wrote: So I sat down and wrote an Arduino implementation of that specification just to see what the performance would be. You can find it at: https://github.com/axic/dtiic I already took a look at the robot-electronics.co.uk link yesterday. I wa

[PATCH] Staging:Android:ion - Fix for memory leak if ion device registration get failed.

2015-05-19 Thread Shailendra Verma
Fix to avoid possible memory leak if the ion device registration get failed.Free the allocated device creation memory before return in case the ion device registration get failed. Signed-off-by: Shailendra Verma --- drivers/staging/android/ion/ion.c |1 + 1 file changed, 1 insertion(+) diff

Re: [PATCH 1/1] [930672e8693a] Task 10 of the Eudyptula Challenge

2015-05-19 Thread Greg Kroah-Hartman
On Tue, May 19, 2015 at 01:50:10AM -0300, Douglas Figueiredo wrote: > From: douglasbsf We need a "real" name here, and in the signed-off-by line. Also fix up your subject line like mentioned. > > Fixed Coding Style Problem in drivers/staging/wlan-ng/prism2fw.c > > Signed-off-by: douglasbsf >

[PATCH v3 7/8] staging: lustre: lnet: selftest: code cleanup - variable spacing, indentation

2015-05-19 Thread Mike Shuey
Unify spacing in variable declarations, and align indentation in headers. General whitespace cleanups. Signed-off-by: Mike Shuey --- drivers/staging/lustre/lnet/selftest/brw_test.c | 60 ++-- drivers/staging/lustre/lnet/selftest/conctl.c| 54 ++-- drivers/staging/lustre/lnet/selftest/co

[PATCH v3 1/8] staging: lustre: lnet: lnet: code cleanups - variable declarations

2015-05-19 Thread Mike Shuey
Unify variable declarations to use a single space, and any other obvious spacing flaws. Signed-off-by: Mike Shuey --- drivers/staging/lustre/lnet/lnet/acceptor.c| 32 ++-- drivers/staging/lustre/lnet/lnet/api-ni.c | 198 ++-- drivers/staging/lustre/lnet/lnet/config.c

Re: [RFC] Driver for Arduino-as-I2C-adapter

2015-05-19 Thread Alex Beregszaszi
Hi Angelo, Angelo Compagnucci wrote: Hi Alex, 2015-05-19 15:34 GMT+02:00 Angelo Compagnucci: Hi Alex, 2015-05-19 13:59 GMT+02:00 Alex Beregszaszi: Hi, Angelo Compagnucci wrote: Dear Bernhard Kraft, 2015-05-18 18:53 GMT+02:00 Bernhard Kraft: But for now I think I will just publish the Ard

[PATCH v3 6/8] staging: lustre: lnet: socklnd: code cleanup - align spacing

2015-05-19 Thread Mike Shuey
Unify variable declarations to use a single space. Also include several miscellaneous whitespace cleanups, particularly in socklnd.h. Signed-off-by: Mike Shuey --- .../staging/lustre/lnet/klnds/socklnd/socklnd.c| 468 .../staging/lustre/lnet/klnds/socklnd/socklnd.h| 5

[PATCH v3 5/8] staging: lustre: lnet: o2iblnd: code cleanup - align whitespace

2015-05-19 Thread Mike Shuey
Unify variable declarations to use a single whitespace. Also line up declarations and comments in o2iblnd.h. Signed-off-by: Mike Shuey --- .../staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c| 458 +++--- .../staging/lustre/lnet/klnds/o2iblnd/o2iblnd.h| 680 ++-- ..

[PATCH v3 0/8] staging: lustre: lnet: code cleanups

2015-05-19 Thread Mike Shuey
This patch series cleans up code in staging/lustre/lnet - mostly spacing and dead function cleanup. Should apply against linux-next 20150518. ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/dr

[PATCH v3 8/8] staging: lustre: lnet: remove LNET_MUTEX_LOCK macro

2015-05-19 Thread Mike Shuey
LNET_MUTEX_LOCK and LNET_MUTEX_UNLOCK are verbose wrappers to mutex_lock and mutex_unlock. Get rid of these. Signed-off-by: Mike Shuey --- .../staging/lustre/include/linux/lnet/lib-lnet.h |2 - drivers/staging/lustre/lnet/lnet/api-ni.c | 26 ++-- drivers/staging

[PATCH v3 3/8] staging: lustre: lnet: dead code - remove LNetSetAsync

2015-05-19 Thread Mike Shuey
LNetSetAsync() returns 0, and is never called. Doesn't exist in the Intel tree, either. Remove it. Signed-off-by: Mike Shuey --- drivers/staging/lustre/include/linux/lnet/api.h |1 - drivers/staging/lustre/lnet/lnet/lib-move.c | 24 --- 2 files changed, 0 insertio

[PATCH v3 4/8] staging: lustre: lnet: lnet: Module is LNet, not Portals

2015-05-19 Thread Mike Shuey
Fix the module version to match upstream development. Signed-off-by: Mike Shuey --- drivers/staging/lustre/lnet/lnet/module.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/staging/lustre/lnet/lnet/module.c b/drivers/staging/lustre/lnet/lnet/module.c index ff3

[PATCH v3 2/8] staging: lustre: lnet: dead code - remove lnet_fini_locks

2015-05-19 Thread Mike Shuey
lnet_fini_locks() does nothing. Remove. Signed-off-by: Mike Shuey --- drivers/staging/lustre/lnet/lnet/api-ni.c |8 1 files changed, 0 insertions(+), 8 deletions(-) diff --git a/drivers/staging/lustre/lnet/lnet/api-ni.c b/drivers/staging/lustre/lnet/lnet/api-ni.c index 6910f56..1

Re: [PATCH 1/2] cpu-hotplug: export cpu_hotplug_enable/cpu_hotplug_disable

2015-05-19 Thread Radim Krčmář
2015-05-19 14:15+0200, Vitaly Kuznetsov: > Loaded Hyper-V module will use these functions to disable CPU hotplug > under certain circumstances. > > Signed-off-by: Vitaly Kuznetsov > --- > kernel/cpu.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/kernel/cpu.c b/kern

Re: [RFC] Driver for Arduino-as-I2C-adapter

2015-05-19 Thread Angelo Compagnucci
Hi Alex, 2015-05-19 15:34 GMT+02:00 Angelo Compagnucci : > Hi Alex, > > 2015-05-19 13:59 GMT+02:00 Alex Beregszaszi : >> Hi, >> >> Angelo Compagnucci wrote: >> >> Dear Bernhard Kraft, >> >> 2015-05-18 18:53 GMT+02:00 Bernhard Kraft : >> >> But for now I think I will just publish the Arduino sketch

Re: [RFC] Driver for Arduino-as-I2C-adapter

2015-05-19 Thread Angelo Compagnucci
Hi Alex, 2015-05-19 13:59 GMT+02:00 Alex Beregszaszi : > Hi, > > Angelo Compagnucci wrote: > > Dear Bernhard Kraft, > > 2015-05-18 18:53 GMT+02:00 Bernhard Kraft : > > But for now I think I will just publish the Arduino sketch and a sample > implementation on how to access I2C devices with it. > >

RE: INSTRUCTION ON HOW TO CREDIT YOUR ACCOUNT WITH THE SUM$5, 800.000.00

2015-05-19 Thread Barlay Bank Plc London
Barclays Bank PLC 1 Churchill Place London, E14 5HP, United Kingdom Dear Customer, We are deeply sorry that your fund has not been transferred to you till now because of the activities of some bad persons here in London and their evil collaborators in Nigeria,Africa. Therefore, we have been na

[patch] staging: slicoss: restore IRQs correctly after slic_cmdq_reset()

2015-05-19 Thread Dan Carpenter
We can't save two different values in "flags" so it means that IRQs are not enabled properly at the end of this function. This isn't a problem in the current code because it's always called with IRQs disabled so we don't want to enable them at the end. This bug is old but it's thanks to David Mat

Re: [RFC] Driver for Arduino-as-I2C-adapter

2015-05-19 Thread Alex Beregszaszi
Hi, Angelo Compagnucci wrote: Dear Bernhard Kraft, 2015-05-18 18:53 GMT+02:00 Bernhard Kraft: But for now I think I will just publish the Arduino sketch and a sample implementation on how to access I2C devices with it. Probably we should stick to other protocol driver implementation, but fr

[PATCH 2/2] Drivers: hv: vmbus: use cpu_hotplug_enable/disable

2015-05-19 Thread Vitaly Kuznetsov
Commit e513229b4c38 ("Drivers: hv: vmbus: prevent cpu offlining on newer hypervisors") was alteringd smp_ops.cpu_disable to prevent CPU offlining. We can bo better by using cpu_hotplug_enable/disable functions instead of such hard-coding. Reported-by: Radim Krčmář Signed-off-by: Vitaly Kuznetsov

[PATCH 1/2] cpu-hotplug: export cpu_hotplug_enable/cpu_hotplug_disable

2015-05-19 Thread Vitaly Kuznetsov
Loaded Hyper-V module will use these functions to disable CPU hotplug under certain circumstances. Signed-off-by: Vitaly Kuznetsov --- kernel/cpu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/cpu.c b/kernel/cpu.c index 94bbe46..dc005e7 100644 --- a/kernel/cpu.c +

[PATCH 0/2] Drivers: hv: vmbus: use cpu_hotplug_enable/disable for CPU offlining prevention

2015-05-19 Thread Vitaly Kuznetsov
Export cpu_hotplug_enable/cpu_hotplug_disable functions from cpu.c and use them instead of altering the smp_ops.cpu_disable in Hyper-V vmbus module. Vitaly Kuznetsov (2): cpu-hotplug: export cpu_hotplug_enable/cpu_hotplug_disable Drivers: hv: vmbus: use cpu_hotplug_enable/disable drivers/hv/

[PATCH V6] staging: goldfish: Fix pointer cast for 32 bits

2015-05-19 Thread Peter Senna Tschudin
As the first argument of gf_write64() was of type unsigned long, and as some calls to gf_write64() were casting the first argument from void * to u64 the compiler and/or sparse were printing warnings for casts of wrong sizes when compiling for i386. This patch changes the type of the first argumen

[PATCH v2 09/10] staging: rtl8188eu: declare internal symbols as static

2015-05-19 Thread Luca Ceresoli
Also remove them from .h files. Signed-off-by: Luca Ceresoli Cc: Greg Kroah-Hartman Cc: Larry Finger --- drivers/staging/rtl8188eu/include/osdep_intf.h | 2 -- drivers/staging/rtl8188eu/include/recv_osdep.h | 3 --- drivers/staging/rtl8188eu/os_dep/os_intfs.c| 15 +-- 3 files

[PATCH v2 10/10] staging: rtl8188eu: return an error code, not a boolean

2015-05-19 Thread Luca Ceresoli
"If the name of a function is an action or an imperative command, the function should return an error-code integer." (Documentation/CodingStyle) Several action-like functions in this driver return a boolean: _SUCCESS = 1 on success, _FAIL = 0 on error, defined in drivers/staging/rtl8188eu/include/

[PATCH v2 03/10] staging: rtl8712: remove useless return value

2015-05-19 Thread Luca Ceresoli
The loadparam() function cannot fail, it's called only once and its return value is ignored there. Signed-off-by: Luca Ceresoli Cc: Greg Kroah-Hartman Cc: Larry Finger Cc: Florian Schilhabel --- drivers/staging/rtl8712/os_intfs.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff

[PATCH v2 00/10] staging: Realtek wireless drivers cleanups

2015-05-19 Thread Luca Ceresoli
Hi, this is v2 for the cleanup patchset I sent lasy week [0]. I fixed the few issues that were raised on patches 7 and 10. The other patches are unchanged. Patches 1 to 9 are pretty trivial cleanups. Patch 10 is the first little step to the removal of the _SUCCESS and _FAIL constants. I'm sendin

[PATCH v2 05/10] staging: rtl8723au: remove useless comment

2015-05-19 Thread Luca Ceresoli
"step 2" does mean much as there is no "step 1" stated anywhere... Signed-off-by: Luca Ceresoli Cc: Greg Kroah-Hartman Cc: Larry Finger Cc: Jes Sorensen --- drivers/staging/rtl8723au/os_dep/os_intfs.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/rtl8723au/os_dep/os_intfs

[PATCH v2 02/10] staging: rtl8712: remove unneeded forward declaration

2015-05-19 Thread Luca Ceresoli
Signed-off-by: Luca Ceresoli Cc: Greg Kroah-Hartman Cc: Larry Finger Cc: Florian Schilhabel --- drivers/staging/rtl8712/os_intfs.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/rtl8712/os_intfs.c b/drivers/staging/rtl8712/os_intfs.c index fd78d22..27a875b 100644 --- a/dri

[PATCH v2 07/10] staging: rtl8188eu: add missing blank lines after declarations

2015-05-19 Thread Luca Ceresoli
Fixes checkpatch warnings: WARNING: Missing a blank line after declarations Signed-off-by: Luca Ceresoli Cc: Greg Kroah-Hartman Cc: Larry Finger --- Changes since v1: - Fix a misplaced empty line (reported by Larry Finger). --- drivers/staging/rtl8188eu/os_dep/os_intfs.c | 3 +++ 1 file c

[PATCH v2 06/10] staging: rtl8188eu: cosmetic: remove useless spaces

2015-05-19 Thread Luca Ceresoli
Even though these are not reported by checkpatch, they are coding style issues. Signed-off-by: Luca Ceresoli Cc: Greg Kroah-Hartman Cc: Larry Finger --- drivers/staging/rtl8188eu/os_dep/os_intfs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/o

[PATCH v2 01/10] staging: rtl8712: remove useless comment

2015-05-19 Thread Luca Ceresoli
"step 2" does mean much as there is no "step 1" stated anywhere... Signed-off-by: Luca Ceresoli Cc: Greg Kroah-Hartman Cc: Larry Finger Cc: Florian Schilhabel --- drivers/staging/rtl8712/os_intfs.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/rtl8712/os_intfs.c b/driver

[PATCH v2 08/10] staging: rtl8188eu: remove useless return value

2015-05-19 Thread Luca Ceresoli
The loadparam() function cannot fail, it's called only once and its return value is ignored there. Signed-off-by: Luca Ceresoli Cc: Greg Kroah-Hartman Cc: Larry Finger --- drivers/staging/rtl8188eu/os_dep/os_intfs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/

[PATCH v2 04/10] staging: rtl8723au: remove useless return value

2015-05-19 Thread Luca Ceresoli
The loadparam() function cannot fail, it's called only once and its return value is ignored there. Signed-off-by: Luca Ceresoli Cc: Greg Kroah-Hartman Cc: Larry Finger Cc: Jes Sorensen --- drivers/staging/rtl8723au/os_dep/os_intfs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) dif

Re: [PATCH 6/6] staging: vme_user: provide DMA functionality

2015-05-19 Thread Dan Carpenter
On Mon, May 18, 2015 at 09:56:33PM +0300, Dmitry Kalinkin wrote: > +static int vme_user_sg_to_dma_list(const struct vme_dma_op *dma_op, > + struct sg_table *sgt, int sg_count, struct vme_dma_list *dma_list) > +{ > + ssize_t pos = 0; > + struct scatterlist *sg; > + int i, ret; > + >

[PATCH] Drivers: hv: balloon: check if ha_region_mutex was acquired in MEM_CANCEL_ONLINE case

2015-05-19 Thread Vitaly Kuznetsov
Memory notifiers are being executed in a sequential order and when one of them fails returning something different from NOTIFY_OK the remainder of the notification chain is not being executed. When a memory block is being onlined in online_pages() we do memory_notify(MEM_GOING_ONLINE, ) and if one

Re: [PATCH] staging: rtl8192u: Modify if, else if conditions to remove unnecessary equality checks. This change was detected with the help of coccinelle tool.

2015-05-19 Thread Paul Gortmaker
[[PATCH] staging: rtl8192u: Modify if, else if conditions to remove unnecessary equality checks. This change was detected with the help of coccinelle tool.] On 18/05/2015 (Mon 16:00) Dhere, Chaitanya (C.) wrote: > Signed-off-by: Chaitanya Dhere > Reply-To: > > --- > drivers/staging/rtl8192u/