004-Fix-debugfs-compilation-warning-in-mwl_debugfs_info_read.patch 1.9 KB

12345678910111213141516171819202122232425262728
  1. From 44419b1feae3eedda21cdc71da9acb611ca1a6fd Mon Sep 17 00:00:00 2001
  2. From: Christian Marangi <[email protected]>
  3. Date: Sun, 12 May 2024 14:42:01 +0200
  4. Subject: [PATCH] Fix debugfs compilation warning in mwl_debugfs_info_read
  5. Fix debugfs compilation warning on 64Bit mwl_debugfs_info_read by
  6. casing for uintptr_t and use %zx.
  7. Signed-off-by: Christian Marangi <[email protected]>
  8. ---
  9. debugfs.c | 4 ++--
  10. 1 file changed, 2 insertions(+), 2 deletions(-)
  11. --- a/debugfs.c
  12. +++ b/debugfs.c
  13. @@ -364,10 +364,10 @@ static ssize_t mwl_debugfs_info_read(str
  14. "-----------------------=> address| address|qlen|fw_desc_cnt\n");
  15. spin_lock_irqsave(&pcie_priv->tx_desc_lock, flags);
  16. len += scnprintf(p + len, size - len,
  17. - "wcb_base0 : %x => %8x|%8p|%4d|%d\n", get_hw_spec->wcb_base0, *((unsigned int *)le32_to_cpu(get_hw_spec->wcb_base0)),(void *)*((unsigned int *)le32_to_cpu(get_hw_spec->wcb_base0)),skb_queue_len(&pcie_priv->txq[0]),pcie_priv->fw_desc_cnt[0]);
  18. + "wcb_base0 : %x => %8px|%8p|%4d|%d\n", get_hw_spec->wcb_base0, (void *)(uintptr_t)le32_to_cpu(get_hw_spec->wcb_base0),(void *)(uintptr_t)le32_to_cpu(get_hw_spec->wcb_base0),skb_queue_len(&pcie_priv->txq[0]),pcie_priv->fw_desc_cnt[0]);
  19. for(i = 0; i < SYSADPT_TOTAL_TX_QUEUES - 1; i++)
  20. len += scnprintf(p + len, size - len,
  21. - "wcb_base[%2d]: %x => %8x|%8p|%4d|%d\n", i, get_hw_spec->wcb_base[i], *((unsigned int *)le32_to_cpu(get_hw_spec->wcb_base[i])),(void *)*((unsigned int *)le32_to_cpu(get_hw_spec->wcb_base[i])),skb_queue_len(&pcie_priv->txq[i + 1]),pcie_priv->fw_desc_cnt[i + 1]);
  22. + "wcb_base[%2d]: %x => %8px|%8p|%4d|%d\n", i, get_hw_spec->wcb_base[i], (void *)(uintptr_t)le32_to_cpu(get_hw_spec->wcb_base[i]),(void *)(uintptr_t)le32_to_cpu(get_hw_spec->wcb_base[i]),skb_queue_len(&pcie_priv->txq[i + 1]),pcie_priv->fw_desc_cnt[i + 1]);
  23. spin_unlock_irqrestore(&pcie_priv->tx_desc_lock, flags);
  24. }