From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: MIME-version: 1.0 Content-type: text/plain; charset="UTF-8" Message-id: <59DC9428.4090203@samsung.com> Date: Tue, 10 Oct 2017 18:34:32 +0900 From: Chanwoo Choi To: Arnd Bergmann , Sylwester Nawrocki , Tomasz Figa , Michael Turquette , Stephen Boyd , Kukjin Kim , Krzysztof Kozlowski Cc: Marek Szyprowski , Ulf Hansson , linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] clk: samsung: exynos5433: mark PM functions as __maybe_unused In-reply-to: <20171010091522.2286344-1-arnd@arndb.de> References: <20171010091522.2286344-1-arnd@arndb.de> List-ID: Hi Arnd, On 2017년 10월 10일 18:15, Arnd Bergmann wrote: > The suspend/resume functions are referenced conditionally, causing > a harmless warning when CONFIG_PM is disabled: > > drivers/clk/samsung/clk-exynos5433.c:5476:12: error: 'exynos5433_cmu_resume' defined but not used [-Werror=unused-function] > drivers/clk/samsung/clk-exynos5433.c:5453:12: error: 'exynos5433_cmu_suspend' defined but not used [-Werror=unused-function] > > This marks both as __maybe_unused to shut up the warning. > > Fixes: 523d3de41f02 ("clk: samsung: exynos5433: Add support for runtime PM") > Signed-off-by: Arnd Bergmann > --- > drivers/clk/samsung/clk-exynos5433.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/clk/samsung/clk-exynos5433.c b/drivers/clk/samsung/clk-exynos5433.c > index cd9337613dd8..db270908037a 100644 > --- a/drivers/clk/samsung/clk-exynos5433.c > +++ b/drivers/clk/samsung/clk-exynos5433.c > @@ -5450,7 +5450,7 @@ struct exynos5433_cmu_data { > struct samsung_clk_provider ctx; > }; > > -static int exynos5433_cmu_suspend(struct device *dev) > +static int __maybe_unused exynos5433_cmu_suspend(struct device *dev) > { > struct exynos5433_cmu_data *data = dev_get_drvdata(dev); > int i; > @@ -5473,7 +5473,7 @@ static int exynos5433_cmu_suspend(struct device *dev) > return 0; > } > > -static int exynos5433_cmu_resume(struct device *dev) > +static int __maybe_unused exynos5433_cmu_resume(struct device *dev) > { > struct exynos5433_cmu_data *data = dev_get_drvdata(dev); > int i; > Acked-by: Chanwoo Choi -- Best Regards, Chanwoo Choi Samsung Electronics