Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3194211ybb; Mon, 6 Apr 2020 04:10:42 -0700 (PDT) X-Google-Smtp-Source: APiQypLjmhhyA12j0ls/xzkVlKLNfQiY/KzE7HWmILaLuTdnT55o8iEbcsbRAsOD9bE1TpB8AJaY X-Received: by 2002:aca:4e47:: with SMTP id c68mr12633131oib.16.1586171442355; Mon, 06 Apr 2020 04:10:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586171442; cv=none; d=google.com; s=arc-20160816; b=SYZsTTwXQrgMyFzR0wZAX+5APW4qhsS21BAq0I/5ji5UG2Z6C2I9nxQ9qsKEPQkR27 mW2axDdV3TwAAisTwDZgv7mW0Rb5xoixpdKmAXjDkpHm1u21mWP7m/s4nrR+dmbjutdI qurw0r3/uSLbryB974Q8MQJSogTzdzfnzotLH16UOVIGFLzxv2PDvhDdqV4BD4m2FqWE Ray+mKfcAg7o3bBRpsaygjh0i4hMVvtAoDsBhy6ZKTAY9ycxi5a7j04ThQGZ9h4s05Q7 B7VTu5gvqyXfuJgAUDteXDrAyCSOHEOzWditoGtHM5WC/GJ87PHqj1QLe2v7ldggMlO6 C7Cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject; bh=JS3hzMI4Ycub4jYu5t6uBYsbbKBiUSM2fWG32V1z+AE=; b=bIC8PM9+xCYL8T1VyDd+5+IBuU1BYzjsfpYFtDP/x/W0/PnY07Gdg4S1l5j/zRonjd 3Z61pkTliY5uphsVt27GriywScVY5wDh9Kdfk64mFOs5sN5izgmBHylodyvx1jLjsSQF 94Pw9UUuqaCVlQMv0WESZ9RJtnyIp7zDIM4Ps1FoUlJu00FQWrlP3u52yRAQyyLGGNzq w2EwNPq1uSC+ihu56SeLsM0I3kpGr9UK6s7SaY6bjuxU9JafscjDQEV90CwarGG3PtfK o6C3JoiT3aMuxUYM8CySGpZtjxHYkBpI9mBX3DlzdVsYF/JBBL2x1hXVG8yFZOu/WCeZ 4B2w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w203si7224311oig.54.2020.04.06.04.10.29; Mon, 06 Apr 2020 04:10:42 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727185AbgDFLKO (ORCPT + 99 others); Mon, 6 Apr 2020 07:10:14 -0400 Received: from mx2.suse.de ([195.135.220.15]:40542 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726883AbgDFLKO (ORCPT ); Mon, 6 Apr 2020 07:10:14 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 8ADA1ABAD; Mon, 6 Apr 2020 11:10:11 +0000 (UTC) Subject: Re: [PATCH] thermal: devfreq_cooling: inline all stubs for CONFIG_DEVFREQ_THERMAL=n To: Martin Blumenstingl , rui.zhang@intel.com, daniel.lezcano@linaro.org, amit.kucheria@verdurent.com, linux-pm@vger.kernel.org Cc: linux-kernel@vger.kernel.org, javi.merino@kernel.org, edubezval@gmail.com, orjan.eide@arm.com, stable@vger.kernel.org References: <20200403205133.1101808-1-martin.blumenstingl@googlemail.com> From: Thomas Zimmermann Autocrypt: addr=tzimmermann@suse.de; keydata= mQ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DegUR5BkDfDg5O/FISymJBHx2Dyoklv5g4BzkgqTqwmaYzsl8UxZKvbaxq0zb ehDda8lvhFXodNFMAgTLJlLuDYOGLK2AwbrS3Sp0AEbkpdJBb44qVlGm5bApZouHeJ/+n+7r 12+lqdsAEQEAAYkBPAQYAQgAJhYhBHIX+6yM6c9jRKFo5WgNwR1TC3ojBQJbOdLgAhsMBQkD wmcAAAoJEGgNwR1TC3ojpfcIAInwP5OlcEKokTnHCiDTz4Ony4GnHRP2fXATQZCKxmu4AJY2 h9ifw9Nf2TjCZ6AMvC3thAN0rFDj55N9l4s1CpaDo4J+0fkrHuyNacnT206CeJV1E7NYntxU n+LSiRrOdywn6erjxRi9EYTVLCHcDhBEjKmFZfg4AM4GZMWX1lg0+eHbd5oL1as28WvvI/uI aMyV8RbyXot1r/8QLlWldU3NrTF5p7TMU2y3ZH2mf5suSKHAMtbE4jKJ8ZHFOo3GhLgjVrBW HE9JXO08xKkgD+w6v83+nomsEuf6C6LYrqY/tsZvyEX6zN8CtirPdPWu/VXNRYAl/lat7lSI 3H26qrE= Message-ID: <0af90cb5-f6ba-d3a9-2cc7-8813ebab5ed6@suse.de> Date: Mon, 6 Apr 2020 13:10:07 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200403205133.1101808-1-martin.blumenstingl@googlemail.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="rs5boHrlPxoqBFfxZ68VQcjl33WRm3lV0" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --rs5boHrlPxoqBFfxZ68VQcjl33WRm3lV0 Content-Type: multipart/mixed; boundary="XtqKdN7vdrbl3NXOzpHyXgHa0EpwxDHhz"; protected-headers="v1" From: Thomas Zimmermann To: Martin Blumenstingl , rui.zhang@intel.com, daniel.lezcano@linaro.org, amit.kucheria@verdurent.com, linux-pm@vger.kernel.org Cc: linux-kernel@vger.kernel.org, javi.merino@kernel.org, edubezval@gmail.com, orjan.eide@arm.com, stable@vger.kernel.org Message-ID: <0af90cb5-f6ba-d3a9-2cc7-8813ebab5ed6@suse.de> Subject: Re: [PATCH] thermal: devfreq_cooling: inline all stubs for CONFIG_DEVFREQ_THERMAL=n References: <20200403205133.1101808-1-martin.blumenstingl@googlemail.com> In-Reply-To: <20200403205133.1101808-1-martin.blumenstingl@googlemail.com> --XtqKdN7vdrbl3NXOzpHyXgHa0EpwxDHhz Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Am 03.04.20 um 22:51 schrieb Martin Blumenstingl: > When CONFIG_DEVFREQ_THERMAL is disabled all functions except > of_devfreq_cooling_register_power() were already inlined. Also inline > the last function to avoid compile errors when multiple drivers call > of_devfreq_cooling_register_power() when CONFIG_DEVFREQ_THERMAL is not > set. Compilation failed with the following message: > multiple definition of `of_devfreq_cooling_register_power' > (which then lists all usages of of_devfreq_cooling_register_power()) >=20 > Thomas Zimmermann reported this problem [0] on a kernel config with > CONFIG_DRM_LIMA=3D{m,y}, CONFIG_DRM_PANFROST=3D{m,y} and > CONFIG_DEVFREQ_THERMAL=3Dn after both, the lima and panfrost drivers > gained devfreq cooling support. >=20 > [0] https://www.spinics.net/lists/dri-devel/msg252825.html >=20 > Fixes: a76caf55e5b356 ("thermal: Add devfreq cooling") > Cc: stable@vger.kernel.org > Reported-by: Thomas Zimmermann > Signed-off-by: Martin Blumenstingl = Tested-by: Thomas Zimmermann > --- > include/linux/devfreq_cooling.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/include/linux/devfreq_cooling.h b/include/linux/devfreq_co= oling.h > index 4635f95000a4..79a6e37a1d6f 100644 > --- a/include/linux/devfreq_cooling.h > +++ b/include/linux/devfreq_cooling.h > @@ -75,7 +75,7 @@ void devfreq_cooling_unregister(struct thermal_coolin= g_device *dfc); > =20 > #else /* !CONFIG_DEVFREQ_THERMAL */ > =20 > -struct thermal_cooling_device * > +static inline struct thermal_cooling_device * > of_devfreq_cooling_register_power(struct device_node *np, struct devfr= eq *df, > struct devfreq_cooling_power *dfc_power) > { >=20 --=20 Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 N=C3=BCrnberg, Germany (HRB 36809, AG N=C3=BCrnberg) Gesch=C3=A4ftsf=C3=BChrer: Felix Imend=C3=B6rffer --XtqKdN7vdrbl3NXOzpHyXgHa0EpwxDHhz-- --rs5boHrlPxoqBFfxZ68VQcjl33WRm3lV0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEchf7rIzpz2NEoWjlaA3BHVMLeiMFAl6LDhIACgkQaA3BHVML eiPOmggAo2AgrVyoaHLR1NAsGf/aJPm535dYRX/7X3exyn7bcEApm1TYiMsmbZI2 KJ4umEw7myXEoQQfmUpRKywvdTOyAaapShsIm8xvIj/F8/U/yKGWXQNIfcPhhoFh 4LrhPYQ/tTkju79OLVcVMc7DK2darHAnpYwlgW2CKOFZCix4mONZQNp+HKfc+j07 rXzL8N9TrDugLDaVqpLum9Lf+VMATa4ojnHts0quf72cPYQn4pp1g+CVyjb6mzIn bcVyRfp+fc2v92jz2KHWC6vxz54jnv7E6C1HMYCDdPThriG3dM62L65p1+J1i8Hp BopII8/+/VpG8DRx70xtMuiW+NJvXg== =KDV+ -----END PGP SIGNATURE----- --rs5boHrlPxoqBFfxZ68VQcjl33WRm3lV0--