Messages in this thread |  | | Date | Tue, 5 May 2026 13:33:56 +0800 | | From | Herbert Xu <> | | Subject | Re: [PATCH 3/4] hwrng: core - use MAX to simplify RNG_BUFFER_SIZE |
| |
On Thu, Apr 30, 2026 at 01:00:50PM +0200, Thorsten Blum wrote: > Replace the open-coded variant with MAX(). > > Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> > --- > drivers/char/hw_random/core.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/char/hw_random/core.c b/drivers/char/hw_random/core.c > index 905a63525831..f8f7a2ee73c1 100644 > --- a/drivers/char/hw_random/core.c > +++ b/drivers/char/hw_random/core.c > @@ -17,6 +17,7 @@ > #include <linux/hw_random.h> > #include <linux/kernel.h> > #include <linux/kthread.h> > +#include <linux/minmax.h>
No need for minmax.h because kernel.h already includes it.
Thanks, -- 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
|  |