diff options
author | Corentin Labbe <clabbe@baylibre.com> | 2018-11-29 09:42:19 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-12-07 01:15:00 -0500 |
commit | 7f0a9d5c9d1ba8ab3e5b144e52553744dc0d7471 (patch) | |
tree | 09f633e09e5e24add1c07d6a9eac4dcd032eb2ed /crypto | |
parent | 6e8e72cd206e2ba68801e4f2490f639d41808c8d (diff) |
crypto: user - split user space crypto stat structures
It is cleaner to have each stat in their own structures.
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/crypto_user_stat.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/crypto/crypto_user_stat.c b/crypto/crypto_user_stat.c index 352569f378a0..3c14be2f7a1b 100644 --- a/crypto/crypto_user_stat.c +++ b/crypto/crypto_user_stat.c | |||
@@ -33,7 +33,7 @@ struct crypto_dump_info { | |||
33 | 33 | ||
34 | static int crypto_report_aead(struct sk_buff *skb, struct crypto_alg *alg) | 34 | static int crypto_report_aead(struct sk_buff *skb, struct crypto_alg *alg) |
35 | { | 35 | { |
36 | struct crypto_stat raead; | 36 | struct crypto_stat_aead raead; |
37 | u64 v64; | 37 | u64 v64; |
38 | 38 | ||
39 | memset(&raead, 0, sizeof(raead)); | 39 | memset(&raead, 0, sizeof(raead)); |
@@ -56,7 +56,7 @@ static int crypto_report_aead(struct sk_buff *skb, struct crypto_alg *alg) | |||
56 | 56 | ||
57 | static int crypto_report_cipher(struct sk_buff *skb, struct crypto_alg *alg) | 57 | static int crypto_report_cipher(struct sk_buff *skb, struct crypto_alg *alg) |
58 | { | 58 | { |
59 | struct crypto_stat rcipher; | 59 | struct crypto_stat_cipher rcipher; |
60 | u64 v64; | 60 | u64 v64; |
61 | 61 | ||
62 | memset(&rcipher, 0, sizeof(rcipher)); | 62 | memset(&rcipher, 0, sizeof(rcipher)); |
@@ -79,7 +79,7 @@ static int crypto_report_cipher(struct sk_buff *skb, struct crypto_alg *alg) | |||
79 | 79 | ||
80 | static int crypto_report_comp(struct sk_buff *skb, struct crypto_alg *alg) | 80 | static int crypto_report_comp(struct sk_buff *skb, struct crypto_alg *alg) |
81 | { | 81 | { |
82 | struct crypto_stat rcomp; | 82 | struct crypto_stat_compress rcomp; |
83 | u64 v64; | 83 | u64 v64; |
84 | 84 | ||
85 | memset(&rcomp, 0, sizeof(rcomp)); | 85 | memset(&rcomp, 0, sizeof(rcomp)); |
@@ -101,7 +101,7 @@ static int crypto_report_comp(struct sk_buff *skb, struct crypto_alg *alg) | |||
101 | 101 | ||
102 | static int crypto_report_acomp(struct sk_buff *skb, struct crypto_alg *alg) | 102 | static int crypto_report_acomp(struct sk_buff *skb, struct crypto_alg *alg) |
103 | { | 103 | { |
104 | struct crypto_stat racomp; | 104 | struct crypto_stat_compress racomp; |
105 | u64 v64; | 105 | u64 v64; |
106 | 106 | ||
107 | memset(&racomp, 0, sizeof(racomp)); | 107 | memset(&racomp, 0, sizeof(racomp)); |
@@ -123,7 +123,7 @@ static int crypto_report_acomp(struct sk_buff *skb, struct crypto_alg *alg) | |||
123 | 123 | ||
124 | static int crypto_report_akcipher(struct sk_buff *skb, struct crypto_alg *alg) | 124 | static int crypto_report_akcipher(struct sk_buff *skb, struct crypto_alg *alg) |
125 | { | 125 | { |
126 | struct crypto_stat rakcipher; | 126 | struct crypto_stat_akcipher rakcipher; |
127 | u64 v64; | 127 | u64 v64; |
128 | 128 | ||
129 | memset(&rakcipher, 0, sizeof(rakcipher)); | 129 | memset(&rakcipher, 0, sizeof(rakcipher)); |
@@ -150,7 +150,7 @@ static int crypto_report_akcipher(struct sk_buff *skb, struct crypto_alg *alg) | |||
150 | 150 | ||
151 | static int crypto_report_kpp(struct sk_buff *skb, struct crypto_alg *alg) | 151 | static int crypto_report_kpp(struct sk_buff *skb, struct crypto_alg *alg) |
152 | { | 152 | { |
153 | struct crypto_stat rkpp; | 153 | struct crypto_stat_kpp rkpp; |
154 | u64 v; | 154 | u64 v; |
155 | 155 | ||
156 | memset(&rkpp, 0, sizeof(rkpp)); | 156 | memset(&rkpp, 0, sizeof(rkpp)); |
@@ -171,7 +171,7 @@ static int crypto_report_kpp(struct sk_buff *skb, struct crypto_alg *alg) | |||
171 | 171 | ||
172 | static int crypto_report_ahash(struct sk_buff *skb, struct crypto_alg *alg) | 172 | static int crypto_report_ahash(struct sk_buff *skb, struct crypto_alg *alg) |
173 | { | 173 | { |
174 | struct crypto_stat rhash; | 174 | struct crypto_stat_hash rhash; |
175 | u64 v64; | 175 | u64 v64; |
176 | 176 | ||
177 | memset(&rhash, 0, sizeof(rhash)); | 177 | memset(&rhash, 0, sizeof(rhash)); |
@@ -190,7 +190,7 @@ static int crypto_report_ahash(struct sk_buff *skb, struct crypto_alg *alg) | |||
190 | 190 | ||
191 | static int crypto_report_shash(struct sk_buff *skb, struct crypto_alg *alg) | 191 | static int crypto_report_shash(struct sk_buff *skb, struct crypto_alg *alg) |
192 | { | 192 | { |
193 | struct crypto_stat rhash; | 193 | struct crypto_stat_hash rhash; |
194 | u64 v64; | 194 | u64 v64; |
195 | 195 | ||
196 | memset(&rhash, 0, sizeof(rhash)); | 196 | memset(&rhash, 0, sizeof(rhash)); |
@@ -209,7 +209,7 @@ static int crypto_report_shash(struct sk_buff *skb, struct crypto_alg *alg) | |||
209 | 209 | ||
210 | static int crypto_report_rng(struct sk_buff *skb, struct crypto_alg *alg) | 210 | static int crypto_report_rng(struct sk_buff *skb, struct crypto_alg *alg) |
211 | { | 211 | { |
212 | struct crypto_stat rrng; | 212 | struct crypto_stat_rng rrng; |
213 | u64 v64; | 213 | u64 v64; |
214 | 214 | ||
215 | memset(&rrng, 0, sizeof(rrng)); | 215 | memset(&rrng, 0, sizeof(rrng)); |
@@ -248,7 +248,7 @@ static int crypto_reportstat_one(struct crypto_alg *alg, | |||
248 | if (nla_put_u32(skb, CRYPTOCFGA_PRIORITY_VAL, alg->cra_priority)) | 248 | if (nla_put_u32(skb, CRYPTOCFGA_PRIORITY_VAL, alg->cra_priority)) |
249 | goto nla_put_failure; | 249 | goto nla_put_failure; |
250 | if (alg->cra_flags & CRYPTO_ALG_LARVAL) { | 250 | if (alg->cra_flags & CRYPTO_ALG_LARVAL) { |
251 | struct crypto_stat rl; | 251 | struct crypto_stat_larval rl; |
252 | 252 | ||
253 | memset(&rl, 0, sizeof(rl)); | 253 | memset(&rl, 0, sizeof(rl)); |
254 | strscpy(rl.type, "larval", sizeof(rl.type)); | 254 | strscpy(rl.type, "larval", sizeof(rl.type)); |