[PATCH v2] staging: rtl8188eu: remove unused function _linked_rx_signal_strehgth_display

2017-01-04 Thread Luca Ceresoli
: de...@driverdev.osuosl.org Signed-off-by: Luca Ceresoli <l...@lucaceresoli.net> --- Changes v1 -> v2: - rebase on current staging/staging-next, fix conflicts - mention the commit that removed bRxRSSIDisplay since it's now committed on staging --- drivers/staging/rtl8188eu/core/rtw_

[PATCH 2/3] staging: rtl8188eu: remove unused function _linked_rx_signal_strehgth_display

2016-12-29 Thread Luca Ceresoli
Not referenced anymore since the removal of field bRxRSSIDisplay in struct adapter. Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Cc: Larry Finger <larry.fin...@lwfinger.net> Cc: Ivan Safonov <insafo...@gmail.com> Cc: de...@driverdev.osuosl.org Signed-off-by

[PATCH 3/3] staging: rtl8188eu: remove unused members from struct recv_priv

2016-12-29 Thread Luca Ceresoli
that is being removed, so remove it as well. Also fix coding style issues in the touched lines. Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Cc: Larry Finger <larry.fin...@lwfinger.net> Cc: Ivan Safonov <insafo...@gmail.com> Cc: de...@driverdev.osuosl.org Signed-off-by: Luca

[PATCH 1/3] staging: rtl8188eu: remove unused field bRxRSSIDisplay in struct adapter

2016-12-29 Thread Luca Ceresoli
well. Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Cc: Larry Finger <larry.fin...@lwfinger.net> Cc: Ivan Safonov <insafo...@gmail.com> Cc: de...@driverdev.osuosl.org Signed-off-by: Luca Ceresoli <l...@lucaceresoli.net> --- drivers/staging/rtl8188eu/core/rtw_m

[PATCH v3 4/6] staging: rtl8188eu: remove rtw_proc_{init,remove}_one

2016-09-06 Thread Luca Ceresoli
(in a proper way) the mentioned debugging features, they can still fetch this code from the git history. Signed-off-by: Luca Ceresoli <l...@lucaceresoli.net> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Cc: Kyle Kuffermann <kyle.kufferm...@gmail.com> Cc: Binoy Jayan <binoy.ja...

[PATCH v3 6/6] staging: rtl8188eu: remove unused debugging functions

2016-09-06 Thread Luca Ceresoli
These functions were only mentioned in the rtw_proc_init_one() function in drivers/staging/rtl8188eu/os_dep/os_intfs.c, which was under #if 0 and has now been removed completely. As they are not used anywhere, and also violate the coding style rules, remove them. Signed-off-by: Luca Ceresoli &l

[PATCH v3 2/6] staging: rtl8188eu: remove unimplemented functions declaration

2016-09-06 Thread Luca Ceresoli
These functions have been declared without any implementation since the first commit (58c434013a22fccfdb14abc2bb8408ca29073b76) and there has been no mention of them in following commits. Signed-off-by: Luca Ceresoli <l...@lucaceresoli.net> Cc: Greg Kroah-Hartman <gre...@linuxfoundatio

[PATCH v3 1/6] staging: rtl8723au: remove unimplemented functions declaration

2016-09-06 Thread Luca Ceresoli
These functions have been declared without any implementation since the first commit (364e30ebd2dbaccba430c603da03e68746eb932a) and there has been no mention of them in following commits. Signed-off-by: Luca Ceresoli <l...@lucaceresoli.net> Cc: Larry Finger <larry.fin...@lwfinger.net

[PATCH v3 5/6] staging: rtl8188eu: remove useless include

2016-09-06 Thread Luca Ceresoli
Since the removal of rtw_proc_init_one() the proc filesystem is not mentioned in this driver. So this include becomes useless. Signed-off-by: Luca Ceresoli <l...@lucaceresoli.net> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Cc: Arnd Bergmann <a...@arndb.de> Cc: Bin

[PATCH v3 3/6] staging: rtl8188eu: declare internal function as static

2016-09-06 Thread Luca Ceresoli
This function is only used inside rtw_recv.c. Which is quite logical, since it's a timer callback: it is passed as the _fn argument to setup_timer(). So it is internal to rtw_recv.c and should be static. Signed-off-by: Luca Ceresoli <l...@lucaceresoli.net> Cc: Greg Kroah-Hartma

Re: [PATCH v2 1/6] rtl8723au: remove declaration of unimplemented functions

2016-09-04 Thread Luca Ceresoli
Dear Kalle, thanks for your feedback. On 02/09/2016 18:18, Kalle Valo wrote: > Luca Ceresoli <l...@lucaceresoli.net> writes: > >> These functions have been declared without any implementation since >> the first commit (364e30ebd2dbaccba430c603da03e68746eb932a) and ther

[PATCH v2 5/6] rtl8188eu: remove useless include

2016-09-02 Thread Luca Ceresoli
Since the removal of rtw_proc_init_one() the proc filesystem is not mentioned in this driver. So this include becomes useless. Signed-off-by: Luca Ceresoli <l...@lucaceresoli.net> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Cc: Arnd Bergmann <a...@arndb.de> Cc: Bin

[PATCH v2 6/6] rtl8188eu: remove unused debugging functions

