Hi folks!
When I try to compile linux-JH7110_VF2_6.6_v5.12.0 directly on the VF2 with the gentoo system from andrew I get this error and compilation stops.
In file included from ./include/uapi/linux/posix_types.h:5,
from ./include/uapi/linux/types.h:14,
from ./include/linux/types.h:6,
from ./include/linux/kasan-checks.h:5,
from ./include/asm-generic/rwonce.h:26,
from ./arch/riscv/include/generated/asm/rwonce.h:1,
from ./include/linux/compiler.h:246,
from ./include/linux/build_bug.h:5,
from ./include/linux/container_of.h:5,
from ./include/linux/list.h:5,
from ./include/linux/module.h:12:
drivers/net/wireless/eswin/fullmac/ecrnx_main.c: In function ‘ecrnx_cfg80211_change_iface’:
./include/linux/stddef.h:8:14: error: passing argument 3 of ‘ecrnx_cfg80211_stop_ap’ makes integer from pointer without a cast [-Wint-conversion]
8 | #define NULL ((void *)0)
| ^~~~~~~~~~~
| |
| void *
drivers/net/wireless/eswin/fullmac/ecrnx_main.c:1350:48: note: in expansion of macro ‘NULL’
1350 | ecrnx_cfg80211_stop_ap(wiphy, dev, NULL);
| ^~~~
drivers/net/wireless/eswin/fullmac/ecrnx_main.c:1325:93: note: expected ‘unsigned int’ but argument is of type ‘void *’
1325 | static int ecrnx_cfg80211_stop_ap(struct wiphy *wiphy, struct net_device *dev, unsigned int link_id);
| ~~~~~~~~~~~~~^~~~~~~
drivers/net/wireless/eswin/fullmac/ecrnx_main.c: In function ‘ecrnx_cfg80211_connect’:
./include/linux/stddef.h:8:14: error: passing argument 3 of ‘ecrnx_cfg80211_add_key’ makes integer from pointer without a cast [-Wint-conversion]
8 | #define NULL ((void *)0)
| ^~~~~~~~~~~
| |
| void *
The same kernel sources does compile very well on my x86 system. Does this have something todo with the gentoo system on my VF2? Can’t find any topic regarding this error.