kernel: trelay: fix build warning on 6.12 kernel

Make trelay_handle_frame() static to fix the build warning:

/workspaces/openwrt/build_dir/target-x86_64_musl/linux-x86_64/trelay/trelay.c:38:21: error: no previous prototype for 'trelay_handle_frame' [-Werror=missing-prototypes]
   38 | rx_handler_result_t trelay_handle_frame(struct sk_buff **pskb)
      |                     ^~~~~~~~~~~~~~~~~~~

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18637
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
Shiji Yang 2025-04-28 18:14:09 +08:00 committed by Hauke Mehrtens
parent d0d9b7b612
commit 8e90c5cfc2

View file

@ -35,7 +35,7 @@ struct trelay {
char name[]; char name[];
}; };
rx_handler_result_t trelay_handle_frame(struct sk_buff **pskb) static rx_handler_result_t trelay_handle_frame(struct sk_buff **pskb)
{ {
struct net_device *dev; struct net_device *dev;
struct sk_buff *skb = *pskb; struct sk_buff *skb = *pskb;