Re: [PATCH] Removed extra spaces, and error from checkpatch.pl

2015-09-27 Thread Greg KH
On Sun, Sep 27, 2015 at 01:59:17PM +0530, Pinkesh Jain wrote:
> There were many warnings and error given by checkpatch.pl and most of them 
> were
> almost of the same type so i believed a single patch is enough to do the
> cleanup.
> 
> 1. Remove errors of the struct declaration (foo*bar to foo *bar)
> 2. Removed warnings of 'spaces before comma'.
> 3. Added space after enum declaration and before opening of paranthesis.
> 4. removed spaces between function calls (func () to func() )
> 5. Still there are a lot of warnings related to only line lengths but removing
> then would not make sense and would leave the code unreadable.
> 
> There were one or two more of such kind of very small code refactoring that i
> did. Since they were not that important, also i 'Did Not Alter' any other part
> of functioning code so i made the changes in a single patch.
> 
> I am new here and this is my first patch so please give meĀ  enough suggestions
> and reviews for what i do, so that i can get familiar with the community
> guidelines.
> 
> If i do anything wrong then please correct me.
> 
> Questions:
> 1.) Do i need to mention all this changes that i wrote about in the commit as
> they are very descriptive? I tried to be brief in the commit message.

Be descriptive.

> 2.) Do i need to split the changes in separate commits, as one of the members
> pointed out.

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


Re: [PATCH] Removed extra spaces, and error from checkpatch.pl

2015-09-26 Thread Sudip Mukherjee
On Sun, Sep 27, 2015 at 05:44:16AM +0530, Pinkesh Badjatiya wrote:
> Removed trailing spaces.
> Fixed some errors from checkpatch.pl verification.
> No changes made to actual functional code.
> 
> Signed-off-by: Pinkesh Badjatiya 
> ---
And you have done more than one change in this patch. Please do only
one type of change in a patch and mention the change in the commit
message.

Regards
Sudip
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH] Removed extra spaces, and error from checkpatch.pl

2015-09-26 Thread Jes Sorensen
Pinkesh Badjatiya  writes:
> Removed trailing spaces.
> Fixed some errors from checkpatch.pl verification.
> No changes made to actual functional code.
>
> Signed-off-by: Pinkesh Badjatiya 
> ---
>  drivers/staging/rtl8723au/include/rtw_cmd.h | 162 
> ++--
>  1 file changed, 80 insertions(+), 82 deletions(-)

Please read the guidelines for how to post a patch for staging. The
subject line needs to have the correct prefixes for it to be considered.

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


[PATCH] Removed extra spaces, and error from checkpatch.pl

2015-09-26 Thread Pinkesh Badjatiya
Removed trailing spaces.
Fixed some errors from checkpatch.pl verification.
No changes made to actual functional code.

Signed-off-by: Pinkesh Badjatiya 
---
 drivers/staging/rtl8723au/include/rtw_cmd.h | 162 ++--
 1 file changed, 80 insertions(+), 82 deletions(-)

diff --git a/drivers/staging/rtl8723au/include/rtw_cmd.h 
b/drivers/staging/rtl8723au/include/rtw_cmd.h
index d1fa95d..82e6411 100644
--- a/drivers/staging/rtl8723au/include/rtw_cmd.h
+++ b/drivers/staging/rtl8723au/include/rtw_cmd.h
@@ -60,10 +60,10 @@ struct  evt_priv {
 do {\
pcmd->cmdcode = code;\
pcmd->parmbuf = (u8 *)(pparm);\
-   pcmd->cmdsz = sizeof (*pparm);\
+   pcmd->cmdsz = sizeof(*pparm);\
pcmd->rsp = NULL;\
pcmd->rspsz = 0;\
-} while(0)
+} while (0)
 
 struct c2h_evt_hdr {
u8 id:4;
@@ -97,12 +97,11 @@ int rtw_cmd_thread23a(void *context);
 
 int rtw_init_cmd_priv23a(struct cmd_priv *pcmdpriv);
 
-u32 rtw_init_evt_priv23a (struct evt_priv *pevtpriv);
-void rtw_free_evt_priv23a (struct evt_priv *pevtpriv);
+u32 rtw_init_evt_priv23a(struct evt_priv *pevtpriv);
+void rtw_free_evt_priv23a(struct evt_priv *pevtpriv);
 void rtw_evt_notify_isr(struct evt_priv *pevtpriv);
 
-enum rtw_drvextra_cmd_id
-{
+enum rtw_drvextra_cmd_id {
NONE_WK_CID,
DYNAMIC_CHK_WK_CID,
DM_CTRL_WK_CID,
@@ -118,14 +117,13 @@ enum rtw_drvextra_cmd_id
MAX_WK_CID
 };
 
-enum LPS_CTRL_TYPE
-{
-   LPS_CTRL_SCAN=0,
-   LPS_CTRL_JOINBSS=1,
-   LPS_CTRL_CONNECT=2,
-   LPS_CTRL_DISCONNECT=3,
-   LPS_CTRL_SPECIAL_PACKET=4,
-   LPS_CTRL_LEAVE=5,
+enum LPS_CTRL_TYPE {
+   LPS_CTRL_SCAN = 0,
+   LPS_CTRL_JOINBSS = 1,
+   LPS_CTRL_CONNECT = 2,
+   LPS_CTRL_DISCONNECT = 3,
+   LPS_CTRL_SPECIAL_PACKET = 4,
+   LPS_CTRL_LEAVE = 5,
 };
 
 enum RFINTFS {
@@ -555,41 +553,41 @@ struct getratable_rsp {
 };
 
 /* to get TX,RX retry count */
-struct gettxretrycnt_parm{
+struct gettxretrycnt_parm {
unsigned int rsvd;
 };
-struct gettxretrycnt_rsp{
+struct gettxretrycnt_rsp {
unsigned long tx_retrycnt;
 };
 
-struct getrxretrycnt_parm{
+struct getrxretrycnt_parm {
unsigned int rsvd;
 };
-struct getrxretrycnt_rsp{
+struct getrxretrycnt_rsp {
unsigned long rx_retrycnt;
 };
 
 /* to get BCNOK,BCNERR count */
-struct getbcnokcnt_parm{
+struct getbcnokcnt_parm {
unsigned int rsvd;
 };
-struct getbcnokcnt_rsp{
+struct getbcnokcnt_rsp {
unsigned long  bcnokcnt;
 };
 
-struct getbcnerrcnt_parm{
+struct getbcnerrcnt_parm {
unsigned int rsvd;
 };
-struct getbcnerrcnt_rsp{
+struct getbcnerrcnt_rsp {
unsigned long bcnerrcnt;
 };
 
 /*  to get current TX power level */
-struct getcurtxpwrlevel_parm{
+struct getcurtxpwrlevel_parm {
unsigned int rsvd;
 };
 
-struct getcurtxpwrlevel_rsp{
+struct getcurtxpwrlevel_rsp {
unsigned short tx_power;
 };
 
@@ -683,38 +681,38 @@ int rtw_createbss_cmd23a_ex(struct rtw_adapter  
*padapter, unsigned char *pbss,
 int rtw_setphy_cmd(struct rtw_adapter  *padapter, u8 modem, u8 ch);
 int rtw_setstakey_cmd23a(struct rtw_adapter  *padapter, u8 *psta, u8 
unicast_key);
 int rtw_clearstakey_cmd23a(struct rtw_adapter *padapter, u8 *psta, u8 entry, 
u8 enqueue);
-int rtw_joinbss_cmd23a(struct rtw_adapter  *padapter, struct wlan_network* 
pnetwork);
+int rtw_joinbss_cmd23a(struct rtw_adapter *padapter, struct wlan_network 
*pnetwork);
 int rtw_disassoc_cmd23a(struct rtw_adapter *padapter, u32 deauth_timeout_ms, 
bool enqueue);
 int rtw_setopmode_cmd23a(struct rtw_adapter *padapter, enum nl80211_iftype 
ifmode);
-int rtw_setdatarate_cmd(struct rtw_adapter  *padapter, u8 *rateset);
-int rtw_setbasicrate_cmd(struct rtw_adapter  *padapter, u8 *rateset);
+int rtw_setdatarate_cmd(struct rtw_adapter *padapter, u8 *rateset);
+int rtw_setbasicrate_cmd(struct rtw_adapter *padapter, u8 *rateset);
 int rtw_setbbreg_cmd(struct rtw_adapter *padapter, u8 offset, u8 val);
 int rtw_setrfreg_cmd(struct rtw_adapter *padapter, u8 offset, u32 val);
 int rtw_getbbreg_cmd(struct rtw_adapter *padapter, u8 offset, u8 *pval);
 int rtw_getrfreg_cmd(struct rtw_adapter *padapter, u8 offset, u8 *pval);
-int rtw_setrfintfs_cmd(struct rtw_adapter  *padapter, u8 mode);
-int rtw_setrttbl_cmd(struct rtw_adapter  *padapter, struct setratable_parm 
*prate_table);
-int rtw_getrttbl_cmd(struct rtw_adapter  *padapter, struct getratable_rsp 
*pval);
+int rtw_setrfintfs_cmd(struct rtw_adapter *padapter, u8 mode);
+int rtw_setrttbl_cmd(struct rtw_adapter *padapter, struct setratable_parm 
*prate_table);
+int rtw_getrttbl_cmd(struct rtw_adapter *padapter, struct getratable_rsp 
*pval);
 
-int rtw_gettssi_cmd(struct rtw_adapter  *padapter, u8 offset, u8 *pval);
-int rtw_setfwdig_cmd(struct rtw_adapter*padapter, u8 type);
-int rtw_setfwra_cmd(struct rtw_adapter*padapter, u8 type);
+int rtw_gettssi_cmd(struct rtw_adapter *padapter, u8 offset, u8 *pval);
+int rtw_setfwdig_cmd(struct rtw_adapter