Skip to contentSkip to conversation

elx: efct: fix link error for _bad_cmpxchg

PATCH Applied James Smart 2 participants 2 messages Jun 18, 2021 – Jun 19, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

Fixes ebc076b3eddc ("scsi: elx: efct: Tie into kernel Kconfig and build process")
---
 drivers/scsi/elx/efct/efct_hw.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/elx/efct/efct_hw.h +1 -1
index 32cff5548f0e..f3f4aa78dce9 100644
@@ -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;
Signature · 1 line
2.26.2
#1 lore raw

James,

Quoted 2 lines

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!

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering