lkml.org 
[lkml]   [2015]   [Mar]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RESEND PATCH] hwrng: omap - remove #ifdefery around PM methods
On Wed, Mar 11, 2015 at 02:08:36PM -0700, Dmitry Torokhov wrote:
> Instead of using #ifdefs let's mark suspend and resume methods as
> __maybe_unused which will suppress compiler warnings about them being
> unused and provide better compile coverage.
>
> Because SIMPLE_DEV_PM_OPS() produces an empty omap_rng_pm structure in
> case of !CONFIG_PM_SLEEP neither omap_rng_suspend nor omap_rng_resume
> will end up being referenced and the change will not result in
> increasing image size.
>
> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

Applied.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt


\
 
 \ /
  Last update: 2015-03-12 11:41    [W:0.306 / U:0.904 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site