qosmio / nss-packages

QCA NSS Packages
GNU General Public License v2.0
76 stars 79 forks source link

Configuring Memory 512M Build 11.4 of qca-nss-clients failed! #15

Closed zxlhhyccc closed 8 months ago

zxlhhyccc commented 8 months ago
 CC [M]  /home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/nss_pvxlanmgr.o
In file included from /home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/nss_pvxlanmgr.c:21:
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:39:33: error: 'NSS_TX_SUCCESS' undeclared here (not in a function)
   39 |         NSS_PVXLANMGR_SUCCESS = NSS_TX_SUCCESS,
      |                                 ^~~~~~~~~~~~~~
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:40:33: error: 'NSS_TX_FAILURE' undeclared here (not in a function)
   40 |         NSS_PVXLANMGR_FAILURE = NSS_TX_FAILURE,
      |                                 ^~~~~~~~~~~~~~
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:41:39: error: 'NSS_TX_FAILURE_QUEUE' undeclared here (not in a function)
   41 |         NSS_PVXLANMGR_FAILURE_QUEUE = NSS_TX_FAILURE_QUEUE,
      |                                       ^~~~~~~~~~~~~~~~~~~~
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:42:43: error: 'NSS_TX_FAILURE_NOT_READY' undeclared here (not in a function)
   42 |         NSS_PVXLANMGR_FAILURE_NOT_READY = NSS_TX_FAILURE_NOT_READY,
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:43:43: error: 'NSS_TX_FAILURE_TOO_LARGE' undeclared here (not in a function)
   43 |         NSS_PVXLANMGR_FAILURE_TOO_LARGE = NSS_TX_FAILURE_TOO_LARGE,
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:44:43: error: 'NSS_TX_FAILURE_TOO_SHORT' undeclared here (not in a function)
   44 |         NSS_PVXLANMGR_FAILURE_TOO_SHORT = NSS_TX_FAILURE_TOO_SHORT,
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:45:47: error: 'NSS_TX_FAILURE_NOT_SUPPORTED' undeclared here (not in a function)
   45 |         NSS_PVXLANMGR_FAILURE_NOT_SUPPORTED = NSS_TX_FAILURE_NOT_SUPPORTED,
      |                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:46:43: error: 'NSS_TX_FAILURE_BAD_PARAM' undeclared here (not in a function)
   46 |         NSS_PVXLANMGR_FAILURE_BAD_PARAM = NSS_TX_FAILURE_BAD_PARAM,
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:51:48: error: 'NSS_TX_FAILURE_MAX' undeclared here (not in a function)
   51 |         NSS_PVXLANMGR_FAILURE_TUNNEL_ENABLED = NSS_TX_FAILURE_MAX + 1,
      |                                                ^~~~~~~~~~~~~~~~~~
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:77:9: error: unknown type name 'uint16_t'
   77 |         uint16_t flags;                                 /**< VxLAN specific flags. */
      |         ^~~~~~~~
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:78:9: error: unknown type name 'uint16_t'
   78 |         uint16_t gpid;                                  /**< Group Policy ID. */
      |         ^~~~~~~~
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:79:9: error: unknown type name 'uint32_t'
   79 |         uint32_t vnet_id;                               /**< Virtual Net ID. */
      |         ^~~~~~~~
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:91:87: error: unknown type name 'uint32_t'
   91 | us_t nss_pvxlanmgr_tunnel_mac_remove(struct net_device *dev, uint32_t tunnel_id, uint8_t *mac_addr);
      |                                                              ^~~~~~~~

