want to have a try

2018-08-12 Thread Joe
Are you upset for your current business s a l e s? We provide email C A M P A I G N service and we can bring you business l e a d s and up your s a l e s. Please reply today so we can send options for you. Kind Regards, Joe ___ devel mailing list de

Re: [PATCH] staging: rtl8188eu: change array type to u8

2018-09-11 Thread Joe Perches
On Mon, 2018-09-10 at 22:38 +0200, Michael Straube wrote: > The the last two parameters of write_cam() have type u8. > Change the type of the passed arrays from unsigned char to u8. > Clears a line over 80 characters checkpatch warning. > > Signed-off-by: Michael Straube > --- > drivers/staging/

Re: [PATCH v2] staging: Convert to using %pOFn instead of device_node.name

2018-09-13 Thread Joe Perches
On Wed, 2018-09-12 at 15:26 -0500, Rob Herring wrote: > A problem with MAINTAINERS is there is no way to tell who applies > patches for a given path vs. anyone else listed. try the --scm option ___ devel mailing list de...@linuxdriverproject.org http://

Re: [PATCH v2] staging: Convert to using %pOFn instead of device_node.name

2018-09-14 Thread Joe Perches
On Thu, 2018-09-13 at 16:26 -0500, Rob Herring wrote: > On Thu, Sep 13, 2018 at 3:45 PM Joe Perches wrote: > > > > On Wed, 2018-09-12 at 15:26 -0500, Rob Herring wrote: > > > A problem with MAINTAINERS is there is no way to tell who applies > > > patches for a

Re: [PATCH] staging: mt7621-mmc: Remove do {} while (0) loop for single statement macro

2018-09-17 Thread Joe Perches
On Sat, 2018-09-15 at 18:47 +0530, Nishad Kamdar wrote: > This patch removes do {} while (0) loop for single statement macros. > Issue found by checkpatch. Some or all of this code is not used and should be deleted instead. > Signed-off-by: Nishad Kamdar > --- > drivers/staging/mt7621-mmc/sd.c

Re: [PATCH v2 28/29] staging: wilc1000: avoid spaces preferred around checkpatch issue

2018-09-20 Thread Joe Perches
On Thu, 2018-09-20 at 11:53 +0530, Ajay Singh wrote: > Cleanup patch to add extra spaces around the '/' to avoid the below > checkpatch warning. > > 'spaces preferred around that '/' (ctx:VxV)' > > Signed-off-by: Ajay Singh > --- > drivers/staging/wilc1000/linux_wlan.c | 2 +- > 1 file changed,

Re: [PATCH v2] staging: mt7621-mmc: Fix single statement macros in sd.c

2018-09-23 Thread Joe Perches
On Sun, 2018-09-23 at 15:08 +0530, Nishad Kamdar wrote: > This patch fixes a few single statement macros in sd.c. > It converts two macros to inline functions. It removes > five other macros and replaces their usages with calls to > the function being called in the macro definition. > Issue found b

Re: [PATCH v2] staging: mt7621-mmc: Fix single statement macros in sd.c

2018-09-25 Thread Joe Perches
On Tue, 2018-09-25 at 20:49 +0200, Greg Kroah-Hartman wrote: > On Sun, Sep 23, 2018 at 06:31:32AM -0700, Joe Perches wrote: > > On Sun, 2018-09-23 at 15:08 +0530, Nishad Kamdar wrote: > > > This patch fixes a few single statement macros in sd.c. > > > It converts two mac

Re: [PATCH 01/19] staging: rtl8188eu: cleanup inconsistent indenting

