Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp957169pxb; Wed, 6 Apr 2022 05:17:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzC6LpthkSScEMqmDQNIOEgTZKxzuo484aedUcdeYzN1ebb6RWFIqmsctPF2wu6wt56Zdu8 X-Received: by 2002:a63:3605:0:b0:398:6e02:8578 with SMTP id d5-20020a633605000000b003986e028578mr6837127pga.368.1649247452479; Wed, 06 Apr 2022 05:17:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649247452; cv=none; d=google.com; s=arc-20160816; b=HsE1dd86V/2et2vaKcZ5s1hp2paVVkgL4t0Eb5uCFAwsBkOihDJ2SfgsbYHym2B/aC C9p7Cx1WD82kn1jPgvxDNu3F4V46vRpjyTxsrRNAcBmlGMPBJsYuH+RSnjEihmc4m/m4 D3nml9DUDCjr4hnG71UVyLmB3rpFSfBYHeJsA10po9UHTZzzG/6i7RoD7ijCZzw+xmFB PbYma7iyQ9mNUNI8L/QcvICD9TnyDgAdLU0VnmBE2S9hhjoNGQ7uqtHknJfszsFwi7Ed UhjZCZbwSOPs1msfCYkvR+/SCxMSqZvh3vUQ4viH8gVQp8+rlDtdUxeztn7Z34Hbk8Sw FobA== 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=Ba0zrvQgw9AW4vwYiEKAFqWAFkpXWsODfWfdl9cRNzM=; b=uJo8KzyKo3OxGx/oJJL7tsJiG99o25UBcM1e6tWzAYNayzbLQu74w/gjBmXL1h1rdR pjZRMVtl4HCnps2AqFrOQ/Ho/7aGfeJHmo4wFnWfTNz8RubrAtcaPBXLSWE9GNXS8x0N oFlDKrGe0iuJP5ferz5DqBs1iFQUbyysofVXE5kwwfPWKpr2leJQ0pOYNjoaH/TVQEeK Vte0pXrTP+BgoVU5yHZ0ePBkn6qtaustTE25JH+8hFrF3su0nJqIO32m3+/qYez6nXSb 6t70WcuP9edMGv+GDpiczL8vn2L7BXsMU06DoRMmgVeh/CJsMZXqFdh/BxIFg/UewCyW J9Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mtxXlqVz; 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 s10-20020a056a0008ca00b004fe3a6f4b19si5632913pfu.152.2022.04.06.05.17.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 05:17:32 -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=mtxXlqVz; 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 767046C2E08; Wed, 6 Apr 2022 03:59:33 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1446851AbiDEWvB (ORCPT + 99 others); Tue, 5 Apr 2022 18:51:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349086AbiDEJtG (ORCPT ); Tue, 5 Apr 2022 05:49:06 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2F2DA9958; Tue, 5 Apr 2022 02:40: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 ams.source.kernel.org (Postfix) with ESMTPS id 64546B81B14; Tue, 5 Apr 2022 09:40:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D3007C385A1; Tue, 5 Apr 2022 09:40:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649151626; bh=/fOvHyfuNZxEjQinF8Uu0DrUexcyDz192XnxFGsCerg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mtxXlqVzXztEh0xDI+kuXGQUTPCNAp7vLwVEtUl04dmxSHAY8GbLtiOsbrxR8MDBG EzuzEfq0H2vgmRaIfoWvenE64HLpxAsYxMIaBpoywm0IEd+D1lAIrviITWJKc7nKXd N0nQLjGHxNnoGKG08wldJcq2uS890P8MfEP5bZWk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, John Garry , Jack Wang , Damien Le Moal , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 5.15 482/913] scsi: pm8001: Fix payload initialization in pm80xx_set_thermal_config() Date: Tue, 5 Apr 2022 09:25:44 +0200 Message-Id: <20220405070354.303822296@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 bb225b12dbcc82d53d637d10b8d70b64494f8c16 ] The fields of the set_ctrl_cfg_req structure have the __le32 type, so use cpu_to_le32() to assign them. This removes the sparse warnings: warning: incorrect type in assignment (different base types) expected restricted __le32 got unsigned int Link: https://lore.kernel.org/r/20220220031810.738362-8-damien.lemoal@opensource.wdc.com Fixes: 842784e0d15b ("pm80xx: Update For Thermal Page Code") Fixes: f5860992db55 ("[SCSI] pm80xx: Added SPCv/ve specific hardware functionalities and relevant changes in common files") Reviewed-by: John Garry Reviewed-by: Jack Wang Signed-off-by: Damien Le Moal Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/pm8001/pm80xx_hwi.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/pm8001/pm80xx_hwi.c b/drivers/scsi/pm8001/pm80xx_hwi.c index 11887ac8ad0f..ed6b5e7c2136 100644 --- a/drivers/scsi/pm8001/pm80xx_hwi.c +++ b/drivers/scsi/pm8001/pm80xx_hwi.c @@ -1202,9 +1202,11 @@ pm80xx_set_thermal_config(struct pm8001_hba_info *pm8001_ha) else page_code = THERMAL_PAGE_CODE_8H; - payload.cfg_pg[0] = (THERMAL_LOG_ENABLE << 9) | - (THERMAL_ENABLE << 8) | page_code; - payload.cfg_pg[1] = (LTEMPHIL << 24) | (RTEMPHIL << 8); + payload.cfg_pg[0] = + cpu_to_le32((THERMAL_LOG_ENABLE << 9) | + (THERMAL_ENABLE << 8) | page_code); + payload.cfg_pg[1] = + cpu_to_le32((LTEMPHIL << 24) | (RTEMPHIL << 8)); pm8001_dbg(pm8001_ha, DEV, "Setting up thermal config. cfg_pg 0 0x%x cfg_pg 1 0x%x\n", -- 2.34.1