[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-id: <d20955a1-f7b4-895e-55ce-34784d39e0be@samsung.com>
Date: Tue, 06 Sep 2016 16:08:44 +0200
From: Andrzej Hajda <a.hajda@...sung.com>
To: Arnd Bergmann <arnd@...db.de>, Inki Dae <inki.dae@...sung.com>,
Joonyoung Shim <jy0922.shim@...sung.com>,
Seung-Woo Kim <sw0312.kim@...sung.com>,
Kyungmin Park <kyungmin.park@...sung.com>
Cc: linux-samsung-soc@...r.kernel.org, linux-kernel@...r.kernel.org,
Krzysztof Kozlowski <krzk@...nel.org>,
Javier Martinez Canillas <javier@....samsung.com>,
Kukjin Kim <kgene@...nel.org>, dri-devel@...ts.freedesktop.org,
Ingi Kim <ingi2.kim@...sung.com>,
Gustavo Padovan <gustavo.padovan@...labora.co.uk>,
linux-arm-kernel@...ts.infradead.org,
Marek Szyprowski <m.szyprowski@...sung.com>
Subject: Re: [PATCH, RESEND] drm: exynos: avoid unused function warning
On 09/06/2016 03:30 PM, Arnd Bergmann wrote:
> When CONFIG_PM is not set, we get a warning about an unused function:
>
> drivers/gpu/drm/exynos/exynos_drm_gsc.c:1219:12: error: 'gsc_clk_ctrl' defined but not used [-Werror=unused-function]
> static int gsc_clk_ctrl(struct gsc_context *ctx, bool enable)
> ^~~~~~~~~~~~
>
> This removes the two #ifdef checks in this file and instead marks the
> functions as __maybe_unused, which is a more reliable way of doing the
> same, allowing better build coverage and avoiding the warning above.
>
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
Reviewed-by: Andrzej Hajda <a.hajda@...sung.com>
--
Regards
Andrzej
Powered by blists - more mailing lists