ipv4: remove useless arg
authorYu Tian <tianyu2@kernelsoft.com>
Tue, 31 Dec 2024 02:36:10 +0000 (10:36 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 3 Jan 2025 01:17:40 +0000 (17:17 -0800)
commit5df7ca0b827dac9fc44b42a4b695adcaa6d07ffb
treec13b506188d76d4830cb1da6d3a90f45cec52619
parentbb70b0d48d8eab20644ca0101fedfe23f8a26c59
ipv4: remove useless arg

The "struct sock *sk" parameter in ip_rcv_finish_core is unused, which
leads the compiler to optimize it out. As a result, the
"struct sk_buff *skb" parameter is passed using x1. And this make kprobe
hard to use.

Signed-off-by: Yu Tian <tianyu2@kernelsoft.com>
Link: https://patch.msgid.link/20241231023610.1657926-1-tianyu2@kernelsoft.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/ip_input.c