ib_srpt: Rewrite the gcc <= 4.6 compiler bug workaround such that it doesn't trigger a checkpatch complaint

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4258 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2012-05-01 06:46:28 +00:00
parent 96cbffaad5
commit 8f1017612b

View File

@@ -2003,9 +2003,11 @@ static int srpt_compl_thread(void *arg)
BUG_ON(!ch);
set_current_state(TASK_INTERRUPTIBLE);
#if defined(__GNUC__) && ((__GNUC__ -0) * 100 + __GNUC_MINOR__ -0) <= 406
#if defined(__GNUC__)
#if (__GNUC__ * 100 + __GNUC_MINOR__) <= 406
/* See also http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52925. */
barrier();
#endif
#endif
while (ch->state < CH_LIVE) {
srpt_process_completion(ch->cq, ch, SCST_CONTEXT_THREAD,
@@ -2019,9 +2021,11 @@ static int srpt_compl_thread(void *arg)
ch->rtu_received = true;
set_current_state(TASK_INTERRUPTIBLE);
#if defined(__GNUC__) && ((__GNUC__ -0) * 100 + __GNUC_MINOR__ -0) <= 406
#if defined(__GNUC__)
#if (__GNUC__ * 100 + __GNUC_MINOR__) <= 406
/* See also http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52925. */
barrier();
#endif
#endif
while (!ch->last_wqe_received) {
srpt_process_completion(ch->cq, ch, SCST_CONTEXT_THREAD,