Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3827745rdh; Fri, 29 Sep 2023 03:43:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHRygC7mNcaJXGDYJS9rLepDUHbN/zheQZaGj9LrWz7k7E9/ZRORjObVFIQ/l8egmMk/Q+e X-Received: by 2002:a05:6a00:cd4:b0:68e:399e:70db with SMTP id b20-20020a056a000cd400b0068e399e70dbmr3881737pfv.6.1695984236067; Fri, 29 Sep 2023 03:43:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695984236; cv=none; d=google.com; s=arc-20160816; b=i22ZpBmGO+FyKn+9mm3WWFrtgq0KXbM52e5MXr1Pm8c7h2kFb4ddqBNpSQbS6BdzDA K06pUhQN3YP1jn9M7YEn9ir+7TzXGHx5VrltnV6jLdVqb89S+4RHbk7g7L3PGx7F9HSS crJQ2sjHxB6B06928x3YNT4NfdmPq4mFlObqAg/BQzn2GiTdrpI1lNolQt1KTcbMTd9s +ahwsPOuL5BtGiqC+O7HXvmtJcS3talGg1dA0RQR+HaOO7I1Z9p1TZLHNPyGrlBxAYA0 S7ae4mTu+kFOuFCUTQt/KnqD3jM1suGqpHryGceMEnnwMY7OGnkQMNfntmHSeVjjMa0f NsXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=usyEpSzmGdBfXXrPAsclKt44Or5fXjBCKPE3fRAsFyw=; fh=vnqsjyKLxCvHaGJSAipP8aLyz/Vj3OFjQlVMEhvLaA8=; b=HWR9Tkcq9qlHHbSQQ2vs/+hJLvCBrOKdv+8U/IBBzH/hECIbFN4fhODOuwGP7/3rzu 0/aaZNqbXbOfLGusZOZnZqxGawf7xbQgDly+8Qzk8DKiFGZSKPd5Sy8iHmWlAV1CYHPV CLVOL3p2+Jd45HydiDBitKMMDjv0nlOfQQ/pwciKZuKoH2TEKLaoOFTXjltTMp+914zB dKB6eanQfIVDJoyQFTDA1W9Pp38FlRt7J47o1hlLNucCt+1xJ4eY1uZ32RME2ibd2aoj eTfIRQl6TSB8ZWsxb2IgmJBvlBO7DE8RiBvPOkL/OQNWD5Uu4L1ieZ3eBP9BqhSc7nBz iy8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kjnWjqXh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id s21-20020a056a00179500b0069026254582si22199548pfg.98.2023.09.29.03.43.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 03:43:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kjnWjqXh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 43D258027670; Fri, 29 Sep 2023 03:04:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232713AbjI2KEJ (ORCPT + 99 others); Fri, 29 Sep 2023 06:04:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232936AbjI2KEH (ORCPT ); Fri, 29 Sep 2023 06:04:07 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD0451B6; Fri, 29 Sep 2023 03:04:05 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A36EC433C9; Fri, 29 Sep 2023 10:04:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695981845; bh=sRv8buPbIEC/2+2Qdm20Skddoq4EaMiObQKSQ48/r9Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kjnWjqXhitCgqauUtxVj0MRGszBzWeMGoRidOq0bsgV3dNX/HiVc6+rbeqO9HzLQb S/9L3+gB4Qt3167BA86TSW5wPYTwd7k6gOAdX/uOMTkSJVwbdJlKzq8HpAh0CuMCT2 OtPJfa7AvnvW8Yl7RbEyt/1ezfarQF1iUkJTOF9ld3+uRHNnUJFJOJuJ6VylNKLehv XlSLCNnwPgudXR/kHZVBiQL3tjbYA/PfZ4I2MtCQBd0LmxjijFtfWLU0eREm8kNPJ3 F2Yko22Wx9TL9TgaFLm+KiQCxRzL5dctNpsh3f1ZyhwruXzW7uxKHwqpbJKKYCb08B 8MxeyotwgfsHw== Received: from johan by xi.lan with local (Exim 4.96) (envelope-from ) id 1qmALr-0003rX-30; Fri, 29 Sep 2023 12:04:03 +0200 Date: Fri, 29 Sep 2023 12:04:03 +0200 From: Johan Hovold To: Sebastian Reichel Cc: Sebastian Reichel , Andy Gross , Bjorn Andersson , Konrad Dybcio , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, kernel test robot Subject: Re: [PATCH] power: supply: qcom_battmgr: fix battery_id type Message-ID: References: <20230919124222.1155894-1-sebastian.reichel@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230919124222.1155894-1-sebastian.reichel@collabora.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 29 Sep 2023 03:04:34 -0700 (PDT) On Tue, Sep 19, 2023 at 02:42:22PM +0200, Sebastian Reichel wrote: > qcom_battmgr_update_request.battery_id is written to using cpu_to_le32() > and should be of type __le32, just like all other 32bit integer requests > for qcom_battmgr. > > Reported-by: kernel test robot > Closes: https://lore.kernel.org/oe-kbuild-all/202309162149.4owm9iXc-lkp@intel.com/ > Fixes: 29e8142b5623 ("power: supply: Introduce Qualcomm PMIC GLINK power supply") > Signed-off-by: Sebastian Reichel > --- > drivers/power/supply/qcom_battmgr.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/power/supply/qcom_battmgr.c b/drivers/power/supply/qcom_battmgr.c > index de77df97b3a4..a05fd00711f6 100644 > --- a/drivers/power/supply/qcom_battmgr.c > +++ b/drivers/power/supply/qcom_battmgr.c > @@ -105,7 +105,7 @@ struct qcom_battmgr_property_request { > > struct qcom_battmgr_update_request { > struct pmic_glink_hdr hdr; > - u32 battery_id; > + __le32 battery_id; > }; > > struct qcom_battmgr_charge_time_request { I can confirm that this addresses the corresponding sparse warnings: Reviewed-by: Johan Hovold I'll send a fix for the remaining warnings... Johan