[PATCH] powerpc: Use hardware RNG for arch_get_random_seed_* not arch_get_random_*

Segher Boessenkool segher at kernel.crashing.org
Fri Jul 17 19:37:57 AEST 2015


On Fri, Jul 17, 2015 at 07:15:58PM +1000, Paul Mackerras wrote:
> @@ -7,13 +7,22 @@
>  
>  static inline int arch_get_random_long(unsigned long *v)
>  {
> +	return 0;
> +}
> +
> +static inline int arch_get_random_int(unsigned int *v)
> +{
> +	return 0;
> +}
> +
> +static inline int arch_get_random_seed_long(unsigned long *v)
> +{
>  	if (ppc_md.get_random_long)
>  		return ppc_md.get_random_long(v);

You probably want to change that last name (ppc_md.get_random_long) then?
Pretty confusing like this :-)


Segher


More information about the Linuxppc-dev mailing list