Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1506522rdb; Thu, 7 Dec 2023 00:32:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IERj3lWGouhLZPDzF14PAkivUqUBswH/46Uv8iL3WISmcMvop1LmpMTWRwljef9qtM1F3cY X-Received: by 2002:a17:90a:68c4:b0:286:6cc1:8670 with SMTP id q4-20020a17090a68c400b002866cc18670mr1666340pjj.85.1701937932054; Thu, 07 Dec 2023 00:32:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701937932; cv=none; d=google.com; s=arc-20160816; b=nu3VW6pO31DdTQHcyDwKjZVVOPtCaULl6+ABNNkVvyyry+07VxtxkdrHAguR3pYaQq bn4B5e/EotTOFFqn45Yr0lGjIALFGyj+iXghTVInTFDilwMePzegrGn9AEJXazRPy9NY /I+pSyeMWSd1ZKPfCf1TAeMepncIyYKlq/46vpSyDQUV9OFnlTFxB7h9pRzFqgWasFrx 5wLQFgUzZuaq80DI5YNiFA1KwE2h8vvgDjbV4F4yC1R5BVO4QBuRXz+cYKH7UAfmutBJ IKVlKCdsYej5keQ6iiL4bUhJvV013+xtzZG9ahmhkS4oB0Dw8KzbM428Hquec99GItFg TKTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:message-id:content-transfer-encoding :mime-version:subject:date:from:dkim-signature; bh=Fh1NrgCHmse+ZYlXJuyJbCPI+fbxd0JyCyGWo75A+PU=; fh=jfQGJgu+MlUg6r1+2Vxz78cNQNbXC7LDZ5RiNPzKLYU=; b=cxnD0x4ISPW8NvCAtLeQt7VHEaCUHc+j4FBIEvWhT8VjBDsp8ZNYn2ACtTawbiRufO xVOFyguCl8D0KZK5eHyNh2ebEqeA/Ib0bYaqKWl0JbZLub4WmNd+UZ5VskK+sl97jmH7 +4kiIhQLXGU/ajhJ/UUj50zDyybyuME2YZmDKs9OCwE0n3qHXV/9DQxe66jyepkriYzA w+UWDM2xfcfXNXZgUhP6sLXdGQAlqoQ7/KoUF5M/memKHZcaueYjTAZSHmGoGfjmIucj EtM+XvkCWvDNuoqbcwIsHPT7pz1d8nFSrYMet5emDUwSx7s2H3j6TnTMOjUi597VQWw8 NFcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Lo8aTH8S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id ja21-20020a170902efd500b001cff290413bsi745606plb.390.2023.12.07.00.32.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 00:32:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Lo8aTH8S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 61419807C6FF; Thu, 7 Dec 2023 00:32:09 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378277AbjLGIbx (ORCPT + 99 others); Thu, 7 Dec 2023 03:31:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbjLGIbv (ORCPT ); Thu, 7 Dec 2023 03:31:51 -0500 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DAB4D3 for ; Thu, 7 Dec 2023 00:31:57 -0800 (PST) Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-333630e9e43so661106f8f.2 for ; Thu, 07 Dec 2023 00:31:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701937916; x=1702542716; darn=vger.kernel.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=Fh1NrgCHmse+ZYlXJuyJbCPI+fbxd0JyCyGWo75A+PU=; b=Lo8aTH8SnhVeFVjFaNm6Lh5RWMuOjZk2uWN7xKuQuycpouvbgs3JF8sIdDab7s1Qst Sa0YeQDr9I6fH/vLCYLSR2d+ibxh2u97lEdvjjnyTaLcd6eSD0YryQq2RIiTk38L4jjg vp1JBEiL2+TXlF4t0uO/TJd6Thg18qwnskajFQcQ0YV1CIJsQlGWbTK/bkcebs6NWBOY c+UConRfcHFguKY842xEya/RVF955YHsMdXoQ279UA47cYJmokvlYSPsRcZHsyBmRcMI U7GhGRo9qLiWM32QOosoZnBHScMMts6WhRz50SRejcqD2SEnsDjZ9y3YZ6njEDSOX5AZ R+rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701937916; x=1702542716; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Fh1NrgCHmse+ZYlXJuyJbCPI+fbxd0JyCyGWo75A+PU=; b=cOEx3Hu9ohdIMbzvAn0J+hM8fV6g69YRkSSPiKrrdTfRpYXLoJAFqtoOSg/o9nd+kN SOjGpTJfItpHoT5fDQjDUSE4LTso/+ZH33b/4RgwzshbOZhHIkx5FYi/EaT6IgbkjeJS wNeY94QzlKBANbYT9vZyNlhHoR+6GJXJCi7Ae2+oSvmPmlfQ+PTrO6iRP61sGuXLUPrl qCKngLRqHzyy4OXGN5HROooOjRSoJJTqiNn9cEa194IxiC4lxM/wXL66nGIKRO1RVDlp k0bpgibVH2r6vx+X5r9rYiQwUr/kNl4nXPqUT/1W7ryqrrxCEATVpIZkbPOAcw6Xtw48 wEsA== X-Gm-Message-State: AOJu0Yy57aGdqKFvOBBGHtxaDcKH4zAHt5Oy4lL0T1TtavgbqOlkxtf1 yJEIhXbMMwLytv5PCbvGW1qHjg== X-Received: by 2002:adf:f5c5:0:b0:333:2fd2:3bda with SMTP id k5-20020adff5c5000000b003332fd23bdamr945532wrp.147.1701937915688; Thu, 07 Dec 2023 00:31:55 -0800 (PST) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id d6-20020adff846000000b0033335c011e0sm808519wrq.63.2023.12.07.00.31.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 00:31:55 -0800 (PST) From: Neil Armstrong Date: Thu, 07 Dec 2023 09:31:54 +0100 Subject: [PATCH] soc: qcom: pmic_pdcharger_ulog: fix sparse warnings MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231207-topic-sm8x50-upstream-fix-pdcharger-ulog-sparse-v1-1-43f75455a9e3@linaro.org> X-B4-Tracking: v=1; b=H4sIAPmCcWUC/x2N0QrCMAxFf2Xk2UDbWRV/RfYQu1gDbi3JJoOxf 7f4eOCee3YwVmGDe7eD8ldMytzAnzpIb5ozo4yNIbjQ++CuuJQqCW26bdHhWm1RpglfsmEdm6G ZFddPyWiV1Bijp3OiGOny7KG9VuU2/hcfw3H8AI7YwySBAAAA To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Dmitry Baryshkov Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, kernel test robot , Neil Armstrong X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=1330; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=ECERn2a3qajYeOy5z/ZTUwI0A7Gm0+Y7t1J+kFVUTvY=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBlcYL6m+1mKsqAEtJlh28PMkYavE8geYm4Af2cZXKT EXP0yYWJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZXGC+gAKCRB33NvayMhJ0X/cEA Cjk/KfUjEN3S8SqMj/BSdJnOeLJj/cEvCdCAVsZbqviJ9CxKjlYT+Lcfyn4P9qbwbeayuiQZ38veJc 3QD4F+8aU4CUoRMo4lmNlRtVcgquiK5g1Mr6KeCCMlPLyioncexBhCjc8mTGrsGZf/g6wXihAzG3aU /0cd25Y0VP+qq0AcXXWvSj4Dgpj9OyM0U7sUBRDVYa3+0wP/q8D4fCfoLBAZBl9qOOITh84VdIcO33 40ApjZ4Iq6fOAfLyTD1dmYxB0z9rWM9XO4VRmGk0IKoJ8k5hu5RCuq0dVqTLhdhOsMZpN1n99naiBN pqgsroWjZKDVnroM1MAAYTy3vCdxaXzA76cnwjfn4F+bFpytV7m4tmH6kVvuhX1TOX0Z0IucOr3mgt a9MLpV3X8D2naD+tdywqbOyzsFdACx5AOfdUtCGjWA7/Y6D+BuQrE6bf6kTmeHtb6TkKMP+v3xz6Yi 8RMw+5dGgRFwVbe57ODHRQrXryFMa+xDTIJRfJc+2i7d3dh0FliEDsAshgfCU2vHvIW8ZqTZ6yeg2Z O+GfZaQf0lrlqj+5TVVTfc3h64hsjtywVR0s7yFYJyiAW6YaOwlNUALWTRNzDeUF1TF8OnlR1DiLbN txYW203ukR/tJLegaHGopc+fhtFL546TddWZmRt7OQzczUgzzhk3HNuWwvdA== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,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 fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 07 Dec 2023 00:32:09 -0800 (PST) Fix sparse warning by comverting values to le32() as expected in the get_ulog_req_msg.hdr struct. Fixes: 086fdb48bc65 ("soc: qcom: add ADSP PDCharger ULOG driver") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202312060355.M0eJtq4X-lkp@intel.com/ Signed-off-by: Neil Armstrong --- drivers/soc/qcom/pmic_pdcharger_ulog.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/soc/qcom/pmic_pdcharger_ulog.c b/drivers/soc/qcom/pmic_pdcharger_ulog.c index f1aaacf05005..238cd38589dc 100644 --- a/drivers/soc/qcom/pmic_pdcharger_ulog.c +++ b/drivers/soc/qcom/pmic_pdcharger_ulog.c @@ -54,9 +54,9 @@ static int pmic_pdcharger_ulog_request(struct pmic_pdcharger_ulog *pg) { struct get_ulog_req_msg req_msg = { .hdr = { - .owner = MSG_OWNER_CHG_ULOG, - .type = MSG_TYPE_REQ_RESP, - .opcode = GET_CHG_ULOG_REQ + .owner = cpu_to_le32(MSG_OWNER_CHG_ULOG), + .type = cpu_to_le32(MSG_TYPE_REQ_RESP), + .opcode = cpu_to_le32(GET_CHG_ULOG_REQ) }, .log_size = MAX_ULOG_SIZE }; --- base-commit: 8e00ce02066e8f6f1ad5eab49a2ede7bf7a5ef64 change-id: 20231207-topic-sm8x50-upstream-fix-pdcharger-ulog-sparse-51a4ca55a6b3 Best regards, -- Neil Armstrong