/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:1:1: note: 'uint32_t' is defined in header '<stdint.h>'; did you forget to '#include <stdint.h>'?
  +++ |+#include <stdint.h>
    1 | /*
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:91:107: error: unknown type name 'uint8_t'
   91 | unnel_mac_remove(struct net_device *dev, uint32_t tunnel_id, uint8_t *mac_addr);
      |                                                              ^~~~~~~

/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:91:107: note: 'uint8_t' is defined in header '<stdint.h>'; did you forget to '#include <stdint.h>'?
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:103:84: error: unknown type name 'uint32_t'
  103 | tatus_t nss_pvxlanmgr_tunnel_mac_add(struct net_device *dev, uint32_t tunnel_id, uint8_t *mac_addr, struct nss_pvxlanmgr_vxlan_hdr *pvxch);
      |                                                              ^~~~~~~~

/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:103:84: note: 'uint32_t' is defined in header '<stdint.h>'; did you forget to '#include <stdint.h>'?
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:103:104: error: unknown type name 'uint8_t'
  103 | r_tunnel_mac_add(struct net_device *dev, uint32_t tunnel_id, uint8_t *mac_addr, struct nss_pvxlanmgr_vxlan_hdr *pvxch);
      |                                                              ^~~~~~~

/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:103:104: note: 'uint8_t' is defined in header '<stdint.h>'; did you forget to '#include <stdint.h>'?
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:112:67: error: 'struct net_device' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
  112 | n nss_pvxlanmgr_status_t nss_pvxlanmgr_netdev_disable(struct net_device *dev);
      |                                                              ^~~~~~~~~~

/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:121:66: error: 'struct net_device' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
  121 | rn nss_pvxlanmgr_status_t nss_pvxlanmgr_netdev_enable(struct net_device *dev);
      |                                                              ^~~~~~~~~~

/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:133:84: error: unknown type name 'uint32_t'
  133 | tatus_t nss_pvxlanmgr_tunnel_destroy(struct net_device *dev, uint32_t tunnel_id);
      |                                                              ^~~~~~~~

/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:133:84: note: 'uint32_t' is defined in header '<stdint.h>'; did you forget to '#include <stdint.h>'?
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:147:88: error: unknown type name 'uint32_t'
  147 | s_t nss_pvxlanmgr_tunnel_ipv4_create(struct net_device *dev, uint32_t tunnel_id,
      |                                                              ^~~~~~~~

/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:147:88: note: 'uint32_t' is defined in header '<stdint.h>'; did you forget to '#include <stdint.h>'?
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:148:97: error: unknown type name 'uint32_t'
  148 |                      struct nss_ipv4_rule_create_msg *nircm, uint32_t pvxlan_src_port);
      |                                                              ^~~~~~~~

/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:148:97: note: 'uint32_t' is defined in header '<stdint.h>'; did you forget to '#include <stdint.h>'?
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:162:88: error: unknown type name 'uint32_t'
  162 | s_t nss_pvxlanmgr_tunnel_ipv6_create(struct net_device *dev, uint32_t tunnel_id,
      |                                                              ^~~~~~~~

/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:162:88: note: 'uint32_t' is defined in header '<stdint.h>'; did you forget to '#include <stdint.h>'?
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:163:97: error: unknown type name 'uint32_t'
  163 |                      struct nss_ipv6_rule_create_msg *nircm, uint32_t pvxlan_src_port);
      |                                                              ^~~~~~~~

/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:163:97: note: 'uint32_t' is defined in header '<stdint.h>'; did you forget to '#include <stdint.h>'?
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:172:8: error: unknown type name 'uint32_t'
  172 | extern uint32_t nss_pvxlanmgr_get_if_num_outer(struct net_device *dev);
      |        ^~~~~~~~
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:172:55: error: 'struct net_device' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
  172 | extern uint32_t nss_pvxlanmgr_get_if_num_outer(struct net_device *dev);
      |                                                       ^~~~~~~~~~
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:181:8: error: unknown type name 'uint32_t'
  181 | extern uint32_t nss_pvxlanmgr_get_if_num_host_inner(struct net_device *dev);
      |        ^~~~~~~~
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:181:60: error: 'struct net_device' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
  181 | extern uint32_t nss_pvxlanmgr_get_if_num_host_inner(struct net_device *dev);
      |                                                            ^~~~~~~~~~
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:192:67: error: 'struct net_device' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
  192 | n nss_pvxlanmgr_status_t nss_pvxlanmgr_netdev_destroy(struct net_device *dev);
      |                                                              ^~~~~~~~~~

/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/nss_pvxlanmgr.c: In function 'nss_pvxlanmgr_netdev_down':
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/nss_pvxlanmgr.c:320:38: error: passing argument 1 of 'nss_pvxlanmgr_netdev_disable' from incompatible pointer type [-Werror=incompatible-pointer-types]
  320 |         nss_pvxlanmgr_netdev_disable(netdev);
      |                                      ^~~~~~
      |                                      |
      |                                      struct net_device *
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:112:79: note: expected 'struct net_device *' but argument is of type 'struct net_device *'
  112 | pvxlanmgr_status_t nss_pvxlanmgr_netdev_disable(struct net_device *dev);
      |                                                 ~~~~~~~~~~~~~~~~~~~^~~

/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/nss_pvxlanmgr.c: In function 'nss_pvxlanmgr_netdev_up':
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/nss_pvxlanmgr.c:330:37: error: passing argument 1 of 'nss_pvxlanmgr_netdev_enable' from incompatible pointer type [-Werror=incompatible-pointer-types]
  330 |         nss_pvxlanmgr_netdev_enable(netdev);
      |                                     ^~~~~~
      |                                     |
      |                                     struct net_device *
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:121:78: note: expected 'struct net_device *' but argument is of type 'struct net_device *'
  121 | _pvxlanmgr_status_t nss_pvxlanmgr_netdev_enable(struct net_device *dev);
      |                                                 ~~~~~~~~~~~~~~~~~~~^~~

/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/nss_pvxlanmgr.c: At top level:
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/nss_pvxlanmgr.c:374:10: error: conflicting types for 'nss_pvxlanmgr_get_if_num_outer'; have 'uint32_t(struct net_device *)' {aka 'unsigned int(struct net_device *)'}
  374 | uint32_t nss_pvxlanmgr_get_if_num_outer(struct net_device *dev)
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:172:17: note: previous declaration of 'nss_pvxlanmgr_get_if_num_outer' with type 'int(struct net_device *)'
  172 | extern uint32_t nss_pvxlanmgr_get_if_num_outer(struct net_device *dev);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./include/linux/linkage.h:7,
                 from ./include/linux/kernel.h:17,
                 from ./include/linux/cpumask.h:10,
                 from ./include/linux/smp.h:13,
                 from ./include/linux/lockdep.h:14,
                 from ./include/linux/mutex.h:17,
                 from ./include/linux/kernfs.h:11,
                 from ./include/linux/sysfs.h:16,
                 from ./include/linux/kobject.h:20,
                 from ./include/linux/of.h:17,
                 from /home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/nss_pvxlanmgr_priv.h:22,
                 from /home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/nss_pvxlanmgr.c:22:
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/nss_pvxlanmgr.c:381:15: error: conflicting types for 'nss_pvxlanmgr_get_if_num_outer'; have 'uint32_t(struct net_device *)' {aka 'unsigned int(struct net_device *)'}
  381 | EXPORT_SYMBOL(nss_pvxlanmgr_get_if_num_outer);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/export.h:93:28: note: in definition of macro '___EXPORT_SYMBOL'
   93 |         extern typeof(sym) sym;                                                 \
      |                            ^~~
./include/linux/export.h:153:41: note: in expansion of macro '__EXPORT_SYMBOL'
  153 | #define _EXPORT_SYMBOL(sym, sec)        __EXPORT_SYMBOL(sym, sec, "")
      |                                         ^~~~~~~~~~~~~~~
./include/linux/export.h:156:41: note: in expansion of macro '_EXPORT_SYMBOL'
  156 | #define EXPORT_SYMBOL(sym)              _EXPORT_SYMBOL(sym, "")
      |                                         ^~~~~~~~~~~~~~
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/nss_pvxlanmgr.c:381:1: note: in expansion of macro 'EXPORT_SYMBOL'
  381 | EXPORT_SYMBOL(nss_pvxlanmgr_get_if_num_outer);
      | ^~~~~~~~~~~~~
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:172:17: note: previous declaration of 'nss_pvxlanmgr_get_if_num_outer' with type 'int(struct net_device *)'
  172 | extern uint32_t nss_pvxlanmgr_get_if_num_outer(struct net_device *dev);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/nss_pvxlanmgr.c:387:10: error: conflicting types for 'nss_pvxlanmgr_get_if_num_host_inner'; have 'uint32_t(struct net_device *)' {aka 'unsigned int(struct net_device *)'}
  387 | uint32_t nss_pvxlanmgr_get_if_num_host_inner(struct net_device *dev)
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:181:17: note: previous declaration of 'nss_pvxlanmgr_get_if_num_host_inner' with type 'int(struct net_device *)'
  181 | extern uint32_t nss_pvxlanmgr_get_if_num_host_inner(struct net_device *dev);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/nss_pvxlanmgr.c:394:15: error: conflicting types for 'nss_pvxlanmgr_get_if_num_host_inner'; have 'uint32_t(struct net_device *)' {aka 'unsigned int(struct net_device *)'}
  394 | EXPORT_SYMBOL(nss_pvxlanmgr_get_if_num_host_inner);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/export.h:93:28: note: in definition of macro '___EXPORT_SYMBOL'
   93 |         extern typeof(sym) sym;                                                 \
      |                            ^~~
./include/linux/export.h:153:41: note: in expansion of macro '__EXPORT_SYMBOL'
  153 | #define _EXPORT_SYMBOL(sym, sec)        __EXPORT_SYMBOL(sym, sec, "")
      |                                         ^~~~~~~~~~~~~~~
./include/linux/export.h:156:41: note: in expansion of macro '_EXPORT_SYMBOL'
  156 | #define EXPORT_SYMBOL(sym)              _EXPORT_SYMBOL(sym, "")
      |                                         ^~~~~~~~~~~~~~
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/nss_pvxlanmgr.c:394:1: note: in expansion of macro 'EXPORT_SYMBOL'
  394 | EXPORT_SYMBOL(nss_pvxlanmgr_get_if_num_host_inner);
      | ^~~~~~~~~~~~~
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:181:17: note: previous declaration of 'nss_pvxlanmgr_get_if_num_host_inner' with type 'int(struct net_device *)'
  181 | extern uint32_t nss_pvxlanmgr_get_if_num_host_inner(struct net_device *dev);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/nss_pvxlanmgr.c:400:24: error: conflicting types for 'nss_pvxlanmgr_netdev_disable'; have 'nss_pvxlanmgr_status_t(struct net_device *)' {aka 'enum nss_pvxlanmgr_status(struct net_device *)'}
  400 | nss_pvxlanmgr_status_t nss_pvxlanmgr_netdev_disable(struct net_device *dev)
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:112:31: note: previous declaration of 'nss_pvxlanmgr_netdev_disable' with type 'nss_pvxlanmgr_status_t(struct net_device *)' {aka 'enum nss_pvxlanmgr_status(struct net_device *)'}
  112 | extern nss_pvxlanmgr_status_t nss_pvxlanmgr_netdev_disable(struct net_device *dev);
      |                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/nss_pvxlanmgr.c:426:15: error: conflicting types for 'nss_pvxlanmgr_netdev_disable'; have 'nss_pvxlanmgr_status_t(struct net_device *)' {aka 'enum nss_pvxlanmgr_status(struct net_device *)'}
  426 | EXPORT_SYMBOL(nss_pvxlanmgr_netdev_disable);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/export.h:93:28: note: in definition of macro '___EXPORT_SYMBOL'
   93 |         extern typeof(sym) sym;                                                 \
      |                            ^~~
./include/linux/export.h:153:41: note: in expansion of macro '__EXPORT_SYMBOL'
  153 | #define _EXPORT_SYMBOL(sym, sec)        __EXPORT_SYMBOL(sym, sec, "")
      |                                         ^~~~~~~~~~~~~~~
./include/linux/export.h:156:41: note: in expansion of macro '_EXPORT_SYMBOL'
  156 | #define EXPORT_SYMBOL(sym)              _EXPORT_SYMBOL(sym, "")
      |                                         ^~~~~~~~~~~~~~
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/nss_pvxlanmgr.c:426:1: note: in expansion of macro 'EXPORT_SYMBOL'
  426 | EXPORT_SYMBOL(nss_pvxlanmgr_netdev_disable);
      | ^~~~~~~~~~~~~
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:112:31: note: previous declaration of 'nss_pvxlanmgr_netdev_disable' with type 'nss_pvxlanmgr_status_t(struct net_device *)' {aka 'enum nss_pvxlanmgr_status(struct net_device *)'}
  112 | extern nss_pvxlanmgr_status_t nss_pvxlanmgr_netdev_disable(struct net_device *dev);
      |                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/nss_pvxlanmgr.c:432:24: error: conflicting types for 'nss_pvxlanmgr_netdev_enable'; have 'nss_pvxlanmgr_status_t(struct net_device *)' {aka 'enum nss_pvxlanmgr_status(struct net_device *)'}
  432 | nss_pvxlanmgr_status_t nss_pvxlanmgr_netdev_enable(struct net_device *dev)
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:121:31: note: previous declaration of 'nss_pvxlanmgr_netdev_enable' with type 'nss_pvxlanmgr_status_t(struct net_device *)' {aka 'enum nss_pvxlanmgr_status(struct net_device *)'}
  121 | extern nss_pvxlanmgr_status_t nss_pvxlanmgr_netdev_enable(struct net_device *dev);
      |                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/nss_pvxlanmgr.c: In function 'nss_pvxlanmgr_netdev_enable':
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/nss_pvxlanmgr.c:441:17: error: comparison between 'nss_pvxlanmgr_status_t' {aka 'enum nss_pvxlanmgr_status'} and 'enum <anonymous>' [-Werror=enum-compare]
  441 |         if (ret != NSS_TX_SUCCESS) {
      |                 ^~
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/nss_pvxlanmgr.c:448:17: error: comparison between 'nss_pvxlanmgr_status_t' {aka 'enum nss_pvxlanmgr_status'} and 'enum <anonymous>' [-Werror=enum-compare]
  448 |         if (ret != NSS_TX_SUCCESS) {
      |                 ^~
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/nss_pvxlanmgr.c: At top level:
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/nss_pvxlanmgr.c:458:15: error: conflicting types for 'nss_pvxlanmgr_netdev_enable'; have 'nss_pvxlanmgr_status_t(struct net_device *)' {aka 'enum nss_pvxlanmgr_status(struct net_device *)'}
  458 | EXPORT_SYMBOL(nss_pvxlanmgr_netdev_enable);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/export.h:93:28: note: in definition of macro '___EXPORT_SYMBOL'
   93 |         extern typeof(sym) sym;                                                 \
      |                            ^~~
./include/linux/export.h:153:41: note: in expansion of macro '__EXPORT_SYMBOL'
  153 | #define _EXPORT_SYMBOL(sym, sec)        __EXPORT_SYMBOL(sym, sec, "")
      |                                         ^~~~~~~~~~~~~~~
./include/linux/export.h:156:41: note: in expansion of macro '_EXPORT_SYMBOL'
  156 | #define EXPORT_SYMBOL(sym)              _EXPORT_SYMBOL(sym, "")
      |                                         ^~~~~~~~~~~~~~
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/nss_pvxlanmgr.c:458:1: note: in expansion of macro 'EXPORT_SYMBOL'
  458 | EXPORT_SYMBOL(nss_pvxlanmgr_netdev_enable);
      | ^~~~~~~~~~~~~
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:121:31: note: previous declaration of 'nss_pvxlanmgr_netdev_enable' with type 'nss_pvxlanmgr_status_t(struct net_device *)' {aka 'enum nss_pvxlanmgr_status(struct net_device *)'}
  121 | extern nss_pvxlanmgr_status_t nss_pvxlanmgr_netdev_enable(struct net_device *dev);
      |                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/nss_pvxlanmgr.c:469:24: error: conflicting types for 'nss_pvxlanmgr_netdev_destroy'; have 'nss_pvxlanmgr_status_t(struct net_device *)' {aka 'enum nss_pvxlanmgr_status(struct net_device *)'}
  469 | nss_pvxlanmgr_status_t nss_pvxlanmgr_netdev_destroy(struct net_device *dev)
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:192:31: note: previous declaration of 'nss_pvxlanmgr_netdev_destroy' with type 'nss_pvxlanmgr_status_t(struct net_device *)' {aka 'enum nss_pvxlanmgr_status(struct net_device *)'}
  192 | extern nss_pvxlanmgr_status_t nss_pvxlanmgr_netdev_destroy(struct net_device *dev);
      |                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/nss_pvxlanmgr.c: In function 'nss_pvxlanmgr_netdev_destroy':
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/nss_pvxlanmgr.c:491:25: error: implicit declaration of function 'nss_pvxlanmgr_tunnel_destroy'; did you mean 'nss_pvxlanmgr_netdev_destroy'? [-Werror=implicit-function-declaration]
  491 |                         nss_pvxlanmgr_tunnel_destroy(dev, i);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                         nss_pvxlanmgr_netdev_destroy
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/nss_pvxlanmgr.c: At top level:
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/nss_pvxlanmgr.c:522:15: error: conflicting types for 'nss_pvxlanmgr_netdev_destroy'; have 'nss_pvxlanmgr_status_t(struct net_device *)' {aka 'enum nss_pvxlanmgr_status(struct net_device *)'}
  522 | EXPORT_SYMBOL(nss_pvxlanmgr_netdev_destroy);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/export.h:93:28: note: in definition of macro '___EXPORT_SYMBOL'
   93 |         extern typeof(sym) sym;                                                 \
      |                            ^~~
./include/linux/export.h:153:41: note: in expansion of macro '__EXPORT_SYMBOL'
  153 | #define _EXPORT_SYMBOL(sym, sec)        __EXPORT_SYMBOL(sym, sec, "")
      |                                         ^~~~~~~~~~~~~~~
./include/linux/export.h:156:41: note: in expansion of macro '_EXPORT_SYMBOL'
  156 | #define EXPORT_SYMBOL(sym)              _EXPORT_SYMBOL(sym, "")
      |                                         ^~~~~~~~~~~~~~
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/nss_pvxlanmgr.c:522:1: note: in expansion of macro 'EXPORT_SYMBOL'
  522 | EXPORT_SYMBOL(nss_pvxlanmgr_netdev_destroy);
      | ^~~~~~~~~~~~~
/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/../exports/nss_pvxlanmgr.h:192:31: note: previous declaration of 'nss_pvxlanmgr_netdev_destroy' with type 'nss_pvxlanmgr_status_t(struct net_device *)' {aka 'enum nss_pvxlanmgr_status(struct net_device *)'}
  192 | extern nss_pvxlanmgr_status_t nss_pvxlanmgr_netdev_destroy(struct net_device *dev);
      |                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
scripts/Makefile.build:250: recipe for target '/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/nss_pvxlanmgr.o' failed
make[5]: *** [/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr/nss_pvxlanmgr.o] Error 1
scripts/Makefile.build:500: recipe for target '/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr' failed
make[4]: *** [/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/pvxlanmgr] Error 2
Makefile:2010: recipe for target '/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7' failed
make[3]: *** [/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7] Error 2
make[3]: Leaving directory '/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/linux-6.1.80'
Makefile:765: recipe for target '/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/.built' failed
make[2]: *** [/home/lin/ax6-6.1/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/qca-nss-clients-2021-08-17-153998d7/.built] Error 2
make[2]: Leaving directory '/home/lin/ax6-6.1/package/nss-packages/qca/qca-nss-clients'
time: package/nss-packages/qca/qca-nss-clients/compile#46.13#7.30#53.14
    ERROR: package/nss-packages/qca/qca-nss-clients failed to build.
package/Makefile:127: recipe for target 'package/nss-packages/qca/qca-nss-clients/compile' failed
make[1]: *** [package/nss-packages/qca/qca-nss-clients/compile] Error 1
make[1]: Leaving directory '/home/lin/ax6-6.1'
/home/lin/ax6-6.1/include/toplevel.mk:231: recipe for target 'package/mac80211/compile' failed
make: *** [package/mac80211/compile] Error 2
qosmio commented 8 months ago

Are you actually using pvxlanmgr, or are you selecting all modules by default? Many of the modules are unsupported by even upstream on newer kernels, or just broken in general. I will likely remove this module from being selected.

zxlhhyccc commented 8 months ago

selecting all modules by default! remove 0025-pvxlanmgr-fix-compile-error-in-6.1.patch and add The following patch compiled through!

--- a/clmapmgr/nss_clmapmgr.c
+++ b/clmapmgr/nss_clmapmgr.c
@@ -103,7 +103,7 @@ static struct rtnl_link_stats64 *nss_clm
     * Netdev seems to be incrementing rx_dropped because we don't give IP header.
     * So reset it as it's of no use for us.
     */
-   atomic_long_set(&dev->rx_dropped, 0);
+   atomic_long_set(&(dev)->stats.__rx_dropped, 0);
    priv = netdev_priv(dev);
    memset(stats, 0, sizeof(struct rtnl_link_stats64));
    memcpy(stats, &priv->stats, sizeof(struct rtnl_link_stats64));
qosmio commented 8 months ago

Fixed in commit: 5463bc9633e32d403ed3ebcfe47bbbbe70f369fb