From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754631AbcJKW0b (ORCPT ); Tue, 11 Oct 2016 18:26:31 -0400 Received: from cloudserver094114.home.net.pl ([79.96.170.134]:45447 "HELO cloudserver094114.home.net.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1754410AbcJKW03 (ORCPT ); Tue, 11 Oct 2016 18:26:29 -0400 From: "Rafael J. Wysocki" To: Viresh Kumar Cc: nm@ti.com, sboyd@codeaurora.org, Viresh Kumar , linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Vincent Guittot , robh@kernel.org, d-gerlach@ti.com, broonie@kernel.org Subject: Re: [PATCH 7/8] PM / OPP: Allow platform specific custom opp_set_rate() callbacks Date: Wed, 12 Oct 2016 00:26:32 +0200 Message-ID: <4594322.zH4gqY9UBX@vostro.rjw.lan> User-Agent: KMail/4.11.5 (Linux/4.8.0-rc2+; KDE/4.11.5; x86_64; ; ) In-Reply-To: <20161005012929.GF4664@vireshk-i7> References: <20161005012929.GF4664@vireshk-i7> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday, October 05, 2016 06:59:29 AM Viresh Kumar wrote: > On 04-10-16, 17:26, Viresh Kumar wrote: > > diff --git a/include/linux/pm_opp.h b/include/linux/pm_opp.h > > +int dev_pm_opp_register_set_rate_helper(struct device *dev, > > + int (*set_rate)(struct device *dev, struct dev_pm_set_rate_data *data)) > > +{ > > + return -ENOTSUPP; > > +} > > + this to fix up a warning: > > diff --git a/include/linux/pm_opp.h b/include/linux/pm_opp.h > index ef882ed24b0e..483f33e70895 100644 > --- a/include/linux/pm_opp.h > +++ b/include/linux/pm_opp.h > @@ -180,7 +180,7 @@ static inline int dev_pm_opp_set_supported_hw(struct device *dev, > > static inline void dev_pm_opp_put_supported_hw(struct device *dev) {} > > -int dev_pm_opp_register_set_rate_helper(struct device *dev, > +static inline int dev_pm_opp_register_set_rate_helper(struct device *dev, > int (*set_rate)(struct device *dev, struct dev_pm_set_rate_data *data)) > { > return -ENOTSUPP; > > Can you resend the full patch, please? Thanks, Rafael