ODROID: Remove select_crng function.

drivers/char/random.c:898:27: error: redefinition of ‘select_crng’

Change-Id: I8efff17a695464561eed0de2fb3b481b742ec9d9
This commit is contained in:
Chris
2023-06-12 12:09:26 +09:00
parent 9871f1ffe3
commit a12fdedf51

View File

@@ -880,27 +880,6 @@ static int crng_fast_load(const char *cp, size_t len)
return 1;
}
#ifdef CONFIG_NUMA
static struct crng_state *select_crng(void)
{
struct crng_state **pool;
int nid = numa_node_id();
/* pairs with cmpxchg_release() in do_numa_crng_init() */
pool = READ_ONCE(crng_node_pool);
if (pool && pool[nid])
return pool[nid];
return &primary_crng;
}
#else
static struct crng_state *select_crng(void)
{
return &primary_crng;
}
#endif
/*
* crng_slow_load() is called by add_device_randomness, which has two
* attributes. (1) We can't trust the buffer passed to it is