Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2311886yba; Fri, 10 May 2019 09:24:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqxVi91YE61wUI6UxBDlwtBg3zm4lVOgm3Flv6jeTo1wa2Q9b+zzFDBi06Sgm87Q3T91hWkK X-Received: by 2002:a63:d949:: with SMTP id e9mr14680943pgj.437.1557505460002; Fri, 10 May 2019 09:24:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557505459; cv=none; d=google.com; s=arc-20160816; b=AvXK4M92pq8o+/tnwjwqV7fWn+wAiao55vT9Pq01V67KBOVNl3lkUL0t3ZW2boJnVJ H1THilfhGasUaH+yfsoIxPvEG3E6nJh0wf/6Y9r2KuZlL1S8fabceutbzbDc7dC+CN1H iChQFgMXAI8yoKXoqL83/o8Yd42+71m8xFB7vVQvSLqEkdmDJ/vYF7cAOHqoe5811Upt w5/+qayFZQP7iTVEm/jZirpvO0e/5up8yQmxpWjPXB4bxFITFOcF8bSUBzoMkqpwsnqL n2MRJk9xXc/6zCePTtNv1xtQV3kcsCcF1S7BrJ7b1N3SOtcX/sWWyGKQJXOEEILVXRY2 SYQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Qxgie+HcP1ND9knwIbqtVtE4AKwUMSq+SKuD9/60Jg4=; b=yI7IkiIrjJbZNUvN4rzHY0F/My5zyyFAE3TKPwpdKYU2KGDe49SWzm6SrsQcOhQ4HP 1n4TWG1fjRyiyVKitp4Ya2TFbfWeBIQhF8o/qhS+BwXJ5+KdjL+kcwjHYU2l/lkMVcaC KttFw5EKwBkHYR/5av6hJ3wdyZRj0skh+2yl7abhDcGGZ/Jvb5RKVQcCZFkI+xqEEpWr MjGlrwf1I+MP8zU+1fAQtA9goJslKPBDcgd6jIJtffwlxbTofYM9q1eHD/ebDmNV7fG+ XCNo7NoaQWECta1XwXFMQ1rew5HWMsneTSe5Mo4AMas0ktPsRT37xzQuHm9od1+oDmGx JoYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xiRQDMh9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cp18si8146557plb.271.2019.05.10.09.24.03; Fri, 10 May 2019 09:24:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xiRQDMh9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727775AbfEJQWm (ORCPT + 99 others); Fri, 10 May 2019 12:22:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:45580 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727647AbfEJQWm (ORCPT ); Fri, 10 May 2019 12:22:42 -0400 Received: from earth.universe (host-091-097-177-147.ewe-ip-backbone.de [91.97.177.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AFE1320882; Fri, 10 May 2019 16:22:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557505361; bh=Qxgie+HcP1ND9knwIbqtVtE4AKwUMSq+SKuD9/60Jg4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=xiRQDMh9VZirl24MsjXjDn4qwHYDWKOsyh5LjVakEvW8ge3kTbSbPPpn5atCAdkqP 4Arj9sxp/+l/1jmg+vNmqHB7lbMEDVyas+w4Jc27tZ4NPx8RSkrFGLc0wmrlrtgIjt dFD6GK90sLx9SaJCSd7Bza7Ut+cNtI4rGAFWRiLs= Received: by earth.universe (Postfix, from userid 1000) id BB3A33C0CBC; Fri, 10 May 2019 18:22:39 +0200 (CEST) Date: Fri, 10 May 2019 18:22:39 +0200 From: Sebastian Reichel To: Guenter Roeck Cc: YueHaibing , andrew.smirnov@gmail.com, enric.balletbo@collabora.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: Re: [PATCH] power: supply: ucs1002: Fix build error without CONFIG_REGULATOR Message-ID: <20190510162239.qbnmtw7fxszwbwiw@earth.universe> References: <20190510071823.2984-1-yuehaibing@huawei.com> <9b37be09-c323-94c6-8bba-44e854597e95@roeck-us.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="abf7t6ubodig5fry" Content-Disposition: inline In-Reply-To: <9b37be09-c323-94c6-8bba-44e854597e95@roeck-us.net> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --abf7t6ubodig5fry Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Fri, May 10, 2019 at 06:05:06AM -0700, Guenter Roeck wrote: > On 5/10/19 12:18 AM, YueHaibing wrote: > > Fix gcc build error while CONFIG_REGULATOR is not set > >=20 > > drivers/power/supply/ucs1002_power.o: In function `ucs1002_probe': > > drivers/power/supply/ucs1002_power.c:593: undefined reference to `devm_= regulator_register' > > drivers/power/supply/ucs1002_power.o:(.rodata+0x3b8): undefined referen= ce to `regulator_enable_regmap' > > drivers/power/supply/ucs1002_power.o:(.rodata+0x3c0): undefined referen= ce to `regulator_disable_regmap' > > drivers/power/supply/ucs1002_power.o:(.rodata+0x3c8): undefined referen= ce to `regulator_is_enabled_regmap' > >=20 > > Add Kconfig dependency to CONFIG_REGULATOR. > >=20 > > Reported-by: Hulk Robot > > Fixes: 9a2688e42638 ("power: supply: Add driver for Microchip UCS1002") > > Signed-off-by: YueHaibing >=20 > Reviewed-by: Guenter Roeck Thanks, queued. -- Sebastian --abf7t6ubodig5fry Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAlzVpUwACgkQ2O7X88g7 +poDGRAAnJb/Jvso2KCVfj7f63PFAscr2hzeDdrgKWpbl+flff18pOOhwCMHNi7I rpv6dZMohdH2/Vaae06lyp/LAgXudeZwsObVLwvgX6qQPtC9kaDq80dLQmEdQINv SPMxH+spTNq5sIaVftSvex+vByNe6gzKf4fMOfa8JGuBgoMTJM0pAjbvqOVr3RET v57J5yumNT1+zIKEaA3MQD2NJDRsE7bgJoLP+3SJkXSC/jnvDLC8F6OqmSF8cfv7 zbjiivy/HndJr/tzAgD0zIkoFvNG4Gey7C1OoZPdc4Qzijh9caUjfr3vjbF4Af0b 2Cl69ar/e1l/Dh1hIG4tl7K2oOOK6EKMDlq3IUxYKIVSxY06hX5vaCm0EJBg1Wc2 MAcHDQ3Rnyxdx8y9qcv/qdVmh9Rfrj8x6SmEgwgDQLKxu9LS1r7UI23SVKRzF2O/ 7cgJ6jSpa41Dz1Gn2VKmysSHFMpdYNBAkKcsVjPlQX5gFDpnxNv5xphKXLzGG1cC AojhO6WPAgUU1vb7Yc70EIaMJkzEzryQQ4ul37T+l/4oSiuxnwd/cQy8eDTWQYfh 0f/3LGYEKXQxwdnj+1EonBxOIojGcfjTTnmj8PqW6ZDnFTkbxpifig/RXcf+AQSb 64+vkH5yDbuPL7m776g/QVIeJ6aKQCfdC3li+1J+W75xqhuxzVQ= =1NGs -----END PGP SIGNATURE----- --abf7t6ubodig5fry--