Skip to content

Commit 0735ccc

Browse files
geertudavem330
authored andcommitted
ionic: Use debugfs_create_bool() to export bool
Currently bool ionic_cq.done_color is exported using debugfs_create_u8(), which requires a cast, preventing further compiler checks. Fix this by switching to debugfs_create_bool(), and dropping the cast. Signed-off-by: Geert Uytterhoeven <[email protected]> Acked-by: Shannon Nelson <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 050569f commit 0735ccc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/net/ethernet/pensando/ionic/ionic_debugfs.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,7 @@ void ionic_debugfs_add_qcq(struct ionic_lif *lif, struct ionic_qcq *qcq)
170170
debugfs_create_x64("base_pa", 0400, cq_dentry, &cq->base_pa);
171171
debugfs_create_u32("num_descs", 0400, cq_dentry, &cq->num_descs);
172172
debugfs_create_u32("desc_size", 0400, cq_dentry, &cq->desc_size);
173-
debugfs_create_u8("done_color", 0400, cq_dentry,
174-
(u8 *)&cq->done_color);
173+
debugfs_create_bool("done_color", 0400, cq_dentry, &cq->done_color);
175174

176175
debugfs_create_file("tail", 0400, cq_dentry, cq, &cq_tail_fops);
177176

0 commit comments

Comments
 (0)