* [PATCH -next] net: wwan: iosm: Use skb_put_data() instead of skb_put/memcpy pair
@ 2022-09-27 2:32 Shang XiaoJing
2022-09-27 6:41 ` Kumar, M Chetan
2022-09-29 2:50 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Shang XiaoJing @ 2022-09-27 2:32 UTC (permalink / raw)
To: m.chetan.kumar, linuxwwan, loic.poulain, ryazanov.s.a, johannes,
davem, edumazet, kuba, pabeni, netdev
Cc: shangxiaojing
Use skb_put_data() instead of skb_put() and memcpy(), which is clear.
Signed-off-by: Shang XiaoJing <shangxiaojing@huawei.com>
---
drivers/net/wwan/iosm/iosm_ipc_imem_ops.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wwan/iosm/iosm_ipc_imem_ops.c b/drivers/net/wwan/iosm/iosm_ipc_imem_ops.c
index 57304a5adf68..b7f9237dedf7 100644
--- a/drivers/net/wwan/iosm/iosm_ipc_imem_ops.c
+++ b/drivers/net/wwan/iosm/iosm_ipc_imem_ops.c
@@ -590,7 +590,7 @@ int ipc_imem_sys_devlink_write(struct iosm_devlink *ipc_devlink,
goto out;
}
- memcpy(skb_put(skb, count), buf, count);
+ skb_put_data(skb, buf, count);
IPC_CB(skb)->op_type = UL_USR_OP_BLOCKED;
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [PATCH -next] net: wwan: iosm: Use skb_put_data() instead of skb_put/memcpy pair
2022-09-27 2:32 [PATCH -next] net: wwan: iosm: Use skb_put_data() instead of skb_put/memcpy pair Shang XiaoJing
@ 2022-09-27 6:41 ` Kumar, M Chetan
2022-09-29 2:50 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Kumar, M Chetan @ 2022-09-27 6:41 UTC (permalink / raw)
To: Shang XiaoJing, linuxwwan, loic.poulain@linaro.org,
ryazanov.s.a@gmail.com, johannes@sipsolutions.net,
davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
pabeni@redhat.com, netdev@vger.kernel.org
> -----Original Message-----
> From: Shang XiaoJing <shangxiaojing@huawei.com>
> Sent: Tuesday, September 27, 2022 8:03 AM
> To: Kumar, M Chetan <m.chetan.kumar@intel.com>; linuxwwan
> <linuxwwan@intel.com>; loic.poulain@linaro.org; ryazanov.s.a@gmail.com;
> johannes@sipsolutions.net; davem@davemloft.net;
> edumazet@google.com; kuba@kernel.org; pabeni@redhat.com;
> netdev@vger.kernel.org
> Cc: shangxiaojing@huawei.com
> Subject: [PATCH -next] net: wwan: iosm: Use skb_put_data() instead of
> skb_put/memcpy pair
>
> Use skb_put_data() instead of skb_put() and memcpy(), which is clear.
>
> Signed-off-by: Shang XiaoJing <shangxiaojing@huawei.com>
> ---
> drivers/net/wwan/iosm/iosm_ipc_imem_ops.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/wwan/iosm/iosm_ipc_imem_ops.c
> b/drivers/net/wwan/iosm/iosm_ipc_imem_ops.c
> index 57304a5adf68..b7f9237dedf7 100644
> --- a/drivers/net/wwan/iosm/iosm_ipc_imem_ops.c
> +++ b/drivers/net/wwan/iosm/iosm_ipc_imem_ops.c
> @@ -590,7 +590,7 @@ int ipc_imem_sys_devlink_write(struct iosm_devlink
> *ipc_devlink,
> goto out;
> }
>
> - memcpy(skb_put(skb, count), buf, count);
> + skb_put_data(skb, buf, count);
>
> IPC_CB(skb)->op_type = UL_USR_OP_BLOCKED;
Reviewed-by: M Chetan Kumar <m.chetan.kumar@intel.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH -next] net: wwan: iosm: Use skb_put_data() instead of skb_put/memcpy pair
2022-09-27 2:32 [PATCH -next] net: wwan: iosm: Use skb_put_data() instead of skb_put/memcpy pair Shang XiaoJing
2022-09-27 6:41 ` Kumar, M Chetan
@ 2022-09-29 2:50 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-09-29 2:50 UTC (permalink / raw)
To: shangxiaojing
Cc: m.chetan.kumar, linuxwwan, loic.poulain, ryazanov.s.a, johannes,
davem, edumazet, kuba, pabeni, netdev
Hello:
This patch was applied to netdev/net-next.git (master)
by Jakub Kicinski <kuba@kernel.org>:
On Tue, 27 Sep 2022 10:32:54 +0800 you wrote:
> Use skb_put_data() instead of skb_put() and memcpy(), which is clear.
>
> Signed-off-by: Shang XiaoJing <shangxiaojing@huawei.com>
> ---
> drivers/net/wwan/iosm/iosm_ipc_imem_ops.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Here is the summary with links:
- [-next] net: wwan: iosm: Use skb_put_data() instead of skb_put/memcpy pair
https://git.kernel.org/netdev/net-next/c/f45892f75038
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-09-29 2:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-27 2:32 [PATCH -next] net: wwan: iosm: Use skb_put_data() instead of skb_put/memcpy pair Shang XiaoJing
2022-09-27 6:41 ` Kumar, M Chetan
2022-09-29 2:50 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).