drivers: staging: lustre: Fix 'do not use C99 // comments' errors
authorGreg Donald <gdonald@gmail.com>
Mon, 1 Sep 2014 11:36:14 +0000 (06:36 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Sep 2014 17:30:48 +0000 (10:30 -0700)
Fix checkpatch.pl 'do not use C99 // comments' errors

Signed-off-by: Greg Donald <gdonald@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/klnds/socklnd/socklnd_cb.c
drivers/staging/lustre/lustre/include/lustre_cfg.h
drivers/staging/lustre/lustre/include/lustre_disk.h
drivers/staging/lustre/lustre/libcfs/linux/linux-debug.c
drivers/staging/lustre/lustre/llite/dir.c
drivers/staging/lustre/lustre/llite/llite_internal.h

index b82ba996b2a16caf2690a26d736479285583fc9a..6c8b1e1729c29339b4dff8c06ffa43b6cc00876c 100644 (file)
@@ -1594,8 +1594,8 @@ void ksocknal_write_callback (ksock_conn_t *conn)
 
        conn->ksnc_tx_ready = 1;
 
-       if (!conn->ksnc_tx_scheduled && // not being progressed
-           !list_empty(&conn->ksnc_tx_queue)){//packets to send
+       if (!conn->ksnc_tx_scheduled && /* not being progressed */
+           !list_empty(&conn->ksnc_tx_queue)) { /* packets to send */
                list_add_tail (&conn->ksnc_tx_list,
                                   &sched->kss_tx_conns);
                conn->ksnc_tx_scheduled = 1;
index 03017fe49d46748c5d84ab378508575ff0224c89..7b385b87261a4fe5de756d1f959578000700848d 100644 (file)
@@ -290,4 +290,4 @@ static inline int lustre_cfg_sanity_check(void *buf, int len)
 
 /** @} cfg */
 
-#endif // _LUSTRE_CFG_H
+#endif /* _LUSTRE_CFG_H */
index 7f191eed2a818d11c9566078fe6b3ec00f75420e..515b835ce14dd0bbe6d5a9af676145ee0bbd51be 100644 (file)
@@ -545,4 +545,4 @@ int mgc_fsname2resid(char *fsname, struct ldlm_res_id *res_id, int type);
 
 /** @} disk */
 
-#endif // _LUSTRE_DISK_H
+#endif /* _LUSTRE_DISK_H */
index eaa423d13650319bd53ea8c08f7adfd95fbae735..be6a1442dfe3c58f7735f30764db8e875c221b16 100644 (file)
@@ -82,7 +82,7 @@ void libcfs_run_debug_log_upcall(char *file)
        argv[0] = lnet_debug_log_upcall;
 
        LASSERTF(file != NULL, "called on a null filename\n");
-       argv[1] = file; //only need to pass the path of the file
+       argv[1] = file; /* only need to pass the path of the file */
 
        argv[2] = NULL;
 
index 55b5291ec1325a35da69b1e073648e7235160a6f..b4e46eb3f84aa47401b9edcbc9d41a3d614b9576 100644 (file)
@@ -42,7 +42,7 @@
 #include <linux/pagemap.h>
 #include <linux/mm.h>
 #include <asm/uaccess.h>
-#include <linux/buffer_head.h>   // for wait_on_buffer
+#include <linux/buffer_head.h>   /* for wait_on_buffer */
 #include <linux/pagevec.h>
 #include <linux/prefetch.h>
 
index 5c4641f655c3b3180678ecab008df8690e9f2ac0..36aa0fd147f28919f7df89ce85bde0a9a186b879 100644 (file)
@@ -305,8 +305,8 @@ int ll_xattr_cache_get(struct inode *inode,
 void ll_inode_size_lock(struct inode *inode);
 void ll_inode_size_unlock(struct inode *inode);
 
-// FIXME: replace the name of this with LL_I to conform to kernel stuff
-// static inline struct ll_inode_info *LL_I(struct inode *inode)
+/* FIXME: replace the name of this with LL_I to conform to kernel stuff */
+/* static inline struct ll_inode_info *LL_I(struct inode *inode) */
 static inline struct ll_inode_info *ll_i2info(struct inode *inode)
 {
        return container_of(inode, struct ll_inode_info, lli_vfs_inode);
@@ -1036,7 +1036,7 @@ static inline struct client_obd *sbi2mdc(struct ll_sb_info *sbi)
        return &obd->u.cli;
 }
 
-// FIXME: replace the name of this with LL_SB to conform to kernel stuff
+/* FIXME: replace the name of this with LL_SB to conform to kernel stuff */
 static inline struct ll_sb_info *ll_i2sbi(struct inode *inode)
 {
        return ll_s2sbi(inode->i_sb);