All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/1] mpi3mr: Fix compilation errors on i386 arch
@ 2022-07-18  9:53 Sreekanth Reddy
  2022-07-18  9:53 ` [PATCH v2 1/1] mpi3mr: Fix compilation errors observed " Sreekanth Reddy
  0 siblings, 1 reply; 4+ messages in thread
From: Sreekanth Reddy @ 2022-07-18  9:53 UTC (permalink / raw)
  To: linux-scsi; +Cc: martin.petersen, Sreekanth Reddy

[-- Attachment #1: Type: text/plain, Size: 388 bytes --]

Fix below compilation errors observed on i386 arch
with allyesconfig config

cast from pointer to integer of different size
[-Werror=pointer-to-int-cast]
and
cast to pointer from integer of different size

Sreekanth Reddy (1):
  mpi3mr: Fix compilation errors observed on i386 arch

 drivers/scsi/mpi3mr/mpi3mr_os.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

-- 
2.27.0


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4218 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: [PATCH v2 1/1] mpi3mr: Fix compilation errors observed on i386 arch
@ 2022-07-18 13:09 Guenter Roeck
  0 siblings, 0 replies; 4+ messages in thread
From: Guenter Roeck @ 2022-07-18 13:09 UTC (permalink / raw)
  To: Sreekanth Reddy; +Cc: linux-scsi, martin.petersen

On Mon, Jul 18, 2022 at 03:23:51PM +0530, Sreekanth Reddy wrote:
> Fix below compilation errors observed on i386 ARCH,
> 
> cast from pointer to integer of different size
> [-Werror=pointer-to-int-cast]
> 
> Fixes: c196bc4dce ("scsi: mpi3mr: Reduce VD queue depth on detecting throttling")
> Reported-by: Guenter Roeck <linux@roeck-us.net>
> Signed-off-by: Sreekanth Reddy <sreekanth.reddy@broadcom.com>

Tested-by: Guenter Roeck <linux@roeck-us.net>

> ---
>  drivers/scsi/mpi3mr/mpi3mr_os.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/scsi/mpi3mr/mpi3mr_os.c b/drivers/scsi/mpi3mr/mpi3mr_os.c
> index 0901bc932d5c..4102636df4fc 100644
> --- a/drivers/scsi/mpi3mr/mpi3mr_os.c
> +++ b/drivers/scsi/mpi3mr/mpi3mr_os.c
> @@ -386,7 +386,7 @@ static void mpi3mr_queue_qd_reduction_event(struct mpi3mr_ioc *mrioc,
>  		ioc_warn(mrioc, "failed to queue TG QD reduction event\n");
>  		return;
>  	}
> -	*(__le64 *)fwevt->event_data = (__le64)tg;
> +	*(struct mpi3mr_throttle_group_info **)fwevt->event_data = tg;
>  	fwevt->mrioc = mrioc;
>  	fwevt->event_id = MPI3MR_DRIVER_EVENT_TG_QD_REDUCTION;
>  	fwevt->send_ack = 0;
> @@ -1660,8 +1660,7 @@ static void mpi3mr_fwevt_bh(struct mpi3mr_ioc *mrioc,
>  	{
>  		struct mpi3mr_throttle_group_info *tg;
>  
> -		tg = (struct mpi3mr_throttle_group_info *)
> -		    (*(__le64 *)fwevt->event_data);
> +		tg = *(struct mpi3mr_throttle_group_info **)fwevt->event_data;
>  		dprint_event_bh(mrioc,
>  		    "qd reduction event processed for tg_id(%d) reduction_needed(%d)\n",
>  		    tg->id, tg->need_qd_reduction);
> -- 
> 2.27.0
> 
> 
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-07-19  2:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-18  9:53 [PATCH v2 0/1] mpi3mr: Fix compilation errors on i386 arch Sreekanth Reddy
2022-07-18  9:53 ` [PATCH v2 1/1] mpi3mr: Fix compilation errors observed " Sreekanth Reddy
2022-07-19  2:39   ` Martin K. Petersen
  -- strict thread matches above, loose matches on Subject: below --
2022-07-18 13:09 Guenter Roeck

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.