Re: [PATCH 1/2] staging: emxx_udc: Replace ERR by dev_err

2015-01-21 Thread Jeremiah Mahler
atches with checkpatch.pl before submitting them. There are a bunch of "space required after ','" errors in this patch. -- - Jeremiah Mahler ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH 2/2] Staging: comedi: fix tab style issue

2015-01-02 Thread Jeremiah Mahler
1 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majord...@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ -- - Jeremiah

Re: [PATCH] Staging: comedi: tab space coding style issue in pcl818.c

2015-01-02 Thread Jeremiah Mahler
of a message to majord...@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ -- - Jeremiah Mahler ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH 1/4] staging: rtl8192u: fix comments

2014-12-31 Thread Jeremiah Mahler
edca_setting_UL[HT_IOT_PEER_MAX] = { > + 0x5e4322, 0xa44f, 0x5e4322, 0x604322, 0x5ea44f, 0x5ea44f > +}; But this change is not related to C99 comments and you didn't explain why this change was made in your log message. It should probably be in a separate patch. [...] -- - Jeremiah

Re: [PATCH] staging: lustre: linux-prim.c: fix sparse warnings about static declaration

2014-12-30 Thread Jeremiah Mahler
is incorrect because they are being used outside of this file. > -- > 1.9.3 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majord...@vger.kernel.org > More majordomo info at http://vger.kernel.org/majo

Re: [PATCH v2] Staging: line6: remove spaces before commas.

2014-12-29 Thread Jeremiah Mahler
t; #ifdef CONFIG_LINE6_USB_IMPULSE_RESPONSE > -- > 2.1.4 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majord...@vger.kernel.org > More majordomo info at http://vger.kernel.org/majo

Re: [PATCH] Staging: line6: remove spaces before commas.

2014-12-29 Thread Jeremiah Mahler
It is better than no description at all. But listing each identical error is redundant. I would have just said something to the effect of "fix three space prohibited errors ...". > Signed-off-by: Jonas Lundqvist > --- > drivers/staging/line6/pcm.h | 6 +++

Re: [PATCH] Staging: line6: remove spaces before commas.

2014-12-28 Thread Jeremiah Mahler
ns(+), 3 deletions(-) > [...] -- - Jeremiah Mahler ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[PATCH 5/5] staging: lustre: selftest: fix _recycle_buffer context imbalance

2014-12-27 Thread Jeremiah Mahler
uffer' - unexpected unlock Signed-off-by: Jeremiah Mahler --- drivers/staging/lustre/lnet/selftest/rpc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/lustre/lnet/selftest/rpc.c b/drivers/staging/lustre/lnet/selftest/rpc.c index 2e9094b..1f7d9a6 100644 --- a/drivers/stag

[PATCH 3/5] staging: lustre: selftest: fix sfw_deactivate_session context imbalance

2014-12-27 Thread Jeremiah Mahler
ssion' - unexpected unlock Signed-off-by: Jeremiah Mahler --- drivers/staging/lustre/lnet/selftest/framework.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/lustre/lnet/selftest/framework.c b/drivers/staging/lustre/lnet/selftest/framework.c index 56b4ef4..5709

[PATCH 4/5] staging: lustre: selftest: fix _post_buffer context imbalance

2014-12-27 Thread Jeremiah Mahler
uffer' - unexpected unlock Signed-off-by: Jeremiah Mahler --- drivers/staging/lustre/lnet/selftest/rpc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/lustre/lnet/selftest/rpc.c b/drivers/staging/lustre/lnet/selftest/rpc.c index bb6aa2e..2e9094b 100644 --- a/drivers/staging/l

[PATCH 2/5] staging: lustre: selftest: fix "not declared" by declaring static

2014-12-27 Thread Jeremiah Mahler
Fix several "symbol '...' was not declared" sparse warnings for variables which are only used locally by declaring them static. Signed-off-by: Jeremiah Mahler --- drivers/staging/lustre/lnet/selftest/framework.c | 2 +- drivers/staging/lustre/lnet/selftest/rpc.c | 2

[PATCH 0/5] staging: lustre: selftest: fix various sparse warnings

2014-12-27 Thread Jeremiah Mahler
These patches fix most of the "undeclared" and "context imbalance" sparse warnings for the lustre code in the selftest/ directory. Jeremiah Mahler (5): staging: lustre: selftest: fix "not declared" by declaring in header staging: lustre: selftest: fix &quo

