diff mbox series

elx: efct: fix link error for _bad_cmpxchg

Message ID 20210618174050.80302-1-jsmart2021@gmail.com (mailing list archive)
State Accepted
Headers show
Series elx: efct: fix link error for _bad_cmpxchg | expand

Commit Message

James Smart June 18, 2021, 5:40 p.m. UTC
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.

Fixes: 	ebc076b3eddc ("scsi: elx: efct: Tie into kernel Kconfig and build process")
Reported-by: kernel test robot <lkp@intel.com>
Co-developed-by: Ram Vegesna <ram.vegesna@broadcom.com>
Signed-off-by: Ram Vegesna <ram.vegesna@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
---
 drivers/scsi/elx/efct/efct_hw.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Martin K. Petersen June 19, 2021, 2:38 a.m. UTC | #1
James,

> cmpxchg is being used on a bool type, which is requiring architecture
> support that isn't compatible with a bool.

Applied to 5.14/scsi-staging, thanks!
diff mbox series

Patch

diff --git a/drivers/scsi/elx/efct/efct_hw.h b/drivers/scsi/elx/efct/efct_hw.h
index 32cff5548f0e..f3f4aa78dce9 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;