[PATCH 0/6] Remove redundant spi driver bus initialization

2015-06-23 Thread Antonio Borneo
This cleanup was already completed between end 2011 and early 2012 with a patch series from Lars-Peter Clausen: https://lkml.org/lkml/2011/11/24/190 Later on new redundant initialization re-appeared here and there. Time to cleanup again. And, yes, I'm lazy! I copy-paste the exact same commit

[PATCH 3/6] staging: mt29f_spinand: Remove redundant spi driver bus initialization

2015-06-23 Thread Antonio Borneo
In ancient times it was necessary to manually initialize the bus field of an spi_driver to spi_bus_type. These days this is done in spi_register_driver(), so we can drop the manual assignment. Signed-off-by: Antonio Borneo borneo.anto...@gmail.com To: Greg Kroah-Hartman gre...@linuxfoundation.org

[PATCH] staging: rtl8192u: bool tests don't need comparisons

2015-06-23 Thread Luis de Bethencourt
Remove explicit true/false comparations to bool variables. Signed-off-by: Luis de Bethencourt l...@debethencourt.com --- drivers/staging/rtl8192u/r8192U_core.c | 7 --- drivers/staging/rtl8192u/r8192U_dm.c | 21 +++-- 2 files changed, 15 insertions(+), 13 deletions(-)

Re: [PATCH 6/9] staging: vme_user: return -EFAULT on __copy_*_user errors

