mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 09:11:27 +00:00
scst: Partially revert r9166
Apparently the RHEL 8.2 gcc compiler reports an error if __attribute__((fallthrough)) is used outside a switch statement. Hence this patch that converts some of these annotations back into comments. Reported-by: Rob Turk <robtu@rtist.nl> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9167 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -1289,7 +1289,7 @@ out:
|
||||
out_nomem:
|
||||
if (ucmd->cmd != NULL)
|
||||
scst_set_busy(ucmd->cmd);
|
||||
fallthrough;
|
||||
/* fall through */
|
||||
|
||||
out_err:
|
||||
if (ucmd->cmd != NULL)
|
||||
|
||||
@@ -1358,7 +1358,7 @@ set_res:
|
||||
TRACE_DBG_FLAG(TRACE_DEBUG|TRACE_MINOR, "Atomic context and "
|
||||
"non-WRITE data direction, rescheduling (cmd %p)", cmd);
|
||||
res = SCST_CMD_STATE_RES_NEED_THREAD;
|
||||
fallthrough;
|
||||
/* fall through */
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user