The patch below adds a comment about why it is safe to use in_atomic() in
authorvlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Thu, 26 Mar 2009 19:01:28 +0000 (19:01 +0000)
committervlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Thu, 26 Mar 2009 19:01:28 +0000 (19:01 +0000)
scst_cmd_atomic() -- the 2.6.29 checkpatch script issues a warning about it.
At the same time, the scst_cmd_atomic() comment has been converted to
kernel-doc style. See also Documentation/kernel-doc-nano-HOWTO.txt for more
information.

Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com>
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@723 d57e44dd-8a1f-0410-8b47-8ef2f437770f

scst/include/scst.h

index 5af7f45..02f2fcb 100644 (file)
@@ -2115,7 +2115,13 @@ static inline void scst_sess_set_tgt_priv(struct scst_session *sess,
        sess->tgt_priv = val;
 }
 
-/* Returns TRUE if cmd is being executed in atomic context */
+/**
+ * Returns TRUE if cmd is being executed in atomic context.
+ *
+ * Note: checkpatch will complain on the use of in_atomic() below. You can
+ * safely ignore this warning since in_atomic() is used here only for debugging
+ * purposes.
+ */
 static inline int scst_cmd_atomic(struct scst_cmd *cmd)
 {
        int res = cmd->atomic;