Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp958528pxb; Wed, 6 Apr 2022 05:19:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdJqwl7iA+Y05AkefDVHgavkyucxgSm0QF5c2fEc1b7r6HpBpuWxaGCAM+JQvxeADDByzE X-Received: by 2002:a17:903:20d:b0:154:8227:a389 with SMTP id r13-20020a170903020d00b001548227a389mr8518922plh.142.1649247571272; Wed, 06 Apr 2022 05:19:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649247571; cv=none; d=google.com; s=arc-20160816; b=RmIDWpAyW35GmrbWrkMasD1+fVvAtf94jCCBnT4M0+SaFVqkygKg5Z/Kld0AncwQbk pW96OQtt2qxDyvsapVQvprAVuCb6/FGYiuHwET0AYSqlRI25RcjIJff2fdMlXLLQrVRm x8MuOSekJ0J+BjaxA9xrBNjz2PO4LJ4mFc/lX8dDVivfBTi05wVRAH4QCqee3OUEy87i Sp4qsBHkGn5iktKTq2GefnEfus5SDHRenvkEbsg4G8twOms78zYCWc21vT8ll3a6dNew VGGk0HNK1k8nK2MtIVbkXOjVVdXtLSwcytWA/ufD6QD0z4Cm4ONJbZcVjnb+gzbxqU1W UwRw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=jE3GrX1EwLKoyA8JriAbM3OLdoRaVgPw5b6TXc+phM4=; b=fpCa0KbISvWTU1kXiNQRUc0gqSMmDAjzu74tuHjiH49nbDu490ZWjcrgpqLGLdJ4WP sDCMnR5ywusu3WhrIZfLq8auPhTddifWW02+whvEbYoGcogkU+IVBuK4CWY/BamduFPR mKiGK6fkebv+SiiIVecfX5j2ISDMBhZIBNjsSkcIMBpN9FJJQhGy/98Z+WeEHru3osHN hdKNO9Xoe/z/OCvF9FGelDj4HSUxagV11RJD9iHTmJyx8sJeHF8VR4JIUGrojjtQKxaU Wq2YP6M+PEziOrk6IWygbYyh8MhobFSOhLbycfwulceFk8VV8yxys46tljYk6eSjWwC5 DqCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=guChPGv7; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id b13-20020a63714d000000b0038295fbcb98si18249066pgn.247.2022.04.06.05.19.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 05:19:31 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=guChPGv7; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8A00252E560; Wed, 6 Apr 2022 04:04:50 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1456903AbiDEXHP (ORCPT + 99 others); Tue, 5 Apr 2022 19:07:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349085AbiDEJtG (ORCPT ); Tue, 5 Apr 2022 05:49:06 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3ACCEA9957; Tue, 5 Apr 2022 02:40:26 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id D76BDB81C14; Tue, 5 Apr 2022 09:40:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2B2D8C385A1; Tue, 5 Apr 2022 09:40:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649151623; bh=2qwiJmnx37qZrjF2BfWvJ3zWu1bYMpI5eeMXH9PglFE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=guChPGv7uZDwiRO4mLYOMoD5SxkMSB5mA7BERtaSTwhDWR3+REVMX3ODZ8T5QtZNa YhprtWj9mlwLLNu+FWtqNckBxUmGH22pDFQinf6JfgzTp80IS4ksdVga/JfhLxS2Ro F7vHLLZfNwvZPvJYBga0XNx4+/mXWXhgHZyGK1JE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jack Wang , Damien Le Moal , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 5.15 481/913] scsi: pm8001: Fix command initialization in pm8001_chip_ssp_tm_req() Date: Tue, 5 Apr 2022 09:25:43 +0200 Message-Id: <20220405070354.273841744@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 From: Damien Le Moal [ Upstream commit cd2268a180117aa8ebb23e090ba204324b2d0e93 ] The ds_ads_m field of struct ssp_ini_tm_start_req has the type __le32. Assigning a value to it should thus use cpu_to_le32(). This fixes the sparse warning: warning: incorrect type in assignment (different base types) expected restricted __le32 [addressable] [assigned] [usertype] ds_ads_m got int Link: https://lore.kernel.org/r/20220220031810.738362-7-damien.lemoal@opensource.wdc.com Fixes: dbf9bfe61571 ("[SCSI] pm8001: add SAS/SATA HBA driver") Reviewed-by: Jack Wang Signed-off-by: Damien Le Moal Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/pm8001/pm8001_hwi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/pm8001/pm8001_hwi.c b/drivers/scsi/pm8001/pm8001_hwi.c index 1e1630a1a97c..bad0c8b8cbe1 100644 --- a/drivers/scsi/pm8001/pm8001_hwi.c +++ b/drivers/scsi/pm8001/pm8001_hwi.c @@ -4633,7 +4633,7 @@ int pm8001_chip_ssp_tm_req(struct pm8001_hba_info *pm8001_ha, memcpy(sspTMCmd.lun, task->ssp_task.LUN, 8); sspTMCmd.tag = cpu_to_le32(ccb->ccb_tag); if (pm8001_ha->chip_id != chip_8001) - sspTMCmd.ds_ads_m = 0x08; + sspTMCmd.ds_ads_m = cpu_to_le32(0x08); circularQ = &pm8001_ha->inbnd_q_tbl[0]; ret = pm8001_mpi_build_cmd(pm8001_ha, circularQ, opc, &sspTMCmd, sizeof(sspTMCmd), 0); -- 2.34.1