Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754724AbcCBXoG (ORCPT ); Wed, 2 Mar 2016 18:44:06 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:48604 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753737AbcCBXoD (ORCPT ); Wed, 2 Mar 2016 18:44:03 -0500 X-AuditID: cbfec7f5-f79b16d000005389-43-56d77abf541d Subject: Re: [PATCH 07/14] hw_random: exynos: use __maybe_unused to hide pm functions To: Arnd Bergmann , Matt Mackall , Herbert Xu , Kukjin Kim References: <1456934350-1389172-1-git-send-email-arnd@arndb.de> <1456934350-1389172-8-git-send-email-arnd@arndb.de> Cc: linux-arm-kernel@lists.infradead.org, Dmitry Torokhov , Daniel Thompson , linux-crypto@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org From: Krzysztof Kozlowski Message-id: <56D77ABA.1040505@samsung.com> Date: Thu, 03 Mar 2016 08:43:54 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-version: 1.0 In-reply-to: <1456934350-1389172-8-git-send-email-arnd@arndb.de> Content-type: text/plain; charset=windows-1252 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrHLMWRmVeSWpSXmKPExsVy+t/xq7r7q66HGTR0CVv8nXSM3eLMm7vs FocXvWC06H4lY/H6haFF/+PXzBabHl9jtbh/7yeTxeVdc9gsZpzfx2SxYFsfowO3x+9fkxg9 ds66y+6x7YCqx6ZVnWwed67tYfPYvKTeo2/LKkaPvpcbGD0+b5IL4IzisklJzcksSy3St0vg ytjW/5ytYAV7xcKHf9gaGCeydTFyckgImEhs29nECmGLSVy4tx4ozsUhJLCUUWLj9wNgRUIC TxklPn3J7WLk4BAWCJc48KoOpEZEoIdR4tLZX1A1pRL/jl9nBEkwC7xglPj6/Q4LSIJNwFhi 8/IlYEW8AloSR7YdAouzCKhKHF3eBBYXFYiQONzZxQ5RIyjxY/I9sBpOAQeJJcsWMoMsZhbQ k7h/UQskzCwgL7F5zVvmCYwCs5B0zEKomoWkagEj8ypG0dTS5ILipPRcI73ixNzi0rx0veT8 3E2MkFj5uoNx6TGrQ4wCHIxKPLwZn66GCbEmlhVX5h5ilOBgVhLh/R99PUyINyWxsiq1KD++ qDQntfgQozQHi5I478xd70OEBNITS1KzU1MLUotgskwcnFINjEkWZy2ZzX3i5+irKE/Ry/9U db05KmfaE7eSpKKdPl0nvqzXSLu+yDe52emvW+Hzmzt1X/i/nX9fTTrFIu3xgd3bnjgtuHxZ jFvyM59dZNfcpefiQns016isn2HidaWa3X6XzIR/e/t/Xphx6OMR39mPIhauTF9popJqutG5 4bmzroPlDn7xTUosxRmJhlrMRcWJANslX62RAgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 911 Lines: 23 On 03.03.2016 00:58, Arnd Bergmann wrote: > The exynos random driver uses #ifdef to check for CONFIG_PM, but > then uses SIMPLE_DEV_PM_OPS, which leaves the references out when > CONFIG_PM_SLEEP is not defined, so we get a warning with > PM=y && PM_SLEEP=n: > > drivers/char/hw_random/exynos-rng.c:166:12: error: 'exynos_rng_suspend' defined but not used [-Werror=unused-function] > drivers/char/hw_random/exynos-rng.c:171:12: error: 'exynos_rng_resume' defined but not used [-Werror=unused-function] > > This removes the incorrect #ifdef and instead uses a __maybe_unused > annotation to let the compiler know it can silently drop > the function definition. > > Signed-off-by: Arnd Bergmann > --- > drivers/char/hw_random/exynos-rng.c | 10 ++++------ > 1 file changed, 4 insertions(+), 6 deletions(-) > Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof