From patchwork Sun May 7 15:22:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe JAILLET X-Patchwork-Id: 90849 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1627479vqo; Sun, 7 May 2023 08:23:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5bRO7/rWsxuZ5gSVN8ty46OCVPxEedhPIOXhBVzJHb4ygU+SMR3cCfSwY2p5kru23/gkk+ X-Received: by 2002:a05:6a21:3285:b0:100:8785:a0ab with SMTP id yt5-20020a056a21328500b001008785a0abmr8491pzb.26.1683473005446; Sun, 07 May 2023 08:23:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683473005; cv=none; d=google.com; s=arc-20160816; b=n0r7LGEa4cXo8NxDd+pmY4C7fZ/mvEjgVslld/CX2e1WyMtvve4mVZCv9UraG0WOKN TlrXkOzbRTCjchXxWKG3y/9D8cbbzxh/MnpcAUoYG3PBBNiRXnX6Blh9V2lNIsPX6zDY E7ioVxE6itBf+QcO5U1ywT79YvolTS1+EMYdxsvHxQel2XgEBDhjqK4M1IA40679qxoU zsvp8FloL3Yf+IXp+SC6e9+0DRBe/UDHdTyi6LrZNbkePy1TLv+0GtaPGpspr36K2Zrr nUoE9wXVMQnFrrX9aR6jIOZrgsmfQOWKF25Qe8Fbwa2uooZgyLFrpD17sMFMr81q0kdZ WXEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=I6v/9qwu418rPG9padWDpMt9k7O+xJOyw+vQEwDIKVg=; b=0uNgNV75tM0ckmvHB1KuFGd4Mvx/1G0/O+JCc67vWcEJ+dWpkIoaW42uQELOIaz+54 riN2YUxuyXKcpWAxs3T8/jLDFrbLHMxty+szA6o4O1qw13alWa2YQVeyeFVqTE2N3K5M MVrVBHHqXKNjI3r227XKFpUSTFEXDGAEpPWQ5ksYUSXaHNb5D4vaTcIz6cZSsn9atdOK Tjo2IlSBCUMamC7EEnamvFNn/1ILbJLm114fd5SS54tVXylqAeUCaBs5X3pynlnDZ7kj GCdKm43mwUTXrUACNoYX8WFJ48ml7CrNhQ95deH40aHJPqyt4AecxPrtY6B4ehPp+YIc rzHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=Tpn1eTHP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n18-20020a637212000000b0051a8a22a42dsi6573835pgc.268.2023.05.07.08.23.09; Sun, 07 May 2023 08:23:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=Tpn1eTHP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229472AbjEGPWT (ORCPT + 99 others); Sun, 7 May 2023 11:22:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229986AbjEGPWR (ORCPT ); Sun, 7 May 2023 11:22:17 -0400 Received: from smtp.smtpout.orange.fr (smtp-24.smtpout.orange.fr [80.12.242.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCA125FF2 for ; Sun, 7 May 2023 08:22:15 -0700 (PDT) Received: from pop-os.home ([86.243.2.178]) by smtp.orange.fr with ESMTPA id vgDDpvXaKGGqgvgDDpcwUC; Sun, 07 May 2023 17:22:13 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1683472933; bh=I6v/9qwu418rPG9padWDpMt9k7O+xJOyw+vQEwDIKVg=; h=From:To:Cc:Subject:Date; b=Tpn1eTHPwGQl9t/TXXTEWoDe5wjOKWa8xl/XMUaM+LwitkS85U0d+eZzlY8KKD09N 9DA5g46Xnc9+eMkIlzNgJD58rDem0bCSSW8MNQCzRd9wxKE/ZmgzInmO/q2nT1W8be LepW6wu2evBnCTkc/sQAu1veARRc518oMvhxgkQ1MF2gXm6WEla3sQtPXGl0jOU8v1 kz8L3Fg6U8qeeqnUiX+ki23kF/tMqctwlRhKHZ5qVsjx2gbaKsPgpCiub2v/i2YKiU 6QXnLksuf6U58Ye7a/ays6j4tMYk3eEiv1ScZjhVPu1Y59KhoLAwY3IfjauTjAm2rv bFebmCcTFH+xQ== X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sun, 07 May 2023 17:22:13 +0200 X-ME-IP: 86.243.2.178 From: Christophe JAILLET To: Sathya Prakash Veerichetty , Kashyap Desai , Sumit Saxena , Sreekanth Reddy , "James E.J. Bottomley" , "Martin K. Petersen" Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , mpi3mr-linuxdrv.pdl@broadcom.com, linux-scsi@vger.kernel.org Subject: [PATCH] scsi: mpi3mr: Fix the type used for pointers to bitmap Date: Sun, 7 May 2023 17:22:10 +0200 Message-Id: <5ff41d1b0f1020c37a5efab9fd8df4244bd0fb5a.1683472897.git.christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765249390224293811?= X-GMAIL-MSGID: =?utf-8?q?1765249390224293811?= Bitmaps are "unsigned long[]", so better use "unsigned long *" instead of a plain "void *" when dealing with pointers to bitmaps. This is more informative. Signed-off-by: Christophe JAILLET --- drivers/scsi/mpi3mr/mpi3mr.h | 2 +- drivers/scsi/mpi3mr/mpi3mr_fw.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/mpi3mr/mpi3mr.h b/drivers/scsi/mpi3mr/mpi3mr.h index dfe6b87fe288..eaa5a508811e 100644 --- a/drivers/scsi/mpi3mr/mpi3mr.h +++ b/drivers/scsi/mpi3mr/mpi3mr.h @@ -1142,7 +1142,7 @@ struct mpi3mr_ioc { struct mpi3mr_drv_cmd evtack_cmds[MPI3MR_NUM_EVTACKCMD]; void *devrem_bitmap; u16 dev_handle_bitmap_bits; - void *removepend_bitmap; + unsigned long *removepend_bitmap; struct list_head delayed_rmhs_list; void *evtack_cmds_bitmap; struct list_head delayed_evtack_cmds_list; diff --git a/drivers/scsi/mpi3mr/mpi3mr_fw.c b/drivers/scsi/mpi3mr/mpi3mr_fw.c index 075fa67e95ee..9b56d13821c6 100644 --- a/drivers/scsi/mpi3mr/mpi3mr_fw.c +++ b/drivers/scsi/mpi3mr/mpi3mr_fw.c @@ -1134,7 +1134,7 @@ static int mpi3mr_issue_and_process_mur(struct mpi3mr_ioc *mrioc, static int mpi3mr_revalidate_factsdata(struct mpi3mr_ioc *mrioc) { - void *removepend_bitmap; + unsigned long *removepend_bitmap; if (mrioc->facts.reply_sz > mrioc->reply_sz) { ioc_err(mrioc,