public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
* Did I create this patch correctly (for checkpatch fixes)?
@ 2012-09-23 15:55 Harsh Kumar
  2012-09-23 16:15 ` Dan Carpenter
  0 siblings, 1 reply; 2+ messages in thread
From: Harsh Kumar @ 2012-09-23 15:55 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 300 bytes --]

Hi,

I have created a patch for the first time. It is a small change (only
3 line change). I ran checkpatch.pl on my patch file and there were no
problems. But can somebody please tell me:

1.) Are the fixes for checkpatch.pl issues correct?
2.) Is the patch file correctly made?

Thanks
Harsh Kumar

[-- Attachment #2: checkpatchfix_driverstaging.patch --]
[-- Type: application/octet-stream, Size: 1474 bytes --]

Drivers: Staging: checkpatch fixes for winbond/sme_api.h
Signed-off-by: Harsh Kumar <harsh1kumar@gmail.com>
diff -uNr linux-3.6-rc6.orig/drivers/staging/winbond/sme_api.h linux-3.6-rc6.new/drivers/staging/winbond/sme_api.h
--- linux-3.6-rc6.orig/drivers/staging/winbond/sme_api.h	2012-09-17 03:28:51.000000000 +0530
+++ linux-3.6-rc6.new/drivers/staging/winbond/sme_api.h	2012-09-23 14:25:02.688763002 +0530
@@ -12,7 +12,7 @@
 #include "localpara.h"
 
 /****************** CONSTANT AND MACRO SECTION ******************************/
-#define _INLINE				__inline
+#define _INLINE				inline
 
 #define MEDIA_STATE_DISCONNECTED	0
 #define MEDIA_STATE_CONNECTED		1
@@ -31,7 +31,7 @@
 
 /* OID_802_11_SSID */
 s8 sme_get_ssid(void *pcore_data, u8 *pssid, u8 *pssid_len);
-s8 sme_get_desired_ssid(void *pcore_data, u8 *pssid, u8 *pssid_len);/* Not use */
+s8 sme_get_desired_ssid(void *pcore_data, u8 *pssid, u8 *pssid_len);/*Not use*/
 s8 sme_set_desired_ssid(void *pcore_data, u8 *pssid, u8 ssid_len);
 
 /* OID_802_11_INFRASTRUCTURE_MODE */
@@ -138,7 +138,7 @@
 s8 sme_get_txrate_policy(void *pcore_data, u8 *policy);
 s8 sme_get_cwmin_value(void *pcore_data, u8 *cwmin);
 s8 sme_get_cwmax_value(void *pcore_data, u16 *cwmax);
-s8 sme_get_ms_radio_mode(void *pcore_data, u8 * pMsRadioOff);
+s8 sme_get_ms_radio_mode(void *pcore_data, u8 *pMsRadioOff);
 s8 sme_set_ms_radio_mode(void *pcore_data, u8 boMsRadioOff);
 
 void sme_get_tx_power_level(void *pcore_data, u32 *TxPower);

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-09-23 16:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-23 15:55 Did I create this patch correctly (for checkpatch fixes)? Harsh Kumar
2012-09-23 16:15 ` Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox