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:
committed by
Hauke Mehrtens
parent
d0d9b7b612
commit
8e90c5cfc2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user