]> git.ipfire.org Git - thirdparty/linux.git/commit
net: ipv4: Remove extern udp_v4_early_demux()/tcp_v4_early_demux() in .c files
authorWang Liang <wangliang74@huawei.com>
Sat, 25 Oct 2025 09:26:37 +0000 (17:26 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 30 Oct 2025 00:05:30 +0000 (17:05 -0700)
commitf58abec23da51f03ffe25f9464f2ce2d1a2a592a
tree1892b144a5e19b71c7b8b4561854f30d11331437
parenta8abe8e210c175b1d5a7e53df069e107b65c13cb
net: ipv4: Remove extern udp_v4_early_demux()/tcp_v4_early_demux() in .c files

Function udp_v4_early_demux() was already declared in 'include/net/udp.h',
no need to keep the extern in 'ip_input.c', which may produce the
following checkpatch warning:

  WARNING: externs should be avoided in .c files
  #45: FILE: net/ipv4/ip_input.c:322:
  +enum skb_drop_reason udp_v4_early_demux(struct sk_buff *skb);

Replace it by including 'net/udp.h'. Do the same for tcp_v4_early_demux().

Signed-off-by: Wang Liang <wangliang74@huawei.com>
Link: https://patch.msgid.link/20251025092637.1020960-1-wangliang74@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/ip_input.c