Skip to contentSkip to conversation

net: wwan: t7xx: Make local function static

PATCH Applied Slark Xiao 3 participants 3 messages Nov 20, 2025 – Nov 22, 2025

Subsystems (4)
lore
Share & tools
lore

Slark Xiao

author
#0 lore raw

PATCH 1/1 net: wwan: t7xx: Make local function static

This function was used in t7xx_hif_cldma.c only. Make it static as it should be.

---
 drivers/net/wwan/t7xx/t7xx_hif_cldma.c | 2 +-
 drivers/net/wwan/t7xx/t7xx_hif_cldma.h | 2 --
 2 files changed, 1 insertion(+), 3 deletions(-)
drivers/net/wwan/t7xx/t7xx_hif_cldma.c +1 -1
index 97163e1e5783..bd16788882f0 100644
@@ -899,7 +899,7 @@ static void t7xx_cldma_hw_start_send(struct cldma_ctrl *md_ctrl, int qno,
  * @queue: CLDMA queue.
  * @recv_skb: Receiving skb callback.
  */
-void t7xx_cldma_set_recv_skb(struct cldma_queue *queue,
+static void t7xx_cldma_set_recv_skb(struct cldma_queue *queue,
 			     int (*recv_skb)(struct cldma_queue *queue, struct sk_buff *skb))
 {
 	queue->recv_skb = recv_skb;
drivers/net/wwan/t7xx/t7xx_hif_cldma.h +0 -2
index f2d9941be9c8..9d0107e18a7b 100644
@@ -126,8 +126,6 @@ void t7xx_cldma_switch_cfg(struct cldma_ctrl *md_ctrl, enum cldma_cfg cfg_id);
 void t7xx_cldma_start(struct cldma_ctrl *md_ctrl);
 int t7xx_cldma_stop(struct cldma_ctrl *md_ctrl);
 void t7xx_cldma_reset(struct cldma_ctrl *md_ctrl);
-void t7xx_cldma_set_recv_skb(struct cldma_queue *queue,
-			     int (*recv_skb)(struct cldma_queue *queue, struct sk_buff *skb));
 int t7xx_cldma_send_skb(struct cldma_ctrl *md_ctrl, int qno, struct sk_buff *skb);
 void t7xx_cldma_stop_all_qs(struct cldma_ctrl *md_ctrl, enum mtk_txrx tx_rx);
 void t7xx_cldma_clear_all_qs(struct cldma_ctrl *md_ctrl, enum mtk_txrx tx_rx);
Signature · 1 line
2.25.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Slark Xiao

This function was used in t7xx_hif_cldma.c only. Make it static as it should be.

I believe it would be best to target net-next for this change.

Quoted 34 lines
---
 drivers/net/wwan/t7xx/t7xx_hif_cldma.c | 2 +-
 drivers/net/wwan/t7xx/t7xx_hif_cldma.h | 2 --
 2 files changed, 1 insertion(+), 3 deletions(-)
drivers/net/wwan/t7xx/t7xx_hif_cldma.c +1 -1
index 97163e1e5783..bd16788882f0 100644
@@ -899,7 +899,7 @@ static void t7xx_cldma_hw_start_send(struct cldma_ctrl *md_ctrl, int qno,
  * @queue: CLDMA queue.
  * @recv_skb: Receiving skb callback.
  */
-void t7xx_cldma_set_recv_skb(struct cldma_queue *queue,
+static void t7xx_cldma_set_recv_skb(struct cldma_queue *queue,
                             int (*recv_skb)(struct cldma_queue *queue, struct sk_buff *skb))
 {
        queue->recv_skb = recv_skb;
drivers/net/wwan/t7xx/t7xx_hif_cldma.h +0 -3
index f2d9941be9c8..9d0107e18a7b 100644
@@ -126,8 +126,6 @@ void t7xx_cldma_switch_cfg(struct cldma_ctrl *md_ctrl, enum cldma_cfg cfg_id);
 void t7xx_cldma_start(struct cldma_ctrl *md_ctrl);
 int t7xx_cldma_stop(struct cldma_ctrl *md_ctrl);
 void t7xx_cldma_reset(struct cldma_ctrl *md_ctrl);
-void t7xx_cldma_set_recv_skb(struct cldma_queue *queue,
-                            int (*recv_skb)(struct cldma_queue *queue, struct sk_buff *skb));
 int t7xx_cldma_send_skb(struct cldma_ctrl *md_ctrl, int qno, struct sk_buff *skb);
 void t7xx_cldma_stop_all_qs(struct cldma_ctrl *md_ctrl, enum mtk_txrx tx_rx);
 void t7xx_cldma_clear_all_qs(struct cldma_ctrl *md_ctrl, enum mtk_txrx tx_rx);
--

2.25.1

#2 lore raw
In reply to Slark Xiao
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 8 lines · On Thu, 20 Nov 2025 19:52:08 +0800 you wrote:

This function was used in t7xx_hif_cldma.c only. Make it static as it should be.

---
 drivers/net/wwan/t7xx/t7xx_hif_cldma.c | 2 +-
 drivers/net/wwan/t7xx/t7xx_hif_cldma.h | 2 --
 2 files changed, 1 insertion(+), 3 deletions(-)

Here is the summary with links:
- net: wwan: t7xx: Make local function static

    https://git.kernel.org/netdev/net-next/c/501253b61d84

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html