Skip to contentSkip to conversation

Staging: rt2860: Fix checkpatch issues

PATCH Superseded L. Alberto Giménez 2 participants 10 messages Jan 4, 2011 – Jan 23, 2011 Staging

lore
Share & tools
lore
#0 lore raw

cover Staging: rt2860: Fix checkpatch issues

Fix trivial checkpatch issues.

L. Alberto Giménez (3):
Staging: rt2860: Fix space after unary '*' operator.
Staging: rt2860: Fix space after unary '*' operator.
Staging: rt2860: Fix space after unary '*' operator.

 drivers/staging/rt2860/rt_linux.c |    3 +--
 drivers/staging/rt2860/rt_linux.h |   12 ++++++------
 drivers/staging/rt2860/wpa.h      |   12 ++++--------
 3 files changed, 11 insertions(+), 16 deletions(-)
Signature · 1 line
1.7.2.3
#1 lore raw

PATCH 1/3 Staging: rt2860: Fix space after unary '*' operator.

Fix checkpatch error.

---
 drivers/staging/rt2860/rt_linux.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/staging/rt2860/rt_linux.c +1 -2
index 728864e..b3f836d 100644
@@ -118,8 +118,7 @@ void RTMP_OS_Mod_Timer(struct timer_list *pTimer,
 	mod_timer(pTimer, jiffies + timeout);
 }
 
