[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZVdN2agqgh+FHIFx@gondor.apana.org.au>
Date: Fri, 17 Nov 2023 19:26:17 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Martin Kaiser <martin@...ser.cx>
Cc: linux-crypto@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] hwrng: virtio - remove #ifdef guards for PM functions
On Sun, Nov 12, 2023 at 05:52:41PM +0100, Martin Kaiser wrote:
> Use pm_sleep_ptr for the freeze and restore functions instead of putting
> them under #ifdef CONFIG_PM_SLEEP. The resulting code is slightly simpler.
>
> pm_sleep_ptr lets the compiler see the functions but also allows removing
> them as unused code if !CONFIG_PM_SLEEP.
>
> Signed-off-by: Martin Kaiser <martin@...ser.cx>
> ---
> compile-tested only, I do not have this hardware
>
> drivers/char/hw_random/virtio-rng.c | 8 ++------
> 1 file changed, 2 insertions(+), 6 deletions(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists