From 766979063e17352404e7b30291f63fa72712e918 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Thu, 26 Mar 2009 19:01:28 +0000 Subject: [PATCH] The patch below adds a comment about why it is safe to use in_atomic() in 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 git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@723 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/scst.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scst/include/scst.h b/scst/include/scst.h index 5af7f4555..02f2fcb06 100644 --- a/scst/include/scst.h +++ b/scst/include/scst.h @@ -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;