2016-09-02 Thread Luca Ceresoli
These functions were only mentioned in the rtw_proc_init_one() function in drivers/staging/rtl8188eu/os_dep/os_intfs.c, which was under #if 0 and has now been removed completely. As they are not used anywhere, and also violate the coding style rules, remove them. Signed-off-by: Luca Ceresoli &l

[PATCH v2 4/6] rtl8188eu: remove rtw_proc_init_one and rtw_proc_remove_one

2016-09-02 Thread Luca Ceresoli
(in a proper way) the mentioned debugging features, they can still fetch this code from the git history. Signed-off-by: Luca Ceresoli <l...@lucaceresoli.net> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Cc: Kyle Kuffermann <kyle.kufferm...@gmail.com> Cc: Binoy Jayan <binoy.ja...

[PATCH v2 2/6] rtl8188eu: remove declaration of unimplemented functions

2016-09-02 Thread Luca Ceresoli
These functions have been declared without any implementation since the first commit (58c434013a22fccfdb14abc2bb8408ca29073b76) and there has been no mention of them in following commits. Signed-off-by: Luca Ceresoli <l...@lucaceresoli.net> Cc: Greg Kroah-Hartman <gre...@linuxfoundatio

[PATCH v2 3/6] rtl8188eu: declare internal function as static

2016-09-02 Thread Luca Ceresoli
This function is only used inside rtw_recv.c. Which is quite logical, since it's a timer callback: it is passed as the _fn argument to setup_timer(). So it is internal to rtw_recv.c and should be static. Signed-off-by: Luca Ceresoli <l...@lucaceresoli.net> Cc: Greg Kroah-Hartma

[PATCH v2 1/6] rtl8723au: remove declaration of unimplemented functions

2016-09-02 Thread Luca Ceresoli
These functions have been declared without any implementation since the first commit (364e30ebd2dbaccba430c603da03e68746eb932a) and there has been no mention of them in following commits. Signed-off-by: Luca Ceresoli <l...@lucaceresoli.net> Cc: Larry Finger <larry.fin...@lwfinger.net

Re: [PATCH 3/6] rtl8188eu: declare internal function as static

2016-08-28 Thread Luca Ceresoli
Dear Andy, thanks for your review. On 28/08/2016 14:28, Andy Shevchenko wrote: > On Sat, 2016-08-27 at 14:40 +0200, Luca Ceresoli wrote: > > Put here few words _why_ you are doing this. I'm doing it because this function is only used inside rtw_recv.c. Which is quite logical, s

[PATCH 3/6] rtl8188eu: declare internal function as static

2016-08-27 Thread Luca Ceresoli
Signed-off-by: Luca Ceresoli <l...@lucaceresoli.net> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Cc: Bhaktipriya Shridhar <bhaktipriy...@gmail.com> Cc: Andy Shevchenko <andriy.shevche...@linux.intel.com> Cc: Geliang Tang <geliangt...@163.com> Cc: Jakub Sit

[PATCH 2/6] rtl8188eu: remove declaration of unimplemented functions

2016-08-27 Thread Luca Ceresoli
Signed-off-by: Luca Ceresoli <l...@lucaceresoli.net> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Cc: Kyle Kuffermann <kyle.kufferm...@gmail.com> Cc: linux-ker...@vger.kernel.org --- drivers/staging/rtl8188eu/include/recv_osdep.h | 4 1 file changed, 4 deleti

[PATCH 6/6] rtl8188eu: remove unused debugging functions

2016-08-27 Thread Luca Ceresoli
These functions were only mentioned in the rtw_proc_init_one() function in drivers/staging/rtl8188eu/os_dep/os_intfs.c, which was under #if 0 and has now been removed completely. Signed-off-by: Luca Ceresoli <l...@lucaceresoli.net> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org&

[PATCH 5/6] rtl8188eu: remove useless include

2016-08-27 Thread Luca Ceresoli
The proc filesystem is not used in this driver. Signed-off-by: Luca Ceresoli <l...@lucaceresoli.net> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Cc: Arnd Bergmann <a...@arndb.de> Cc: Binoy Jayan <binoy.ja...@linaro.org> Cc: Anish Bhatt <an...@gatech.edu> Cc:

[PATCH 4/6] rtl8188eu: remove rtw_proc_init_one and rtw_proc_remove_one

2016-08-27 Thread Luca Ceresoli
want to implement (in a proper way) the mentioned debugging features, they can still fetch these functions from the git history. Signed-off-by: Luca Ceresoli <l...@lucaceresoli.net> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Cc: Kyle Kuffermann <kyle.kufferm...@gmail.com&g

[PATCH 1/6] rtl8723au: remove declaration of unimplemented functions

2016-08-27 Thread Luca Ceresoli
Signed-off-by: Luca Ceresoli <l...@lucaceresoli.net> Cc: Larry Finger <larry.fin...@lwfinger.net> Cc: Jes Sorensen <jes.soren...@redhat.com> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Cc: linux-wirel...@vger.kernel.org Cc: linux-ker...@vger.kernel.org --- d

Re: [PATCH 1/6] staging: rtl8188eu: add spaces around binary '*'

2016-02-08 Thread Luca Ceresoli
Dear Greg, Greg Kroah-Hartman wrote: On Wed, Dec 02, 2015 at 10:54:00PM +0100, Luca Ceresoli wrote: Fix checkpatch issue: CHECK: spaces preferred around that '*' (ctx:VxV) Signed-off-by: Luca Ceresoli <l...@lucaceresoli.net> Cc: Larry Finger <larry.fin...@lwfinger.net> Cc

