@@ -725,7 +725,7 @@ static irqreturn_t qm_aeq_irq(int irq, void *data)
725725 dev_err (& qm -> pdev -> dev , "%s overflow\n" ,
726726 qm_fifo_overflow [type ]);
727727 else
728- dev_err (& qm -> pdev -> dev , "unknown error type %d \n" ,
728+ dev_err (& qm -> pdev -> dev , "unknown error type %u \n" ,
729729 type );
730730
731731 if (qm -> status .aeq_head == QM_Q_DEPTH - 1 ) {
@@ -1129,7 +1129,7 @@ static int dump_show(struct hisi_qm *qm, void *info,
11291129
11301130 dev_info (dev , "%s DUMP\n" , info_name );
11311131 for (i = 0 ; i < info_size ; i += BYTE_PER_DW ) {
1132- pr_info ("DW%d : %02X%02X %02X%02X\n" , i / BYTE_PER_DW ,
1132+ pr_info ("DW%u : %02X%02X %02X%02X\n" , i / BYTE_PER_DW ,
11331133 info_buf [i ], info_buf [i + 1UL ],
11341134 info_buf [i + 2UL ], info_buf [i + 3UL ]);
11351135 }
@@ -1162,7 +1162,7 @@ static int qm_sqc_dump(struct hisi_qm *qm, const char *s)
11621162
11631163 ret = kstrtou32 (s , 0 , & qp_id );
11641164 if (ret || qp_id >= qm -> qp_num ) {
1165- dev_err (dev , "Please input qp num (0-%d )" , qm -> qp_num - 1 );
1165+ dev_err (dev , "Please input qp num (0-%u )" , qm -> qp_num - 1 );
11661166 return - EINVAL ;
11671167 }
11681168
@@ -1208,7 +1208,7 @@ static int qm_cqc_dump(struct hisi_qm *qm, const char *s)
12081208
12091209 ret = kstrtou32 (s , 0 , & qp_id );
12101210 if (ret || qp_id >= qm -> qp_num ) {
1211- dev_err (dev , "Please input qp num (0-%d )" , qm -> qp_num - 1 );
1211+ dev_err (dev , "Please input qp num (0-%u )" , qm -> qp_num - 1 );
12121212 return - EINVAL ;
12131213 }
12141214
@@ -1287,7 +1287,7 @@ static int q_dump_param_parse(struct hisi_qm *qm, char *s,
12871287
12881288 ret = kstrtou32 (presult , 0 , q_id );
12891289 if (ret || * q_id >= qp_num ) {
1290- dev_err (dev , "Please input qp num (0-%d )" , qp_num - 1 );
1290+ dev_err (dev , "Please input qp num (0-%u )" , qp_num - 1 );
12911291 return - EINVAL ;
12921292 }
12931293
@@ -2729,7 +2729,7 @@ int hisi_qm_start(struct hisi_qm *qm)
27292729 return - EPERM ;
27302730 }
27312731
2732- dev_dbg (dev , "qm start with %d queue pairs\n" , qm -> qp_num );
2732+ dev_dbg (dev , "qm start with %u queue pairs\n" , qm -> qp_num );
27332733
27342734 if (!qm -> qp_num ) {
27352735 dev_err (dev , "qp_num should not be 0\n" );
@@ -3164,7 +3164,7 @@ int hisi_qm_alloc_qps_node(struct hisi_qm_list *qm_list, int qp_num,
31643164
31653165 mutex_unlock (& qm_list -> lock );
31663166 if (ret )
3167- pr_info ("Failed to create qps, node[%d], alg[%d ], qp[%d]!\n" ,
3167+ pr_info ("Failed to create qps, node[%d], alg[%u ], qp[%d]!\n" ,
31683168 node , alg_type , qp_num );
31693169
31703170err :
@@ -3372,7 +3372,7 @@ pci_ers_result_t hisi_qm_dev_err_detected(struct pci_dev *pdev,
33723372 if (pdev -> is_virtfn )
33733373 return PCI_ERS_RESULT_NONE ;
33743374
3375- pci_info (pdev , "PCI error detected, state(=%d )!!\n" , state );
3375+ pci_info (pdev , "PCI error detected, state(=%u )!!\n" , state );
33763376 if (state == pci_channel_io_perm_failure )
33773377 return PCI_ERS_RESULT_DISCONNECT ;
33783378
0 commit comments