Thread (23 messages) 23 messages, 3 authors, 2016-08-10

Re: [PATCH v4 1/4] crypto: add template handling for RNGs

From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2016-08-09 10:03:12

Stephan Mueller [off-list ref] wrote:
+
+static inline struct rng_alg *__crypto_rng_alg(struct crypto_alg *alg)
+{
+       return container_of(alg, struct rng_alg, base);
+}
+
+static inline struct rng_instance *rng_instance(
+       struct crypto_instance *inst)
+{
+       return container_of(__crypto_rng_alg(&inst->alg),
+                           struct rng_instance, alg);
+}
Please move these functions into rng.c.

Thanks,
-- 
Email: Herbert Xu [off-list ref]
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help