kernel: trelay: fix build warning on 6.12 kernel
authorShiji Yang <[email protected]>
Mon, 28 Apr 2025 10:14:09 +0000 (18:14 +0800)
committerHauke Mehrtens <[email protected]>
Sat, 3 May 2025 18:16:25 +0000 (20:16 +0200)
commit8e90c5cfc292fe7e68c3fea3983a663e188f9fb6
tree8bc6e52c56012fd8986f1146c926e40d18091b95
parentd0d9b7b61201486e24845d7c54c265fbbe6ca424
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 <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/18637
Signed-off-by: Hauke Mehrtens <[email protected]>
package/kernel/trelay/src/trelay.c