diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-24 04:32:53 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-24 10:12:42 -0400 |
commit | eda65cc6ce2a45dc01c233e301e59cd7a0f763ad (patch) | |
tree | dea2bc7276405a999f3c314d86fc8b148b7ef3de /drivers/crypto/caam | |
parent | e55d92b92d240189241c22bfdfc885d4225a4d61 (diff) |
caam: don't pass bogus S_IFCHR to debugfs_create_...()
it will be replaced with S_IFREG anyway
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/crypto/caam')
-rw-r--r-- | drivers/crypto/caam/ctrl.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/drivers/crypto/caam/ctrl.c b/drivers/crypto/caam/ctrl.c index 9009713a3c2e..5433c304ac57 100644 --- a/drivers/crypto/caam/ctrl.c +++ b/drivers/crypto/caam/ctrl.c | |||
@@ -164,52 +164,52 @@ static int caam_probe(struct platform_device *pdev) | |||
164 | /* Controller-level - performance monitor counters */ | 164 | /* Controller-level - performance monitor counters */ |
165 | ctrlpriv->ctl_rq_dequeued = | 165 | ctrlpriv->ctl_rq_dequeued = |
166 | debugfs_create_u64("rq_dequeued", | 166 | debugfs_create_u64("rq_dequeued", |
167 | S_IFCHR | S_IRUSR | S_IRGRP | S_IROTH, | 167 | S_IRUSR | S_IRGRP | S_IROTH, |
168 | ctrlpriv->ctl, &perfmon->req_dequeued); | 168 | ctrlpriv->ctl, &perfmon->req_dequeued); |
169 | ctrlpriv->ctl_ob_enc_req = | 169 | ctrlpriv->ctl_ob_enc_req = |
170 | debugfs_create_u64("ob_rq_encrypted", | 170 | debugfs_create_u64("ob_rq_encrypted", |
171 | S_IFCHR | S_IRUSR | S_IRGRP | S_IROTH, | 171 | S_IRUSR | S_IRGRP | S_IROTH, |
172 | ctrlpriv->ctl, &perfmon->ob_enc_req); | 172 | ctrlpriv->ctl, &perfmon->ob_enc_req); |
173 | ctrlpriv->ctl_ib_dec_req = | 173 | ctrlpriv->ctl_ib_dec_req = |
174 | debugfs_create_u64("ib_rq_decrypted", | 174 | debugfs_create_u64("ib_rq_decrypted", |
175 | S_IFCHR | S_IRUSR | S_IRGRP | S_IROTH, | 175 | S_IRUSR | S_IRGRP | S_IROTH, |
176 | ctrlpriv->ctl, &perfmon->ib_dec_req); | 176 | ctrlpriv->ctl, &perfmon->ib_dec_req); |
177 | ctrlpriv->ctl_ob_enc_bytes = | 177 | ctrlpriv->ctl_ob_enc_bytes = |
178 | debugfs_create_u64("ob_bytes_encrypted", | 178 | debugfs_create_u64("ob_bytes_encrypted", |
179 | S_IFCHR | S_IRUSR | S_IRGRP | S_IROTH, | 179 | S_IRUSR | S_IRGRP | S_IROTH, |
180 | ctrlpriv->ctl, &perfmon->ob_enc_bytes); | 180 | ctrlpriv->ctl, &perfmon->ob_enc_bytes); |
181 | ctrlpriv->ctl_ob_prot_bytes = | 181 | ctrlpriv->ctl_ob_prot_bytes = |
182 | debugfs_create_u64("ob_bytes_protected", | 182 | debugfs_create_u64("ob_bytes_protected", |
183 | S_IFCHR | S_IRUSR | S_IRGRP | S_IROTH, | 183 | S_IRUSR | S_IRGRP | S_IROTH, |
184 | ctrlpriv->ctl, &perfmon->ob_prot_bytes); | 184 | ctrlpriv->ctl, &perfmon->ob_prot_bytes); |
185 | ctrlpriv->ctl_ib_dec_bytes = | 185 | ctrlpriv->ctl_ib_dec_bytes = |
186 | debugfs_create_u64("ib_bytes_decrypted", | 186 | debugfs_create_u64("ib_bytes_decrypted", |
187 | S_IFCHR | S_IRUSR | S_IRGRP | S_IROTH, | 187 | S_IRUSR | S_IRGRP | S_IROTH, |
188 | ctrlpriv->ctl, &perfmon->ib_dec_bytes); | 188 | ctrlpriv->ctl, &perfmon->ib_dec_bytes); |
189 | ctrlpriv->ctl_ib_valid_bytes = | 189 | ctrlpriv->ctl_ib_valid_bytes = |
190 | debugfs_create_u64("ib_bytes_validated", | 190 | debugfs_create_u64("ib_bytes_validated", |
191 | S_IFCHR | S_IRUSR | S_IRGRP | S_IROTH, | 191 | S_IRUSR | S_IRGRP | S_IROTH, |
192 | ctrlpriv->ctl, &perfmon->ib_valid_bytes); | 192 | ctrlpriv->ctl, &perfmon->ib_valid_bytes); |
193 | 193 | ||
194 | /* Controller level - global status values */ | 194 | /* Controller level - global status values */ |
195 | ctrlpriv->ctl_faultaddr = | 195 | ctrlpriv->ctl_faultaddr = |
196 | debugfs_create_u64("fault_addr", | 196 | debugfs_create_u64("fault_addr", |
197 | S_IFCHR | S_IRUSR | S_IRGRP | S_IROTH, | 197 | S_IRUSR | S_IRGRP | S_IROTH, |
198 | ctrlpriv->ctl, &perfmon->faultaddr); | 198 | ctrlpriv->ctl, &perfmon->faultaddr); |
199 | ctrlpriv->ctl_faultdetail = | 199 | ctrlpriv->ctl_faultdetail = |
200 | debugfs_create_u32("fault_detail", | 200 | debugfs_create_u32("fault_detail", |
201 | S_IFCHR | S_IRUSR | S_IRGRP | S_IROTH, | 201 | S_IRUSR | S_IRGRP | S_IROTH, |
202 | ctrlpriv->ctl, &perfmon->faultdetail); | 202 | ctrlpriv->ctl, &perfmon->faultdetail); |
203 | ctrlpriv->ctl_faultstatus = | 203 | ctrlpriv->ctl_faultstatus = |
204 | debugfs_create_u32("fault_status", | 204 | debugfs_create_u32("fault_status", |
205 | S_IFCHR | S_IRUSR | S_IRGRP | S_IROTH, | 205 | S_IRUSR | S_IRGRP | S_IROTH, |
206 | ctrlpriv->ctl, &perfmon->status); | 206 | ctrlpriv->ctl, &perfmon->status); |
207 | 207 | ||
208 | /* Internal covering keys (useful in non-secure mode only) */ | 208 | /* Internal covering keys (useful in non-secure mode only) */ |
209 | ctrlpriv->ctl_kek_wrap.data = &ctrlpriv->ctrl->kek[0]; | 209 | ctrlpriv->ctl_kek_wrap.data = &ctrlpriv->ctrl->kek[0]; |
210 | ctrlpriv->ctl_kek_wrap.size = KEK_KEY_SIZE * sizeof(u32); | 210 | ctrlpriv->ctl_kek_wrap.size = KEK_KEY_SIZE * sizeof(u32); |
211 | ctrlpriv->ctl_kek = debugfs_create_blob("kek", | 211 | ctrlpriv->ctl_kek = debugfs_create_blob("kek", |
212 | S_IFCHR | S_IRUSR | | 212 | S_IRUSR | |
213 | S_IRGRP | S_IROTH, | 213 | S_IRGRP | S_IROTH, |
214 | ctrlpriv->ctl, | 214 | ctrlpriv->ctl, |
215 | &ctrlpriv->ctl_kek_wrap); | 215 | &ctrlpriv->ctl_kek_wrap); |
@@ -217,7 +217,7 @@ static int caam_probe(struct platform_device *pdev) | |||
217 | ctrlpriv->ctl_tkek_wrap.data = &ctrlpriv->ctrl->tkek[0]; | 217 | ctrlpriv->ctl_tkek_wrap.data = &ctrlpriv->ctrl->tkek[0]; |
218 | ctrlpriv->ctl_tkek_wrap.size = KEK_KEY_SIZE * sizeof(u32); | 218 | ctrlpriv->ctl_tkek_wrap.size = KEK_KEY_SIZE * sizeof(u32); |
219 | ctrlpriv->ctl_tkek = debugfs_create_blob("tkek", | 219 | ctrlpriv->ctl_tkek = debugfs_create_blob("tkek", |
220 | S_IFCHR | S_IRUSR | | 220 | S_IRUSR | |
221 | S_IRGRP | S_IROTH, | 221 | S_IRGRP | S_IROTH, |
222 | ctrlpriv->ctl, | 222 | ctrlpriv->ctl, |
223 | &ctrlpriv->ctl_tkek_wrap); | 223 | &ctrlpriv->ctl_tkek_wrap); |
@@ -225,7 +225,7 @@ static int caam_probe(struct platform_device *pdev) | |||
225 | ctrlpriv->ctl_tdsk_wrap.data = &ctrlpriv->ctrl->tdsk[0]; | 225 | ctrlpriv->ctl_tdsk_wrap.data = &ctrlpriv->ctrl->tdsk[0]; |
226 | ctrlpriv->ctl_tdsk_wrap.size = KEK_KEY_SIZE * sizeof(u32); | 226 | ctrlpriv->ctl_tdsk_wrap.size = KEK_KEY_SIZE * sizeof(u32); |
227 | ctrlpriv->ctl_tdsk = debugfs_create_blob("tdsk", | 227 | ctrlpriv->ctl_tdsk = debugfs_create_blob("tdsk", |
228 | S_IFCHR | S_IRUSR | | 228 | S_IRUSR | |
229 | S_IRGRP | S_IROTH, | 229 | S_IRGRP | S_IROTH, |
230 | ctrlpriv->ctl, | 230 | ctrlpriv->ctl, |
231 | &ctrlpriv->ctl_tdsk_wrap); | 231 | &ctrlpriv->ctl_tdsk_wrap); |