From patchwork Mon Jul 18 09:53:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sreekanth Reddy X-Patchwork-Id: 12921076 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B49FEC43334 for ; Mon, 18 Jul 2022 09:42:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234166AbiGRJmN (ORCPT ); Mon, 18 Jul 2022 05:42:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234189AbiGRJlv (ORCPT ); Mon, 18 Jul 2022 05:41:51 -0400 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40FA718B19 for ; Mon, 18 Jul 2022 02:41:49 -0700 (PDT) Received: by mail-pj1-x1034.google.com with SMTP id o5-20020a17090a3d4500b001ef76490983so12064986pjf.2 for ; Mon, 18 Jul 2022 02:41:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version; bh=jYzkq426+uqL/XFtDPOsAEQeK0doS0hRFdPKamrR8xg=; b=K2KREIocC7HROWrgOb6LcQ9KbctTq77umnqN92xOgTq7n/MK7Xc/NIG1nXMX6cVV6D /Tzbn3vhXps/UfqCnUdeZNyaAhWL0n0FNoSCHPmKl5ODqQ7eXAsbzo69b1iDMrsS8KVb vejVNeVtg0pcRlsTS/+eBSSDsyJ4v+LTLOK+Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version; bh=jYzkq426+uqL/XFtDPOsAEQeK0doS0hRFdPKamrR8xg=; b=67aNLvwNl/blHlCXda9KqlyE8/c7Yp6aUs5ntr98+YfwIjbXXs17QaaSUrwLRMh4gi eEs4IZgHZ0m8dgjkROV9r6kK17BLRbexBr7wJwYNGJEMI5OEZydjRJ1HnCI1uxERdyxA XjcEJ/hemmIvcs3gJrPOUH/TaQkG9mIClZUVK6ewUm/m+5/s7aturpHjz+kOqGWgpVYZ y/xa7exiAiRudxJKTMhXqlCeFYkR7DjhVySSf/K3oBtuf40IPnRkMokUCbPm+7fqnZ1j i9xr47rfl5CF3/i29dt8nTpxQ5K4PZciQmwPuABj5Cxxlv8Zi0NE//OZ79Vrp62JF+4a Bv1A== X-Gm-Message-State: AJIora9YJS1MjKXe8XLi/yCLD2xW2baahwpv2Cz7PnJK4NfzvQypjwJU teEXgL7KUC6+MsivgTRzdhPSksnwbqA4/lkCJEJpc87sujvrjG6Eh9Xm0UVgvSLyIg1F9xutDzY m60CW/DRxRi5LN79F/p9AGJ4v8NFERys//XWHQyFXhqcmnFnMBrk2DLn9wDKISzuasI+qzgjPLl 6Ap3MDR2c0s5s= X-Google-Smtp-Source: AGRyM1sacUSwr4dCPDJ4seXk2zNm4tqixu4ezDepf0IPNZVPIxFi2CAntCUmWSmgYW3/hRQ9l86qYQ== X-Received: by 2002:a17:902:d542:b0:16c:8ac:f471 with SMTP id z2-20020a170902d54200b0016c08acf471mr27744231plf.39.1658137308932; Mon, 18 Jul 2022 02:41:48 -0700 (PDT) Received: from dhcp-10-123-20-36.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id x19-20020aa79413000000b0052b66304d54sm2303092pfo.74.2022.07.18.02.41.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Jul 2022 02:41:48 -0700 (PDT) From: Sreekanth Reddy To: linux-scsi@vger.kernel.org Cc: martin.petersen@oracle.com, Sreekanth Reddy , Guenter Roeck Subject: [PATCH v2 1/1] mpi3mr: Fix compilation errors observed on i386 arch Date: Mon, 18 Jul 2022 15:23:51 +0530 Message-Id: <20220718095351.15868-2-sreekanth.reddy@broadcom.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220718095351.15868-1-sreekanth.reddy@broadcom.com> References: <20220718095351.15868-1-sreekanth.reddy@broadcom.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org 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 Signed-off-by: Sreekanth Reddy --- 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);