Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp663417pxb; Tue, 5 Apr 2022 17:50:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzL/CWJqp0IZO7JUljrQI7k3CovBIRClTd4LYY+dx0J6m6V0VCGklyIaOIO4wOkeJZFx4hE X-Received: by 2002:a17:907:7205:b0:6e7:ee50:ea94 with SMTP id dr5-20020a170907720500b006e7ee50ea94mr6070156ejc.351.1649206252439; Tue, 05 Apr 2022 17:50:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649206252; cv=none; d=google.com; s=arc-20160816; b=WrU8V7kFEX9CG6mjTFlAvvRqiKv75U3d0w6+COM8611681lKQBl4mhMHlaNn1hE3XG XPCXdZy81efMvIfZFUsXUJoQsy5yxxrun8OiHr5Hb7XZ6gcGmQ2GjbTkXDSDTox84qdm k9sxEX3oFbDfBk9R+hfPQpdkeQR/97lj6LHqdSjN75ftLEAHObIv25jRq/Qc1qEytLpl nYUpEtu0TnpeDpiFkE2oMznNmhmaLg5uVWLxBlpeq70hwQy3U0H5LL9sidnkFfzzRBzO LX/wztQxxzJuZT/B+08g66ywKbtsIyRQ5m8T8G/DHbtIXv2jiT6gv2NgetLQ/7hn/Bad tSAA== 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=2huZ+H3qlFIZL1vqpcfGaMX7Q82ATQ++mz1QhgJ8ZA8=; b=WrFwTRmg70S1xlSfOTGYRG019u4eer9MPRPPk+N9nHO0PxoiGgIC82lt3QLit3cODI sxKuW7QK/+qtuJ9/NF8EIAILTCD+m3+whGRJQELFIt2/4bXCCeEM6cWY+keQjICFsMmZ g9zO6jCxmVE1RM+P7lB91NTE0AoLMBZ7dL1FZj7LhErbrJwTfql4CxSw1WzTq07nkctk koVgbycjMCE0QG5VfjBfwzD+fkHBLOBLkgIKhoMxosvHNtqocxoX5EJr9r6yQzDsGITs hTRyyLmiOiiqDCgt8Q/Mn82ozmIuLFWCx+72xJejRt0Z5bV/EK0A6BqF4T+n9iunxfEP evbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=SLSStXzB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e9-20020a056402190900b00418c2b5bdc7si13877358edz.169.2022.04.05.17.50.27; Tue, 05 Apr 2022 17:50:52 -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=@linuxfoundation.org header.s=korg header.b=SLSStXzB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1385814AbiDEMix (ORCPT + 99 others); Tue, 5 Apr 2022 08:38:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237049AbiDEJDy (ORCPT ); Tue, 5 Apr 2022 05:03:54 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85ABD10B2; Tue, 5 Apr 2022 01:55:28 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 21CB961564; Tue, 5 Apr 2022 08:55:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 26E9EC385A0; Tue, 5 Apr 2022 08:55:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649148927; bh=EaXiPRpTup/s8vEzjw730Y9L6Mo/F6CwKvdhIr4x62w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SLSStXzBtMW1Ppxx4T2q+e1wi5Ay8y53LWE2ACF9pI3v2dXAKxeur4gDCT+K48z1M lFgfW0RLa9TWWy818BaedkMOQ4jZF2oMDliclnZN1pLWPlgyknKbU8MWU3zHjJL/gf 2Cbw4Dbo/tGgayw9KRiPg7QZvHi5MMdtHKIYjRw4= 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.16 0531/1017] scsi: pm8001: Fix command initialization in pm8001_chip_ssp_tm_req() Date: Tue, 5 Apr 2022 09:24:04 +0200 Message-Id: <20220405070410.055506150@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070354.155796697@linuxfoundation.org> References: <20220405070354.155796697@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=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 f364495ab40e..eca1ab198314 100644 --- a/drivers/scsi/pm8001/pm8001_hwi.c +++ b/drivers/scsi/pm8001/pm8001_hwi.c @@ -4637,7 +4637,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