From: Ruiqiang Hao <[email protected]>

Commit b4615cafd54a (octeontx2-af: Add CPT debug entries to debugfs)
added function rvu_dbg_cpt_engines_info_write(), but not invoked, will
cause build warning below. Now use this function as write operation of
debug file "cpt_engines_info".

drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c:2837:16: warning: 
'rvu_dbg_cpt_engines_info_write' defined but not used [-Wunused-function]
 2837 | static ssize_t rvu_dbg_cpt_engines_info_write(struct file *filp,
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Ruiqiang Hao <[email protected]>
---
 drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c 
b/drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
index f0f7875703a0..a75c5feae867 100644
--- a/drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
+++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
@@ -3537,7 +3537,8 @@ static int rvu_dbg_cpt_engines_info_display(struct 
seq_file *filp, void *unused)
        return 0;
 }
 
-RVU_DEBUG_SEQ_FOPS(cpt_engines_info, cpt_engines_info_display, NULL);
+RVU_DEBUG_SEQ_FOPS(cpt_engines_info, cpt_engines_info_display,
+                   cpt_engines_info_write);
 
 static int rvu_dbg_cpt_lfs_info_display(struct seq_file *filp, void *unused)
 {
-- 
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#11541): 
https://lists.yoctoproject.org/g/linux-yocto/message/11541
Mute This Topic: https://lists.yoctoproject.org/mt/92886727/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to