public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] clk: samsung: exynos5433: mark PM functions as __maybe_unused
@ 2017-10-10  9:15 ` Arnd Bergmann
  2017-10-10  9:30   ` Marek Szyprowski
                     ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Arnd Bergmann @ 2017-10-10  9:15 UTC (permalink / raw)
  To: Sylwester Nawrocki, Tomasz Figa, Chanwoo Choi, Michael Turquette,
	Stephen Boyd, Kukjin Kim, Krzysztof Kozlowski
  Cc: Arnd Bergmann, Marek Szyprowski, Ulf Hansson, linux-samsung-soc,
	linux-clk, linux-arm-kernel, linux-kernel

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 <arnd@arndb.de>
---
 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;
-- 
2.9.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] clk: samsung: exynos5433: mark PM functions as __maybe_unused
  2017-10-10  9:15 ` [PATCH] clk: samsung: exynos5433: mark PM functions as __maybe_unused Arnd Bergmann
@ 2017-10-10  9:30   ` Marek Szyprowski
  2017-10-10  9:34   ` Chanwoo Choi
                     ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Marek Szyprowski @ 2017-10-10  9:30 UTC (permalink / raw)
  To: Arnd Bergmann, Sylwester Nawrocki, Tomasz Figa, Chanwoo Choi,
	Michael Turquette, Stephen Boyd, Kukjin Kim, Krzysztof Kozlowski
  Cc: Ulf Hansson, linux-samsung-soc, linux-clk, linux-arm-kernel,
	linux-kernel

Hi Arnd,

On 2017-10-10 11: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 <arnd@arndb.de>

Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>

> ---
>   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;

Best regards
-- 
Marek Szyprowski, PhD
Samsung R&D Institute Poland

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] clk: samsung: exynos5433: mark PM functions as __maybe_unused
  2017-10-10  9:15 ` [PATCH] clk: samsung: exynos5433: mark PM functions as __maybe_unused Arnd Bergmann
  2017-10-10  9:30   ` Marek Szyprowski
@ 2017-10-10  9:34   ` Chanwoo Choi
  2017-10-10 10:41   ` Ulf Hansson
  2017-10-11  9:07   ` Sylwester Nawrocki
  3 siblings, 0 replies; 5+ messages in thread
From: Chanwoo Choi @ 2017-10-10  9:34 UTC (permalink / raw)
  To: Arnd Bergmann, Sylwester Nawrocki, Tomasz Figa, Michael Turquette,
	Stephen Boyd, Kukjin Kim, Krzysztof Kozlowski
  Cc: Marek Szyprowski, Ulf Hansson, linux-samsung-soc, linux-clk,
	linux-arm-kernel, linux-kernel

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 <arnd@arndb.de>
> ---
>  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 <cw00.choi@samsung.com>

-- 
Best Regards,
Chanwoo Choi
Samsung Electronics

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] clk: samsung: exynos5433: mark PM functions as __maybe_unused
  2017-10-10  9:15 ` [PATCH] clk: samsung: exynos5433: mark PM functions as __maybe_unused Arnd Bergmann
  2017-10-10  9:30   ` Marek Szyprowski
  2017-10-10  9:34   ` Chanwoo Choi
@ 2017-10-10 10:41   ` Ulf Hansson
  2017-10-11  9:07   ` Sylwester Nawrocki
  3 siblings, 0 replies; 5+ messages in thread
From: Ulf Hansson @ 2017-10-10 10:41 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Sylwester Nawrocki, Tomasz Figa, Chanwoo Choi, Michael Turquette,
	Stephen Boyd, Kukjin Kim, Krzysztof Kozlowski, Marek Szyprowski,
	linux-samsung-soc, linux-clk,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org

On 10 October 2017 at 11:15, Arnd Bergmann <arnd@arndb.de> 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 <arnd@arndb.de>

FWIW:

Acked-by: Ulf Hansson <ulf.hansson@linaro.org>

[...]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] clk: samsung: exynos5433: mark PM functions as __maybe_unused
  2017-10-10  9:15 ` [PATCH] clk: samsung: exynos5433: mark PM functions as __maybe_unused Arnd Bergmann
                     ` (2 preceding siblings ...)
  2017-10-10 10:41   ` Ulf Hansson
@ 2017-10-11  9:07   ` Sylwester Nawrocki
  3 siblings, 0 replies; 5+ messages in thread
From: Sylwester Nawrocki @ 2017-10-11  9:07 UTC (permalink / raw)
  Cc: Arnd Bergmann, Tomasz Figa, Chanwoo Choi, Michael Turquette,
	Stephen Boyd, Kukjin Kim, Krzysztof Kozlowski, Marek Szyprowski,
	Ulf Hansson, linux-samsung-soc, linux-clk, linux-arm-kernel,
	linux-kernel

On 10/10/2017 11:15 AM, 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 <arnd@arndb.de>

Applied, thanks.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-10-11  9:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CGME20171010091530epcas3p2e03b0e52f91e7dc2ab0dd9fea687d891@epcas3p2.samsung.com>
2017-10-10  9:15 ` [PATCH] clk: samsung: exynos5433: mark PM functions as __maybe_unused Arnd Bergmann
2017-10-10  9:30   ` Marek Szyprowski
2017-10-10  9:34   ` Chanwoo Choi
2017-10-10 10:41   ` Ulf Hansson
2017-10-11  9:07   ` Sylwester Nawrocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox