Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4713508rdb; Tue, 12 Dec 2023 07:24:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IFpycUlP48guc6QrYbjl6sCWlUCvNLfKPBEm56JgepwrmuatVi/N8KGul0tsGpPxq4SQs5g X-Received: by 2002:a17:903:944:b0:1d3:141:caef with SMTP id ma4-20020a170903094400b001d30141caefmr3118537plb.114.1702394694960; Tue, 12 Dec 2023 07:24:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702394694; cv=none; d=google.com; s=arc-20160816; b=oPbFVOmMJuL9nkt0fo4TdsLAeBybZ45Y3ounT8DIZjaoiDiQNPH8BvrtSQe1KfxxZl khLatbtLFTNMlqOmWjTwN5HepxmM9iXaFE8W5F/orZJbbRwPV47Rf5hzG/FGv2f7d34C fjiZZfv6BbeZF8/dVnEV9ZIvjhIlejiudkItqBX8kM4Kvg60eIam0/27iUaFEqSOJdM2 3vcl7w7jovFjBiYjqoEpsW2ACjXXDJb+yifv8vS9r8JzmmyPvDnGFb3ZXtM2LfnbvquO TENW+XK0qWuD9y19HdgCHY37ayldMLytX+xUP03ksX1TCzJ5L22o8+iRsKIB7+znQDTt /gwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:autocrypt:references:cc:to:content-language:subject :reply-to:from:user-agent:mime-version:date:message-id :dkim-signature; bh=LN7cfdgQAjkSsoxFqP1f5cDcD2uFywdfIaaBewRyeQk=; fh=bzVWSk/eJlkm5YICgQznbIEdlbLqUvzNrcJcMCBuvco=; b=cvWv1upXyy5wmsUttdfcvElCOEA9J050VdIEE3E0EMS/WnDlZvD28TWnGH/9YJzWQq g1lLAYN9H0FpNC6dHV1BrFAqWB8f4zB2GbM5nuhMJZ3OyKfDzOSNtyvD3VY5CtIgc5KP iKL0Ig5eJTaaZS73TwyWxTeC22n81E87xY325eEMAurqAM2EIsVoG0YlOnLPUnEmUmRl Dx6qpk8BxPh7kRRWkCoVaxuG2fGSZ+/mZ/9jC0yu88ODr8pMV0x5arWnFhreyoEd48UZ pTMM36RoUknNv1nACgVu9h8wgTFv9/Y8Jjl72uCXo4DgEnmE7p6eWYU3Tng8K09lqgky PqnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GscDMUm5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id z12-20020a1709028f8c00b001cfb7ef2badsi7665418plo.155.2023.12.12.07.24.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 07:24:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GscDMUm5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id 3D42380C5CB6; Tue, 12 Dec 2023 07:24:52 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376663AbjLLPYe (ORCPT + 99 others); Tue, 12 Dec 2023 10:24:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376664AbjLLPYc (ORCPT ); Tue, 12 Dec 2023 10:24:32 -0500 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EEC5EA for ; Tue, 12 Dec 2023 07:24:38 -0800 (PST) Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-336356d9092so324069f8f.2 for ; Tue, 12 Dec 2023 07:24:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702394677; x=1702999477; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:organization:autocrypt :references:cc:to:content-language:subject:reply-to:from:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=LN7cfdgQAjkSsoxFqP1f5cDcD2uFywdfIaaBewRyeQk=; b=GscDMUm5DcwxPRexhZ21fFVz9oFvHgCUDciKEqEDAMZZEztPVJ2lKxrgR6p2IZscy7 jWpZSrZHG4SbElx8SrHcNqGudH6ECCUomOm1tTSG6CTcE1To8vppAyUs0qCxbuLFxfry GqI1bt7OYXbpq4vcVOSlL4PBmWXzQrwC2FcfR6TIQ5xJtuLlJ6q4OZ5g0LkN8dIvUJUK MKzGUmTeV8yaOK5leZ3QAvgenmJz4YoCoFHSs7dT0uaW+O0Tr/KMpbxbnIz8uRjC2shm z360MPz8J110bHv6Iwmc1Gd2RDe4BaxGwCChnA9OsmopOrBth1WAefUVxhKW+I2ZQB6W j0og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702394677; x=1702999477; h=content-transfer-encoding:in-reply-to:organization:autocrypt :references:cc:to:content-language:subject:reply-to:from:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=LN7cfdgQAjkSsoxFqP1f5cDcD2uFywdfIaaBewRyeQk=; b=TxBvv/fBUd91FmoKvjjJ1hElYdABfEop0L4ICYlwrH6IVhPTkokQ2lw63SofGL331Q J5jwJSAUG1NJaGt2oTzFK4Ab4jjeqA2QuH3H3bAHys8ue3v20eqL/XIpFoChXNhAljx4 UgOSdRDefNGPLWO2hawfOmpJMWJm80yvMQLzlHzxiQdvZxyVPD4yo/6HDlncTkjeFea+ 8L4OkDwxSzs7W1lQ6B5Qij0RVvEQiuFBdvP4Ududl/R4AUeEJqRi2BW4opikiC+7pszw jt6xMcmFIN53QOglOZS7M9DYjLhrVV/5sgX3oZ4UutDkYoS4Tb1N1kn7dk01OJ/4g4W3 ncpA== X-Gm-Message-State: AOJu0YxcMWHunn+xNJeLvADFxODujDEngjWtOwYCD8tC1x/BbO07d1vk XuXvLNhxgoeVMMUweJk+3iasAQ== X-Received: by 2002:a5d:4e01:0:b0:333:6338:f1af with SMTP id p1-20020a5d4e01000000b003336338f1afmr3511573wrt.98.1702394676959; Tue, 12 Dec 2023 07:24:36 -0800 (PST) Received: from ?IPV6:2a01:e0a:982:cbb0:5894:fa62:26b4:bf82? ([2a01:e0a:982:cbb0:5894:fa62:26b4:bf82]) by smtp.gmail.com with ESMTPSA id x15-20020a5d54cf000000b0033635d121besm725476wrv.52.2023.12.12.07.24.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 12 Dec 2023 07:24:36 -0800 (PST) Message-ID: <29afe196-7b73-425c-8200-78ffbe17e8c0@linaro.org> Date: Tue, 12 Dec 2023 16:24:36 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Neil Armstrong Reply-To: neil.armstrong@linaro.org Subject: Re: [PATCH 3/3] soc: qcom: pmic_pdcharger_ulog: Fix hypothetical ulog request message endianess Content-Language: en-US, fr To: Andrew Halaney , Andy Gross , Bjorn Andersson , Konrad Dybcio , Dmitry Baryshkov Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, kernel test robot References: <20231205-pmicpdcharger-ulog-fixups-v1-0-71c95162cb84@redhat.com> <20231205-pmicpdcharger-ulog-fixups-v1-3-71c95162cb84@redhat.com> Autocrypt: addr=neil.armstrong@linaro.org; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4vj70q76P/J7kt98hklrr85/3NU3oti3nrIHmHABEB AAHNKk5laWwgQXJtc3Ryb25nIDxuZWlsLmFybXN0cm9uZ0BsaW5hcm8ub3JnPsLAkQQTAQoA OwIbIwULCQgHAwUVCgkICwUWAgMBAAIeAQIXgBYhBInsPQWERiF0UPIoSBaat7Gkz/iuBQJk Q5wSAhkBAAoJEBaat7Gkz/iuyhMIANiD94qDtUTJRfEW6GwXmtKWwl/mvqQtaTtZID2dos04 YqBbshiJbejgVJjy+HODcNUIKBB3PSLaln4ltdsV73SBcwUNdzebfKspAQunCM22Mn6FBIxQ GizsMLcP/0FX4en9NaKGfK6ZdKK6kN1GR9YffMJd2P08EO8mHowmSRe/ExAODhAs9W7XXExw UNCY4pVJyRPpEhv373vvff60bHxc1k/FF9WaPscMt7hlkbFLUs85kHtQAmr8pV5Hy9ezsSRa GzJmiVclkPc2BY592IGBXRDQ38urXeM4nfhhvqA50b/nAEXc6FzqgXqDkEIwR66/Gbp0t3+r yQzpKRyQif3OwE0ETVkGzwEIALyKDN/OGURaHBVzwjgYq+ZtifvekdrSNl8TIDH8g1xicBYp QTbPn6bbSZbdvfeQPNCcD4/EhXZuhQXMcoJsQQQnO4vwVULmPGgtGf8PVc7dxKOeta+qUh6+ SRh3vIcAUFHDT3f/Zdspz+e2E0hPV2hiSvICLk11qO6cyJE13zeNFoeY3ggrKY+IzbFomIZY 4yG6xI99NIPEVE9lNBXBKIlewIyVlkOaYvJWSV+p5gdJXOvScNN1epm5YHmf9aE2ZjnqZGoM Mtsyw18YoX9BqMFInxqYQQ3j/HpVgTSvmo5ea5qQDDUaCsaTf8UeDcwYOtgI8iL4oHcsGtUX oUk33HEAEQEAAcLAXwQYAQIACQUCTVkGzwIbDAAKCRAWmrexpM/4rrXiB/sGbkQ6itMrAIfn M7IbRuiSZS1unlySUVYu3SD6YBYnNi3G5EpbwfBNuT3H8//rVvtOFK4OD8cRYkxXRQmTvqa3 3eDIHu/zr1HMKErm+2SD6PO9umRef8V82o2oaCLvf4WeIssFjwB0b6a12opuRP7yo3E3gTCS KmbUuLv1CtxKQF+fUV1cVaTPMyT25Od+RC1K+iOR0F54oUJvJeq7fUzbn/KdlhA8XPGzwGRy 4zcsPWvwnXgfe5tk680fEKZVwOZKIEuJC3v+/yZpQzDvGYJvbyix0lHnrCzq43WefRHI5XTT QbM0WUIBIcGmq38+OgUsMYu4NzLu7uZFAcmp6h8g Organization: Linaro Developer Services In-Reply-To: <20231205-pmicpdcharger-ulog-fixups-v1-3-71c95162cb84@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 pete.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 (pete.vger.email [0.0.0.0]); Tue, 12 Dec 2023 07:24:52 -0800 (PST) On 06/12/2023 00:05, Andrew Halaney wrote: > Sparse reports the following: > > % ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- make C=2 W=1 drivers/soc/qcom/pmic_pdcharger_ulog.o > ... > CC drivers/soc/qcom/pmic_pdcharger_ulog.o > CHECK drivers/soc/qcom/pmic_pdcharger_ulog.c > drivers/soc/qcom/pmic_pdcharger_ulog.c:57:34: warning: incorrect type in initializer (different base types) > drivers/soc/qcom/pmic_pdcharger_ulog.c:57:34: expected restricted __le32 [usertype] owner > drivers/soc/qcom/pmic_pdcharger_ulog.c:57:34: got int > drivers/soc/qcom/pmic_pdcharger_ulog.c:58:33: warning: incorrect type in initializer (different base types) > drivers/soc/qcom/pmic_pdcharger_ulog.c:58:33: expected restricted __le32 [usertype] type > drivers/soc/qcom/pmic_pdcharger_ulog.c:58:33: got int > drivers/soc/qcom/pmic_pdcharger_ulog.c:59:35: warning: incorrect type in initializer (different base types) > drivers/soc/qcom/pmic_pdcharger_ulog.c:59:35: expected restricted __le32 [usertype] opcode > drivers/soc/qcom/pmic_pdcharger_ulog.c:59:35: got int > > Let's deal with endianness conversion in the rare case this ever runs > on a big-endian machine (and to quiet down sparse for this file). > > Reported-by: kernel test robot > Closes: https://lore.kernel.org/oe-kbuild-all/202312060355.M0eJtq4X-lkp@intel.com/ > Fixes: 086fdb48bc65 ("soc: qcom: add ADSP PDCharger ULOG driver") > Signed-off-by: Andrew Halaney > --- > 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 > }; > Reviewed-by: Neil Armstrong