]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
netdevsim: fix build if SKB_EXTENSIONS=n
authorQingfang Deng <dqfext@gmail.com>
Tue, 24 Mar 2026 14:08:56 +0000 (22:08 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 27 Mar 2026 03:08:58 +0000 (20:08 -0700)
commit57a04a13aac1f247d171c3f3aef93efc69e6979e
tree6628e31eeca30972687e87046629e5f5e7b411e0
parent976ff48c2ac6e6b25b01428c9d7997bcd0fb2949
netdevsim: fix build if SKB_EXTENSIONS=n

__skb_ext_put() is not declared if SKB_EXTENSIONS is not enabled, which
causes a build error:

drivers/net/netdevsim/netdev.c: In function 'nsim_forward_skb':
drivers/net/netdevsim/netdev.c:114:25: error: implicit declaration of function '__skb_ext_put'; did you mean 'skb_ext_put'? [-Werror=implicit-function-declaration]
  114 |                         __skb_ext_put(psp_ext);
      |                         ^~~~~~~~~~~~~
      |                         skb_ext_put
cc1: some warnings being treated as errors

Add a stub to fix the build.

Fixes: 7d9351435ebb ("netdevsim: drop PSP ext ref on forward failure")
Signed-off-by: Qingfang Deng <dqfext@gmail.com>
Link: https://patch.msgid.link/20260324140857.783-1-dqfext@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/skbuff.h