scsi: elx: efct: Fix link error for _bad_cmpxchg
authorJames Smart <jsmart2021@gmail.com>
Fri, 18 Jun 2021 17:40:50 +0000 (10:40 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 19 Jun 2021 03:01:04 +0000 (23:01 -0400)
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 <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>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/elx/efct/efct_hw.h

index 32cff55..f3f4aa7 100644 (file)
@@ -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;