Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1536610ybz; Thu, 16 Apr 2020 10:54:35 -0700 (PDT) X-Google-Smtp-Source: APiQypLbQpLVmTuJmjxw8fm3VhBawA4ezILLKbl8SnEtxKh+LG36MYpLNRtJKRy6V/HqzV3Pzt3Z X-Received: by 2002:aa7:d7d8:: with SMTP id e24mr10560599eds.215.1587059674964; Thu, 16 Apr 2020 10:54:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587059674; cv=none; d=google.com; s=arc-20160816; b=KqnBIJi1OGYUhcKi1oB+UxRTMDwo6hapKgNuzA+K1XfR9yuT3Mou1WUOmK4UCcS2VZ xxp4khxyUU3uWOnTvgceAg5zTcTBuAzl6oeYyMr0SRIdAyZ+f5IO2HZmrx3W/FL/1RUu E225LIrb2+G9ZN/mTmbPAs69Mn/F2zZ43OqvOAaXAuSmm0ZVn9yr8B5vjGz+MmsvYgon 0rngbA2i2pXnHyy2EdRXtcddEYrWz4x+NdXsQeGGqgHmt+I/Vca2nvaPsfbDJ88zywxt WJ2VyFSe/M5DWtJhMxujvQ/3PfTo5ZmD+NQKpg+26SN4+nSD1hrIoCHwAkyM0nM/6kRX DE8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=rctlzirM71LWCnlGVwNgbvS7T0SD6ThKLLL8/2rD+oQ=; b=v+OWnCr0LGTrlFGi0G1yXyr7P4COfNY1LSOJRhl5fsW96nTitGOt+9aFfijDrTaNN8 5r5FCQfWbuto/Q2zyuf8L9bYBWBSsIq8Fn8RWzH7KTA0bGYcRT5VDY2xn6Oz9s5C0ETy 2fjxBOTCYcXCo/j+e5MIZPN7hh+45rCxNh1FGdyE+eGZzgKmq9DGWU/074DbN+IafrG5 bk7wWRVcWZlyxmosAoHn3REoci5NGOyDlbCtk3Gcqu1B2J67fnZ0FGglxhnV6NqIAyzZ HcM6J5GucekBSYDZ33URFE57//4qHY7caoAf3CoMQ0jww0owN9iRMf36guBWzf+xhVsp UMcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=j7nLaaFU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n9si10793563edb.87.2020.04.16.10.54.11; Thu, 16 Apr 2020 10:54:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=j7nLaaFU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2895677AbgDPNbY (ORCPT + 99 others); Thu, 16 Apr 2020 09:31:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:37152 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2895714AbgDPN2Q (ORCPT ); Thu, 16 Apr 2020 09:28:16 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 268F821BE5; Thu, 16 Apr 2020 13:28:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587043695; bh=wgY92Up2hqj3U3bxEm7of4dFDNE/XdwTMo46DQJ7BiA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j7nLaaFULL2DL5XTBgFixTFEQUSkjptBXM2PCPv4uF1Mx/7peMckAZN6U7EtY+nTD 6Hq0MuCnWFMGWDZVSTXh7G9zv9ez/osJLXaa7CMr3bBXG8NYtL4niQw48aGWAjWV2U K4LUgcjsFA4K3qyK9JoZsp3IuvvHsrogZUHCMW/A= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thomas Zimmermann , Martin Blumenstingl , Daniel Lezcano Subject: [PATCH 4.19 061/146] thermal: devfreq_cooling: inline all stubs for CONFIG_DEVFREQ_THERMAL=n Date: Thu, 16 Apr 2020 15:23:22 +0200 Message-Id: <20200416131251.230752850@linuxfoundation.org> X-Mailer: git-send-email 2.26.1 In-Reply-To: <20200416131242.353444678@linuxfoundation.org> References: <20200416131242.353444678@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Martin Blumenstingl commit 3f5b9959041e0db6dacbea80bb833bff5900999f upstream. 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()) Thomas Zimmermann reported this problem [0] on a kernel config with CONFIG_DRM_LIMA={m,y}, CONFIG_DRM_PANFROST={m,y} and CONFIG_DEVFREQ_THERMAL=n after both, the lima and panfrost drivers gained devfreq cooling support. [0] https://www.spinics.net/lists/dri-devel/msg252825.html Fixes: a76caf55e5b356 ("thermal: Add devfreq cooling") Cc: stable@vger.kernel.org Reported-by: Thomas Zimmermann Signed-off-by: Martin Blumenstingl Tested-by: Thomas Zimmermann Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20200403205133.1101808-1-martin.blumenstingl@googlemail.com Signed-off-by: Greg Kroah-Hartman --- include/linux/devfreq_cooling.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/include/linux/devfreq_cooling.h +++ b/include/linux/devfreq_cooling.h @@ -75,7 +75,7 @@ void devfreq_cooling_unregister(struct t #else /* !CONFIG_DEVFREQ_THERMAL */ -struct thermal_cooling_device * +static inline struct thermal_cooling_device * of_devfreq_cooling_register_power(struct device_node *np, struct devfreq *df, struct devfreq_cooling_power *dfc_power) {