2015-06-23 Thread Dmitry Kalinkin
On 23 Jun 2015, at 16:51, Dan Carpenter dan.carpen...@oracle.com wrote: On Tue, Jun 23, 2015 at 03:42:30PM +0300, Dmitry Kalinkin wrote: @@ -178,38 +167,24 @@ static ssize_t buffer_to_user(unsigned int minor, char __user *buf, size_t count, loff_t *ppos) {

Re: [PATCH 1/9] staging: vme_user: fix code alignment

2015-06-23 Thread Frans Klaver
On Tue, Jun 23, 2015 at 2:42 PM, Dmitry Kalinkin dmitry.kalin...@gmail.com wrote: Signed-off-by: Dmitry Kalinkin dmitry.kalin...@gmail.com You left one in the function declarations (vme_user_write). --- drivers/staging/vme/devices/vme_user.c | 33 + 1 file

Re: [PATCH] staging: rtl8192u: bool tests don't need comparisons

2015-06-23 Thread Frans Klaver
On Tue, Jun 23, 2015 at 3:59 PM, Luis de Bethencourt l...@debethencourt.com wrote: On Tue, Jun 23, 2015 at 03:37:20PM +0200, Frans Klaver wrote: On Tue, Jun 23, 2015 at 3:21 PM, Luis de Bethencourt l...@debethencourt.com wrote: if (dm_digtable.dig_algorithm_switch) { @@ -3062,7

Re: [PATCH 1/9] staging: vme_user: fix code alignment

2015-06-23 Thread Dmitry Kalinkin
On 23 Jun 2015, at 16:21, Frans Klaver franskla...@gmail.com wrote: You left one in the function declarations (vme_user_write). If you mean forward declarations, they are already gone in Greg’s tree:

Re: [PATCH] staging: dgnc: free memory allocated

2015-06-23 Thread Gujulan Elango, Hari Prasath (H.)
On Monday 22 June 2015 10:45 PM, Dan Carpenter wrote: You should have CC'd Mark on these. Use ./scripts/get_maintainer.pl regards, dan carpenter Thanks Dan.I did use the get_maintainer.pl as I do always. I missed Marks email ID. It was my mistake.Thanks for adding him.Greg has already

Re: [PATCH] staging: rtl8192u: bool tests don't need comparisons

2015-06-23 Thread Luis de Bethencourt
On Tue, Jun 23, 2015 at 02:56:38PM +0200, Frans Klaver wrote: On Tue, Jun 23, 2015 at 2:52 PM, Luis de Bethencourt l...@debethencourt.com wrote: Remove explicit true/false comparations to bool variables. Signed-off-by: Luis de Bethencourt l...@debethencourt.com ---

Re: [PATCH 1/9] staging: vme_user: fix code alignment

2015-06-23 Thread Frans Klaver
On Tue, Jun 23, 2015 at 3:44 PM, Dmitry Kalinkin dmitry.kalin...@gmail.com wrote: On 23 Jun 2015, at 16:21, Frans Klaver franskla...@gmail.com wrote: You left one in the function declarations (vme_user_write). If you mean forward declarations, they are already gone in Greg’s tree:

Re: [PATCH] staging: rtl8192u: bool tests don't need comparisons

2015-06-23 Thread Frans Klaver
On Tue, Jun 23, 2015 at 3:21 PM, Luis de Bethencourt l...@debethencourt.com wrote: if (dm_digtable.dig_algorithm_switch) { @@ -3062,7 +3062,8 @@ static void dm_dynamic_txpower(struct net_device *dev) priv-bDynamicTxLowPower = false; }

Re: [PATCH 6/9] staging: vme_user: return -EFAULT on __copy_*_user errors

2015-06-23 Thread Dan Carpenter
On Tue, Jun 23, 2015 at 03:42:30PM +0300, Dmitry Kalinkin wrote: @@ -178,38 +167,24 @@ static ssize_t buffer_to_user(unsigned int minor, char __user *buf, size_t count, loff_t *ppos) { void *image_ptr; - ssize_t retval; image_ptr =

Re: [PATCH] staging: sm750fb: convert pr_err to pr_info

2015-06-23 Thread Gujulan Elango, Hari Prasath (H.)
On Monday 22 June 2015 08:46 PM, Dan Carpenter wrote: On Thu, Jun 18, 2015 at 12:56:54PM +, Gujulan Elango, Hari Prasath (H.) wrote: From: Hari Prasath Gujulan Elango hguju...@visteon.com This patch modifies few debug prints from pr_err() to pr_info() as they fall under that category.

Re: [PATCH] staging: rtl8192u: bool tests don't need comparisons

2015-06-23 Thread Frans Klaver
On Tue, Jun 23, 2015 at 2:52 PM, Luis de Bethencourt l...@debethencourt.com wrote: Remove explicit true/false comparations to bool variables. Signed-off-by: Luis de Bethencourt l...@debethencourt.com --- drivers/staging/rtl8192u/r8192U_core.c | 7 ---

[PATCH v2] staging: rtl8192u: bool tests don't need comparisons

2015-06-23 Thread Luis de Bethencourt
Remove explicit true/false comparations to bool variables. Signed-off-by: Luis de Bethencourt l...@debethencourt.com --- drivers/staging/rtl8192u/r8192U_core.c | 13 - drivers/staging/rtl8192u/r8192U_dm.c | 21 +++-- 2 files changed, 15 insertions(+), 19

Re: [PATCH] staging: rtl8192u: bool tests don't need comparisons

2015-06-23 Thread Luis de Bethencourt
On Tue, Jun 23, 2015 at 03:37:20PM +0200, Frans Klaver wrote: On Tue, Jun 23, 2015 at 3:21 PM, Luis de Bethencourt l...@debethencourt.com wrote: if (dm_digtable.dig_algorithm_switch) { @@ -3062,7 +3062,8 @@ static void dm_dynamic_txpower(struct net_device *dev)

[PATCH v3] staging: rtl8192u: bool tests don't need comparisons

2015-06-23 Thread Luis de Bethencourt
Remove explicit true/false comparations to bool variables. Signed-off-by: Luis de Bethencourt l...@debethencourt.com --- drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c | 4 ++-- .../staging/rtl8192u/ieee80211/ieee80211_softmac.c | 2 +- drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c

[PATCH 8/9] staging: vme_user: remove distracting comment

2015-06-23 Thread Dmitry Kalinkin
Signed-off-by: Dmitry Kalinkin dmitry.kalin...@gmail.com --- drivers/staging/vme/devices/vme_user.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/vme/devices/vme_user.c b/drivers/staging/vme/devices/vme_user.c index 28a70f4..6f5bbc4 100644 ---

[PATCH 7/9] staging: vme_user: remove unused variable

2015-06-23 Thread Dmitry Kalinkin
Signed-off-by: Dmitry Kalinkin dmitry.kalin...@gmail.com --- drivers/staging/vme/devices/vme_user.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/staging/vme/devices/vme_user.c b/drivers/staging/vme/devices/vme_user.c index 85eb6ee..28a70f4 100644 ---

[PATCH 0/9] vme_user checkpatch fixes and read()/write() rework

2015-06-23 Thread Dmitry Kalinkin
First four patches are fixes for various checpatch warnings. Next there is a change to drop large read()/write() stub followed by a change to rework user copy error codes. Last three changes are refactorings. Dmitry Kalinkin (9): staging: vme_user: fix code alignment staging: vme_user: fix

[PATCH 9/9] staging: vme_user: remove okcount variable

2015-06-23 Thread Dmitry Kalinkin
Signed-off-by: Dmitry Kalinkin dmitry.kalin...@gmail.com --- drivers/staging/vme/devices/vme_user.c | 18 ++ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/drivers/staging/vme/devices/vme_user.c b/drivers/staging/vme/devices/vme_user.c index 6f5bbc4..14f9554

[PATCH 1/9] staging: vme_user: fix code alignment

2015-06-23 Thread Dmitry Kalinkin
Signed-off-by: Dmitry Kalinkin dmitry.kalin...@gmail.com --- drivers/staging/vme/devices/vme_user.c | 33 + 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/drivers/staging/vme/devices/vme_user.c b/drivers/staging/vme/devices/vme_user.c index

[PATCH 6/9] staging: vme_user: return -EFAULT on __copy_*_user errors

2015-06-23 Thread Dmitry Kalinkin
Signed-off-by: Dmitry Kalinkin dmitry.kalin...@gmail.com --- drivers/staging/vme/devices/vme_user.c | 47 -- 1 file changed, 11 insertions(+), 36 deletions(-) diff --git a/drivers/staging/vme/devices/vme_user.c b/drivers/staging/vme/devices/vme_user.c index

[PATCH 4/9] staging: vme_user: fix kmalloc style

2015-06-23 Thread Dmitry Kalinkin
Signed-off-by: Dmitry Kalinkin dmitry.kalin...@gmail.com --- drivers/staging/vme/devices/vme_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/vme/devices/vme_user.c b/drivers/staging/vme/devices/vme_user.c index b6d81e5..db5f890 100644 ---

[PATCH 3/9] staging: vme_user: fix NULL comparison style

2015-06-23 Thread Dmitry Kalinkin
Signed-off-by: Dmitry Kalinkin dmitry.kalin...@gmail.com --- drivers/staging/vme/devices/vme_user.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/vme/devices/vme_user.c b/drivers/staging/vme/devices/vme_user.c index 1f00ad7..b6d81e5 100644 ---

[PATCH 2/9] staging: vme_user: fix blank lines

2015-06-23 Thread Dmitry Kalinkin
Signed-off-by: Dmitry Kalinkin dmitry.kalin...@gmail.com --- drivers/staging/vme/devices/vme_user.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/vme/devices/vme_user.c b/drivers/staging/vme/devices/vme_user.c index 285e00e..1f00ad7 100644 ---

[PATCH 5/9] staging: vme_user: allow large read()/write()

2015-06-23 Thread Dmitry Kalinkin
This changes large master transfers to do shorter read/write rather than return -EINVAL. User space will now be able to optimistically request a large transfer and get at least some data. This also removes comments suggesting on how to implement large transfers. Current vme_master_* read and

Re: [PATCH 2/2] staging: sm750fb: fix typo in debug statement

2015-06-23 Thread Gujulan Elango, Hari Prasath (H.)
On Tuesday 23 June 2015 02:07 PM, Dan Carpenter wrote: On Mon, Jun 22, 2015 at 04:48:01AM +, Gujulan Elango, Hari Prasath (H.) wrote: From: Hari Prasath Gujulan Elango hguju...@visteon.com This patch fixes a typo in the debug statement Signed-off-by: Hari Prasath Gujulan Elango

Re: [PATCH] staging: rtl8192u: bool tests don't need comparisons

2015-06-23 Thread Luis de Bethencourt
On Tue, Jun 23, 2015 at 03:04:32PM +0200, Frans Klaver wrote: On Tue, Jun 23, 2015 at 2:52 PM, Luis de Bethencourt l...@debethencourt.com wrote: Remove explicit true/false comparations to bool variables. Signed-off-by: Luis de Bethencourt l...@debethencourt.com ---

[PATCH v2] staging: rtl8192u: bool tests don't need comparisons

2015-06-23 Thread Luis de Bethencourt
Remove explicit true/false comparations to bool variables. Signed-off-by: Luis de Bethencourt l...@debethencourt.com --- drivers/staging/rtl8192u/r8192U_core.c | 13 - drivers/staging/rtl8192u/r8192U_dm.c | 21 +++-- 2 files changed, 15 insertions(+), 19

Re: [PATCH] staging: sm750fb: remove unused variables

2015-06-23 Thread Gujulan Elango, Hari Prasath (H.)
On Tuesday 23 June 2015 02:16 PM, Dan Carpenter wrote: On Mon, Jun 22, 2015 at 07:26:25AM +, Gujulan Elango, Hari Prasath (H.) wrote: @@ -122,7 +121,7 @@ void setChipClock(unsigned int frequency) * Sometime, the chip cannot set up the exact clock required by User.

Re: [PATCH] staging: rtl8192u: bool tests don't need comparisons

2015-06-23 Thread Frans Klaver
On Tue, Jun 23, 2015 at 2:52 PM, Luis de Bethencourt l...@debethencourt.com wrote: Remove explicit true/false comparations to bool variables. Signed-off-by: Luis de Bethencourt l...@debethencourt.com --- drivers/staging/rtl8192u/r8192U_core.c | 7 ---

Re: [PATCH] staging: rtl8192u: bool tests don't need comparisons

2015-06-23 Thread Luis de Bethencourt
On Tue, Jun 23, 2015 at 03:59:41PM +0200, Frans Klaver wrote: On Tue, Jun 23, 2015 at 3:59 PM, Luis de Bethencourt l...@debethencourt.com wrote: On Tue, Jun 23, 2015 at 03:37:20PM +0200, Frans Klaver wrote: On Tue, Jun 23, 2015 at 3:21 PM, Luis de Bethencourt l...@debethencourt.com wrote:

[PATCH] staging: lustre: mgc: no need to compare bool value

2015-06-23 Thread Luis de Bethencourt
Inverting the value of eof is a more direct way of passing to the debugging function if eof is false or not. Signed-off-by: Luis de Bethencourt l...@debethencourt.com --- drivers/staging/lustre/lustre/mgc/mgc_request.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

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

2015-06-23 Thread KY Srinivasan
-Original Message- From: K. Y. Srinivasan [mailto:k...@microsoft.com] Sent: Sunday, June 21, 2015 7:56 PM To: gre...@linuxfoundation.org; linux-ker...@vger.kernel.org; de...@linuxdriverproject.org; mi...@kernel.org; pet...@infradead.org; rafael.j.wyso...@intel.com;

[PATCHv2 1/9] staging: vme_user: fix code alignment

2015-06-23 Thread Dmitry Kalinkin
Signed-off-by: Dmitry Kalinkin dmitry.kalin...@gmail.com --- drivers/staging/vme/devices/vme_user.c | 33 + 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/drivers/staging/vme/devices/vme_user.c b/drivers/staging/vme/devices/vme_user.c index

[PATCHv2 2/9] staging: vme_user: fix blank lines

2015-06-23 Thread Dmitry Kalinkin
Signed-off-by: Dmitry Kalinkin dmitry.kalin...@gmail.com --- drivers/staging/vme/devices/vme_user.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/vme/devices/vme_user.c b/drivers/staging/vme/devices/vme_user.c index ccf9602..494655a 100644 ---

[PATCHv2 0/9] vme_user checkpatch fixes and read()/write() rework

2015-06-23 Thread Dmitry Kalinkin
First four patches are fixes for various checpatch warnings. Next there is a change to drop large read()/write() stub followed by a change to rework user copy error codes. Last three changes are refactorings. v2 fixes (vme_user: return -EFAULT on __copy_*_user errors) that had EINVAL instead

[PATCHv2 3/9] staging: vme_user: fix NULL comparison style

2015-06-23 Thread Dmitry Kalinkin
Signed-off-by: Dmitry Kalinkin dmitry.kalin...@gmail.com --- drivers/staging/vme/devices/vme_user.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/vme/devices/vme_user.c b/drivers/staging/vme/devices/vme_user.c index 494655a..2ff15f0 100644 ---

Contact Him Immediately.

2015-06-23 Thread Donald Douglas
Dear Sir, The Central Bank of Nigeria (CBN) , Fact Finding Special Duties office on foreign contract (FFSDO), has been given order to effect your contract and inheritance payment with reference number (LM-07-4918) amounting to the tune of (US$12,800.000.00) (Twelve Million Eight hundred

[PATCHv2 5/9] staging: vme_user: allow large read()/write()

2015-06-23 Thread Dmitry Kalinkin
This changes large master transfers to do shorter read/write rather than return -EINVAL. User space will now be able to optimistically request a large transfer and get at least some data. This also removes comments suggesting on how to implement large transfers. Current vme_master_* read and

[PATCHv2 8/9] staging: vme_user: remove distracting comment

2015-06-23 Thread Dmitry Kalinkin
Signed-off-by: Dmitry Kalinkin dmitry.kalin...@gmail.com --- drivers/staging/vme/devices/vme_user.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/vme/devices/vme_user.c b/drivers/staging/vme/devices/vme_user.c index cf47649..de9eda5 100644 ---

[PATCHv2 4/9] staging: vme_user: fix kmalloc style

2015-06-23 Thread Dmitry Kalinkin
Signed-off-by: Dmitry Kalinkin dmitry.kalin...@gmail.com --- drivers/staging/vme/devices/vme_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/vme/devices/vme_user.c b/drivers/staging/vme/devices/vme_user.c index 2ff15f0..3467cde 100644 ---

[PATCHv2 7/9] staging: vme_user: remove unused variable

2015-06-23 Thread Dmitry Kalinkin
Signed-off-by: Dmitry Kalinkin dmitry.kalin...@gmail.com --- drivers/staging/vme/devices/vme_user.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/staging/vme/devices/vme_user.c b/drivers/staging/vme/devices/vme_user.c index 070e63f..cf47649 100644 ---

[PATCHv2 6/9] staging: vme_user: return -EFAULT on __copy_*_user errors

2015-06-23 Thread Dmitry Kalinkin
Signed-off-by: Dmitry Kalinkin dmitry.kalin...@gmail.com --- drivers/staging/vme/devices/vme_user.c | 47 -- 1 file changed, 11 insertions(+), 36 deletions(-) diff --git a/drivers/staging/vme/devices/vme_user.c b/drivers/staging/vme/devices/vme_user.c index

[PATCHv2 9/9] staging: vme_user: remove okcount variable

2015-06-23 Thread Dmitry Kalinkin
Signed-off-by: Dmitry Kalinkin dmitry.kalin...@gmail.com --- drivers/staging/vme/devices/vme_user.c | 18 ++ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/drivers/staging/vme/devices/vme_user.c b/drivers/staging/vme/devices/vme_user.c index de9eda5..efed9c7

Re: [PATCH V2 04/10] Drivers: hv: vmbus: add special kexec handler

2015-06-23 Thread Vitaly Kuznetsov
Olaf Hering o...@aepfle.de writes: On Thu, Jun 04, K. Y. Srinivasan wrote: +++ b/arch/x86/kernel/cpu/mshyperv.c @@ -18,6 +18,9 @@ #include linux/efi.h #include linux/interrupt.h #include linux/irq.h +#ifdef CONFIG_KEXEC +#include linux/kexec.h +#endif Is this #ifdef required? No,

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

2015-06-23 Thread Peter Zijlstra
On Tue, Jun 23, 2015 at 04:57:05PM +, KY Srinivasan wrote: diff --git a/kernel/cpu.c b/kernel/cpu.c index 94bbe46..8f35ee6 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -190,17 +190,19 @@ void cpu_hotplug_done(void) void cpu_hotplug_disable(void) {

, [PATCH 2/2] staging : Comedi : comedi_fops : Fixed the return error, code, try_module_get fails when the reference count of the module is not, allowed to be incremented ,and hence -ENXIO is returne

2015-06-23 Thread Santosh
___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[PATCH] staging: speakup: replace simple_strtoul() with kstrtoint()

2015-06-23 Thread Luis de Bethencourt
Use the newer and nicer kstrtoint(), because simple_strtoul() is now obsolete. Signed-off-by: Luis de Bethencourt l...@debethencourt.com --- drivers/staging/speakup/varhandlers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/speakup/varhandlers.c

[PATCH] defines modified to match the 80-char rule

2015-06-23 Thread Mario Bambagini
Defines have been written in more than one line to match the 80-character rule. This error has been fixed 6 times in this file. The file is fully compliant with respect to the coding rules now. Signed-off-by: Mario Bambagini mario.bambag...@gmail.com ---

Re: [PATCH V2 04/10] Drivers: hv: vmbus: add special kexec handler

2015-06-23 Thread Greg KH
On Tue, Jun 23, 2015 at 06:28:36PM +0200, Vitaly Kuznetsov wrote: Olaf Hering o...@aepfle.de writes: On Thu, Jun 04, K. Y. Srinivasan wrote: +++ b/arch/x86/kernel/cpu/mshyperv.c @@ -18,6 +18,9 @@ #include linux/efi.h #include linux/interrupt.h #include linux/irq.h +#ifdef

Re: [PATCH] staging: speakup: replace simple_strtoul() with kstrtoint()

2015-06-23 Thread Sudip Mukherjee
On Wed, Jun 24, 2015 at 12:15:52AM +0100, Luis de Bethencourt wrote: On Wed, Jun 24, 2015 at 01:53:33AM +0300, Dan Carpenter wrote: Nope. Your patch is totally wrong (buggy). Please be more careful in the future. regards, dan carpenter I saw other commits replace the obsolete

[PATCH] staging: rtl8188eu: don't duplicate ieee80211 WLAN_EID_* constants

2015-06-23 Thread Jakub Sitnicki
linux/ieee80211.h already defines constants for information element IDs. Include it where needed, resolve discrepancies in naming, and remove the duplicated definitions. While at it, wrap a line that was too long and remove extra parentheses in an expression that mixes only equality and logical

Re: [PATCH v2] staging: rtl8192u: bool tests don't need comparisons

2015-06-23 Thread Sudip Mukherjee
On Tue, Jun 23, 2015 at 03:10:56PM +0200, Luis de Bethencourt wrote: Remove explicit true/false comparations to bool variables. Signed-off-by: Luis de Bethencourt l...@debethencourt.com --- snip diff --git a/drivers/staging/rtl8192u/r8192U_dm.c b/drivers/staging/rtl8192u/r8192U_dm.c index

Re: [PATCH 01/12] staging: lustre: fid: Use !x to check for kzalloc failure

2015-06-23 Thread Dan Carpenter
On Tue, Jun 23, 2015 at 08:25:05AM +, Dilger, Andreas wrote: I've found in the past that developers can introduce bugs when they treat return values as boolean when they really aren't. I can imagine a bug like that where a function can return 0-2 and people do: if (ret) instead

Re: [PATCH 6/8] Staging: sm750fb: ddk750_sii164.c: Place braces on previous lines

2015-06-23 Thread Sudip Mukherjee
On Tue, Jun 23, 2015 at 11:55:48AM +0300, Dan Carpenter wrote: On Sat, Jun 20, 2015 at 12:54:02PM +0530, Sudip Mukherjee wrote: On Fri, Jun 19, 2015 at 12:48:19PM -0700, Isaac Assegai wrote: I never get Isaac's emails. I think gmail is still sending them to the Spam folder? I searched my

Re: [PATCH 01/12] staging: lustre: fid: Use !x to check for kzalloc failure

2015-06-23 Thread Dan Carpenter
Yes. I know Al's thoughts and kernel style. But Alan Cox and Andreas have both said they think (x == NULL) can help you avoid some kind of boolean vs pointer bugs. I've had co-workers who did massive seds changing !foo to foo == NULL on our code base. But I've never seen a real life example of

Re: [PATCH 01/12] staging: lustre: fid: Use !x to check for kzalloc failure

2015-06-23 Thread Julia Lawall
On Tue, 23 Jun 2015, Dan Carpenter wrote: On Tue, Jun 23, 2015 at 08:25:05AM +, Dilger, Andreas wrote: I've found in the past that developers can introduce bugs when they treat return values as boolean when they really aren't. I can imagine a bug like that where a function can return

Re: [PATCH] staging: sm750fb: remove unused variables

2015-06-23 Thread Sudip Mukherjee
On Tue, Jun 23, 2015 at 11:46:13AM +0300, Dan Carpenter wrote: On Mon, Jun 22, 2015 at 07:26:25AM +, Gujulan Elango, Hari Prasath (H.) wrote: @@ -122,7 +121,7 @@ void setChipClock(unsigned int frequency) * Sometime, the chip cannot set up the exact clock required by User.

[PATCH] staging: vt6656: Fixed two lines over 80 characters long

2015-06-23 Thread Arjun Krishna Babu
The presence of comments originally caused the two lines to be over 80 characters long. The issue is fixed by moving the comments into a separate line. Signed-off-by: Arjun Krishna Babu arjunkrishnabab...@gmail.com --- drivers/staging/vt6656/rxtx.c | 7 +-- 1 file changed, 5 insertions(+),

lustre: LIBCFS_ALLOC

2015-06-23 Thread Julia Lawall
It seems that libcfs_kvzalloc doesn't use any particular threshold or switchingbetween kzalloc and vmalloc, so can be replaced by ths function too? thanks, julia ___ devel mailing list de...@linuxdriverproject.org

Re: [PATCH] drivers: staging: rtl8192u: Fix space required before the open parenthesis '(' errors

2015-06-23 Thread Dan Carpenter
On Mon, Jun 22, 2015 at 06:25:11AM -0500, Greg Donald wrote: Umm.. you have to fix more than one error if there's more than one error on or very near the same line you are already fixing, else checkpatch.pl complains that your patch has errors. Not to mention Greg KH has never complained:

Re: [PATCH 6/8] Staging: sm750fb: ddk750_sii164.c: Place braces on previous lines

2015-06-23 Thread Dan Carpenter
On Sat, Jun 20, 2015 at 12:54:02PM +0530, Sudip Mukherjee wrote: On Fri, Jun 19, 2015 at 12:48:19PM -0700, Isaac Assegai wrote: Place braces on previous lines in ddk750_sii164.c to rectify the following checkpatch errors: ERROR: that open brace { should be on the previous line

Re: [PATCH 01/12] staging: lustre: fid: Use !x to check for kzalloc failure

2015-06-23 Thread Dilger, Andreas
On 2015/06/20, 10:58 AM, Julia Lawall julia.law...@lip6.fr wrote: !x is more normal for kzalloc failure in the kernel. While !x might be more normal for kzalloc(), I don't see that as an improvement over explicitly checking against NULL, which is what kzalloc() and other memory-allocating

Re: [PATCH v2 07/10] staging: wilc1000: remove ununsed variable

2015-06-23 Thread Dan Carpenter
On Mon, Jun 22, 2015 at 01:13:58PM +, Gujulan Elango, Hari Prasath (H.) wrote: From: Hari Prasath Gujulan Elango hguju...@visteon.com This patch removes ununsed variable 'len' Signed-off-by: Hari Prasath Gujulan Elango hguju...@visteon.com This doesn't work because it's not in the

Re: staging patch not in staging tree (was: Re: [PATCH 1/2] staging: ft1000-usb: fixed table alignment)

2015-06-23 Thread Dan Carpenter
On Tue, Jun 23, 2015 at 11:03:34AM +0530, Sudip Mukherjee wrote: On Mon, Jun 22, 2015 at 07:06:49PM +0530, Sudip Mukherjee wrote: On Mon, Jun 22, 2015 at 03:02:37PM +0200, Peter Karlsson wrote: On 2015-06-22 06:29, Sudip Mukherjee wrote: which tree have you been using? Greg will have

Re: staging patch not in staging tree (was: Re: [PATCH 1/2] staging: ft1000-usb: fixed table alignment)

2015-06-23 Thread Sudip Mukherjee
On Tue, Jun 23, 2015 at 11:05:47AM +0300, Dan Carpenter wrote: On Tue, Jun 23, 2015 at 11:03:34AM +0530, Sudip Mukherjee wrote: On Mon, Jun 22, 2015 at 07:06:49PM +0530, Sudip Mukherjee wrote: On Mon, Jun 22, 2015 at 03:02:37PM +0200, Peter Karlsson wrote: On 2015-06-22 06:29, Sudip

Re: [PATCH V2 04/10] Drivers: hv: vmbus: add special kexec handler

2015-06-23 Thread Olaf Hering
On Thu, Jun 04, K. Y. Srinivasan wrote: +++ b/arch/x86/kernel/cpu/mshyperv.c @@ -18,6 +18,9 @@ #include linux/efi.h #include linux/interrupt.h #include linux/irq.h +#ifdef CONFIG_KEXEC +#include linux/kexec.h +#endif Is this #ifdef required? Olaf

Re: lustre: LIBCFS_ALLOC

2015-06-23 Thread Drokin, Oleg
On Jun 23, 2015, at 2:23 AM, Julia Lawall wrote: It seems that libcfs_kvzalloc doesn't use any particular threshold or switchingbetween kzalloc and vmalloc, so can be replaced by ths function too? If you mean to replace all instances of LIBCFS_ALLOC with libcfs_kvzalloc (and all frees

Re: [PATCH 2/2] staging: sm750fb: fix typo in debug statement

2015-06-23 Thread Dan Carpenter
On Mon, Jun 22, 2015 at 04:48:01AM +, Gujulan Elango, Hari Prasath (H.) wrote: From: Hari Prasath Gujulan Elango hguju...@visteon.com This patch fixes a typo in the debug statement Signed-off-by: Hari Prasath Gujulan Elango hguju...@visteon.com --- Fold these together. It's a one

Re: [PATCH] staging: sm750fb: remove unused variables

2015-06-23 Thread Dan Carpenter
On Mon, Jun 22, 2015 at 07:26:25AM +, Gujulan Elango, Hari Prasath (H.) wrote: @@ -122,7 +121,7 @@ void setChipClock(unsigned int frequency) * Sometime, the chip cannot set up the exact clock required by User. * Return value from calcPllValue() gives the

Re: [PATCH 1/4] staging: wilc1000: wilc_wfi_netdevice.c: remove commented codes

2015-06-23 Thread Sudip Mukherjee
On Tue, Jun 23, 2015 at 09:17:44AM +0900, Chaehyun Lim wrote: Remove commented codes. Signed-off-by: Chaehyun Lim chaehyun@gmail.com --- drivers/staging/wilc1000/wilc_wfi_netdevice.c | 21 - 1 file changed, 21 deletions(-) diff --git

Re: [PATCH] staging: rtl8192u: ieee80211_rx: Fix incorrect type in assignments

2015-06-23 Thread Arnd Bergmann
On Sunday 21 June 2015 19:12:09 Gaston Gonzalez wrote: /* WMM spec P.11: The minimum value for AIFSN shall be 2 */ qos_param-aifs[aci] = (qos_param-aifs[aci] 2) ? 2:qos_param-aifs[aci]; - qos_param-cw_min[aci] = ac_params-ecw_min_max 0x0F; +

Re: [PATCH 01/12] staging: lustre: fid: Use !x to check for kzalloc failure

2015-06-23 Thread Julia Lawall
On Tue, 23 Jun 2015, Dan Carpenter wrote: Yes. I know Al's thoughts and kernel style. But Alan Cox and Andreas have both said they think (x == NULL) can help you avoid some kind of boolean vs pointer bugs. I've had co-workers who did massive seds changing !foo to foo == NULL on our code

Re: , [PATCH 2/2] staging : Comedi : comedi_fops : Fixed the return error, code, try_module_get fails when the reference count of the module is not, allowed to be incremented ,and hence -ENXIO is ret

2015-06-23 Thread Greg KH
On Tue, Jun 23, 2015 at 11:48:31PM +0530, Santosh wrote: ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel Your email did not get through properly :(

Re: [PATCH] drivers: staging: rtl8192u: Fix space required before the open parenthesis '(' errors

2015-06-23 Thread Greg Donald
On Tue, Jun 23, 2015 at 3:01 AM, Dan Carpenter dan.carpen...@oracle.com wrote: Actually, Greg complains about these all the time. All I know is he's yet to turn away a single one of my patches. And here is a useless URL that you can look at: http://slashdot.org I'm sure it supports my

Re: [PATCH] staging: speakup: replace simple_strtoul() with kstrtoint()

2015-06-23 Thread Dan Carpenter
Nope. Your patch is totally wrong (buggy). Please be more careful in the future. regards, dan carpenter ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH 01/12] staging: lustre: fid: Use !x to check for kzalloc failure

2015-06-23 Thread Joe Perches
On Tue, 2015-06-23 at 12:57 +0300, Dan Carpenter wrote: I've never seen a real life proof that (!foo) code is less buggy. Nor have I. I should look through the kbuild mailbox... Hm... But my other idea of setting up code style readability testing website is also a good one. Linux

Re: [PATCH 01/12] staging: lustre: fid: Use !x to check for kzalloc failure

2015-06-23 Thread Joe Perches
On Tue, 2015-06-23 at 12:23 +0300, Dan Carpenter wrote: people decided that Yoda code was a good idea based on their gut instead of using statistics and measurements and science. I think that style exists because compilers disallow CONST = val assignment typos.

Re: [PATCH] staging: speakup: replace simple_strtoul() with kstrtoint()

2015-06-23 Thread Luis de Bethencourt
On Wed, Jun 24, 2015 at 01:53:33AM +0300, Dan Carpenter wrote: Nope. Your patch is totally wrong (buggy). Please be more careful in the future. regards, dan carpenter I saw other commits replace the obsolete simple_strtoul() this way and the documentation makes it look like it is a 1 to