[PATCH 2/6] staging: rtl8188eu: don't cast to void* when calling memset()

2015-12-02 Thread Luca Ceresoli
The first argument to memset() is (void *), the explicit typecasts are not needed. They just make code less readable. Signed-off-by: Luca Ceresoli <l...@lucaceresoli.net> Cc: Larry Finger <larry.fin...@lwfinger.net> Cc: Greg Kroah-Hartman <gre...@linux.com> --- drivers/stag

[PATCH 5/6] staging: rtl8188eu: rename camelcase bAcceptAddbaReq

2015-12-02 Thread Luca Ceresoli
There is such a field both in struct mlme_ext_info and in struct registry_priv. Rename both. Also fix checkpatch issue in the lines touched: WARNING: line over 80 characters Signed-off-by: Luca Ceresoli <l...@lucaceresoli.net> Cc: Larry Finger <larry.fin...@lwfinger.net> Cc: Greg K

[PATCH 6/6] staging: rtl8188eu: rtw_mlme_ext.c: simplify call to issue_action_BA()

2015-12-02 Thread Luca Ceresoli
Using the ternary operator allows to more concisely write the same code, and to stay within 80 characters without even increasing the number of lines. Signed-off-by: Luca Ceresoli <l...@lucaceresoli.net> Cc: Larry Finger <larry.fin...@lwfinger.net> Cc: Greg Kroah-Hartman <g

[PATCH 1/6] staging: rtl8188eu: add spaces around binary '*'

2015-12-02 Thread Luca Ceresoli
Fix checkpatch issue: CHECK: spaces preferred around that '*' (ctx:VxV) Signed-off-by: Luca Ceresoli <l...@lucaceresoli.net> Cc: Larry Finger <larry.fin...@lwfinger.net> Cc: Greg Kroah-Hartman <gre...@linux.com> --- drivers/staging/rtl8188eu/core/rtw_efuse.c | 4 ++--

[PATCH 3/6] staging: rtl8188eu: rtw_mlme_ext.c: remove commented code

2015-12-02 Thread Luca Ceresoli
This line is connented since the initial import in commit 7b464c9fa5cc ("staging: r8188eu: Add files for new driver - part 4") and there's no comment stating how it could ever be useful. Signed-off-by: Luca Ceresoli <l...@lucaceresoli.net> Cc: Larry Finger <larry.fin...@lwf

[PATCH 4/6] staging: rtl8188eu: remove useless variable rtw_AcceptAddbaReq

2015-12-02 Thread Luca Ceresoli
field of struct registry_priv. Raises a new checkpatch issue, which is fixed in a later commit: CHECK: Avoid CamelCase: Signed-off-by: Luca Ceresoli <l...@lucaceresoli.net> Cc: Larry Finger <larry.fin...@lwfinger.net> Cc: Greg Kroah-Hartman <gre...@linux.com> --- drivers

[PATCH 2/4] staging: rtl8188eu: rtw_set_fixed_ie(): accept void* parameters

2015-09-22 Thread Luca Ceresoli
rtw_set_ie() is a memcpy-like function, taking addresses of memory buffers among its parameters. Similarly to memcpy, change the parameters to be void*. This will allow to get rid of typecasts whenever it is called. Signed-off-by: Luca Ceresoli <l...@lucaceresoli.net> Cc: Larry Finger <

[PATCH 1/4] staging: rtl8188eu: remove useless comment

2015-09-22 Thread Luca Ceresoli
This comment gives pretty much the same information as the name of the function that it immediately precedes. Signed-off-by: Luca Ceresoli <l...@lucaceresoli.net> Cc: Larry Finger <larry.fin...@lwfinger.net> Cc: Greg Kroah-Hartman <gre...@linux.com> --- drivers/stag

[PATCH 4/4] staging: rtl8188eu: issue_action_BA(): extract ADDBA_req pointer

2015-09-22 Thread Luca Ceresoli
pmlmeinfo->ADDBA_req is accessed three times in this function, but it contributes to generating lines above 80 characters that are not easy to split in a nice way. Extract a pointer to it to make code slightly more concise and fix some lines over 80 characters. Signed-off-by: Luca Ceresoli

Re: [PATCH RESEND 01/16] staging: rtl8188eu: rtw_mlme_ext.c: reorder the report functions

2015-09-15 Thread Luca Ceresoli
Dear Larry, Larry Finger wrote: On 09/14/2015 05:34 PM, Luca Ceresoli wrote: Dear Larry, All, Luca Ceresoli wrote: Dear Larry, thanks for your review. Larry Finger wrote: On 08/28/2015 03:45 PM, Luca Ceresoli wrote: Some of the report_*() functions are internal and will be declared static

Re: [PATCH RESEND 01/16] staging: rtl8188eu: rtw_mlme_ext.c: reorder the report functions

2015-09-14 Thread Luca Ceresoli
Dear Larry, All, Luca Ceresoli wrote: Dear Larry, thanks for your review. Larry Finger wrote: On 08/28/2015 03:45 PM, Luca Ceresoli wrote: Some of the report_*() functions are internal and will be declared static, and their declaration removed from rtw_mlme_ext.h, in a later commit

[PATCH RESEND 04/16] staging: rtl8188eu: remove unused macro GEN_DRV_CMD_HANDLER