[PATCH 1/5] staging: lustre: selftest: fix "not declared" by declaring in header

2014-12-27 Thread Jeremiah Mahler
Fix several "symbol '...' was not declared" sparse warnings which are caused by global variables by declaring them in the header file. Signed-off-by: Jeremiah Mahler --- drivers/staging/lustre/lnet/selftest/selftest.h | 12 1 file changed, 12 insertions(+)

[PATCH 5/6] staging: lustre: replace MIN with min_t, remove cast

2014-12-25 Thread Jeremiah Mahler
Switch from MIN to min_t and remove the previous cast of the second argument to int. Signed-off-by: Jeremiah Mahler --- drivers/staging/lustre/lnet/lnet/lib-move.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/lustre/lnet/lnet/lib-move.c b/drivers/staging

[PATCH 4/6] staging: lustre: replace MIN with min, cast (__kernel_size_t)

2014-12-25 Thread Jeremiah Mahler
: Jeremiah Mahler --- drivers/staging/lustre/lnet/lnet/lib-move.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/lustre/lnet/lnet/lib-move.c b/drivers/staging/lustre/lnet/lnet/lib-move.c index 706c5ee..76eb238 100644 --- a/drivers/staging/lustre/lnet/lnet/lib

[PATCH 3/6] staging: lustre: replace MIN/MAX with min_t/max_t

2014-12-25 Thread Jeremiah Mahler
Switch from MIN/MAX to min_t/max_t with a size_t type. The size_t type was chosen because one operand is a size_t and all the others are immediate integer values. Signed-off-by: Jeremiah Mahler --- drivers/staging/lustre/lnet/lnet/router_proc.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 1/6] staging: lustre: use min/max instead of MIN/MAX, simple cases

2014-12-25 Thread Jeremiah Mahler
Custom MIN/MAX operations are being used which are not as robust as the built in min/max operations which will warn about potentially problematic type comparisons. For the simple cases, where no type warning is produced, simply replace MIN/MAX with min/max. Signed-off-by: Jeremiah Mahler

[PATCH 6/6] staging: lustre: remove custom MIN/MAX and min_t operations

2014-12-25 Thread Jeremiah Mahler
Remove all custom MIN/MAX and min_t operations since they are no longer needed. Signed-off-by: Jeremiah Mahler --- drivers/staging/lustre/include/linux/libcfs/libcfs_private.h | 8 drivers/staging/lustre/lustre/osc/osc_internal.h | 5 - 2 files changed, 13 deletions

[PATCH 2/6] staging: lustre: replace MIN with min_t

2014-12-25 Thread Jeremiah Mahler
Switch from MIN to the built in min_t with the int type. Signed-off-by: Jeremiah Mahler --- drivers/staging/lustre/lnet/klnds/socklnd/socklnd_cb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/lustre/lnet/klnds/socklnd/socklnd_cb.c b/drivers/staging/lustre

[PATCH 0/6] staging: lustre: use built in min/max functions

2014-12-25 Thread Jeremiah Mahler
the built in min/max functions. Jeremiah Mahler (6): staging: lustre: use min/max instead of MIN/MAX, simple cases staging: lustre: replace MIN with min_t staging: lustre: replace MIN/MAX with min_t/max_t staging: lustre: replace MIN with min, cast (__kernel_size_t) staging: lustre

Re: [PATCH v1] staging: comedi: dmm32at: fix style issues

2014-12-25 Thread Jeremiah Mahler
NT | DMM32AT_INTCLK_CLKEN | DMM32AT_INTCLK_CLKSEL, - dev->iobase + DMM32AT_INTCLK_REG); +dev->iobase + DMM32AT_INTCLK_REG); } static int dmm32at_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s) -- - Jeremiah Mahler ___

Re: [PATCH 1/1] staging: skein: Delete a useless white space line

2014-12-23 Thread Jeremiah Mahler
he body of a message to majord...@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ -- - Jeremiah Mahler ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH 1/1] staging: skein: Delete a useless white space line

2014-12-23 Thread Jeremiah Mahler
On Wed, Dec 24, 2014 at 12:01:10AM +0800, Gmail wrote: > People say that is not a legal name, therefore I create this English name > sound like my real name. > I'm confused. So Ben Chan isn't your real name, just one you made up? > > On Dec 23, 2014, at 11:57 P

