]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
hwrng: core - drop unnecessary forward declarations
authorThorsten Blum <thorsten.blum@linux.dev>
Tue, 5 May 2026 09:45:55 +0000 (11:45 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 15 May 2026 10:08:37 +0000 (18:08 +0800)
The forward declarations for drop_current_rng() and rng_get_data() are
not needed - remove them.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/core.c

index aba92d777f72604861b644469032c8f443f1ed50..68add1a97f31d0eddb7298898ff4172d6aaae321 100644 (file)
@@ -54,13 +54,9 @@ module_param(default_quality, ushort, 0644);
 MODULE_PARM_DESC(default_quality,
                 "default maximum entropy content of hwrng per 1024 bits of input");
 
-static void drop_current_rng(void);
 static int hwrng_init(struct hwrng *rng);
 static int hwrng_fillfn(void *unused);
 
-static inline int rng_get_data(struct hwrng *rng, u8 *buffer, size_t size,
-                              int wait);
-
 static size_t rng_buffer_size(void)
 {
        return RNG_BUFFER_SIZE;