Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: hisilicon/qm - add const qualifier to info_name in struct qm_cmd_dump_item

The "info_name" is never changed in struct qm_cmd_dump_item,
make it const.

Signed-off-by: Chenghai Huang <huangchenghai2@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Chenghai Huang and committed by
Herbert Xu
ff349530 f94f6cff

+9 -9
+9 -9
drivers/crypto/hisilicon/debugfs.c
··· 45 45 46 46 struct qm_cmd_dump_item { 47 47 const char *cmd; 48 - char *info_name; 49 - int (*dump_fn)(struct hisi_qm *qm, char *cmd, char *info_name); 48 + const char *info_name; 49 + int (*dump_fn)(struct hisi_qm *qm, char *cmd, const char *info_name); 50 50 }; 51 51 52 52 static struct qm_dfx_item qm_dfx_files[] = { ··· 151 151 } 152 152 153 153 static void dump_show(struct hisi_qm *qm, void *info, 154 - unsigned int info_size, char *info_name) 154 + unsigned int info_size, const char *info_name) 155 155 { 156 156 struct device *dev = &qm->pdev->dev; 157 157 u8 *info_curr = info; ··· 165 165 } 166 166 } 167 167 168 - static int qm_sqc_dump(struct hisi_qm *qm, char *s, char *name) 168 + static int qm_sqc_dump(struct hisi_qm *qm, char *s, const char *name) 169 169 { 170 170 struct device *dev = &qm->pdev->dev; 171 171 struct qm_sqc sqc; ··· 202 202 return 0; 203 203 } 204 204 205 - static int qm_cqc_dump(struct hisi_qm *qm, char *s, char *name) 205 + static int qm_cqc_dump(struct hisi_qm *qm, char *s, const char *name) 206 206 { 207 207 struct device *dev = &qm->pdev->dev; 208 208 struct qm_cqc cqc; ··· 239 239 return 0; 240 240 } 241 241 242 - static int qm_eqc_aeqc_dump(struct hisi_qm *qm, char *s, char *name) 242 + static int qm_eqc_aeqc_dump(struct hisi_qm *qm, char *s, const char *name) 243 243 { 244 244 struct device *dev = &qm->pdev->dev; 245 245 struct qm_aeqc aeqc; ··· 317 317 return 0; 318 318 } 319 319 320 - static int qm_sq_dump(struct hisi_qm *qm, char *s, char *name) 320 + static int qm_sq_dump(struct hisi_qm *qm, char *s, const char *name) 321 321 { 322 322 u16 sq_depth = qm->qp_array->sq_depth; 323 323 struct hisi_qp *qp; ··· 345 345 return 0; 346 346 } 347 347 348 - static int qm_cq_dump(struct hisi_qm *qm, char *s, char *name) 348 + static int qm_cq_dump(struct hisi_qm *qm, char *s, const char *name) 349 349 { 350 350 struct qm_cqe *cqe_curr; 351 351 struct hisi_qp *qp; ··· 363 363 return 0; 364 364 } 365 365 366 - static int qm_eq_aeq_dump(struct hisi_qm *qm, char *s, char *name) 366 + static int qm_eq_aeq_dump(struct hisi_qm *qm, char *s, const char *name) 367 367 { 368 368 struct device *dev = &qm->pdev->dev; 369 369 u16 xeq_depth;