Re: [PATCH 1/1] staging: skein: Delete a useless white space line

2014-12-23 Thread Jeremiah Mahler
http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ -- - Jeremiah Mahler ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH] staging: lustre: cleanup align switch and case

2014-12-23 Thread Jeremiah Mahler
unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majord...@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ -- - Jeremiah Mahler ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH] Staging: comedi: fix spacing issues in ni_stc.h

2014-12-21 Thread Jeremiah Mahler
; practice. Would switching back to the space be preferable? And as far as > width, should I add a \(enter) where necessary? > The spacing in the code was fine. I was referring to your log message (below). > And the blank line and two patch bit: understood, simple fix. > > - Sage

Re: [PATCH] staging: vt6655: fix sparse warning: argument type

2014-12-21 Thread Jeremiah Mahler
one. Interestingly, if you go back to this commit and compile it, no error is generated unless you enable sparse checks. -- - Jeremiah Mahler ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH] Staging: comedi: fix spacing issues in ni_stc.h

2014-12-20 Thread Jeremiah Mahler
pr_err("%s: bug, invalid multiplier=%i\n", __func__, > multiplier); > -- > 2.2.0 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majord...@vger.kernel.org > M

Re: [PATCH v4] staging: rtl8188eu: Fixed a space coding style issue.

2014-12-20 Thread Jeremiah Mahler
quot;, > - __func__ , psta->mac_id, raid , tx_ra_bitmap, arg); > + __func__, psta->mac_id, raid, tx_ra_bitmap, arg); > > /* bitmap[0:27] = tx_rate_bitmap */ > /* bitmap[28:31]= Rate Adaptive

Re: [PATCH v3] Staging:rtl8188eu:Fixed a space coding style issue.

2014-12-20 Thread Jeremiah Mahler
e Adaptive id */ > -- > Gangadhar V > > -- > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majord...@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Plea

Re: [PATCH] Staging: comedi: fix redundant parens in return in amplc_dio200_common.c

2014-12-18 Thread Jeremiah Mahler
- return (triggered != 0); > + return triggered != 0; > } > [...] When I run checkpatch.pl it doesn't find any errors and the parenthesis haven't been removed. How are you running checkpatch.pl? Are you using any extra options? -- - Jeremiah Mahler _

Re: [PATCH V3 1/1] Drivers: hv: vmbus: Fix a bug in vmbus_establish_gpadl()

2014-12-15 Thread Jeremiah Mahler
Andy, On Mon, Dec 15, 2014 at 03:47:04PM +, Andy Whitcroft wrote: > On Sun, Dec 14, 2014 at 11:59:19PM -0800, Jeremiah Mahler wrote: [...] > > The calculation appears identical to my reading, the original form was: > > next_gpadl_handle = atomic_read(&vmbus_connectio

Re: [PATCH] checkpatch giving bogus advice (was staging: goldfish: Fix minor coding style)

2014-12-15 Thread Jeremiah Mahler
Dan, On Mon, Dec 15, 2014 at 04:43:34PM +0300, Dan Carpenter wrote: > On Mon, Dec 15, 2014 at 05:03:46AM -0800, Jeremiah Mahler wrote: > > > > Or another way mentioned in K&R that produces a compile error > > > > if (NULL = x) > > > > Y

Re: [PATCH] checkpatch giving bogus advice (was staging: goldfish: Fix minor coding style)

2014-12-15 Thread Jeremiah Mahler
On Mon, Dec 15, 2014 at 11:44:21AM +, One Thousand Gnomes wrote: > On Sat, 13 Dec 2014 11:46:47 -0800 > Jeremiah Mahler wrote: > > > Loïc, > > > > On Sat, Dec 13, 2014 at 07:22:38PM +0100, Loic Pefferkorn wrote: > > > > Whose conventio

Re: [PATCH V3 1/1] Drivers: hv: vmbus: Fix a bug in vmbus_establish_gpadl()

2014-12-14 Thread Jeremiah Mahler
KY Srinivasan, On Mon, Dec 15, 2014 at 07:00:45AM +, KY Srinivasan wrote: > > > > -Original Message- > > From: Jeremiah Mahler [mailto:jmmah...@gmail.com] > > Sent: Wednesday, December 10, 2014 6:10 PM > > To: KY Srinivasan > > Cc: g

Re: [PATCH] staging: goldfish: Fix minor coding style

2014-12-13 Thread Jeremiah Mahler
> total: 0 errors, 0 warnings, 5 checks, 442 lines checked > > drivers/staging/goldfish/goldfish_nand.c has style problems, please review. > > I have also found another commit having the same purpose: > 7f376cd6dc1c9bfd14514c70765e6900a961c4b8 > > -- > Cheers, > Loïc It looks like you're ri

Re: [PATCH] staging: goldfish: Fix minor coding style

2014-12-13 Thread Jeremiah Mahler
form_set_drvdata(pdev, data); > > r = platform_get_resource(pdev, IORESOURCE_MEM, 0); > - if (r == NULL) { > + if (!r) { > dev_err(&pdev->dev, "platform_get_resource failed\n"); > return -ENODEV; > } > data->reg_base =

Re: [PATCH V3 1/1] Drivers: hv: vmbus: Fix a bug in vmbus_establish_gpadl()

2014-12-10 Thread Jeremiah Mahler
adl_header(kbuffer, size, &msginfo, &msgcount); > if (ret) > -- > 1.7.4.1 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majord...@vger.kernel.org > More

Re: [PATCH] staging: unisys: remove duplicate header

2014-12-02 Thread Jeremiah Mahler
isutils.c > +++ b/drivers/staging/unisys/uislib/uisutils.c > @@ -27,7 +27,6 @@ > #include "vbushelper.h" > #include > #include > -#include > #ifdef CONFIG_HIGHMEM > #include > #endif There are two duplicates of the second one. Lines: 21, 28 an

Re: [PATCH] staging: comedi: change some printk calls to pr_err

2014-12-01 Thread Jeremiah Mahler
the default log level is 4 which corresponds to KERN_WARNING. So switching to pr_err() would change the log level of these messages. Using pr_warn() might be a better choice. -- - Jeremiah Mahler ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[PATCH v3] staging: rtl8192u/ieee80211: Fix sparse ieee80211_debug_init/_exit not declared warning

2014-08-12 Thread Jeremiah Mahler
rning. Fix the sparse warning by moving these prototypes from r8192U_core.c to ieee80211.h. Signed-off-by: Jeremiah Mahler Cc: Greg Kroah-Hartman Cc: Joel Pelaez Jorge Cc: Andrea Merello Cc: "John W. Linville" Cc: Joe Perches Cc: Himangi Saraogi Cc: Arnd Bergmann Cc: Peter P Was

[PATCH v2] staging: rtl8192u/ieee80211: Fix sparse ieee80211_debug_init/_exit not declared warning

2014-08-11 Thread Jeremiah Mahler
ers/staging/rtl8192u/ieee80211/ieee80211_module.c:297:13: warning: symbol 'ieee80211_debug_exit' was not declared. Should it be static? These functions are used outside of this file so using static will not work. Fix the warning by declaring the functions in the header file, ieee80211.h Signed

[PATCH] staging: rtl8192u/ieee80211: Fix sparse ieee80211_debug_init/_exit not declared warning

2014-08-11 Thread Jeremiah Mahler
ers/staging/rtl8192u/ieee80211/ieee80211_module.c:297:13: warning: symbol 'ieee80211_debug_exit' was not declared. Should it be static? These functions are used outside of this file so using static will not work. Fix the warning by declaring the functions in the header file, ieee80211.h Signed

[PATCH] xillybus: place 'else' on same line as '}'

2014-07-13 Thread Jeremiah Mahler
Place 'else' on same line as closing brace '}' as per Documentation/CodingStyle. Fixes 1 error found by checkpatch.pl. Signed-off-by: Jeremiah Mahler --- drivers/staging/xillybus/xillybus_core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/driv

[PATCH] dgnc: DGNC_VERIFY_BOARD macro in do while block

2014-07-12 Thread Jeremiah Mahler
Enclose the body of the multi-statement DGNC_VERIFY_BOARD macro inside a do - while block as per Documentation/CodingStyle. Fixes 1 error found by checkpatch.pl. Signed-off-by: Jeremiah Mahler --- drivers/staging/dgnc/dgnc_sysfs.c | 20 +++- 1 file changed, 11 insertions(+), 9