2015-09-10 Thread Luca Ceresoli
Signed-off-by: Luca Ceresoli <l...@lucaceresoli.net> Cc: Larry Finger <larry.fin...@lwfinger.net> Cc: Greg Kroah-Hartman <gre...@linux.com> --- drivers/staging/rtl8188eu/include/rtw_mlme_ext.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/include

Re: [PATCH RESEND 04/16] staging: rtl8188eu: remove unused macro GEN_DRV_CMD_HANDLER

2015-08-31 Thread Luca Ceresoli
Dear Larry, Larry Finger wrote: On 08/28/2015 03:45 PM, Luca Ceresoli wrote: Signed-off-by: Luca Ceresoli <l...@lucaceresoli.net> Cc: Larry Finger <larry.fin...@lwfinger.net> Cc: Greg Kroah-Hartman <gre...@linux.com> Empty commit messages are generally not accepted. Mean

[PATCH RESEND 05/16] staging: rtl8188eu: move wlancmds in rtw_cmd.c

2015-08-28 Thread Luca Ceresoli
Even though it is declared in an include file, it is used only in rtw_cmd.c. There's even a preprocessor guard to make sure it is not visible in other modules. It is now useless, so remove it. Signed-off-by: Luca Ceresoli l...@lucaceresoli.net Cc: Larry Finger larry.fin...@lwfinger.net Cc: Greg

[PATCH RESEND 15/16] staging: rtl8188eu: remove _{init, enter, exit}_pwrlock()

2015-08-28 Thread Luca Ceresoli
They are just wrappers to the standard semaphore functions. Signed-off-by: Luca Ceresoli l...@lucaceresoli.net Cc: Larry Finger larry.fin...@lwfinger.net Cc: Greg Kroah-Hartman gre...@linux.com --- drivers/staging/rtl8188eu/core/rtw_pwrctrl.c| 20 ++-- drivers/staging

[PATCH RESEND 11/16] staging: rtl8723au: remove unimplemented function declarations

2015-08-28 Thread Luca Ceresoli
Signed-off-by: Luca Ceresoli l...@lucaceresoli.net Cc: Greg Kroah-Hartman gre...@linux.com Cc: Jes Sorensen jes.soren...@redhat.com Cc: Larry Finger larry.fin...@lwfinger.net --- drivers/staging/rtl8723au/include/rtw_cmd.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging

[PATCH RESEND 07/16] staging: rtl8188eu: move rtw_cmd_callback in rtw_cmd.c

2015-08-28 Thread Luca Ceresoli
Even though it is declared in an include file, it is used only in rtw_cmd.c. There's even a preprocessor guard to make sure it is not visible in other modules. It is now useless, so remove it. Signed-off-by: Luca Ceresoli l...@lucaceresoli.net Cc: Larry Finger larry.fin...@lwfinger.net Cc: Greg

[PATCH RESEND 09/16] staging: rtl8188eu: remove _RTW_CMD_C_

2015-08-28 Thread Luca Ceresoli
All usages of this macro have been removed in earlier commits, so get rid of it. Signed-off-by: Luca Ceresoli l...@lucaceresoli.net Cc: Larry Finger larry.fin...@lwfinger.net Cc: Greg Kroah-Hartman gre...@linux.com --- drivers/staging/rtl8188eu/core/rtw_cmd.c | 1 - 1 file changed, 1 deletion

[PATCH RESEND 02/16] staging: rtl8188eu: unexport internal functions

2015-08-28 Thread Luca Ceresoli
These are internal functions. Remove their declaration in rtw_mlme_ext.h and make them static. Signed-off-by: Luca Ceresoli l...@lucaceresoli.net Cc: Larry Finger larry.fin...@lwfinger.net Cc: Greg Kroah-Hartman gre...@linux.com --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c| 11

[PATCH RESEND 03/16] staging: rtl8188eu: remove GEN_MLME_EXT_HANDLER

2015-08-28 Thread Luca Ceresoli
This macro has no added value, it makes uselessly code more verbose. Signed-off-by: Luca Ceresoli l...@lucaceresoli.net Cc: Larry Finger larry.fin...@lwfinger.net Cc: Greg Kroah-Hartman gre...@linux.com --- drivers/staging/rtl8188eu/include/rtw_mlme_ext.h | 31 1 file

[PATCH RESEND 01/16] staging: rtl8188eu: rtw_mlme_ext.c: reorder the report functions

2015-08-28 Thread Luca Ceresoli
they are referenced, without the need for forward declarations. Also move near the beginning of the file the collect_bss_info() and process_80211d(), since they are called from the report_*() functions. This commit only reorders code, there is no content change. Signed-off-by: Luca Ceresoli l

[PATCH RESEND 16/16] staging: rtl8188eu: remove useless includes

2015-08-28 Thread Luca Ceresoli
Signed-off-by: Luca Ceresoli l...@lucaceresoli.net Cc: Larry Finger larry.fin...@lwfinger.net Cc: Greg Kroah-Hartman gre...@linux.com --- drivers/staging/rtl8188eu/include/osdep_service.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/osdep_service.h b

[PATCH RESEND 00/16] staging: rtl8188eu/rtl8723au: misc cleanups

2015-08-28 Thread Luca Ceresoli
Jes for one patch, that he also promptly acked -- thanks Jes). You already received these patches at the first round and you are getting them again. You can safely delete either this or the other copy, they are identical. Luca Ceresoli (16): staging: rtl8188eu: rtw_mlme_ext.c: reorder the report