-void RTMP_OS_Del_Timer(struct timer_list *pTimer,
-		       OUT BOOLEAN * pCancelled)
+void RTMP_OS_Del_Timer(struct timer_list *pTimer, OUT BOOLEAN *pCancelled)
 {
 	if (timer_pending(pTimer)) {
 		*pCancelled = del_timer_sync(pTimer);
Signature · 1 line
1.7.2.3
#7 lore raw

PATCH 2/3 Staging: rt2860: Fix space after unary '*' operator.

In reply to L. Alberto Giménez

Fix checkpatch error.

---
 drivers/staging/rt2860/rt_linux.h |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
drivers/staging/rt2860/rt_linux.h +6 -6
index 92ff543..3efb88f 100644
@@ -102,8 +102,8 @@ extern const struct iw_handler_def rt28xx_iw_handler_def;
 /***********************************************************************************
  *	OS Specific definitions and data structures
  ***********************************************************************************/
-typedef int (*HARD_START_XMIT_FUNC) (struct sk_buff * skb,
-				     struct net_device * net_dev);
+typedef int (*HARD_START_XMIT_FUNC) (struct sk_buff *skb,
+				     struct net_device *net_dev);
 
 #ifdef RTMP_MAC_PCI
 #ifndef PCI_DEVICE
@@ -366,7 +366,7 @@ typedef void (*TIMER_FUNCTION) (unsigned long);
 
 #define ONE_TICK 1
 
-static inline void NdisGetSystemUpTime(unsigned long * time)
+static inline void NdisGetSystemUpTime(unsigned long *time)
 {
 	*time = jiffies;
 }
@@ -815,7 +815,7 @@ void linux_pci_unmap_single(struct rt_rtmp_adapter *pAd, dma_addr_t dma_addr,
 /***********************************************************************************
  *	Other function prototypes definitions
  ***********************************************************************************/
-void RTMP_GetCurrentSystemTime(LARGE_INTEGER * time);
+void RTMP_GetCurrentSystemTime(LARGE_INTEGER *time);
 int rt28xx_packet_xmit(struct sk_buff *skb);
 
 #ifdef RTMP_MAC_PCI
@@ -827,8 +827,8 @@ IRQ_HANDLE_TYPE rt2860_interrupt(int irq, void *dev_instance);
 
 int rt28xx_sta_ioctl(struct net_device *net_dev, IN OUT struct ifreq *rq, int cmd);
 
-extern int ra_mtd_write(int num, loff_t to, size_t len, const u_char * buf);
-extern int ra_mtd_read(int num, loff_t from, size_t len, u_char * buf);
+extern int ra_mtd_write(int num, loff_t to, size_t len, const u_char *buf);
+extern int ra_mtd_read(int num, loff_t from, size_t len, u_char *buf);
 
 #define GET_PAD_FROM_NET_DEV(_pAd, _net_dev)	(_pAd) = (struct rt_rtmp_adapter *)(_net_dev)->ml_priv;
 
Signature · 1 line
1.7.2.3
#8 lore raw

PATCH 3/3 Staging: rt2860: Fix space after unary '*' operator.

In reply to L. Alberto Giménez

Fix checkpatch error.

---
 drivers/staging/rt2860/wpa.h |   12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)
drivers/staging/rt2860/wpa.h +4 -8
index 116fc2c..a7796d3 100644
@@ -369,19 +369,15 @@ struct PACKED rt_rsn_capability {
 /*========================================
 	The prototype is defined in cmm_wpa.c
   ========================================*/
-BOOLEAN WpaMsgTypeSubst(u8 EAPType, int * MsgType);
+BOOLEAN WpaMsgTypeSubst(u8 EAPType, int *MsgType);
 
-void PRF(u8 * key,
-	 int key_len,
-	 u8 * prefix,
-	 int prefix_len,
-	 u8 * data, int data_len, u8 * output, int len);
+void PRF(u8 *key, int key_len, u8 *prefix, int prefix_len,
+	 u8 *data, int data_len, u8 *output, int len);
 
 int PasswordHash(char *password,
 		 unsigned char *ssid, int ssidlength, unsigned char *output);
 
-u8 *GetSuiteFromRSNIE(u8 *rsnie,
-			 u32 rsnie_len, u8 type, u8 * count);
+u8 *GetSuiteFromRSNIE(u8 *rsnie, u32 rsnie_len, u8 type, u8 *count);
 
 void WpaShowAllsuite(u8 *rsnie, u32 rsnie_len);
 
Signature · 1 line
1.7.2.3
#9 lore raw
In reply to L. Alberto Giménez
Quoted 11 lines · L. Alberto Giménez

Fix trivial checkpatch issues.

L. Alberto Giménez (3):
Staging: rt2860: Fix space after unary '*' operator.
Staging: rt2860: Fix space after unary '*' operator.
Staging: rt2860: Fix space after unary '*' operator.

 drivers/staging/rt2860/rt_linux.c |    3 +--
 drivers/staging/rt2860/rt_linux.h |   12 ++++++------
 drivers/staging/rt2860/wpa.h      |   12 ++++--------
 3 files changed, 11 insertions(+), 16 deletions(-)

Hi Greg, have you been able to check these patches? Please tell me if you find anything wrong with them.

Regards,

Signature · 3 lines
L. Alberto Giménez
JabberID [email protected]
GnuPG key ID 0x3BAABDE1
#2 lore raw

Re: [PATCH 1/3] Staging: rt2860: Fix space after unary '*' operator.

In reply to L. Alberto Giménez
Quoted 1 line · L. Alberto Giménez

Fix checkpatch error.

What error?

All of these 3 patches have the same Subject: line, which isn't ok. Care to resend them, with a bit more verbose description and different subject lines which is required.

thanks,

greg k-h

#3 lore raw

v2 cover Staging: rt2860: Fix spaces after unary '*' operator.

Initial set of patches to fix coding style on the rt2860 staging driver, to apply against Greg's staging-next tree.

L. Alberto Giménez (3):
Staging: rt2860: rt_linux.c: Fix space after unary '*' operator.
Staging: rt2860: rt_linux.h: Fix space after unary '*' operator.
Staging: rt2860: wpa.h: Fix space after unary '*' operator.

 drivers/staging/rt2860/rt_linux.c |    3 +--
 drivers/staging/rt2860/rt_linux.h |   12 ++++++------
 drivers/staging/rt2860/wpa.h      |   12 ++++--------
 3 files changed, 11 insertions(+), 16 deletions(-)
Signature · 1 line
1.7.4.rc0.5.gf2665
#4 lore raw

PATCH v2 1/3 Staging: rt2860: rt_linux.c: Fix space after unary '*' operator.

Fix checkpatch error raised by the use of spaces between the '*' operator and the corresponding variable name.

---
 drivers/staging/rt2860/rt_linux.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/staging/rt2860/rt_linux.c +1 -2
index 728864e..b3f836d 100644
@@ -118,8 +118,7 @@ void RTMP_OS_Mod_Timer(struct timer_list *pTimer,
 	mod_timer(pTimer, jiffies + timeout);
 }
 
-void RTMP_OS_Del_Timer(struct timer_list *pTimer,
-		       OUT BOOLEAN * pCancelled)
+void RTMP_OS_Del_Timer(struct timer_list *pTimer, OUT BOOLEAN *pCancelled)
 {
 	if (timer_pending(pTimer)) {
 		*pCancelled = del_timer_sync(pTimer);
Signature · 1 line
1.7.4.rc0.5.gf2665
#6 lore raw

PATCH v2 3/3 Staging: rt2860: wpa.h: Fix space after unary '*' operator.

In reply to L. Alberto Giménez

Fix checkpatch error raised by the use of spaces between the '*' operator and the corresponding variable name.

---
 drivers/staging/rt2860/wpa.h |   12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)
drivers/staging/rt2860/wpa.h +4 -8
index 116fc2c..a7796d3 100644
@@ -369,19 +369,15 @@ struct PACKED rt_rsn_capability {
 /*========================================
 	The prototype is defined in cmm_wpa.c
   ========================================*/
-BOOLEAN WpaMsgTypeSubst(u8 EAPType, int * MsgType);
+BOOLEAN WpaMsgTypeSubst(u8 EAPType, int *MsgType);
 
-void PRF(u8 * key,
-	 int key_len,
-	 u8 * prefix,
-	 int prefix_len,
-	 u8 * data, int data_len, u8 * output, int len);
+void PRF(u8 *key, int key_len, u8 *prefix, int prefix_len,
+	 u8 *data, int data_len, u8 *output, int len);
 
 int PasswordHash(char *password,
 		 unsigned char *ssid, int ssidlength, unsigned char *output);
 
-u8 *GetSuiteFromRSNIE(u8 *rsnie,
-			 u32 rsnie_len, u8 type, u8 * count);
+u8 *GetSuiteFromRSNIE(u8 *rsnie, u32 rsnie_len, u8 type, u8 *count);
 
 void WpaShowAllsuite(u8 *rsnie, u32 rsnie_len);
 
Signature · 1 line
1.7.4.rc0.5.gf2665
#5 lore raw

PATCH v2 2/3 Staging: rt2860: rt_linux.h: Fix space after unary '*' operator.

In reply to L. Alberto Giménez

Fix checkpatch error raised by the use of spaces between the '*' operator and the corresponding variable name.

---
 drivers/staging/rt2860/rt_linux.h |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
drivers/staging/rt2860/rt_linux.h +6 -6
index 92ff543..3efb88f 100644
@@ -102,8 +102,8 @@ extern const struct iw_handler_def rt28xx_iw_handler_def;
 /***********************************************************************************
  *	OS Specific definitions and data structures
  ***********************************************************************************/
-typedef int (*HARD_START_XMIT_FUNC) (struct sk_buff * skb,
-				     struct net_device * net_dev);
+typedef int (*HARD_START_XMIT_FUNC) (struct sk_buff *skb,
+				     struct net_device *net_dev);
 
 #ifdef RTMP_MAC_PCI
 #ifndef PCI_DEVICE
@@ -366,7 +366,7 @@ typedef void (*TIMER_FUNCTION) (unsigned long);
 
 #define ONE_TICK 1
 
-static inline void NdisGetSystemUpTime(unsigned long * time)
+static inline void NdisGetSystemUpTime(unsigned long *time)
 {
 	*time = jiffies;
 }
@@ -815,7 +815,7 @@ void linux_pci_unmap_single(struct rt_rtmp_adapter *pAd, dma_addr_t dma_addr,
 /***********************************************************************************
  *	Other function prototypes definitions
  ***********************************************************************************/
-void RTMP_GetCurrentSystemTime(LARGE_INTEGER * time);
+void RTMP_GetCurrentSystemTime(LARGE_INTEGER *time);
 int rt28xx_packet_xmit(struct sk_buff *skb);
 
 #ifdef RTMP_MAC_PCI
@@ -827,8 +827,8 @@ IRQ_HANDLE_TYPE rt2860_interrupt(int irq, void *dev_instance);
 
 int rt28xx_sta_ioctl(struct net_device *net_dev, IN OUT struct ifreq *rq, int cmd);
 
-extern int ra_mtd_write(int num, loff_t to, size_t len, const u_char * buf);
-extern int ra_mtd_read(int num, loff_t from, size_t len, u_char * buf);
+extern int ra_mtd_write(int num, loff_t to, size_t len, const u_char *buf);
+extern int ra_mtd_read(int num, loff_t from, size_t len, u_char *buf);
 
 #define GET_PAD_FROM_NET_DEV(_pAd, _net_dev)	(_pAd) = (struct rt_rtmp_adapter *)(_net_dev)->ml_priv;
 
Signature · 1 line
1.7.4.rc0.5.gf2665