Received: by 2002:a05:7412:bc1a:b0:d7:7d3a:4fe2 with SMTP id ki26csp1247882rdb; Mon, 21 Aug 2023 01:40:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGq+xfdEXVyrnfIrupC5DkEHLo3O19CRjylJNnb29gkfmEA4fRCEQpEhTjlsw20O/3IpeVb X-Received: by 2002:a17:906:844a:b0:993:f12a:39ce with SMTP id e10-20020a170906844a00b00993f12a39cemr4476504ejy.15.1692607229728; Mon, 21 Aug 2023 01:40:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692607229; cv=none; d=google.com; s=arc-20160816; b=G9DkCvXpNjq9wfeL8oD5tPvC6sdA0V4/urJB9JUtWFs1rRVhxfFtY+YnqdWIeYnVcS FPrEqDehe4+CPfGi1pHWAj08J+jHrun7d4BWRpRD8YPGMPYgR1FBJ1/zj0M6ecIVafBP DVS3GaxJsaWKwxpd2dww7ERkD8oBXV31kv2h6blRpj3j6E7JzjR5vmI49vBYdb7NrKhu DA7Rx2S84gVCd9HTSqjc/C4VlsLibA+YhXG0I41L9jsTCqs/4kB3dfx8791chKeWqKw2 vy6W0lqO79JEeXsmJAevQvpFVSzdFpgWl2h/ryRWcnk+e1po13N0Mi2lsStH4V1YHtV9 2aNQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=neAnuwz45YmYb7oAaS8G+50d8F7Fy0MWkDMuQYIdx0U=; fh=UJwe7f2P+cnP1WmXJQJckgTD1/T5SGHPPDm1cHWp73M=; b=Ad4+2tpqTn07/yFQIKbS0MGltpGLavj0jYbODZ0tUwLTJq46vXv9XY4CeZTyEXjMqM CNeFZXnFLZpuMDvD2dqRBUSVNJxjDcV6WvAUD7ztZVYHQmVVGNhKfUxoWRu6R9UFQmGk qff61/YwRCZmZ4TjgQLpQyZKUdMOKFETVTSM8y+79uEhzMzxaLq8hbRQR9p5H7Y41qXe fDE97rV2mmdX42fS5Qq8S/N9tgDORONW0kpzcRMv9yNNlkfK6kECrU4g9p2zpF88dOCv DogpDGezdeVD+ssJpsLNBZJnqH5lmw1zg1D2SfyfLI2qkLevoLJlLnGQdzyqH9LTDNvE 93kQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HYNUL8tb; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o13-20020a1709064f8d00b0099cd06f391bsi5076458eju.985.2023.08.21.01.40.05; Mon, 21 Aug 2023 01:40:29 -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=@kernel.org header.s=k20201202 header.b=HYNUL8tb; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233603AbjHUHNj (ORCPT + 99 others); Mon, 21 Aug 2023 03:13:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233594AbjHUHNi (ORCPT ); Mon, 21 Aug 2023 03:13:38 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F5DAB1; Mon, 21 Aug 2023 00:13:37 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id EE48D6109A; Mon, 21 Aug 2023 07:13:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A6BFAC433C7; Mon, 21 Aug 2023 07:13:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692602016; bh=yQJkjn1BuHjZD/DDVzSLKknk7uYBVOvi9rbBEqifM8w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HYNUL8tbq6MOMMwPeAK1JOppwdGTsa/QCpR7fMiX86xOTxAkjsGBjkAPPqLS2cZ6p TK5K+8r6Lflan7YWciEwVOfjJEnFe1WnE9RWEy0zaVx61ACiVaZOzLQGZm/SxZyYoe ALXUE6sYpCofsEulo4uZ95QpsqBMDbrp1iq4RtVhAladHrjpiG05qxw0j83hJu9E0e I/uHI3UAjITlL/ESFiLtUwxG0T3GLvFE/RVIlRVgxMgqsnXAKjhbRpaJxeABKCmWBc jVlnuSTOWJyh5PsLr1HibCBXiuD7eo63xx9aJ0s5DwP0SOjchLl8AiYvYGZtiYET6N YVdHqE3E5btVg== Date: Mon, 21 Aug 2023 08:13:31 +0100 From: Lee Jones To: Stephen Rothwell Cc: Sebastian Reichel , Jakob Hauser , Rob Herring , Sebastian Reichel , Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: build failure after merge of the battery tree Message-ID: <20230821071331.GC1380343@google.com> References: <20230821125741.3a2474d7@canb.auug.org.au> <20230821070731.GB1380343@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230821070731.GB1380343@google.com> 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 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 On Mon, 21 Aug 2023, Lee Jones wrote: > On Mon, 21 Aug 2023, Stephen Rothwell wrote: > > > Hi all, > > > > After merging the battery tree, today's linux-next build (x86_64 > > allmodconfig) failed like this: > > > > drivers/power/supply/rt5033_charger.c: In function 'rt5033_charger_probe': > > drivers/power/supply/rt5033_charger.c:694:19: error: implicit declaration of function 'of_parse_phandle' [-Werror=implicit-function-declaration] > > Is this because your merge-conflict patch: > > linux-next: manual merge of the battery tree with the mfd tree > > ... removed of_device.h? Oh, that was Rob's patch. I see now, thanks. > > 694 | np_conn = of_parse_phandle(pdev->dev.of_node, "richtek,usb-connector", 0); > > | ^~~~~~~~~~~~~~~~ > > drivers/power/supply/rt5033_charger.c:694:17: error: assignment to 'struct device_node *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion] > > 694 | np_conn = of_parse_phandle(pdev->dev.of_node, "richtek,usb-connector", 0); > > | ^ > > drivers/power/supply/rt5033_charger.c:695:19: error: implicit declaration of function 'of_get_parent'; did you mean 'kernfs_get_parent'? [-Werror=implicit-function-declaration] > > 695 | np_edev = of_get_parent(np_conn); > > | ^~~~~~~~~~~~~ > > | kernfs_get_parent > > drivers/power/supply/rt5033_charger.c:695:17: error: assignment to 'struct device_node *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion] > > 695 | np_edev = of_get_parent(np_conn); > > | ^ > > > > Caused by commit > > > > 2ce8284c3115 ("power: Explicitly include correct DT includes") > > > > interacting with commit > > > > 12cc585f36b8 ("power: supply: rt5033_charger: Add cable detection and USB OTG supply") > > > > from the mfd tree. > > > > I have applied the following merge fix patch. > > > > From: Stephen Rothwell > > Date: Mon, 21 Aug 2023 12:50:12 +1000 > > Subject: [PATCH] fixup for "power: Explicitly include correct DT includes" > > > > interacting with commit > > > > 12cc585f36b8 ("power: supply: rt5033_charger: Add cable detection and USB OTG supply") > > > > Signed-off-by: Stephen Rothwell > > --- > > drivers/power/supply/rt5033_charger.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/drivers/power/supply/rt5033_charger.c b/drivers/power/supply/rt5033_charger.c > > index 4d1198d752b7..4ea769775fa5 100644 > > --- a/drivers/power/supply/rt5033_charger.c > > +++ b/drivers/power/supply/rt5033_charger.c > > @@ -11,6 +11,7 @@ > > #include > > #include > > #include > > +#include > > #include > > #include > > #include > > -- > > 2.40.1 > > > > -- > > Cheers, > > Stephen Rothwell > > > > -- > Lee Jones [李琼斯] -- Lee Jones [李琼斯]