[PATCH RESEND 13/16] staging: rtl8188eu: make rtw_init_cmd_priv() inline

2015-08-28 Thread Luca Ceresoli
rtw_init_cmd_priv() is called in one place only, and from another file. Signed-off-by: Luca Ceresoli l...@lucaceresoli.net Cc: Larry Finger larry.fin...@lwfinger.net Cc: Greg Kroah-Hartman gre...@linux.com --- drivers/staging/rtl8188eu/core/rtw_cmd.c| 13 - drivers/staging

[PATCH 1/3] staging: rtl8188eu: remove unused {en,dis}able_interrupt

2015-07-14 Thread Luca Ceresoli
-off-by: Luca Ceresoli l...@lucaceresoli.net Cc: Greg Kroah-Hartman gre...@linux.com Cc: Larry Finger larry.fin...@lwfinger.net --- drivers/staging/rtl8188eu/hal/hal_intf.c | 16 drivers/staging/rtl8188eu/include/hal_intf.h | 5 - 2 files changed, 21 deletions(-) diff --git

[PATCH 2/3] staging: rtl8188eu: remove unused rtw_hal_set_def_var

2015-07-14 Thread Luca Ceresoli
rtw_hal_set_def_var() is never referenced, so remove it. It used to be the only place where the SetHalDefVarHandler callback was called, so get rid of the function pointer as well. Also remove the callback itself, SetHalDefVar8188EUsb(), which was not called anywhere else. Signed-off-by: Luca

[PATCH 3/3] staging: rtl8188eu: remove unused rtw_hal_write_rfreg

2015-07-14 Thread Luca Ceresoli
rtw_hal_write_rfreg() is never referenced, so remove it. It used to be the only place where the write_rfreg callback was called, so get rid of the function pointer as well. Signed-off-by: Luca Ceresoli l...@lucaceresoli.net Cc: Greg Kroah-Hartman gre...@linux.com Cc: Larry Finger larry.fin

[PATCH 1/2] staging: rtl8188eu: don't define issue_asocrsp() in non-AP mode

