[PATCH] drivers: staging: lustre: replace variable length array by dynamic allocation

2017-05-23 Thread Raphaël Beamonte
Fixes the following sparse warnings: drivers/staging/lustre/lustre/llite/xattr.c:89:62: warning: Variable length array is used. drivers/staging/lustre/lustre/llite/xattr.c:366:62: warning: Variable length array is used. Signed-off-by: Raphaël Beamonte --- drivers/staging/lustre/lustre/llite

[PATCH] drivers: staging: ccree: ISO C forbids casting to and from non-scalar

2017-05-23 Thread Raphaël Beamonte
: cast from non-scalar Signed-off-by: Raphaël Beamonte --- drivers/staging/ccree/ssi_hash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/ccree/ssi_hash.c b/drivers/staging/ccree/ssi_hash.c index 162d17dee2cd..8585f73161b3 100644 --- a/drivers/staging

[PATCH staging/rtl8712] staging: rtl8712: checkpatch cleanup: block comments using a trailing */

2016-09-09 Thread Raphaël Beamonte
Fix checkpatch.pl warning "Block comments use a trailing */ on a separate line" on multiple files of the driver by editing the affected comments. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8712/rtl8712_led.c | 12 -- drivers/staging/rtl8712/rtl8712_recv.c

[PATCHv4 2/2] staging: rtl8192u: r8192U_core: reuse local temporary variables to keep lines under 80 characters

2015-10-04 Thread Raphaël Beamonte
Reuse some local temporary variables to reduce line length under the maximum of 80 characters, as per the kernel code style. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/staging

[PATCHv4 1/2] staging: rtl8192u: r8192U_core: add temporary variables to keep lines under 80 characters

2015-10-04 Thread Raphaël Beamonte
Add some temporary variables to reduce line length under the maximum of 80 characters, as per the kernel code style. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 130 ++--- 1 file changed, 88 insertions(+), 42 deletions(-) diff --git

Re: [PATCHv3 02/15] staging: rtl8192u: r8192U_core: add temporary variables to keep lines under 80 characters

2015-09-21 Thread Raphaël Beamonte
2015-09-20 22:16 GMT-04:00 Greg Kroah-Hartman : > On Sun, Sep 20, 2015 at 01:14:14PM -0400, Raphaël Beamonte wrote: >> Add some temporary variables to reduce line length under the maximum >> of 80 characters, as per the kernel code style. >> >> Signed-off-by: Raphaël B

[PATCHv3 08/15] staging: rtl8192u: r8192U_core: rtl8192_process_phyinfo: rename variable slide_beacon_adc_pwdb_statistics to sb_stats

2015-09-20 Thread Raphaël Beamonte
Rename variable to a shorter name to allow easier code refactoring in following patch. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging

[PATCHv3 01/15] staging: rtl8192u: r8192U_core: add line breaks to keep lines under 80 characters

2015-09-20 Thread Raphaël Beamonte
Add line breaks in multiple lines to keep them under 80 characters, as to follow the kernel code style. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 608 ++--- 1 file changed, 409 insertions(+), 199 deletions(-) diff --git a/drivers

[PATCHv3 09/15] staging: rtl8192u: r8192U_core: rtl8192_process_phyinfo: remove unneeded variable

2015-09-20 Thread Raphaël Beamonte
Local variable last_beacon_adc_pwdb was used to store a value that wasn't used after. This patch removes that variable. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl

[PATCHv3 02/15] staging: rtl8192u: r8192U_core: add temporary variables to keep lines under 80 characters

2015-09-20 Thread Raphaël Beamonte
Add some temporary variables to reduce line length under the maximum of 80 characters, as per the kernel code style. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 139 ++--- 1 file changed, 94 insertions(+), 45 deletions(-) diff --git

[PATCHv3 04/15] staging: rtl8192u: r8192U_core: rtl8192_adapter_start: reorganize function

2015-09-20 Thread Raphaël Beamonte
Reverse conditions and use goto in the function rtl8192_adapter_start to have most of it under 80 characters per line. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 91 ++ 1 file changed, 47 insertions(+), 44 deletions(-) diff

[PATCHv3 03/15] staging: rtl8192u: r8192U_core: reverse conditions to get lines under 80 characters

2015-09-20 Thread Raphaël Beamonte
Reverse some conditions to clean the code and allow to have lines under 80 characters, as to follow the kernel code style. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 48 ++ 1 file changed, 25 insertions(+), 23 deletions(-) diff

[PATCHv3 10/15] staging: rtl8192u: r8192U_core: rtl8192_process_phyinfo: rename variable rfpath to rfp

2015-09-20 Thread Raphaël Beamonte
Rename variable to a shorter name to allow easier code refactoring in following patches. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 31 --- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/drivers/staging/rtl8192u

