File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
drivers/net/ethernet/qlogic/qed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -795,19 +795,19 @@ static void qed_init_qm_pq(struct qed_hwfn *p_hwfn,
795
795
796
796
/* get pq index according to PQ_FLAGS */
797
797
static u16 * qed_init_qm_get_idx_from_flags (struct qed_hwfn * p_hwfn ,
798
- u32 pq_flags )
798
+ unsigned long pq_flags )
799
799
{
800
800
struct qed_qm_info * qm_info = & p_hwfn -> qm_info ;
801
801
802
802
/* Can't have multiple flags set here */
803
- if (bitmap_weight (( unsigned long * ) & pq_flags ,
803
+ if (bitmap_weight (& pq_flags ,
804
804
sizeof (pq_flags ) * BITS_PER_BYTE ) > 1 ) {
805
- DP_ERR (p_hwfn , "requested multiple pq flags 0x%x \n" , pq_flags );
805
+ DP_ERR (p_hwfn , "requested multiple pq flags 0x%lx \n" , pq_flags );
806
806
goto err ;
807
807
}
808
808
809
809
if (!(qed_get_pq_flags (p_hwfn ) & pq_flags )) {
810
- DP_ERR (p_hwfn , "pq flag 0x%x is not set\n" , pq_flags );
810
+ DP_ERR (p_hwfn , "pq flag 0x%lx is not set\n" , pq_flags );
811
811
goto err ;
812
812
}
813
813
You can’t perform that action at this time.
0 commit comments