Go to file
Sven Eckelmann 95fa02543a batman-adv: Fix build with kernel 5.15.38
The build failed in this kernel due to some missing implicit includes:

  build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_mt7622/batman-adv-2022.1/compat-hacks.h:64:42: warning: 'struct sk_buff' declared inside parameter list will not be visible outside of this definition or declaration
     64 | static inline int batadv_netif_rx(struct sk_buff *skb)
        |                                          ^~~~~~~
  build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_mt7622/batman-adv-2022.1/compat-hacks.h: In function 'batadv_netif_rx':
  build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_mt7622/batman-adv-2022.1/compat-hacks.h:66:13: error: implicit declaration of function 'in_interrupt' [-Werror=implicit-function-declaration]
    66 |         if (in_interrupt())
        |             ^~~~~~~~~~~~
  build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_mt7622/batman-adv-2022.1/compat-hacks.h:67:24: error: implicit declaration of function 'netif_rx' [-Werror=implicit-function-declaration]
     67 |                 return netif_rx(skb);
        |                        ^~~~~~~~
  build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_mt7622/batman-adv-2022.1/compat-hacks.h:69:24: error: implicit declaration of function 'netif_rx_ni' [-Werror=implicit-function-declaration]
     69 |                 return netif_rx_ni(skb);
        |                        ^~~~~~~~~~~
  In file included from <command-line>:
  ./include/linux/netdevice.h: At top level:
  build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_mt7622/batman-adv-2022.1/compat-hacks.h:71:18: error: conflicting types for 'batadv_netif_rx'; have 'int(struct sk_buff *)'
     71 | #define netif_rx batadv_netif_rx
        |                  ^~~~~~~~~~~~~~~
  ./include/linux/netdevice.h:4029:5: note: in expansion of macro 'netif_rx'
   4029 | int netif_rx(struct sk_buff *skb);
        |     ^~~~~~~~
  build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_mt7622/batman-adv-2022.1/compat-hacks.h:64:19: note: previous definition of 'batadv_netif_rx' with type 'int(struct sk_buff *)'
     64 | static inline int batadv_netif_rx(struct sk_buff *skb)
        |                   ^~~~~~~~~~~~~~~
  cc1: some warnings being treated as errors

Reported-by: Chen Minqiang <ptpt52@gmail.com>
Fixes: b65a8ca03aec ("batman-adv: update to version 2022.1")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
2022-11-27 01:01:29 +08:00
ahcpd init commit 2022-04-30 19:21:23 +08:00
alfred init commit 2022-04-30 19:21:23 +08:00
babel-pinger init commit 2022-04-30 19:21:23 +08:00
babeld init commit 2022-04-30 19:21:23 +08:00
batctl init commit 2022-04-30 19:21:23 +08:00
batman-adv batman-adv: Fix build with kernel 5.15.38 2022-11-27 01:01:29 +08:00
batmand init commit 2022-04-30 19:21:23 +08:00
bird1 init commit 2022-04-30 19:21:23 +08:00
bird1-openwrt init commit 2022-04-30 19:21:23 +08:00
bird2 init commit 2022-04-30 19:21:23 +08:00
bmx6 init commit 2022-04-30 19:21:23 +08:00
bmx7 init commit 2022-04-30 19:21:23 +08:00
cjdns init commit 2022-04-30 19:21:23 +08:00
hnetd init commit 2022-04-30 19:21:23 +08:00
luci-app-bmx6 init commit 2022-04-30 19:21:23 +08:00
luci-app-cjdns init commit 2022-04-30 19:21:23 +08:00
mcproxy init commit 2022-04-30 19:21:23 +08:00
mesh11sd init commit 2022-04-30 19:21:23 +08:00
minimalist-pcproxy init commit 2022-04-30 19:21:23 +08:00
naywatch init commit 2022-04-30 19:21:23 +08:00
ndppd init commit 2022-04-30 19:21:23 +08:00
nodogsplash init commit 2022-04-30 19:21:23 +08:00
ohybridproxy init commit 2022-04-30 19:21:23 +08:00
olsrd init commit 2022-04-30 19:21:23 +08:00
oonf-dlep-proxy init commit 2022-04-30 19:21:23 +08:00
oonf-dlep-radio init commit 2022-04-30 19:21:23 +08:00
oonf-init-scripts init commit 2022-04-30 19:21:23 +08:00
oonf-olsrd2 init commit 2022-04-30 19:21:23 +08:00
opennds init commit 2022-04-30 19:21:23 +08:00
pimbd init commit 2022-04-30 19:21:23 +08:00
prince init commit 2022-04-30 19:21:23 +08:00
quagga init commit 2022-04-30 19:21:23 +08:00
vis init commit 2022-04-30 19:21:23 +08:00
LICENSE Initial commit 2022-04-30 19:14:49 +08:00
MAINTAINERS init commit 2022-04-30 19:21:23 +08:00
README.md init commit 2022-04-30 19:21:23 +08:00

OpenWrt Routing Feed

Description

This OpenWrt package feed contains community maintained routing packages.

Usage

This repository is intended to be layered on-top of an OpenWrt buildroot. If you do not have an OpenWrt buildroot installed, see the documentation at: OpenWrt Buildroot Installation on the OpenWrt support site.

This feed is enabled by default. To install all its package definitions, run:

./scripts/feeds update routing
./scripts/feeds install -a -p routing