[PATCHv3 06/15] staging: rtl8192u: r8192U_core: rtl8192_process_phyinfo: rename variable pprevious_stats to prev_stats

2015-09-20 Thread Raphaël Beamonte
Rename variable to a shorter name to allow easier code refactoring in following patch. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 84 +- 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/drivers/staging/rtl8192u

[PATCHv3 05/15] staging: rtl8192u: r8192U_core: rtl8192_read_eeprom_info: reorganize function

2015-09-20 Thread Raphaël Beamonte
Refactor code to avoid multiple check of same boolean value, and to make the code clearer. This patches also implements the necessary changes for the code lines in this function to be under 80 chars. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 259

[PATCHv3 12/15] staging: rtl8192u: r8192U_core: rtl8192_tx: replace some inline conditions

2015-09-20 Thread Raphaël Beamonte
Replace some inline conditions by a full if-else statement to make the source clearer and follow the 80 characters kernel code style rule. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff

[PATCHv3 14/15] staging: rtl8192u: r8192U_core: replace else { if() {} } by else if () {}

2015-09-20 Thread Raphaël Beamonte
An else block only contained an if statement. Replace that else block by an else if block instead. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c

[PATCHv3 15/15] staging: rtl8192u: remove all code framed by symbol TO_DO_LIST

2015-09-20 Thread Raphaël Beamonte
The symbol TO_DO_LIST was used in the code to frame sections of code unused or unusable. This patch remove all code framed by that symbol in this driver. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/ieee80211/ieee80211.h | 4 +- drivers/staging/rtl8192u/ieee80211

[PATCHv3 13/15] staging: rtl8192u: r8192U_core: rtl8192_ioctl: reorganize function

2015-09-20 Thread Raphaël Beamonte
Reorganize function rtl8192_ioctl to replace a switch with only one case besides the default by an if statement. This also allows to follow the 80 characters kernel code style rule. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 141

[PATCHv3 00/15] staging: rtl8192u: code clean up

2015-09-20 Thread Raphaël Beamonte
reusing an existing variable (patch 02) Thanks, - R. Raphaël Beamonte (15): staging: rtl8192u: r8192U_core: add line breaks to keep lines under 80 characters staging: rtl8192u: r8192U_core: add temporary variables to keep lines under 80 characters staging: rtl8192u: r8192U_cor

[PATCHv3 11/15] staging: rtl8192u: r8192U_core: rtl8192_process_phyinfo: reorganize function

2015-09-20 Thread Raphaël Beamonte
Reorganize function to make it cleaner, and respect the 80 characters kernel code style rule. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 140 +++-- 1 file changed, 81 insertions(+), 59 deletions(-) diff --git a/drivers/staging

[PATCHv3 07/15] staging: rtl8192u: r8192U_core: rtl8192_process_phyinfo: rename variable slide_beacon_adc_pwdb_index to sb_index

2015-09-20 Thread Raphaël Beamonte
Rename variable to a shorter name to allow easier code refactoring in following patch. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers

Re: [PATCH] tools lib api fs: Store tracing mountpoint for better error message