2015-06-14 Thread Luca Ceresoli
If CONFIG_88EU_AP_MODE is undefined, issue_asocrsp() is never referenced. Fixes warning: drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:891:13: warning: ‘issue_asocrsp’ defined but not used [-Wunused-function] Signed-off-by: Luca Ceresoli l...@lucaceresoli.net Fixes: 782eddd748d9 (staging

[PATCH 2/2] staging: rtl8188eu: don't define OnAuth() in non-AP mode

2015-06-14 Thread Luca Ceresoli
If CONFIG_88EU_AP_MODE is undefined, OnAuth() is never referenced. Fixes warning: drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:2725:21: warning: ‘OnAuth’ defined but not used [-Wunused-function] Signed-off-by: Luca Ceresoli l...@lucaceresoli.net Fixes: 68345dd7bc26 (staging: rtl8188eu

[PATCH 5/7] staging: rtl8723au: issue_probersp(): remove unused parameter

2015-06-11 Thread Luca Ceresoli
The is_valid_p2p_probereq is never referenced in the function body. Signed-off-by: Luca Ceresoli l...@lucaceresoli.net Cc: Greg Kroah-Hartman gre...@linux.com Cc: Jes Sorensen jes.soren...@redhat.com Cc: Larry Finger larry.fin...@lwfinger.net --- drivers/staging/rtl8723au/core/rtw_mlme_ext.c | 8

[PATCH 3/7] staging: rtl8188eu: unexport internal functions

2015-06-11 Thread Luca Ceresoli
These are internal functions. Remove their declaration in rtw_mlme_ext.h and make them static. Signed-off-by: Luca Ceresoli l...@lucaceresoli.net Cc: Greg Kroah-Hartman gre...@linux.com Cc: Larry Finger larry.fin...@lwfinger.net --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c| 57

[PATCH 2/7] staging: rtl8188eu: rtw_mlme_ext.c: unexport message callbacks

2015-06-11 Thread Luca Ceresoli
These are internal functions. Remove their declaration in rtw_mlme_ext.h and make them static. Signed-off-by: Luca Ceresoli l...@lucaceresoli.net Cc: Greg Kroah-Hartman gre...@linux.com Cc: Larry Finger larry.fin...@lwfinger.net --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c| 60

[PATCH 7/7] staging: rtl8188eu: fix wrong debug print

2015-06-11 Thread Luca Ceresoli
Signed-off-by: Luca Ceresoli l...@lucaceresoli.net Cc: Greg Kroah-Hartman gre...@linux.com Cc: Larry Finger larry.fin...@lwfinger.net --- drivers/staging/rtl8188eu/core/rtw_ap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_ap.c b/drivers

[PATCH 6/7] staging: rtl8188eu: issue_probersp(): remove unused variable and dead code

2015-06-11 Thread Luca Ceresoli
is_valid_p2p_probereq is initialized to false and never modified. Code depending on it is dead code. Remove all of it. Signed-off-by: Luca Ceresoli l...@lucaceresoli.net Cc: Greg Kroah-Hartman gre...@linux.com Cc: Larry Finger larry.fin...@lwfinger.net --- drivers/staging/rtl8188eu/core

[PATCH 4/7] staging: rtl8188eu: issue_probersp(): remove unused parameter

2015-06-11 Thread Luca Ceresoli
The is_valid_p2p_probereq is never referenced in the function body. Signed-off-by: Luca Ceresoli l...@lucaceresoli.net Cc: Greg Kroah-Hartman gre...@linux.com Cc: Larry Finger larry.fin...@lwfinger.net --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 5 ++--- 1 file changed, 2 insertions

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

2015-05-19 Thread Luca Ceresoli
/osdep_service.h. Change rtw_start_drv_threads() to return a proper 0-or-error value. Signed-off-by: Luca Ceresoli l...@lucaceresoli.net Cc: Greg Kroah-Hartman gre...@linux.com Cc: Larry Finger larry.fin...@lwfinger.net Cc: Dan Carpenter dan.carpen...@oracle.com --- I think _SUCCESS and _FAIL

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

2015-05-19 Thread Luca Ceresoli
step 2 does mean much as there is no step 1 stated anywhere... Signed-off-by: Luca Ceresoli l...@lucaceresoli.net Cc: Greg Kroah-Hartman g...@kroah.com Cc: Larry Finger larry.fin...@lwfinger.net Cc: Florian Schilhabel florian.c.schilha...@googlemail.com --- drivers/staging/rtl8712/os_intfs.c | 1

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

2015-05-19 Thread Luca Ceresoli
step 2 does mean much as there is no step 1 stated anywhere... Signed-off-by: Luca Ceresoli l...@lucaceresoli.net Cc: Greg Kroah-Hartman gre...@linux.com Cc: Larry Finger larry.fin...@lwfinger.net Cc: Jes Sorensen jes.soren...@redhat.com --- drivers/staging/rtl8723au/os_dep/os_intfs.c | 1 - 1

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

2015-05-19 Thread Luca Ceresoli
Even though these are not reported by checkpatch, they are coding style issues. Signed-off-by: Luca Ceresoli l...@lucaceresoli.net Cc: Greg Kroah-Hartman gre...@linux.com Cc: Larry Finger larry.fin...@lwfinger.net --- drivers/staging/rtl8188eu/os_dep/os_intfs.c | 3 +-- 1 file changed, 1

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

2015-05-19 Thread Luca Ceresoli
Fixes checkpatch warnings: WARNING: Missing a blank line after declarations Signed-off-by: Luca Ceresoli l...@lucaceresoli.net Cc: Greg Kroah-Hartman gre...@linux.com Cc: Larry Finger larry.fin...@lwfinger.net --- Changes since v1: - Fix a misplaced empty line (reported by Larry Finger

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

2015-05-14 Thread Luca Ceresoli
Dear Larry, Larry Finger wrote: On 05/13/2015 05:08 PM, Luca Ceresoli wrote: Fixes checkpatch warnings: WARNING: Missing a blank line after declarations Signed-off-by: Luca Ceresoli l...@lucaceresoli.net Cc: Greg Kroah-Hartman gre...@linux.com Cc: Larry Finger larry.fin...@lwfinger.net

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

2015-05-14 Thread Luca Ceresoli
Dear Dan, Dan Carpenter wrote: On Thu, May 14, 2015 at 12:08:49AM +0200, Luca Ceresoli wrote: I think _SUCCESS and _FAIL should be totally eradicated and replaced with proper error codes and my intent is to do it all over the codebase. However, since that would be a massive change, I'm sending

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

2015-05-14 Thread Luca Ceresoli
Dear Larry, Larry Finger wrote: On 05/13/2015 05:08 PM, Luca Ceresoli wrote: Several functions in this driver return a boolean: _SUCCESS = 1 on success, _FAIL = 0 on error, defined in drivers/staging/rtl8188eu/include/osdep_service.h. The common practice in the Linux kernel is to return 0

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

2015-05-13 Thread Luca Ceresoli
Also remove them from .h files. Signed-off-by: Luca Ceresoli l...@lucaceresoli.net Cc: Greg Kroah-Hartman gre...@linux.com Cc: Larry Finger larry.fin...@lwfinger.net --- drivers/staging/rtl8188eu/include/osdep_intf.h | 2 -- drivers/staging/rtl8188eu/include/recv_osdep.h | 3 --- drivers

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

2015-05-13 Thread Luca Ceresoli
The loadparam() function cannot fail, it's called only once and its return value is ignored there. Signed-off-by: Luca Ceresoli l...@lucaceresoli.net Cc: Greg Kroah-Hartman gre...@linux.com Cc: Larry Finger larry.fin...@lwfinger.net --- drivers/staging/rtl8188eu/os_dep/os_intfs.c | 3 +-- 1 file

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

2015-05-13 Thread Luca Ceresoli
Signed-off-by: Luca Ceresoli l...@lucaceresoli.net Cc: Greg Kroah-Hartman g...@kroah.com Cc: Larry Finger larry.fin...@lwfinger.net Cc: Florian Schilhabel florian.c.schilha...@googlemail.com --- drivers/staging/rtl8712/os_intfs.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging

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

2015-05-13 Thread Luca Ceresoli
Fixes checkpatch warnings: WARNING: Missing a blank line after declarations Signed-off-by: Luca Ceresoli l...@lucaceresoli.net Cc: Greg Kroah-Hartman gre...@linux.com Cc: Larry Finger larry.fin...@lwfinger.net --- drivers/staging/rtl8188eu/os_dep/os_intfs.c | 3 +++ 1 file changed, 3

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

2015-05-13 Thread Luca Ceresoli
step 2 does mean much as there is no step 1 stated anywhere... Signed-off-by: Luca Ceresoli l...@lucaceresoli.net Cc: Greg Kroah-Hartman g...@kroah.com Cc: Larry Finger larry.fin...@lwfinger.net Cc: Florian Schilhabel florian.c.schilha...@googlemail.com --- drivers/staging/rtl8712/os_intfs.c | 1

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

2015-05-13 Thread Luca Ceresoli
Even though these are not reported by checkpatch, they are coding style issues. Signed-off-by: Luca Ceresoli l...@lucaceresoli.net Cc: Greg Kroah-Hartman gre...@linux.com Cc: Larry Finger larry.fin...@lwfinger.net --- drivers/staging/rtl8188eu/os_dep/os_intfs.c | 3 +-- 1 file changed, 1

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

2015-05-13 Thread Luca Ceresoli
The loadparam() function cannot fail, it's called only once and its return value is ignored there. Signed-off-by: Luca Ceresoli l...@lucaceresoli.net Cc: Greg Kroah-Hartman g...@kroah.com Cc: Larry Finger larry.fin...@lwfinger.net Cc: Florian Schilhabel florian.c.schilha...@googlemail.com

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

2015-05-13 Thread Luca Ceresoli
The loadparam() function cannot fail, it's called only once and its return value is ignored there. Signed-off-by: Luca Ceresoli l...@lucaceresoli.net Cc: Greg Kroah-Hartman gre...@linux.com Cc: Larry Finger larry.fin...@lwfinger.net Cc: Jes Sorensen jes.soren...@redhat.com --- drivers/staging

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

2015-05-13 Thread Luca Ceresoli
step 2 does mean much as there is no step 1 stated anywhere... Signed-off-by: Luca Ceresoli l...@lucaceresoli.net Cc: Greg Kroah-Hartman gre...@linux.com Cc: Larry Finger larry.fin...@lwfinger.net Cc: Jes Sorensen jes.soren...@redhat.com --- drivers/staging/rtl8723au/os_dep/os_intfs.c | 1 - 1

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

2015-05-13 Thread Luca Ceresoli
value also describes the kind of error that happened, while a boolean squashes all errors down a unique value. Change rtw_start_drv_threads() to return a proper 0-or-error value. Signed-off-by: Luca Ceresoli l...@lucaceresoli.net Cc: Greg Kroah-Hartman gre...@linux.com Cc: Larry Finger larry.fin

[PATCH 2/7] staging: rtl8188eu: fix comments over 80 characters

2015-04-16 Thread Luca Ceresoli
Signed-off-by: Luca Ceresoli l...@lucaceresoli.net --- drivers/staging/rtl8188eu/os_dep/os_intfs.c | 38 ++--- 1 file changed, 29 insertions(+), 9 deletions(-) diff --git a/drivers/staging/rtl8188eu/os_dep/os_intfs.c b/drivers/staging/rtl8188eu/os_dep/os_intfs.c index

[PATCH 1/7] staging: rtl8188eu: remove duplicated comments

2015-04-16 Thread Luca Ceresoli
There are identical comments near the static variable declaration, around lines 118~120. Signed-off-by: Luca Ceresoli l...@lucaceresoli.net --- drivers/staging/rtl8188eu/os_dep/os_intfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/os_dep

[PATCH 5/7] staging: rtl8188eu: fix lines over 80 characters

2015-04-16 Thread Luca Ceresoli
Signed-off-by: Luca Ceresoli l...@lucaceresoli.net --- drivers/staging/rtl8188eu/os_dep/os_intfs.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/drivers/staging/rtl8188eu/os_dep/os_intfs.c b/drivers/staging/rtl8188eu/os_dep/os_intfs.c index 9cd3a84

[PATCH 7/7] staging: rtl8188eu: remove commented code

2015-04-16 Thread Luca Ceresoli
This code is commented since the initial commit. Probably it is a remnant of old code. Signed-off-by: Luca Ceresoli l...@lucaceresoli.net --- drivers/staging/rtl8188eu/os_dep/os_intfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/os_dep

[PATCH 4/7] staging: rtl8188eu: simplify nested ifs

2015-04-16 Thread Luca Ceresoli
Signed-off-by: Luca Ceresoli l...@lucaceresoli.net --- drivers/staging/rtl8188eu/os_dep/os_intfs.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/staging/rtl8188eu/os_dep/os_intfs.c b/drivers/staging/rtl8188eu/os_dep/os_intfs.c index e5e9235..9cd3a84 100644

[PATCH 3/7] staging: rtl8188eu: document enum where it is declared

2015-04-16 Thread Luca Ceresoli
The comment /* open system */ is repeated verbatim in several places where dot11AuthAlgrthm_Open is referenced, but not where it is declared. Move it to be only at its declaration. This also fixes some line over 80 characters checkpatch warnings. Signed-off-by: Luca Ceresoli l

[PATCH 6/7] staging: rtl8188eu: remove useless comment

2015-04-16 Thread Luca Ceresoli
step 2 does mean much as there is no step 1 stated anywhere... Signed-off-by: Luca Ceresoli l...@lucaceresoli.net --- drivers/staging/rtl8188eu/os_dep/os_intfs.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/os_dep/os_intfs.c b/drivers/staging/rtl8188eu/os_dep

Re: [PATCH 2/2] staging: lustre: declare internal symbols as static

2015-01-18 Thread Luca Ceresoli
Dear Greg, Greg Kroah-Hartman wrote: On Tue, Jan 13, 2015 at 11:33:03PM +0100, Luca Ceresoli wrote: Fixes dozens of sparse warnings like: warning: symbol 'cfs_tracefile_sem' was not declared. Should it be static? Signed-off-by: Luca Ceresoli l...@lucaceresoli.net Cc: Peng Tao bergw

[PATCH 3/6] staging: lustre: libcfs: declare internal symbols as static

2015-01-18 Thread Luca Ceresoli
Fixes sparse warnings like: warning: symbol '...' was not declared. Should it be static? Signed-off-by: Luca Ceresoli l...@lucaceresoli.net Cc: Peng Tao bergw...@gmail.com Cc: Jinshan Xiong jinshan.xi...@intel.com Cc: Srikrishan Malik srikrishanma...@gmail.com Cc: hpdd-disc...@lists.01.org Cc

[PATCH 2/6] staging: lustre: lmv: declare internal symbols as static

2015-01-18 Thread Luca Ceresoli
Fixes sparse warnings like: warning: symbol '...' was not declared. Should it be static? Signed-off-by: Luca Ceresoli l...@lucaceresoli.net Cc: Peng Tao bergw...@gmail.com Cc: Jinshan Xiong jinshan.xi...@intel.com Cc: Srikrishan Malik srikrishanma...@gmail.com Cc: hpdd-disc...@lists.01.org Cc

[PATCH 1/6] staging: lustre: mdc: declare internal symbols as static

2015-01-18 Thread Luca Ceresoli
Fixes sparse warnings like: warning: symbol '...' was not declared. Should it be static? Signed-off-by: Luca Ceresoli l...@lucaceresoli.net Cc: Peng Tao bergw...@gmail.com Cc: Jinshan Xiong jinshan.xi...@intel.com Cc: Srikrishan Malik srikrishanma...@gmail.com Cc: hpdd-disc...@lists.01.org Cc

[PATCH 5/6] staging: lustre: fld: declare internal symbols as static

2015-01-18 Thread Luca Ceresoli
Fixes sparse warnings like: warning: symbol '...' was not declared. Should it be static? Signed-off-by: Luca Ceresoli l...@lucaceresoli.net Cc: Peng Tao bergw...@gmail.com Cc: Jinshan Xiong jinshan.xi...@intel.com Cc: Srikrishan Malik srikrishanma...@gmail.com Cc: hpdd-disc...@lists.01.org Cc

[PATCH 6/6] staging: lustre: lnet: declare internal symbols as static

2015-01-18 Thread Luca Ceresoli
Fixes sparse warnings like: warning: symbol '...' was not declared. Should it be static? Signed-off-by: Luca Ceresoli l...@lucaceresoli.net Cc: Peng Tao bergw...@gmail.com Cc: Jinshan Xiong jinshan.xi...@intel.com Cc: Srikrishan Malik srikrishanma...@gmail.com Cc: hpdd-disc...@lists.01.org Cc

[PATCH 4/6] staging: lustre: llite: declare internal symbols as static

2015-01-18 Thread Luca Ceresoli
Fixes sparse warnings like: warning: symbol '...' was not declared. Should it be static? Signed-off-by: Luca Ceresoli l...@lucaceresoli.net Cc: Peng Tao bergw...@gmail.com Cc: Jinshan Xiong jinshan.xi...@intel.com Cc: Srikrishan Malik srikrishanma...@gmail.com Cc: hpdd-disc...@lists.01.org Cc

[PATCH 0/6] staging: lustre: declare internal symbols as static

2015-01-18 Thread Luca Ceresoli
://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2015-January/063751.html Luca Ceresoli (6): staging: lustre: mdc: declare internal symbols as static staging: lustre: lmv: declare internal symbols as static staging: lustre: libcfs: declare internal symbols as static staging: lustre: llite

[PATCH 1/2] staging/lustre: remove unused function

2015-01-13 Thread Luca Ceresoli
Signed-off-by: Luca Ceresoli l...@lucaceresoli.net Cc: Peng Tao bergw...@gmail.com Cc: hpdd-disc...@lists.01.org Cc: de...@driverdev.osuosl.org Cc: linux-ker...@vger.kernel.org --- drivers/staging/lustre/lustre/libcfs/linux/linux-curproc.c | 5 - 1 file changed, 5 deletions(-) diff --git

[PATCH 2/2] staging: lustre: declare internal symbols as static

2015-01-13 Thread Luca Ceresoli
Fixes dozens of sparse warnings like: warning: symbol 'cfs_tracefile_sem' was not declared. Should it be static? Signed-off-by: Luca Ceresoli l...@lucaceresoli.net Cc: Peng Tao bergw...@gmail.com Cc: Jinshan Xiong jinshan.xi...@intel.com Cc: Srikrishan Malik srikrishanma...@gmail.com Cc: hpdd

[PATCH] staging: rtl8188eu: fix missing blank lines after declarations

2014-09-03 Thread Luca Ceresoli
Signed-off-by: Luca Ceresoli l...@lucaceresoli.net Cc: Greg Kroah-Hartman gre...@linux.com Cc: Larry Finger larry.fin...@lwfinger.net --- drivers/staging/rtl8188eu/core/rtw_cmd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/staging/rtl8188eu/core/rtw_cmd.c b/drivers/staging