]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
kernel: trelay: fix build warning on 6.12 kernel
authorShiji Yang <yangshiji66@outlook.com>
Mon, 28 Apr 2025 10:14:09 +0000 (18:14 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 3 May 2025 18:16:25 +0000 (20:16 +0200)
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>
package/kernel/trelay/src/trelay.c

index 1f147475971f2906bcf73c3654c504c5298b0c0f..8b3bef2a8eb6ce3081b5d1a3946aab18cdcb8717 100644 (file)
@@ -35,7 +35,7 @@ struct trelay {
        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 sk_buff *skb = *pskb;