2015-09-19 Thread Raphaël Beamonte
int = tracefs__mountpoint(); > - } > - > snprintf(buf, size, > "Error:\tNo permissions to read %s/%s\n" > "Hint:\tTry 'sudo mount -o remount,mode=755 %s'\n", > -

Re: [PATCH] tools lib api fs: Store tracing mountpoint for better error message

2015-09-19 Thread Raphaël Beamonte
2015-09-19 11:00 GMT-04:00 Jiri Olsa : > On Sat, Sep 19, 2015 at 08:50:19AM -0600, David Ahern wrote: >> On 9/19/15 8:47 AM, Jiri Olsa wrote: >> >> >diff --git a/tools/lib/api/fs/tracing_path.c >> >b/tools/lib/api/fs/tracing_path.c >> >index 38aca2dd1946..0406a7d5c891 100644 >> >--- a/tools/lib/ap

Re: [PATCHv2 03/16] staging: rtl8192u: r8192U_core: add temporary variables to keep lines under 80 characters

2015-09-17 Thread Raphaël Beamonte
2015-09-17 1:18 GMT-04:00 Greg Kroah-Hartman : > On Thu, Sep 17, 2015 at 01:06:33AM -0400, Raphaël Beamonte wrote: >> 2015-09-17 0:57 GMT-04:00 Greg Kroah-Hartman : >> >> >> @@ -1748,8 +1755,9 @@ static short rtl8192_usb_initendpoints(struct >> >> net_d

Re: [PATCHv2 03/16] staging: rtl8192u: r8192U_core: add temporary variables to keep lines under 80 characters

2015-09-16 Thread Raphaël Beamonte
2015-09-17 0:57 GMT-04:00 Greg Kroah-Hartman : >> @@ -1748,8 +1755,9 @@ static short rtl8192_usb_initendpoints(struct >> net_device *dev) >> oldaddr = priv->oldaddr; >> align = ((long)oldaddr) & 3; >> if (align) { >> - newaddr = oldadd

Re: [PATCH 4/5] perf tools: Propagate error info from tp_format

2015-09-14 Thread Raphaël Beamonte
2015-09-14 17:36 GMT-04:00 Arnaldo Carvalho de Melo : > Em Mon, Sep 14, 2015 at 04:59:41PM -0400, Raphaël Beamonte escreveu: >> 2015-09-14 16:53 GMT-04:00 Arnaldo Carvalho de Melo : >> > +++ b/tools/perf/util/evsel.c >> > @@ -234,7 +234,9 @@ struct perf_evsel *perf_

Re: [PATCH 4/5] perf tools: Propagate error info from tp_format

2015-09-14 Thread Raphaël Beamonte
2015-09-14 16:53 GMT-04:00 Arnaldo Carvalho de Melo : > Em Thu, Sep 10, 2015 at 10:24:52AM +0200, Jiri Olsa escreveu: >> On Wed, Sep 09, 2015 at 05:58:13PM -0300, Arnaldo Carvalho de Melo wrote: >> >> SNIP >> >> > This kind of stuff is ok, as evsel is a local variable and you kept the >> > interfac

Re: [PATCH] staging/rtl8192u: remove unused function

2015-09-14 Thread Raphaël Beamonte
2015-09-14 14:00 GMT-04:00 Nicolas Joseph : > Remove N_DBPSOfRate used in ComputeTxTime, remove by > commit 742728f97a99 ("staging: rtl8192u: remove unused function.") > > Signed-off-by: Nicolas Joseph > --- > drivers/staging/rtl8192u/r8192U_core.c | 44 > -- > 1

Re: [PATCH 5/5] perf tools: Enhance parsing events tracepoint error output

2015-09-11 Thread Raphaël Beamonte
2015-09-11 16:22 GMT-04:00 Arnaldo Carvalho de Melo : > Em Fri, Sep 11, 2015 at 03:56:44PM -0400, Raphaël Beamonte escreveu: >> Another possibility would be to have another perf command, sort of a >> "perf remountfs", to run with sudo and that would make itself b

Re: [PATCH 5/5] perf tools: Enhance parsing events tracepoint error output

2015-09-11 Thread Raphaël Beamonte
2015-09-11 14:55 GMT-04:00 Arnaldo Carvalho de Melo : > Em Fri, Sep 11, 2015 at 01:50:02PM -0400, Raphaël Beamonte escreveu: >> 2015-09-11 12:16 GMT-04:00 Jiri Olsa : >> > On Sat, Sep 12, 2015 at 01:09:31AM +0900, Namhyung Kim wrote: >> >> >> has a problem -

Re: [PATCH 5/5] perf tools: Enhance parsing events tracepoint error output

2015-09-11 Thread Raphaël Beamonte
2015-09-11 12:16 GMT-04:00 Jiri Olsa : > On Sat, Sep 12, 2015 at 01:09:31AM +0900, Namhyung Kim wrote: >> has a problem - if tracefs is mounted under debugfs, the access mode >> of debugfs also affects, so in this case I had to change it both for >> debugfs and tracefs.. > > > hum, I wonder the er

[PATCHv2 02/16] staging: rtl8192u: r8192U_core: add line breaks to keep lines under 80 characters

2015-09-11 Thread Raphaël Beamonte
Add line breaks in multiple lines to keep them under 80 characters, as to follow the kernel code style. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 626 ++--- 1 file changed, 421 insertions(+), 205 deletions(-) diff --git a/drivers

[PATCHv2 15/16] staging: rtl8192u: r8192U_core: replace else { if() {} } by else if () {}

2015-09-11 Thread Raphaël Beamonte
An else block only contained an if statement. Replace that else block by an else if block instead. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c

[PATCHv2 14/16] staging: rtl8192u: r8192U_core: rtl8192_ioctl: reorganize function

2015-09-11 Thread Raphaël Beamonte
Reorganize function rtl8192_ioctl to replace a switch with only one case besides the default by an if statement. This also allows to follow the 80 characters kernel code style rule. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 141

[PATCHv2 16/16] staging: rtl8192u: remove all code framed by symbol TO_DO_LIST

2015-09-11 Thread Raphaël Beamonte
The symbol TO_DO_LIST was used in the code to frame sections of code unused or unusable. This patch remove all code framed by that symbol in this driver. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/ieee80211/ieee80211.h | 4 +- drivers/staging/rtl8192u/ieee80211

[PATCHv2 13/16] staging: rtl8192u: r8192U_core: rtl8192_tx: replace some inline conditions

2015-09-11 Thread Raphaël Beamonte
Replace some inline conditions by a full if-else statement to make the source clearer and follow the 80 characters kernel code style rule. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff

[PATCHv2 10/16] staging: rtl8192u: r8192U_core: rtl8192_process_phyinfo: remove unneeded variable

2015-09-11 Thread Raphaël Beamonte
Local variable last_beacon_adc_pwdb was used to store a value that wasn't used after. This patch removes that variable. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl

[PATCHv2 11/16] staging: rtl8192u: r8192U_core: rtl8192_process_phyinfo: rename variable rfpath to rfp

2015-09-11 Thread Raphaël Beamonte
Rename variable to a shorter name to allow easier code refactoring in following patches. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 31 --- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/drivers/staging/rtl8192u

[PATCHv2 12/16] staging: rtl8192u: r8192U_core: rtl8192_process_phyinfo: reorganize function

2015-09-11 Thread Raphaël Beamonte
Reorganize function to make it cleaner, and respect the 80 characters kernel code style rule. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 140 +++-- 1 file changed, 81 insertions(+), 59 deletions(-) diff --git a/drivers/staging

[PATCHv2 09/16] staging: rtl8192u: r8192U_core: rtl8192_process_phyinfo: rename variable slide_beacon_adc_pwdb_statistics to sb_stats

2015-09-11 Thread Raphaël Beamonte
Rename variable to a shorter name to allow easier code refactoring in following patch. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging

[PATCHv2 01/16] staging: rtl8192u: r8192U_core: fix comments lines over 80 characters

2015-09-11 Thread Raphaël Beamonte
Move, replace and reorganize comments to stay under 80 characters per line, as to follow the kernel code style. Some unuseful comments have been removed. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 232 ++--- 1 file changed, 153

[PATCHv2 06/16] staging: rtl8192u: r8192U_core: rtl8192_read_eeprom_info: reorganize function

2015-09-11 Thread Raphaël Beamonte
Refactor code to avoid multiple check of same boolean value, and to make the code clearer. This patches also implements the necessary changes for the code lines in this function to be under 80 chars. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 259

[PATCHv2 07/16] staging: rtl8192u: r8192U_core: rtl8192_process_phyinfo: rename variable pprevious_stats to prev_stats

2015-09-11 Thread Raphaël Beamonte
Rename variable to a shorter name to allow easier code refactoring in following patch. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 84 +- 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/drivers/staging/rtl8192u

[PATCHv2 08/16] staging: rtl8192u: r8192U_core: rtl8192_process_phyinfo: rename variable slide_beacon_adc_pwdb_index to sb_index

2015-09-11 Thread Raphaël Beamonte
Rename variable to a shorter name to allow easier code refactoring in following patch. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers

[PATCHv2 04/16] staging: rtl8192u: r8192U_core: reverse conditions to get lines under 80 characters

2015-09-11 Thread Raphaël Beamonte
Reverse some conditions to clean the code and allow to have lines under 80 characters, as to follow the kernel code style. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 48 ++ 1 file changed, 25 insertions(+), 23 deletions(-) diff

[PATCHv2 05/16] staging: rtl8192u: r8192U_core: rtl8192_adapter_start: reorganize function

2015-09-11 Thread Raphaël Beamonte
Reverse conditions and use goto in the function rtl8192_adapter_start to have most of it under 80 characters per line. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 91 ++ 1 file changed, 47 insertions(+), 44 deletions(-) diff

[PATCHv2 03/16] staging: rtl8192u: r8192U_core: add temporary variables to keep lines under 80 characters

2015-09-11 Thread Raphaël Beamonte
Add some temporary variables to reduce line length under the maximum of 80 characters, as per the kernel code style. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 139 ++--- 1 file changed, 94 insertions(+), 45 deletions(-) diff --git

[PATCHv2 00/16] staging: rtl8192u: code clean up

2015-09-11 Thread Raphaël Beamonte
original content. The last patch gets rid of the last WARNING of checkpatch about the 80 lines, as well as the TO_DO_LIST macro that was used in that module to comment out unused or unusable code. Thanks, - R. [1]: https://lkml.org/lkml/2015/8/19/173 Raphaël Beamonte (16): staging: rtl8192u

Re: [PATCH 3/5] perf tools: Propagate error info for the tracepoint parsing

2015-09-08 Thread Raphaël Beamonte
ME ':' PE_NAME > snprintf(&sys_name, 128, "%s-%s", $1, $3); > > ALLOC_LIST(list); > - ABORT_ON(parse_events_add_tracepoint(list, &data->idx, &sys_name, > $5)); > + ABORT_ON(parse_events_add_tracepoint(list, &data->idx, &a

Re: [PATCH 1/5] tools: Add err.h with ERR_PTR PTR_ERR interface

2015-09-08 Thread Raphaël Beamonte
changed, 49 insertions(+) > create mode 100644 tools/include/linux/err.h Reviewed-by: Raphaël Beamonte > > diff --git a/tools/include/linux/err.h b/tools/include/linux/err.h > new file mode 100644 > index ..c9ada48f5156 > --- /dev/null > +++ b/tools/include/linu

Re: [PATCH 1/5] tools: Add err.h with ERR_PTR PTR_ERR interface

2015-09-08 Thread Raphaël Beamonte
2015-09-08 17:06 GMT-04:00 Arnaldo Carvalho de Melo : > Em Tue, Sep 08, 2015 at 04:22:39PM -0400, Raphaël Beamonte escreveu: >> 2015-09-07 4:38 GMT-04:00 Jiri Olsa : >> > Adding part of the kernel's interface: >> > inline void * __must_check ERR_PTR

Re: [PATCH 1/5] tools: Add err.h with ERR_PTR PTR_ERR interface

2015-09-08 Thread Raphaël Beamonte
2015-09-08 16:22 GMT-04:00 Raphaël Beamonte : > Perhaps a dumb question, but it seems the code is exactly the same as > in linux/err.h besides the part of the comment you added. Why not > using that file directly in the other patches then? I meant include/linux/err.h, from git r

Re: [PATCH 1/5] tools: Add err.h with ERR_PTR PTR_ERR interface

2015-09-08 Thread Raphaël Beamonte
2015-09-07 4:38 GMT-04:00 Jiri Olsa : > Adding part of the kernel's interface: > inline void * __must_check ERR_PTR(long error); > inline long __must_check PTR_ERR(__force const void *ptr); > inline bool __must_check IS_ERR(__force const void *ptr); > > it will be used to propagate error

[PATCHv2] staging: rtl8192u: r8192U_core: fix use ether_addr_copy() over memcpy() code style issue

2015-09-05 Thread Raphaël Beamonte
drivers/net/ethernet/intel/i40e/i40e_main.c drivers/net/ethernet/mellanox/mlx5/core/en_main.c drivers/net/usb/lan78xx.c net/8021q/vlan_dev.c net/batman-adv/soft-interface.c net/dsa/slave.c Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 2 +- 1 file changed, 1

Re: [PATCHv2 18/19] staging: rtl8192u: r8192U_core: fix use ether_addr_copy() over memcpy() code style issue

2015-09-05 Thread Raphaël Beamonte
2015-09-03 13:00 GMT-04:00 Greg Kroah-Hartman : > You need to prove that they are aligned before I can take this patch :( Right! I looked at those structs using pahole. The structs used are net_device from include/linux/netdevice.h and sockaddr from include/linux/socket.h, in which we use the ele

Re: [PATCHv4 1/2] staging: wilc1000: remove FREE_WILC_BUFFER()

2015-09-05 Thread Raphaël Beamonte
Oh well. Actually you did it. I answered while pulling the git... Sorry for that unuseful mail! :) 2015-09-05 12:25 GMT-04:00 Raphaël Beamonte : > 2015-09-02 21:19 GMT-04:00 Greg Kroah-Hartman : >> Turns out this file is never even built, you should just remove it :) > > You'r

Re: [PATCHv4 1/2] staging: wilc1000: remove FREE_WILC_BUFFER()

2015-09-05 Thread Raphaël Beamonte
2015-09-02 21:19 GMT-04:00 Greg Kroah-Hartman : > Turns out this file is never even built, you should just remove it :) You're right, although it seems that is one of the "To-dos" of that module, as the references I find about the config variable to allow the compiling of that file is the followin

Re: [PATCH 15/31] tools lib api fs: Add FSTYPE__mount() method

2015-09-04 Thread Raphaël Beamonte
2015-09-04 12:44 GMT-04:00 Arnaldo Carvalho de Melo : > From: Jiri Olsa > > Adding FSTYPE__mount (where FSTYPE is, as of now, one of sysfs, procfs, > debugfs, tracefs) method that tries to mount the filesystem in case no > mount of FSTYPE is found. > > Signed-off-by: Jiri Olsa > Cc: Raphael Beamo

Re: [PATCH 10/31] tools lib api fs: Move debugfs__strerror_open into tracing_path.c object

2015-09-04 Thread Raphaël Beamonte
2015-09-04 12:44 GMT-04:00 Arnaldo Carvalho de Melo : > From: Jiri Olsa > > Moving debugfs__strerror_open out of api/fs/debugfs.c, because it's not > debugfs specific. It'll be changed to consider tracefs mount as well in > following patches. > > Renaming it into tracing_path__strerror_open_tp to

Re: [PATCH 11/15] tools lib api: Add mount support for fs

2015-09-04 Thread Raphaël Beamonte
s/fs.h | 15 +++ > 2 files changed, 50 insertions(+), 9 deletions(-) The patch is fine by me! My Reviewed-by can be added if wanted :o) Reviewed-by: Raphaël Beamonte -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a messag

Re: [PATCH 11/15] tools lib api: Add mount support for fs

2015-09-04 Thread Raphaël Beamonte
2015-09-02 3:56 GMT-04:00 Jiri Olsa : > Adding name__mount (where name is in sysfs,procfs,debugfs,tracefs) > interface that tries to mount the filesystem in case no mount is found. > > Link: http://lkml.kernel.org/n/tip-ja49vwfiq2qqkmoxx9yk2...@git.kernel.org > Signed-off-by: Jiri Olsa > --- > to

Re: [PATCH 05/15] tools lib api: Move debugfs__strerror_open into tracing_path.c object

2015-09-04 Thread Raphaël Beamonte
cing_path.h | 3 +++ > tools/perf/builtin-trace.c | 5 ++-- > 4 files changed, 60 insertions(+), 54 deletions(-) Reviewed-by: Raphaël Beamonte -- 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 05/15] tools lib api: Move debugfs__strerror_open into tracing_path.c object

2015-09-04 Thread Raphaël Beamonte
2015-09-02 9:12 GMT-04:00 Arnaldo Carvalho de Melo : > Em Wed, Sep 02, 2015 at 09:56:35AM +0200, Jiri Olsa escreveu: > Humm, here I think that "_path" may look excessive... But tracing_path__ > better > than debugfs__, so its progress, applying, if we get a better name, we > can change this later.

Re: [PATCH 04/15] perf tools: Move tracing_path interface into api/fs/tracing_path.c

2015-09-04 Thread Raphaël Beamonte
--- >> tools/perf/util/util.h | 6 --- >> 9 files changed, 101 insertions(+), 79 deletions(-) >> create mode 100644 tools/lib/api/fs/tracing_path.c >> create mode 100644 tools/lib/api/fs/tracing_path.h > > Reviewed-by: Mat

[PATCHv4 2/2] staging: wilc1000: replace MALLOC_WILC_BUFFER() macro to avoid possible memory leak

2015-08-18 Thread Raphaël Beamonte
The MALLOC_WILC_BUFFER() macro was using a return statement, and didn't take care of possible memory leaks and subsequent bugs when it was failing after succeeding some allocations. This patch corrects this behavior. Signed-off-by: Raphaël Beamonte --- drivers/staging/wil

[PATCHv4 1/2] staging: wilc1000: remove FREE_WILC_BUFFER()

2015-08-18 Thread Raphaël Beamonte
It was just a wrapper around kfree(), so call that instead. Signed-off-by: Raphaël Beamonte --- drivers/staging/wilc1000/wilc_exported_buf.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/staging/wilc1000/wilc_exported_buf.c b/drivers/staging/wilc1000

[PATCHv4 0/2] staging: wilc1000: code improvements

2015-08-18 Thread Raphaël Beamonte
Hi, As requested, here are the two remaining ready patches of this patchset. I pulled and rebased against staging-testing just now. They should thus be usable without problem! Thanks, Raphaël Raphaël Beamonte (2): staging: wilc1000: remove FREE_WILC_BUFFER() staging: wilc1000: replace

Re: [PATCH] perf: fix confusing messages when not able to read trace events files

2015-08-18 Thread Raphaël Beamonte
2015-08-18 7:43 GMT-04:00 Matt Fleming : >> - perror("Can't open event dir"); >> + debugfs__strerror_open( >> + errno, errbuf, sizeof(errbuf), >> + evt_path + strlen(debugfs_mountpoint) + 1); > > The way the filename is passed seems a

Re: [PATCHv3] staging: wilc1000: replace MALLOC_WILC_BUFFER() macro to avoid possible memory leak

2015-08-18 Thread Raphaël Beamonte
2015-08-18 5:15 GMT-04:00 Dan Carpenter : > To be honest, I have lost track of this patchset. If you are planning > to redo the other patches can you send it in a new thread? Actually, Greg already included the "return statement" and "DECLARE_WILC_BUFFER" ones. The replacement of printk by netdev

[PATCHv2 02/19] staging: rtl8192u: r8192U_core: fix space before close parenthesis code style error

2015-08-18 Thread Raphaël Beamonte
A space existed before the close parenthesis of an if statement. This patch removes it to follow the kernel code style. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8192u

[PATCHv2 00/19] staging: rtl8192u: r8192U_core: fix all checkpatch.pl reports

2015-08-18 Thread Raphaël Beamonte
nings, 4909 lines checked And after patches: total: 0 errors, 0 warnings, 5379 lines checked Please let me know if there is anything else I can do to improve these patches! Thanks, Raphaël Raphaël Beamonte (19): staging: rtl8192u: r8192U_core: fix switch and case indent code style

[PATCHv2 07/19] staging: rtl8192u: r8192U_core: clean C99 // comments

2015-08-18 Thread Raphaël Beamonte
Replace C99 // comments by /* comments */ to follow the kernel code style. Remove some unuseful comments. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 636 - 1 file changed, 316 insertions(+), 320 deletions(-) diff --git a/drivers

[PATCHv2 05/19] staging: rtl8192u: r8192U_core: fix missing struct leading to consistent spacing code style error

2015-08-18 Thread Raphaël Beamonte
A missing struct keyword in variable declaration triggered a need consistent spacing around '*' code style error. The struct keyword thus has been added everywhere for the rtl8192_rx_info struct, and therefore its typedef removed as not needed anymore. Signed-off-by: Raphaë

[PATCHv2 09/19] staging: rtl8192u: r8192U_core: remove return statement of void function

2015-08-18 Thread Raphaël Beamonte
void function return statement was not useful in this case. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r8192U_core.c index 2ab0a98..90c5907

[PATCHv2 04/19] staging: rtl8192u: r8192U_core: fix else following close brace code style error

2015-08-18 Thread Raphaël Beamonte
Fix "else should follow close brace" checkpatch error. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r8192U_core.c ind

[PATCHv2 14/19] staging: rtl8192u: r8192U_core: fix unnecessary else after return code style issue

2015-08-18 Thread Raphaël Beamonte
An else statement is not useful after a return. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 31 ++- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u

[PATCHv2 11/19] staging: rtl8192u: r8192U_core: remove forward declarations in .c file

2015-08-18 Thread Raphaël Beamonte
Checkpatch was giving a "externs should be avoided in .c files" because of these forward declarations. As these were not useful in this case, they have been removed. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 6 -- 1 file changed, 6 deletions(-)

[PATCHv2 15/19] staging: rtl8192u: r8192U_core: fix unnecessary whitespace code style issue

2015-08-18 Thread Raphaël Beamonte
Whitespaces are not necessary before a quoted newline. Remove those. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u

[PATCHv2 10/19] staging: rtl8192u: r8192U_core: fix unecessary braces code style issue

2015-08-18 Thread Raphaël Beamonte
braces {} are not necessary for any arm of a statement containing one statement on each side. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c b

[PATCHv2 12/19] staging: rtl8192u: r8192U_core: fix unnecessary check before kfree code style issue

2015-08-18 Thread Raphaël Beamonte
kfree(NULL) is safe and the checks were not required. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r8192U_core.c

[PATCHv2 06/19] staging: rtl8192u: r8192U_core: whitespace neatening to fix consistent spacing code style errors

2015-08-18 Thread Raphaël Beamonte
Clean-up the file by using a cleaner spacing around symbols and words. Mostly use the automatic checkpatch whitespacing fixes. This takes care of the consistent spacing errors reported by checkpatch. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 288

[PATCHv2 13/19] staging: rtl8192u: r8192U_core: fix unnecessary parentheses code style issue

2015-08-18 Thread Raphaël Beamonte
Two sets of parentheses were used to contain the same statement. In those cases, one of them has been removed, as unnecessary. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging

[PATCHv2 16/19] staging: rtl8192u: r8192U_core: fix missing blank line after declarations code style issue

2015-08-18 Thread Raphaël Beamonte
Adds whitespaces to separate the variables declarations and the function content. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 44 +++--- 1 file changed, 41 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8192u

[PATCHv2 19/19] staging: rtl8192u: r8192U_core: fix line over 80 characters code style issue

2015-08-18 Thread Raphaël Beamonte
Light code refactoring to keep the lines under 80 characters to follow the kernel code style. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 1248 ++-- 1 file changed, 850 insertions(+), 398 deletions(-) diff --git a/drivers/staging

[PATCHv2 18/19] staging: rtl8192u: r8192U_core: fix use ether_addr_copy() over memcpy() code style issue

2015-08-18 Thread Raphaël Beamonte
Prefer ether_addr_copy() over memcpy() if the Ethernet addresses are __aligned(2) Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u

[PATCHv2 08/19] staging: rtl8192u: r8192U_core: include linux/uaccess.h instead of asm/uaccess.h

2015-08-18 Thread Raphaël Beamonte
Use #include instead of Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r8192U_core.c index 9a658b4..2ab0a98 100644 --- a/drivers

[PATCHv2 17/19] staging: rtl8192u: r8192U_core: fix quoted string split across lines code style issue

2015-08-18 Thread Raphaël Beamonte
Quoted strings should not be split to help text grep in the source. All quoted strings that were split have thus been merged to one unique quoted string each to follow the code style. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 8 1 file changed, 4

[PATCHv2 03/19] staging: rtl8192u: r8192U_core: fix code indent using spaces code style error

2015-08-18 Thread Raphaël Beamonte
Fix "code indent should use tabs where possible" checkpatch error Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r8192U_co

[PATCHv2 01/19] staging: rtl8192u: r8192U_core: fix switch and case indent code style error

2015-08-18 Thread Raphaël Beamonte
Some switch and case were not be at the same indent level. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 190 - 1 file changed, 95 insertions(+), 95 deletions(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers

Re: [PATCH 02/20] staging: rtl8192u: r8192U_core: fix consistent spacing code style error

2015-08-17 Thread Raphaël Beamonte
2015-08-18 1:44 GMT-04:00 Sudip Mukherjee : > I think that will be better, since you are sending the patch for > consistent spacing. Actually, going through the bunch of patches, it seems that the whitespace neatening one is taking care of that. That one patch was mostly about taking care of the c

Re: [PATCH 12/20] staging: rtl8192u: r8192U_core: fix externs in .c file code style issue

2015-08-17 Thread Raphaël Beamonte
2015-08-18 1:30 GMT-04:00 Sudip Mukherjee : > These are not externs. These are forward declarations. I copied the message from checkpatch. Will edit that to make it more accurate! Thanks, Raphaël -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message t

Re: [PATCH 02/20] staging: rtl8192u: r8192U_core: fix consistent spacing code style error

2015-08-17 Thread Raphaël Beamonte
2015-08-18 1:02 GMT-04:00 Sudip Mukherjee : > since you are modifying these lines for consistent spacing, it will be > better to have: > (priv->ShortRetryLimit << TCR_SRL_OFFSET) | // Short retry limit > This should be: > priv->eeprom_CustomerID = eprom_read(dev, (EEPROM_Customer_ID>>1)) >>

Re: [PATCHv3] staging: wilc1000: use netdev_* instead of printk

2015-08-17 Thread Raphaël Beamonte
2015-08-18 0:24 GMT-04:00 Sudip Mukherjee : >> + netdev_err("[Sendconfigpkt]Get Timed out\n"); > This will not compile. you can not just replace printk with > netdev_*, you need to mention a net_device. You're right! I'm making a lot of mistakes. It seems I called the m

Re: [PATCHv2 5/5] staging: wilc1000: replace MALLOC_WILC_BUFFER() macro to avoid possible memory leak

2015-08-17 Thread Raphaël Beamonte
2015-08-17 15:41 GMT-04:00 Arend van Spriel : > Probable MACRO_WILC_BUFFER should be MALLOC_WILC_BUFFER here. Good catch! > There is really no need to print an error message here. kmalloc will blurb > enough info when it fails. Ok! > So these buffers are globals? So does this driver support mul

[PATCHv3] staging: wilc1000: replace MALLOC_WILC_BUFFER() macro to avoid possible memory leak

2015-08-17 Thread Raphaël Beamonte
The MALLOC_WILC_BUFFER() macro was using a return statement, and didn't take care of possible memory leaks and subsequent bugs when it was failing after succeeding some allocations. This patch corrects this behavior. Signed-off-by: Raphaël Beamonte --- drivers/staging/wil

[PATCHv3] staging: wilc1000: use netdev_* instead of printk

2015-08-17 Thread Raphaël Beamonte
Signed-off-by: Raphaël Beamonte --- drivers/staging/wilc1000/coreconfigurator.c | 4 ++-- drivers/staging/wilc1000/linux_wlan.c| 8 drivers/staging/wilc1000/linux_wlan_common.h | 28 ++-- drivers/staging/wilc1000/linux_wlan_sdio.c | 2 +- drivers

[PATCHv2 3/5] staging: wilc1000: remove DECLARE_WILC_BUFFER()

2015-08-17 Thread Raphaël Beamonte
It was just a wrapper to initialize a variable. Initialize it directly instead. Signed-off-by: Raphaël Beamonte --- drivers/staging/wilc1000/wilc_exported_buf.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/staging/wilc1000/wilc_exported_buf.c b/drivers

[PATCHv2 5/5] staging: wilc1000: replace MALLOC_WILC_BUFFER() macro to avoid possible memory leak

2015-08-17 Thread Raphaël Beamonte
The MACRO_WILC_BUFFER() macro was using a return statement, and didn't take care of possible memory leaks and subsequent bugs when it was failing after succeeding some allocations. This patch corrects this behavior. Signed-off-by: Raphaël Beamonte --- drivers/staging/wil

[PATCHv2 1/5] staging: wilc1000: remove void function return statements that are not useful

2015-08-17 Thread Raphaël Beamonte
Signed-off-by: Raphaël Beamonte --- drivers/staging/wilc1000/host_interface.c| 4 drivers/staging/wilc1000/linux_wlan.c| 1 - drivers/staging/wilc1000/wilc_exported_buf.c | 4 +--- drivers/staging/wilc1000/wilc_wlan.c | 3 --- drivers/staging/wilc1000/wilc_wlan_cfg.c

  1   2   >