Subject: build failure of next-20220715 due to "cast from pointer to integer of different size"

From: "Sudip Mukherjee (Codethink)" <[email-masked]>
Date: Sat, 16 Jul 2022 00:20:56 +0100

Hi All,

Not sure if it has been reported, builds of xtensa, csky and mips allmodsconfig
have failed to build next-20220715 with the error:

drivers/scsi/mpi3mr/mpi3mr_os.c: In function 'mpi3mr_queue_qd_reduction_event':
drivers/scsi/mpi3mr/mpi3mr_os.c:389:40: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
  389 |         *(__le64 *)fwevt->event_data = (__le64)tg;
      |                                        ^
drivers/scsi/mpi3mr/mpi3mr_os.c: In function 'mpi3mr_fwevt_bh':
drivers/scsi/mpi3mr/mpi3mr_os.c:1655:22: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
 1655 |                 tg = (struct mpi3mr_throttle_group_info *)
      |                   

--
Regards
Sudip