2018-09-30 Thread Joe Perches
On Sun, 2018-09-30 at 21:52 +0200, Michael Straube wrote: > Cleanup all inconsistent indenting reported by smatch. There are also some others like: drivers/staging/rtl8188eu/core/rtw_mlme.c:1752: WARNING:SUSPECT_CODE_INDENT: suspect code indent for conditional statements (8, 24) 1750: if ((ndi

Re: [PATCH] staging: rtlwifi: Removed unused define and code efuse_re_pg* from wifi.h

2018-10-01 Thread Joe Perches
On Sun, 2018-09-30 at 20:29 +0200, Rick Veens wrote: > The following: > bool efuse_re_pg_sec1flag; > u8 efuse_re_pg_data[8]; > are not referenced anywhere in the rtlwifi code. > > Signed-off-by: Rick Veens > --- > drivers/staging/rtlwifi/wifi.h | 4 Presumably the equivalent uses in

Re: [PATCH 1/3] staging: rtl8188eu: fix line over 80 characters - style

2018-10-03 Thread Joe Perches
On Wed, 2018-10-03 at 22:43 +0200, Michael Straube wrote: > Line break array declaration to clear a 'line over 80 characters' > checkpatch warning. For consistency replace 0x0 with 0x00. [] > diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c > b/drivers/staging/rtl8188eu/core/rtw_mlme_ext

Re: [PATCH 2/3] staging: rtl8188eu: cleanup array declaration - style

2018-10-03 Thread Joe Perches
On Wed, 2018-10-03 at 22:43 +0200, Michael Straube wrote: > Cleanup array declaration to clear two 'line over 80 characters' > checkpatch warnings and improve readability. [] > diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c > b/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c [] > @@ -383

Re: [PATCH 2/3] staging: rtl8188eu: cleanup array declaration - style

2018-10-04 Thread Joe Perches
On Thu, 2018-10-04 at 14:12 +0200, Michael Straube wrote: > On 10/3/18 11:30 PM, Joe Perches wrote: > > > > static struct mlme_handler mlme_sta_tbl[] = { > > > > Perhaps const here too, and as well, the struct > > declaration could use const char * inst

Re: [PATCH] staging/rtlwifi: Fixing formatting warnings from checkpatch.pl.

2018-10-05 Thread Joe Perches
On Fri, 2018-10-05 at 16:58 -0600, Scott Tracy wrote: > Fixing formatting warnings in rtlwifi found by checkpatch.pl > Changes include breaking up functions calls into multi line calls. > No functional/logical changes. I believe the code is better before most of these changes. There are various

Re: [PATCH] staging: add nrf24 driver

2018-10-16 Thread Joe Perches
On Tue, 2018-10-16 at 01:17 +0200, Marcin Ciupak wrote: > This patch adds driver for Nordic Semiconductor nRF24L01+ radio module. [] > diff --git a/drivers/staging/nrf24/nrf24_hal.c > b/drivers/staging/nrf24/nrf24_hal.c [] > +static ssize_t nrf24_read_reg(struct spi_device *spi, u8 addr) > +{ >

Re: [PATCH] staging: iio: adc: Add comments to prevent checks corrections

2018-10-16 Thread Joe Perches
On Tue, 2018-10-16 at 20:06 +0200, Slawomir Stepien wrote: > On paź 15, 2018 18:25, Gabriel Capella wrote: > > This patch adds 3 comments in 2 different files. > > These comments warn to don't correct the checks of type: > > "CHECK: spaces preferred around that '-'" > > > > Signed-off-by: Gabriel

Re: [PATCH] staging: iio: ad7280a: Lines should not end with a '(' - style

2018-10-16 Thread Joe Perches
On Tue, 2018-10-16 at 18:09 -0300, Giuliano Belinassi wrote: > A number of macro calls cause a checkpatch issue: > > "Lines should not end with a '('" > > This was fixed by moving the first '(' token to the line of the first > argument. Please try to make the code more readable instead of fo

Re: [PATCH] staging: iio: ad7280a: Lines should not end with a '(' - style

2018-10-16 Thread Joe Perches
(There is a linux-...@googlegroups.com mailing list that bounces when I reply, so I removed it from the cc list) On Tue, 2018-10-16 at 19:48 -0300, Giuliano Belinassi wrote: > Hello, > Thank you for your review :-). > Sorry, but I am a newbie on this, and now I am confused about my next >

Re: [PATCH] staging: iio: ad7280a: Lines should not end with a '(' - style

2018-10-16 Thread Joe Perches
On Tue, 2018-10-16 at 20:29 -0300, Giuliano Augusto Faulin Belinassi wrote: > > (There is a linux-...@googlegroups.com mailing list > > that bounces when I reply, so I removed it from the > > cc list) > > Sorry. I think this may be because my HTML mode in gmail was enabled. No, it is because that

Re: [PATCH 3/3] staging: rtl8188eu: rename variable isCCKrate - style

2018-10-21 Thread Joe Perches
On Sat, 2018-10-20 at 13:08 +0200, Michael Straube wrote: > Rename the variable isCCKrate to avoid CamelCase. > isCCKrate -> is_cck_rate [] > diff --git a/drivers/staging/rtl8188eu/hal/odm_hwconfig.c > b/drivers/staging/rtl8188eu/hal/odm_hwconfig.c [] > @@ -71,19 +71,20 @@ static void odm_RxPhySta

Re: [PATCH] staging: axis-fifo: Fix line over 80 characters error

2018-10-25 Thread Joe Perches
On Thu, 2018-10-25 at 09:05 +0300, Dan Carpenter wrote: > On Wed, Oct 24, 2018 at 05:05:53PM +0200, Aleksa Zdravkovic wrote: > > This patch fixes the checkpatch.pl warning: [] > > diff --git a/drivers/staging/axis-fifo/axis-fifo.c > > b/drivers/staging/axis-fifo/axis-fifo.c [] > > @@ -482,10 +482,

Re: [Outreachy kernel] [RESEND PATCH 2/2] staging: vboxvideo: Use unsigned int instead bool

2018-10-27 Thread Joe Perches
On Fri, 2018-10-26 at 22:54 +0200, Julia Lawall wrote: > [Adding Joe Perches] > > On Fri, 26 Oct 2018, Sasha Levin wrote: > > > On Fri, Oct 26, 2018 at 04:04:45PM -0300, Shayenne da Luz Moura wrote: > > > This change was suggested by checkpath.pl. Use unsigned int w

Re: [PATCH 4/5] staging: rtl8188eu: change return type of rtw_hal_xmit()

2018-10-27 Thread Joe Perches
On Sat, 2018-10-27 at 22:28 +0200, Michael Straube wrote: > The function rtw_hal_xmit() returns true or false. > Change the return type from s32 to bool. [] > diff --git a/drivers/staging/rtl8188eu/hal/rtl8188eu_xmit.c > b/drivers/staging/rtl8188eu/hal/rtl8188eu_xmit.c [] > @@ -598,7 +598,7 @@ boo

Re: [PATCH 4/5] staging: rtl8188eu: change return type of rtw_hal_xmit()

2018-10-28 Thread Joe Perches
On Sat, 2018-10-27 at 15:57 -0700, Joe Perches wrote: > On Sat, 2018-10-27 at 22:28 +0200, Michael Straube wrote: > > The function rtw_hal_xmit() returns true or false. > > Change the return type from s32 to bool. > [] > > diff --git a/drivers/staging/rtl8188eu/hal/rtl8188

Re: [PATCH] staging: vt6656: clean up few indentation issues

2018-10-31 Thread Joe Perches
On Tue, 2018-10-30 at 11:13 +, Colin King wrote: > From: Colin Ian King > > Trivial fix to clean up indentation issues [] > diff --git a/drivers/staging/vt6656/main_usb.c > b/drivers/staging/vt6656/main_usb.c > index ccafcc2c87ac..b613a1d113bb 100644 > --- a/drivers/staging/vt6656/main_usb.c

Re: [PATCH 4/8] staging: wilc1000: avoid line over 80 chars in wilc_parse_network_info()

2018-11-04 Thread Joe Perches
On Thu, 2018-11-01 at 16:45 +, ajay.kat...@microchip.com wrote: > From: Ajay Singh > > Use shorter name for 'network_info' variable to avoid line over 80 chars > issue. This seems completely unnecessary as patch 7/8 and 8/8 removes the file. ___

Re: [PATCH 4/8] staging: wilc1000: avoid line over 80 chars in wilc_parse_network_info()

2018-11-05 Thread Joe Perches
On Mon, 2018-11-05 at 12:18 +, ajay.kat...@microchip.com wrote: > Hi Joe, > > On 11/5/2018 4:27 PM, Joe Perches wrote: > > On Thu, 2018-11-01 at 16:45 +, ajay.kat...@microchip.com wrote: > > > From: Ajay Singh > > > > > > Use shorter name for

Re: [PATCH 4/8] staging: wilc1000: avoid line over 80 chars in wilc_parse_network_info()

2018-11-05 Thread Joe Perches
On Thu, 2018-11-01 at 16:45 +, ajay.kat...@microchip.com wrote: > From: Ajay Singh > > Use shorter name for 'network_info' variable to avoid line over 80 chars > issue. I suppose this is OK, though perhaps unnecessary. As well, perhaps there are defects in the original code in a couple pla

Re: [PATCH v2] staging: vc04_services: bcm2835-audio: Fixed warnings, checks

2018-11-12 Thread Joe Perches
On Mon, 2018-11-12 at 19:45 -0500, Arnold Chand wrote: > Corrected warnings and checks provided by scripts/checkpatch.pl which > includes: alignment of parenthesis, lines over 80 characters and mutex > definition without comment. [] > diff --git a/drivers/staging/vc04_services/bcm2835-audio/bcm2835

Re: [PATCH 1/2] staging: emxx_udc: Split line and fix eol parenthesis

2018-11-17 Thread Joe Perches
On Sat, 2018-11-17 at 00:46 +0100, Cristian Sicilia wrote: > Fix some parenthesis opened at end of line. It looks like this is all guarded by #ifdef UDC_DEBUG_DUMP which is not ever set and this probably would not compile if it was. It's probably better to remove all the blocks guarded by that fl

Re: [PATCH] staging: iio: adc: ad7280a: check for devm_kasprint() failure

2018-11-26 Thread Joe Perches
On Mon, 2018-11-26 at 16:26 +0300, Dan Carpenter wrote: > On Mon, Nov 26, 2018 at 02:10:09PM +0100, Nicholas Mc Guire wrote: > > On Mon, Nov 26, 2018 at 04:00:32PM +0300, Dan Carpenter wrote: > > > On Mon, Nov 26, 2018 at 10:39:04AM +0100, Nicholas Mc Guire wrote: > > > > devm_kasprintf() may retur

Re: [PATCH] staging: wilc1000: correct inconsistent indenting

2018-11-29 Thread Joe Perches
On Wed, 2018-11-28 at 19:17 +0100, Michael Straube wrote: > Correct inconsistent indenting reported by smatch. [] > diff --git a/drivers/staging/wilc1000/wilc_spi.c > b/drivers/staging/wilc1000/wilc_spi.c [] > @@ -963,7 +963,7 @@ static int wilc_spi_read_int(struct wilc *wilc, u32 > *int_status)

Re: [PATCH] staging: iio: ad5933: add binding doc for ad5933

2018-12-02 Thread Joe Perches
On Mon, 2018-12-03 at 00:20 +0530, Himanshu Jha wrote: > On Sun, Dec 02, 2018 at 02:57:12PM -0200, Marcelo Schmitt wrote: > > Add a devicetree documentation for the ad5933 and ad5934 impedance > > converter, network analyzer. > > > > Co-Developed-by: Gabriel Capella > > checkpatch spits out: >

Re: [PATCH 10/12] staging: rtl8188eu: correct indentation in update_wireless_mode()

2018-12-05 Thread Joe Perches
On Wed, 2018-12-05 at 18:02 +0100, Michael Straube wrote: > Correct indentation in update_wireless_mode() to clear a checkpatch > warning. WARNING: Statements should start on a tabstop [] > diff --git a/drivers/staging/rtl8188eu/core/rtw_wlan_util.c > b/drivers/staging/rtl8188eu/core/rtw_wlan_util

Re: [PATCH 4/5] drivers: staging: erofs: Fix parentheses error in macro

2018-12-11 Thread Joe Perches
On Tue, 2018-12-11 at 19:06 +0800, Gao Xiang wrote: > Hi Aaron, > > On 2018/12/11 18:54, Aaron Strahlberger wrote: > > Fix of ERROR: Macros with complex values should be enclosed in parentheses > > from checkpatch.pl [] > > diff --git a/drivers/staging/erofs/erofs_fs.h > > b/drivers/staging/erofs

Re: [PATCH] staging: octeon: convert all uses of strlcpy to strscpy in ethernet-mdio.c

2021-02-07 Thread Joe Perches
On Sun, 2021-02-07 at 15:55 +0100, Greg KH wrote: > On Sun, Feb 07, 2021 at 02:48:04PM +, Phillip Potter wrote: > > Convert three calls to strlcpy inside the cvm_oct_get_drvinfo function > > to strscpy calls. Fixes a style warning. > > Is it really safe to do this type of conversion here? Yes

Re: [PATCH] staging: gasket: fix indentation and lines ending with open parenthesis

2021-02-07 Thread Joe Perches
On Sun, 2021-02-07 at 19:39 +0530, Mahak Gupta wrote: > This patch fixes warnings of 'checkpatch.pl'. According to > Linux coding guidelines, code should be aligned properly to > match with open parenthesis and lines should not end with > open parenthesis. > > Signed-off-by: Mahak Gupta > --- >  

Re: [PATCH] staging: gasket: fix indentation and lines ending with open parenthesis

2021-02-07 Thread Joe Perches
On Sun, 2021-02-07 at 19:39 +0530, Mahak Gupta wrote: > This patch fixes warnings of 'checkpatch.pl'. According to > Linux coding guidelines, code should be aligned properly to > match with open parenthesis and lines should not end with > open parenthesis. Perhaps try using temporaries to reduce l

Re: [PATCH] staging: rtl8723bs: align comments

2021-03-11 Thread Joe Perches
On Wed, 2021-03-10 at 20:48 +0300, Dan Carpenter wrote: > You need to have a space character after the '*'. Perhaps YA checkpatch test... --- scripts/checkpatch.pl | 15 +++ 1 file changed, 15 insertions(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index f42e5ba16d9b

Re: [PATCH] staging: rtl8723bs/core: add spaces between operators

2021-03-16 Thread Joe Perches
On Tue, 2021-03-16 at 20:05 +0800, Qiang Ma wrote: > Add spaces between operators for a better readability > in function 'rtw_seccalctkipmic'. Perhaps better would be to refactor it a bit to follow the comments. Something like: --- drivers/staging/rtl8723bs/core/rtw_security.c | 24 ++---

Re: [PATCH 1/5] staging: rtl8723bs: refactor cckrates{only}_included

2020-09-12 Thread Joe Perches
On Sat, 2020-09-12 at 10:45 +0200, Michael Straube wrote: > Refactor cckrates_included() and cckratesonly_included() to simplify > the code and improve readability. > > Signed-off-by: Michael Straube > --- > drivers/staging/rtl8723bs/core/rtw_wlan_util.c | 14 -- > 1 file changed, 8

Re: [PATCH 1/5] staging: rtl8723bs: refactor cckrates{only}_included

2020-09-12 Thread Joe Perches
On Sat, 2020-09-12 at 11:22 -0700, Joe Perches wrote: > On Sat, 2020-09-12 at 10:45 +0200, Michael Straube wrote: > > Refactor cckrates_included() and cckratesonly_included() to simplify > > the code and improve readability. [] > diff --git a/drivers/staging/rtl8723bs/core/rt

Re: [RESEND PATCH] staging: rtl8188eu: Fix else after return WARNING (checkpatch)

2020-09-14 Thread Joe Perches
On Mon, 2020-09-14 at 17:57 +0300, Dan Carpenter wrote: > On Sun, Sep 13, 2020 at 12:19:50PM +0530, Sohom Datta wrote: > > > From 4c8c8f3ff7f4d711daea4ac3bb987fcecc7ef1ed Mon Sep 17 00:00:00 2001 > > From: Sohom > > Date: Sat, 12 Sep 2020 18:04:56 +0530 > > Subject: [RESEND PATCH] staging: rtl8188

Re: [PATCH 3/3] staging: rtl8723bs: os_dep: fixed spacing around operators issue

2020-09-14 Thread Joe Perches
On Mon, 2020-09-14 at 19:17 -0500, Ross Schmidt wrote: > Fixed a coding style issue by adding spaces around operators in > sdio_ops_linux.c to fix checkpatch checks. Hello Ross. If you want to do more than fix whitespace, please look at the #define for DBG_871X. All the uses with a KERN_ are bro

Re: [RESEND PATCH] staging: rtl8188eu: Fix else after return WARNING (checkpatch)

2020-09-15 Thread Joe Perches
On Tue, 2020-09-15 at 14:20 +0300, Dan Carpenter wrote: > On Mon, Sep 14, 2020 at 09:42:49AM -0700, Joe Perches wrote: > > On Mon, 2020-09-14 at 17:57 +0300, Dan Carpenter wrote: > > > On Sun, Sep 13, 2020 at 12:19:50PM +0530, Sohom Datta wro

Re: [PATCH 1/2] staging: rtl8188eu: use __func__ in hal directory

2020-09-17 Thread Joe Perches
On Thu, 2020-09-17 at 09:13 +0200, Michael Straube wrote: > Use __func__ instead of hardcoded function names to clear > checkpatch warnings. [] > diff --git a/drivers/staging/rtl8188eu/hal/odm.c > b/drivers/staging/rtl8188eu/hal/odm.c [] > @@ -249,7 +249,7 @@ void odm_CommonInfoSelfUpdate(struct o

Re: [RFC PATCH] Add bridge driver to connect sensors to CIO2 device via software nodes on ACPI platforms

2020-09-17 Thread Joe Perches
On Thu, 2020-09-17 at 12:34 +0300, Dan Carpenter wrote: > On Wed, Sep 16, 2020 at 10:36:18PM +0100, Daniel Scally wrote: > > diff --git a/drivers/staging/media/ipu3/cio2-bridge.c > > b/drivers/staging/media/ipu3/cio2-bridge.c [] > > + if (!dev->driver_data) { > > + pr_i

Re: [PATCH 1/3] staging: rtl8192u: clean up blank line style issues

2020-09-19 Thread Joe Perches
On Sat, 2020-09-19 at 17:08 +0200, Michael Straube wrote: > Add missing and remove unnecessary blank lines to clear checkpatch > issues. unrelated trivia: > diff --git a/drivers/staging/rtl8192u/r8192U_dm.c > b/drivers/staging/rtl8192u/r8192U_dm.c [] > @@ -26,6 +26,7 @@ Major Change History: >

Re: [PATCH RFT/RFC v2 11/47] staging: media: zoran: zoran_device.c: convert pr_x to pci_x

2020-09-25 Thread Joe Perches
On Fri, 2020-09-25 at 18:30 +, Corentin Labbe wrote: > Signed-off-by: Corentin Labbe [] > diff --git a/drivers/staging/media/zoran/zoran_device.c > b/drivers/staging/media/zoran/zoran_device.c [] > @@ -198,15 +198,14 @@ void detect_guest_activity(struct zoran *zr) [] > for (i = 0; i < j

Re: [PATCH v2] Staging: nvec: nvec: fix double next comment

2020-10-01 Thread Joe Perches
On Sun, 2020-09-27 at 09:35 -0700, Ryan Kosta wrote: > Changes since v1: > * Made commit message more clear > * Added description > Note: previous patch named > "[PATCH] fix double next comment in drivers/staging/nvec/nvec.c" > > 8--8< > Fixes

Re: [PATCH 2/2] media: staging: atomisp: Removed else branch in function

2020-10-06 Thread Joe Perches
On Tue, 2020-10-06 at 21:04 +0300, Dan Carpenter wrote: > Code should generally do "error handling" instead of "success handling". Maybe something to add to coding-style (in '6} Functions' maybe?)... > That way the success path is always indented one tab and the error path > is indented two tabs.

Re: [PATCH] staging: wfx: make a const array static, makes object smaller

2020-10-16 Thread Joe Perches
On Fri, 2020-10-16 at 23:33 +0100, Colin King wrote: > From: Colin Ian King > > Don't populate const array filter_ies on the stack but instead > make it static. Makes the object code smaller by 261 bytes. > > Before: >text data bss dec hex filename > 21674 316

Re: [RFC] treewide: cleanup unreachable breaks

2020-10-17 Thread Joe Perches
On Sat, 2020-10-17 at 09:09 -0700, t...@redhat.com wrote: > From: Tom Rix > > This is a upcoming change to clean up a new warning treewide. > I am wondering if the change could be one mega patch (see below) or > normal patch per file about 100 patches or somewhere half way by collecting > early a

Re: [Cocci] [RFC] treewide: cleanup unreachable breaks

2020-10-17 Thread Joe Perches
On Sat, 2020-10-17 at 20:21 +0200, Julia Lawall wrote: > On Sat, 17 Oct 2020, Joe Perches wrote: > > On Sat, 2020-10-17 at 09:09 -0700, t...@redhat.com wrote: > > > From: Tom Rix > > > > > > This is a upcoming change to clean up a new warning treewide. > &g

Re: [Ocfs2-devel] [RFC] treewide: cleanup unreachable breaks

2020-10-18 Thread Joe Perches
On Sun, 2020-10-18 at 19:59 +0100, Matthew Wilcox wrote: > On Sat, Oct 17, 2020 at 09:09:28AM -0700, t...@redhat.com wrote: > > clang has a number of useful, new warnings see > > https://urldefense.com/v3/__https://clang.llvm.org/docs/DiagnosticsReference.html__;!!GqivPVa7Brio!Krxz78O3RKcB9JBMVo_F9

Re: [RFC] treewide: cleanup unreachable breaks

2020-10-20 Thread Joe Perches
On Mon, 2020-10-19 at 12:42 -0700, Nick Desaulniers wrote: > On Sat, Oct 17, 2020 at 10:43 PM Greg KH wrote: > > On Sat, Oct 17, 2020 at 09:09:28AM -0700, t...@redhat.com wrote: > > > From: Tom Rix > > > > > > This is a upcoming change to clean up a new warning treewide. > > > I am wondering if

Re: [PATCH 000/141] Fix fall-through warnings for Clang

2020-11-20 Thread Joe Perches
On Fri, 2020-11-20 at 12:21 -0600, Gustavo A. R. Silva wrote: > Hi all, > > This series aims to fix almost all remaining fall-through warnings in > order to enable -Wimplicit-fallthrough for Clang. > > In preparation to enable -Wimplicit-fallthrough for Clang, explicitly > add multiple break/goto

Re: [PATCH 000/141] Fix fall-through warnings for Clang

2020-11-22 Thread Joe Perches
On Sun, 2020-11-22 at 10:21 -0800, James Bottomley wrote: > Please tell me > our reward for all this effort isn't a single missing error print. There were quite literally dozens of logical defects found by the fallthrough additions. Very few were logging only. _

Re: [PATCH 000/141] Fix fall-through warnings for Clang

2020-11-22 Thread Joe Perches
On Sun, 2020-11-22 at 11:12 -0800, James Bottomley wrote: > On Sun, 2020-11-22 at 10:25 -0800, Joe Perches wrote: > > On Sun, 2020-11-22 at 10:21 -0800, James Bottomley wrote: > > > Please tell me our reward for all this effort isn't a single > > > missing error

Re: [PATCH 000/141] Fix fall-through warnings for Clang

2020-11-23 Thread Joe Perches
On Mon, 2020-11-23 at 07:58 -0800, James Bottomley wrote: > We're also complaining about the inability to recruit maintainers: > > https://www.theregister.com/2020/06/30/hard_to_find_linux_maintainers_says_torvalds/ > > And burn out: > > http://antirez.com/news/129 https://www.wired.com/story/o

Re: [PATCH] staging:rkvdec: Fixed "replace comma with semicolon" Warning:

2020-12-04 Thread Joe Perches
On Fri, 2020-12-04 at 17:37 -0600, Travis Carter wrote: > drivers/staging/media/rkvdec/rkvdec.c You might consider using Julia Lawall's cocci script for all of drivers/staging or subsets of staging like drivers/staging/media/ https://lore.kernel.org/lkml/1601233948-11629-1-git-send-email-julia.la

Re: [PATCH] staging: most: video: fixed a parentheses coding style issue.

2020-12-17 Thread Joe Perches
On Thu, 2020-12-17 at 15:45 -0800, Daniel West wrote: > Fixed a coding style issue. It may pass checkpatch without warning, but it's uncommon kernel coding style. > diff --git a/drivers/staging/most/video/video.c > b/drivers/staging/most/video/video.c [] > @@ -365,8 +365,8 @@ static const struct

Re: [PATCH] staging: most: video: fixed a parentheses coding style issue.

2020-12-18 Thread Joe Perches
On Fri, 2020-12-18 at 09:49 +, David Laight wrote: > From: Joe Perches > > Sent: 17 December 2020 23:58 > > > > On Thu, 2020-12-17 at 15:45 -0800, Daniel West wrote: > > > Fixed a coding style issue. > > > > It may pass checkpatch without warning,

Re: [PATCH] staging: rtl8723bs: clean up brace coding style issues

2020-12-24 Thread Joe Perches
On Tue, 2020-12-22 at 15:17 +0100, Michael Straube wrote: > Add missing braces around else arm of if else statement to clear > style issues reported by checkpatch. > > CHECK: braces {} should be used on all arms of this statement > CHECK: Unbalanced braces around else statement [] > diff --git a/d

Re: [PATCH] staging: ralink-gdma: Fixed blank line coding style issue

2020-12-24 Thread Joe Perches
On Wed, 2020-12-23 at 21:22 +0100, Ayoub Soussi wrote: > Fixed coding style issue. [] > diff --git a/drivers/staging/ralink-gdma/ralink-gdma.c > b/drivers/staging/ralink-gdma/ralink-gdma.c [] > @@ -122,6 +122,7 @@ struct gdma_dma_dev { >   struct gdma_data *data; >   void __iomem *base; >

Re: [PATCH 8455/8455] staging: rtl8188eu: core: fixed a comment format issue.

2020-12-28 Thread Joe Perches
On Mon, 2020-12-28 at 15:09 +0100, Greg KH wrote: > On Sat, Dec 19, 2020 at 02:43:12PM -0800, Daniel West wrote: > > Fixed a checkpatch warning: > > > > WARNING: Block comments use * on subsequent lines > >  #4595: FILE: drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:4595: > > +/***

Re: [PATCH] media: atomisp: ov2722: replace hardcoded function name

2021-01-06 Thread Joe Perches
On Wed, 2021-01-06 at 18:52 +0100, Greg Kroah-Hartman wrote: > On Wed, Jan 06, 2021 at 07:43:42PM +0200, Filip Kolev wrote: > > On 06-Jan-21 09:51, Greg Kroah-Hartman wrote: > > > On Tue, Jan 05, 2021 at 10:29:18PM +0200, Filip Kolev wrote: > > > > There is a debug message using hardcoded function

Re: [PATCH] media: atomisp: ov2722: replace hardcoded function name

2021-01-06 Thread Joe Perches
On Wed, 2021-01-06 at 22:36 +0300, Dan Carpenter wrote: > On Wed, Jan 06, 2021 at 10:25:26AM -0800, Joe Perches wrote: > > On Wed, 2021-01-06 at 18:52 +0100, Greg Kroah-Hartman wrote: > > > On Wed, Jan 06, 2021 at 07:43:42PM +0200, Filip Kolev wrote: > > > > On 06-Ja

Re: [PATCH v2 3/4] staging: hikey9xx: phy-hi3670-usb3.c: hi3670_is_abbclk_seleted() returns bool

2021-01-14 Thread Joe Perches
On Thu, 2021-01-14 at 18:35 +0100, Mauro Carvalho Chehab wrote: > Instead of using 1/0 for true/false, change the type to boolean > and change the returned value. [] > diff --git a/drivers/staging/hikey9xx/phy-hi3670-usb3.c > b/drivers/staging/hikey9xx/phy-hi3670-usb3.c [] > @@ -326,24 +326,24 @@

Re: [PATCH v3 4/4] phy: phy-hi3670-usb3: move driver from staging into phy

2021-01-15 Thread Joe Perches
On Fri, 2021-01-15 at 09:10 +0100, Mauro Carvalho Chehab wrote: > The phy USB3 driver for Hisilicon 970 (hi3670) is ready > for mainstream. Mode it from staging into the main driver's > phy/ directory. [] > diff --git a/Documentation/devicetree/bindings/phy/phy-hi3670-usb3.yaml > b/Documentation/d

Re: [PATCH v10] staging: fbtft: add tearing signal detect

2021-01-27 Thread Joe Perches
On Wed, 2021-01-27 at 17:49 +0300, Dan Carpenter wrote: > On Wed, Jan 27, 2021 at 03:25:20PM +0100, Greg KH wrote: > > Andy and Joe, there's something wrong here that is missing the fact that > > a line is being indented with spaces and not tabs in the patch > > at >

Re: [PATCH v10] staging: fbtft: add tearing signal detect

2021-01-27 Thread Joe Perches
> Comments are the exception to the "no spaces at the start of a line" > rule. I was expecting that the kbuild-bot would send a Smatch warning > for inconsistent indenting, but comments are not counted there either. > > I'm sort of surprised that we don't have checkpatch rule about the > missing

Re: [PATCH] staging: net: wimax: i2400m: fw: remove redundant initialization of variable result

2021-01-28 Thread Joe Perches
On Thu, 2021-01-28 at 17:37 +, Colin King wrote: > From: Colin Ian King > > The variable result is being initialized with a value that is never > read and it is being updated later with a new value. The initialization > is redundant and can be removed. Isn't WIMAX dead? Shouldn't it be mar

Re: [PATCH] Staging: wimax: i2400m: fixing several coding style issues.

2021-02-01 Thread Joe Perches
On Sun, 2021-01-31 at 23:42 +0300, dev.dra...@bk.ru wrote: > diff --git a/drivers/staging/wimax/i2400m/rx.c > b/drivers/staging/wimax/i2400m/rx.c [] > @@ -764,9 +763,9 @@ unsigned __i2400m_roq_update_ws(struct i2400m *i2400m, > struct i2400m_roq *roq, >   new_nws); >

Re: [PATCH 1/9] staging: rtl8188eu: cleanup declarations in rtw_mlme_ext.c

2018-12-15 Thread Joe Perches
On Sat, 2018-12-15 at 17:46 +0100, Michael Straube wrote: > Replace tabs with spaces and/or remove spaces in declarations. > Remove unused/commented declarations, remove unnecessary comment, > remove blank lines between declarations and add missing lines after > declarations. Also clears some line

Re: [PATCH 2/2] Staging: nvec: nvec: fixed check style issues

2018-12-16 Thread Joe Perches
On Sun, 2018-12-16 at 08:57 -0800, Amir Mahdi Ghorbanian wrote: > Fixed an endline open parenthesis issue and replaced udelay() by the > preferred usleep_range() function. Not all checkpatch bleats need to be fixed. Function names with 40+ character length identifiers makes fitting within an 80 c

Re: [PATCH] Staging: nvec: nvec: fixed check style issues

2018-12-16 Thread Joe Perches
On Sun, 2018-12-16 at 13:43 -0800, Amir Mahdi Ghorbanian wrote: > Replaced udelay() by the preferred usleep_range() function. [] > diff --git a/drivers/staging/nvec/nvec.c b/drivers/staging/nvec/nvec.c [] > @@ -626,7 +626,7 @@ static irqreturn_t nvec_interrupt(int irq, void *dev) > br

Re: [PATCH] Staging: vt6655: Fix camel case of variable

2018-12-29 Thread Joe Perches
On Sat, 2018-12-29 at 23:59 +0100, Petr Sedlák wrote: > Replace variable uDelayUnit with u_delay_unit. Issue found by > checkpatch. probably better as a static inline too. > diff --git a/drivers/staging/vt6655/upc.h b/drivers/staging/vt6655/upc.h [] > @@ -42,15 +42,15 @@ > #define VNSvOutPortD(d

Re: [PATCH 2/2] staging: rtl8188eu: cleanup indenting issue in mlme_linux.c

2019-01-17 Thread Joe Perches
On Thu, 2019-01-17 at 20:23 +0100, Michael Straube wrote: > Cleanup indenting issue reported by checkpatch. > CHECK: Alignment should match open parenthesis [] > diff --git a/drivers/staging/rtl8188eu/os_dep/mlme_linux.c > b/drivers/staging/rtl8188eu/os_dep/mlme_linux.c [] > @@ -52,9 +52,8 @@ void

Re: [PATCH] staging: ks7010: remove unnecessary parentheses

2019-01-23 Thread Joe Perches
On Tue, 2019-01-22 at 21:18 -0500, Matt McCoy wrote: > Remove unnecessary parentheses reported by checkpatch. [] > diff --git a/drivers/staging/ks7010/ks_hostif.c > b/drivers/staging/ks7010/ks_hostif.c [] > @@ -171,7 +171,7 @@ int get_current_ap(struct ks_wlan_private *priv, struct > link_ap_info

Re: [PATCH] staging: mt7621-pinctrl: Remove space after cast

2019-01-23 Thread Joe Perches
On Wed, 2019-01-23 at 22:01 +0530, Nishad Kamdar wrote: > This patch removes space after a cast as it > is not needed. > Issue found by checkpatch. > > Signed-off-by: Nishad Kamdar > --- > drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >

Re: [PATCH 4/6] staging: rtl8188eu: remove unncessary asignment to cleanup long line

2019-01-28 Thread Joe Perches
On Mon, 2019-01-28 at 10:51 +0100, Michael Straube wrote: > Instead of first asign 'wrqu.data.length = p - buff' use 'p - buff' > directly in min_t() in the subsequent asignment. Clears a line over > 80 characters checkpatch warning. Thank you. I believe you should include Larry Finger in the cc

Re: [PATCH] staging: vt6656: Use the correct style for SPDX license Identifier

2019-02-05 Thread Joe Perches
On Tue, 2019-02-05 at 19:44 +0100, Greg Kroah-Hartman wrote: > On Tue, Feb 05, 2019 at 08:36:24PM +0530, Nishad Kamdar wrote: > > This patch corrects the style for SPDX license Identifier in mac.h > > by using "/* */" in place of "//" as per Linux kernel licensing rules. > > Issue found by checkpat

Re: [PATCH] staging: vt6656: Use the correct style for SPDX license Identifier

2019-02-06 Thread Joe Perches
On Wed, 2019-02-06 at 17:25 +0100, Greg Kroah-Hartman wrote: > On Tue, Feb 05, 2019 at 10:59:40AM -0800, Joe Perches wrote: > > On Tue, 2019-02-05 at 19:44 +0100, Greg Kroah-Hartman wrote: > > > On Tue, Feb 05, 2019 at 08:36:24PM +0530, Nishad Kamdar wrote: > > > >

Re: [PATCH] staging: rtl8192e: Fix space and suspect issue

2019-02-28 Thread Joe Perches
On Thu, 2019-02-28 at 19:07 +0100, Oscar Gomez Fuente wrote: > These changes fixed a checkpatch error for space required before the > open brace '{' as well as a warning for suspect code indent for > conditional statements. Simple enough, thanks. > diff --git a/drivers/staging/rtl8192e/rtllib_wx.

Re: [PATCH] hv: utils: fix coding style

2019-03-05 Thread Joe Perches
On Tue, 2019-03-05 at 17:45 -0600, Jesús Castro wrote: > Checkpatch script is showing a coding style error and is showing: > > ERROR: else should follow close brace '}' > + } > + else if (hvt->mode == HVUTIL_TRANSPORT_NETLINK) { > > This commit fixes the coding style, not a functional cha

Re: [PATCH 1/5] Staging: rtl8723bs: os_dep: Fix assignment in if condition

2019-03-09 Thread Joe Perches
On Sat, 2019-03-09 at 15:30 -0300, Guilherme Tadashi Maeoka wrote: > Fix an assignment in if condition. > > Signed-off-by: Guilherme Tadashi Maeoka > --- > drivers/staging/rtl8723bs/os_dep/osdep_service.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/stagin

Re: [PATCH net] staging: rtl8188eu: use is_zero_ether_addr() instead of memcmp()

2019-03-12 Thread Joe Perches
On Tue, 2019-03-12 at 14:29 +0800, maowenan wrote: > ping... > > On 2019/3/9 11:26, Mao Wenan wrote: > > Using is_zero_ether_addr() instead of directly use > > memcmp() to determine if the ethernet address is all > > zeros. [] > > diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme.c > > b/drive

Re: [PATCH net] staging: rtl8188eu: use is_zero_ether_addr() instead of memcmp()

2019-03-12 Thread Joe Perches
On Tue, 2019-03-12 at 14:58 +0800, maowenan wrote: > On 2019/3/12 14:35, Joe Perches wrote: > > On Tue, 2019-03-12 at 14:29 +0800, maowenan wrote: > > > ping... > > > > > > On 2019/3/9 11:26, Mao Wenan wrote: > > > > Using is_zero_ether_addr() inste

Re: [PATCH] spi: mediatek: Attempt to address style issues in spi-mt7621.c

2019-03-14 Thread Joe Perches
On Thu, 2019-03-14 at 15:07 +0100, Jean Delvare wrote: > My principle is that if a script > is present in the kernel tree then it can and should be maintained. If > it is deemed not worth the maintenance effort then it should be > deleted. I've suggested deleting Lindent in the past. https://lkml.

Peter Joe

2019-03-15 Thread Peter Joe
Dear, Did you receive the message i sent to you? Regards, Peter Joe ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Peter Joe

2019-03-15 Thread Peter Joe
Dear, Did you receive the message i sent to you? Regards, Peter Joe ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Peter Joe

2019-03-15 Thread Peter Joe
Dear, Did you receive the message i sent to you? Regards, Peter Joe ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH v3] staging: ralink-gdma: Use u32 over uint32_t

2019-03-22 Thread Joe Perches
On Fri, 2019-03-22 at 22:43 +0530, Bharath Vedartham wrote: > This fixes the checkpatch.pl warning: "Prefer u32 over uint32_t" Please run your proposed patches through checkpatch before submitting them. > Signed-off-by: Bharath Vedartham > --- > Changes since v2 > - Improved changelog >

Re: [PATCH v5 2/2] staging: iio: ad5933: move out of staging

2019-03-24 Thread Joe Perches
On Sun, 2019-03-24 at 16:38 +, Jonathan Cameron wrote: > > diff --git a/drivers/iio/impedance-analyzer/ad5933.c > > b/drivers/iio/impedance-analyzer/ad5933.c trivial note: > > +static void ad5933_calc_out_ranges(struct ad5933_state *st) > > +{ > > + int i; > > + unsigned int normalized_3

Re: [PATCH v2] staging: rtl8723bs: core: fix line over 80 characters warning

2019-03-28 Thread Joe Perches
On Wed, 2019-03-27 at 23:49 +0530, Anirudh Rayabharam wrote: > Checkpatch.pl complains that these lines are over 80 characters. Use the > "psecuritypriv" pointer for consistency, remove unnecessary parantheses > and fix the alignment. > > This patch just cleans up a condition, it doesn't affect ru

Re: [greybus-dev] [PATCH] Staging: greybus: usb: Fixed a coding style error

2019-03-31 Thread Joe Perches
On Sun, 2019-03-31 at 01:20 -0500, Alex Elder wrote: > On 3/31/19 1:04 AM, Joe Perches wrote: > > Blind adherence to 80 column limits leads to poor looking > > code. Especially with longish identifier lengths. > I agree. If it were me, I'd use a local variable. For exa

Re: [PATCH] Staging: greybus: usb: Fixed a coding style error

2019-03-31 Thread Joe Perches
On Sun, 2019-03-31 at 01:30 -0400, Will Cunningham wrote: > Line was >80 characters. [] > diff --git a/drivers/staging/greybus/usb.c b/drivers/staging/greybus/usb.c [] > @@ -169,8 +169,8 @@ static int gb_usb_probe(struct gbphy_device *gbphy_dev, > return -ENOMEM; > > connectio

Re: [PATCH] isdn: hysdn: Fix error spaces around '*'

2019-08-02 Thread Joe Perches
On Fri, 2019-08-02 at 14:55 -0700, Stephen Hemminger wrote: > On Fri, 2 Aug 2019 19:56:02 + > Jose Carlos Cazarin Filho wrote: > > > Fix checkpath error: > > CHECK: spaces preferred around that '*' (ctx:WxV) > > +extern hysdn_card *card_root;/* pointer to first card */ > > > > Signe

Re: [PATCH] isdn: hysdn: Fix error spaces around '*'

2019-08-03 Thread Joe Perches
On Sat, 2019-08-03 at 08:32 +0200, Greg KH wrote: > On Fri, Aug 02, 2019 at 07:56:02PM +, Jose Carlos Cazarin Filho wrote: > > Fix checkpath error: > > CHECK: spaces preferred around that '*' (ctx:WxV) > > +extern hysdn_card *card_root;/* pointer to first card */ [] > > diff --git a/dri

  1   2   3   4   5   6   7   8   9   10   >