From: James Smart Date: Fri, 18 Jun 2021 17:40:50 +0000 (-0700) Subject: scsi: elx: efct: Fix link error for _bad_cmpxchg X-Git-Tag: v5.15~733^2~31 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d66a65b7f5d219528520e287ff53aea1b5252ec3;p=platform%2Fkernel%2Flinux-starfive.git scsi: elx: efct: Fix link error for _bad_cmpxchg cmpxchg is being used on a bool type, which is requiring architecture support that isn't compatible with a bool. Convert variable abort_in_progress from bool to int. Link: https://lore.kernel.org/r/20210618174050.80302-1-jsmart2021@gmail.com Fixes: ebc076b3eddc ("scsi: elx: efct: Tie into kernel Kconfig and build process") Reported-by: kernel test robot Co-developed-by: Ram Vegesna Signed-off-by: Ram Vegesna Signed-off-by: James Smart Signed-off-by: Martin K. Petersen --- diff --git a/drivers/scsi/elx/efct/efct_hw.h b/drivers/scsi/elx/efct/efct_hw.h index 32cff55..f3f4aa7 100644 --- a/drivers/scsi/elx/efct/efct_hw.h +++ b/drivers/scsi/elx/efct/efct_hw.h @@ -223,7 +223,7 @@ struct efct_hw_io { struct efc_dma xfer_rdy; u16 type; bool xbusy; - bool abort_in_progress; + int abort_in_progress; bool status_saved; u8 wq_class; u16 reqtag;