Guest User

Untitled

a guest
Aug 9th, 2025
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.82 KB | None | 0 0
  1. make -C /lib/modules/6.14.8-2-pve/build M=/root/aic8800_linux_drvier/drivers/aic8800 ARCH=x86_64 CROSS_COMPILE= modules
  2. make[1]: Entering directory '/usr/src/linux-headers-6.14.8-2-pve'
  3. make[2]: Entering directory '/root/aic8800_linux_drvier/drivers/aic8800'
  4. CC [M] aic8800_fdrv/rwnx_main.o
  5. aic8800_fdrv/rwnx_main.c:530:6: warning: no previous prototype for ‘rwnx_skb_align_8bytes’ [-Wmissing-prototypes]
  6. 530 | void rwnx_skb_align_8bytes(struct sk_buff *skb){
  7. | ^~~~~~~~~~~~~~~~~~~~~
  8. aic8800_fdrv/rwnx_main.c:597:6: warning: no previous prototype for ‘rwnx_frame_parser’ [-Wmissing-prototypes]
  9. 597 | void rwnx_frame_parser(char* tag, char* data, unsigned long len){
  10. | ^~~~~~~~~~~~~~~~~
  11. aic8800_fdrv/rwnx_main.c: In function ‘rwnx_csa_finish’:
  12. aic8800_fdrv/rwnx_main.c:1057:30: error: ‘struct wireless_dev’ has no member named ‘mtx’
  13. 1057 | mutex_lock(&vif->wdev.mtx);
  14. | ^
  15. aic8800_fdrv/rwnx_main.c:1069:17: error: too many arguments to function ‘cfg80211_ch_switch_notify’
  16. 1069 | cfg80211_ch_switch_notify(vif->ndev, &csa->chandef, 0, 0);
  17. | ^~~~~~~~~~~~~~~~~~~~~~~~~
  18. In file included from aic8800_fdrv/rwnx_main.c:16:
  19. /usr/src/linux-headers-6.14.8-2-pve/include/net/cfg80211.h:9043:6: note: declared here
  20. 9043 | void cfg80211_ch_switch_notify(struct net_device *dev,
  21. | ^~~~~~~~~~~~~~~~~~~~~~~~~
  22. aic8800_fdrv/rwnx_main.c:1076:32: error: ‘struct wireless_dev’ has no member named ‘mtx’
  23. 1076 | mutex_unlock(&vif->wdev.mtx);
  24. | ^
  25. aic8800_fdrv/rwnx_main.c: At top level:
  26. aic8800_fdrv/rwnx_main.c:1126:6: warning: no previous prototype for ‘rwnx_update_mesh_power_mode’ [-Wmissing-prototypes]
  27. 1126 | void rwnx_update_mesh_power_mode(struct rwnx_vif *vif)
  28. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  29. aic8800_fdrv/rwnx_main.c:1666:14: warning: no previous prototype for ‘command_strtoul’ [-Wmissing-prototypes]
  30. 1666 | unsigned int command_strtoul(const char *cp, char **endp, unsigned int base)
  31. | ^~~~~~~~~~~~~~~
  32. aic8800_fdrv/rwnx_main.c:1700:5: warning: no previous prototype for ‘handle_private_cmd’ [-Wmissing-prototypes]
  33. 1700 | int handle_private_cmd(struct net_device *net, char *command, u32 cmd_len)
  34. | ^~~~~~~~~~~~~~~~~~
  35. aic8800_fdrv/rwnx_main.c:2391:5: warning: no previous prototype for ‘android_priv_cmd’ [-Wmissing-prototypes]
  36. 2391 | int android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd)
  37. | ^~~~~~~~~~~~~~~~
  38. In file included from aic8800_fdrv/rwnx_defs.h:32,
  39. from aic8800_fdrv/rwnx_main.c:25:
  40. aic8800_fdrv/rwnx_compat.h:397:5: warning: no previous prototype for ‘rwnx_select_queue’ [-Wmissing-prototypes]
  41. 397 | rwnx_select_queue(dev, skb, sb_dev)
  42. | ^~~~~~~~~~~~~~~~~
  43. aic8800_fdrv/rwnx_main.c:2616:5: note: in expansion of macro ‘rwnx_select_queue’
  44. 2616 | u16 rwnx_select_queue(struct net_device *dev, struct sk_buff *skb,
  45. | ^~~~~~~~~~~~~~~~~
  46. In file included from /usr/src/linux-headers-6.14.8-2-pve/include/linux/string.h:392,
  47. from /usr/src/linux-headers-6.14.8-2-pve/include/linux/bitmap.h:13,
  48. from /usr/src/linux-headers-6.14.8-2-pve/include/linux/cpumask.h:12,
  49. from /usr/src/linux-headers-6.14.8-2-pve/arch/x86/include/asm/paravirt.h:21,
  50. from /usr/src/linux-headers-6.14.8-2-pve/arch/x86/include/asm/cpuid.h:71,
  51. from /usr/src/linux-headers-6.14.8-2-pve/arch/x86/include/asm/processor.h:19,
  52. from /usr/src/linux-headers-6.14.8-2-pve/arch/x86/include/asm/timex.h:5,
  53. from /usr/src/linux-headers-6.14.8-2-pve/include/linux/timex.h:67,
  54. from /usr/src/linux-headers-6.14.8-2-pve/include/linux/time32.h:13,
  55. from /usr/src/linux-headers-6.14.8-2-pve/include/linux/time.h:60,
  56. from /usr/src/linux-headers-6.14.8-2-pve/include/linux/stat.h:19,
  57. from /usr/src/linux-headers-6.14.8-2-pve/include/linux/module.h:13,
  58. from aic8800_fdrv/rwnx_main.c:13:
  59. aic8800_fdrv/rwnx_main.c: In function ‘rwnx_interface_add’:
  60. aic8800_fdrv/rwnx_main.c:2837:20: warning: passing argument 1 of ‘__builtin_memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  61. 2837 | memcpy(ndev->dev_addr, params->macaddr, ETH_ALEN);
  62. | ~~~~^~~~~~~~~~
  63. /usr/src/linux-headers-6.14.8-2-pve/include/linux/fortify-string.h:645:27: note: in definition of macro ‘__fortify_memcpy_chk’
  64. 645 | __underlying_##op(p, q, __copy_size); \
  65. | ^
  66. aic8800_fdrv/rwnx_main.c:2837:9: note: in expansion of macro ‘memcpy’
  67. 2837 | memcpy(ndev->dev_addr, params->macaddr, ETH_ALEN);
  68. | ^~~~~~
  69. aic8800_fdrv/rwnx_main.c:2837:20: note: expected ‘void *’ but argument is of type ‘const unsigned char *’
  70. 2837 | memcpy(ndev->dev_addr, params->macaddr, ETH_ALEN);
  71. | ~~~~^~~~~~~~~~
  72. /usr/src/linux-headers-6.14.8-2-pve/include/linux/fortify-string.h:645:27: note: in definition of macro ‘__fortify_memcpy_chk’
  73. 645 | __underlying_##op(p, q, __copy_size); \
  74. | ^
  75. aic8800_fdrv/rwnx_main.c:2837:9: note: in expansion of macro ‘memcpy’
  76. 2837 | memcpy(ndev->dev_addr, params->macaddr, ETH_ALEN);
  77. | ^~~~~~
  78. aic8800_fdrv/rwnx_main.c:2846:20: warning: passing argument 1 of ‘__builtin_memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  79. 2846 | memcpy(ndev->dev_addr, mac_addr, ETH_ALEN);
  80. | ~~~~^~~~~~~~~~
  81. /usr/src/linux-headers-6.14.8-2-pve/include/linux/fortify-string.h:645:27: note: in definition of macro ‘__fortify_memcpy_chk’
  82. 645 | __underlying_##op(p, q, __copy_size); \
  83. | ^
  84. aic8800_fdrv/rwnx_main.c:2846:9: note: in expansion of macro ‘memcpy’
  85. 2846 | memcpy(ndev->dev_addr, mac_addr, ETH_ALEN);
  86. | ^~~~~~
  87. aic8800_fdrv/rwnx_main.c:2846:20: note: expected ‘void *’ but argument is of type ‘const unsigned char *’
  88. 2846 | memcpy(ndev->dev_addr, mac_addr, ETH_ALEN);
  89. | ~~~~^~~~~~~~~~
  90. /usr/src/linux-headers-6.14.8-2-pve/include/linux/fortify-string.h:645:27: note: in definition of macro ‘__fortify_memcpy_chk’
  91. 645 | __underlying_##op(p, q, __copy_size); \
  92. | ^
  93. aic8800_fdrv/rwnx_main.c:2846:9: note: in expansion of macro ‘memcpy’
  94. 2846 | memcpy(ndev->dev_addr, mac_addr, ETH_ALEN);
  95. | ^~~~~~
  96. aic8800_fdrv/rwnx_main.c: At top level:
  97. aic8800_fdrv/rwnx_main.c:2888:6: warning: no previous prototype for ‘aicwf_p2p_alive_timeout’ [-Wmissing-prototypes]
  98. 2888 | void aicwf_p2p_alive_timeout(struct timer_list *t)
  99. | ^~~~~~~~~~~~~~~~~~~~~~~
  100. aic8800_fdrv/rwnx_main.c:3399:5: warning: no previous prototype for ‘rwnx_send_check_p2p’ [-Wmissing-prototypes]
  101. 3399 | int rwnx_send_check_p2p(struct cfg80211_scan_request *param){
  102. | ^~~~~~~~~~~~~~~~~~~
  103. aic8800_fdrv/rwnx_main.c:4112:6: warning: no previous prototype for ‘apm_staloss_work_process’ [-Wmissing-prototypes]
  104. 4112 | void apm_staloss_work_process(struct work_struct *work)
  105. | ^~~~~~~~~~~~~~~~~~~~~~~~
  106. aic8800_fdrv/rwnx_main.c:4226:6: warning: no previous prototype for ‘apm_probe_sta_work_process’ [-Wmissing-prototypes]
  107. 4226 | void apm_probe_sta_work_process(struct work_struct *work)
  108. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  109. aic8800_fdrv/rwnx_main.c:4701:5: warning: no previous prototype for ‘rwnx_cfg80211_probe_client’ [-Wmissing-prototypes]
  110. 4701 | int rwnx_cfg80211_probe_client(struct wiphy *wiphy, struct net_device *dev,
  111. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  112. aic8800_fdrv/rwnx_main.c:4738:6: warning: no previous prototype for ‘rwnx_cfg80211_mgmt_frame_register’ [-Wmissing-prototypes]
  113. 4738 | void rwnx_cfg80211_mgmt_frame_register(struct wiphy *wiphy,
  114. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  115. aic8800_fdrv/rwnx_main.c:5369:5: warning: no previous prototype for ‘rwnx_cfg80211_channel_switch’ [-Wmissing-prototypes]
  116. 5369 | int rwnx_cfg80211_channel_switch(struct wiphy *wiphy,
  117. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  118. aic8800_fdrv/rwnx_main.c: In function ‘rwnx_cfg80211_channel_switch’:
  119. aic8800_fdrv/rwnx_main.c:5457:105: error: ‘struct cfg80211_csa_settings’ has no member named ‘punct_bitmap’
  120. 5457 | cfg80211_ch_switch_started_notify(dev, &csa->chandef, 0, params->count, params->block_tx, params->punct_bitmap);
  121. | ^~
  122.  
  123. aic8800_fdrv/rwnx_main.c:5457:9: error: too many arguments to function ‘cfg80211_ch_switch_started_notify’
  124. 5457 | cfg80211_ch_switch_started_notify(dev, &csa->chandef, 0, params->count, params->block_tx, params->punct_bitmap);
  125. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  126. /usr/src/linux-headers-6.14.8-2-pve/include/net/cfg80211.h:9059:6: note: declared here
  127. 9059 | void cfg80211_ch_switch_started_notify(struct net_device *dev,
  128. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  129. aic8800_fdrv/rwnx_main.c: At top level:
  130. aic8800_fdrv/rwnx_main.c:5704:5: warning: no previous prototype for ‘rwnx_cfg80211_change_bss’ [-Wmissing-prototypes]
  131. 5704 | int rwnx_cfg80211_change_bss(struct wiphy *wiphy, struct net_device *dev,
  132. | ^~~~~~~~~~~~~~~~~~~~~~~~
  133. aic8800_fdrv/rwnx_main.c:6436:22: error: initialization of ‘int (*)(struct wiphy *, struct net_device *, struct cfg80211_ap_update *)’ from incompatible pointer type ‘int (*)(struct wiphy *, struct net_device *, struct cfg80211_beacon_data *)’ [-Wincompatible-pointer-types]
  134. 6436 | .change_beacon = rwnx_cfg80211_change_beacon,
  135. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  136. aic8800_fdrv/rwnx_main.c:6436:22: note: (near initialization for ‘rwnx_cfg80211_ops.change_beacon’)
  137. aic8800_fdrv/rwnx_main.c:6438:28: error: initialization of ‘int (*)(struct wiphy *, struct net_device *, struct cfg80211_chan_def *)’ from incompatible pointer type ‘int (*)(struct wiphy *, struct cfg80211_chan_def *)’ [-Wincompatible-pointer-types]
  138. 6438 | .set_monitor_channel = rwnx_cfg80211_set_monitor_channel,
  139. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  140. aic8800_fdrv/rwnx_main.c:6438:28: note: (near initialization for ‘rwnx_cfg80211_ops.set_monitor_channel’)
  141. aic8800_fdrv/rwnx_main.c:6451:30: error: initialization of ‘int (*)(struct wiphy *, struct net_device *, struct cfg80211_chan_def *, u32, int)’ {aka ‘int (*)(struct wiphy *, struct net_device *, struct cfg80211_chan_def *, unsigned int, int)’} from incompatible pointer type ‘int (*)(struct wiphy *, struct net_device *, struct cfg80211_chan_def *, u32)’ {aka ‘int (*)(struct wiphy *, struct net_device *, struct cfg80211_chan_def *, unsigned int)’} [-Wincompatible-pointer-types]
  142. 6451 | .start_radar_detection = rwnx_cfg80211_start_radar_detection,
  143. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  144. aic8800_fdrv/rwnx_main.c:6451:30: note: (near initialization for ‘rwnx_cfg80211_ops.start_radar_detection’)
  145. aic8800_fdrv/rwnx_main.c:8633:5: warning: no previous prototype for ‘rwnx_ic_system_init’ [-Wmissing-prototypes]
  146. 8633 | int rwnx_ic_system_init(struct rwnx_hw *rwnx_hw){
  147. | ^~~~~~~~~~~~~~~~~~~
  148. aic8800_fdrv/rwnx_main.c:8660:5: warning: no previous prototype for ‘rwnx_ic_rf_init’ [-Wmissing-prototypes]
  149. 8660 | int rwnx_ic_rf_init(struct rwnx_hw *rwnx_hw){
  150. | ^~~~~~~~~~~~~~~
  151. aic8800_fdrv/rwnx_main.c: In function ‘rwnx_cfg80211_mgmt_tx’:
  152. aic8800_fdrv/rwnx_main.c:5204:22: warning: this statement may fall through [-Wimplicit-fallthrough=]
  153. 5204 | rwnx_vif = rwnx_vif->ap_vlan.master;
  154. | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
  155. aic8800_fdrv/rwnx_main.c:5205:9: note: here
  156. 5205 | case NL80211_IFTYPE_AP:
  157. | ^~~~
  158. aic8800_fdrv/rwnx_main.c: In function ‘rwnx_fill_station_info’:
  159. aic8800_fdrv/rwnx_main.c:5862:43: warning: this statement may fall through [-Wimplicit-fallthrough=]
  160. 5862 | sinfo->rxrate.he_ru_alloc = rx_vect1->he.ru_size;
  161. | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
  162. aic8800_fdrv/rwnx_main.c:5863:9: note: here
  163. 5863 | case FORMATMOD_HE_SU:
  164. | ^~~~
  165. aic8800_fdrv/rwnx_main.c: In function ‘rwnx_cfg80211_change_iface’:
  166. aic8800_fdrv/rwnx_main.c:3237:28: warning: this statement may fall through [-Wimplicit-fallthrough=]
  167. 3237 | vif->ap.generation = 0;
  168. | ~~~~~~~~~~~~~~~~~~~^~~
  169. aic8800_fdrv/rwnx_main.c:3239:5: note: here
  170. 3239 | case NL80211_IFTYPE_AP:
  171. | ^~~~
  172. aic8800_fdrv/rwnx_main.c: In function ‘rwnx_interface_add’:
  173. aic8800_fdrv/rwnx_main.c:2797:30: warning: this statement may fall through [-Wimplicit-fallthrough=]
  174. 2797 | vif->ap.next_mesh_pm = NL80211_MESH_POWER_ACTIVE;
  175. | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
  176. aic8800_fdrv/rwnx_main.c:2799:5: note: here
  177. 2799 | case NL80211_IFTYPE_AP:
  178. | ^~~~
  179. make[5]: *** [/usr/src/linux-headers-6.14.8-2-pve/scripts/Makefile.build:207: aic8800_fdrv/rwnx_main.o] Error 1
  180. make[4]: *** [/usr/src/linux-headers-6.14.8-2-pve/scripts/Makefile.build:465: aic8800_fdrv] Error 2
  181. make[3]: *** [/usr/src/linux-headers-6.14.8-2-pve/Makefile:2001: .] Error 2
  182. make[2]: *** [/usr/src/linux-headers-6.14.8-2-pve/Makefile:251: __sub-make] Error 2
  183. make[2]: Leaving directory '/root/aic8800_linux_drvier/drivers/aic8800'
  184. make[1]: *** [Makefile:251: __sub-make] Error 2
  185. make[1]: Leaving directory '/usr/src/linux-headers-6.14.8-2-pve'
  186. make: *** [Makefile:56: modules] Error 2
  187. root@pve:~/aic8800_linux_drvier/drivers/aic8800# ^C
  188. root@pve:~/aic8800_linux_drvier/drivers/aic8800# make
  189. make -C /lib/modules/6.14.8-2-pve/build M=/root/aic8800_linux_drvier/drivers/aic8800 ARCH=x86_64 CROSS_COMPILE= modules
  190. make[1]: Entering directory '/usr/src/linux-headers-6.14.8-2-pve'
  191. make[2]: Entering directory '/root/aic8800_linux_drvier/drivers/aic8800'
  192. CC [M] aic8800_fdrv/rwnx_main.o
  193. aic8800_fdrv/rwnx_main.c:530:6: warning: no previous prototype for ‘rwnx_skb_align_8bytes’ [-Wmissing-prototypes]
  194. 530 | void rwnx_skb_align_8bytes(struct sk_buff *skb){
  195. | ^~~~~~~~~~~~~~~~~~~~~
  196. aic8800_fdrv/rwnx_main.c:597:6: warning: no previous prototype for ‘rwnx_frame_parser’ [-Wmissing-prototypes]
  197. 597 | void rwnx_frame_parser(char* tag, char* data, unsigned long len){
  198. | ^~~~~~~~~~~~~~~~~
  199. aic8800_fdrv/rwnx_main.c: In function ‘rwnx_csa_finish’:
  200. aic8800_fdrv/rwnx_main.c:1057:30: error: ‘struct wireless_dev’ has no member named ‘mtx’
  201. 1057 | mutex_lock(&vif->wdev.mtx);
  202. | ^
  203. aic8800_fdrv/rwnx_main.c:1069:17: error: too many arguments to function ‘cfg80211_ch_switch_notify’
  204. 1069 | cfg80211_ch_switch_notify(vif->ndev, &csa->chandef, 0, 0);
  205. | ^~~~~~~~~~~~~~~~~~~~~~~~~
  206. In file included from aic8800_fdrv/rwnx_main.c:16:
  207. /usr/src/linux-headers-6.14.8-2-pve/include/net/cfg80211.h:9043:6: note: declared here
  208. 9043 | void cfg80211_ch_switch_notify(struct net_device *dev,
  209. | ^~~~~~~~~~~~~~~~~~~~~~~~~
  210. aic8800_fdrv/rwnx_main.c:1076:32: error: ‘struct wireless_dev’ has no member named ‘mtx’
  211. 1076 | mutex_unlock(&vif->wdev.mtx);
  212. | ^
  213. aic8800_fdrv/rwnx_main.c: At top level:
  214. aic8800_fdrv/rwnx_main.c:1126:6: warning: no previous prototype for ‘rwnx_update_mesh_power_mode’ [-Wmissing-prototypes]
  215. 1126 | void rwnx_update_mesh_power_mode(struct rwnx_vif *vif)
  216. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  217. aic8800_fdrv/rwnx_main.c:1666:14: warning: no previous prototype for ‘command_strtoul’ [-Wmissing-prototypes]
  218. 1666 | unsigned int command_strtoul(const char *cp, char **endp, unsigned int base)
  219. | ^~~~~~~~~~~~~~~
  220. aic8800_fdrv/rwnx_main.c:1700:5: warning: no previous prototype for ‘handle_private_cmd’ [-Wmissing-prototypes]
  221. 1700 | int handle_private_cmd(struct net_device *net, char *command, u32 cmd_len)
  222. | ^~~~~~~~~~~~~~~~~~
  223. aic8800_fdrv/rwnx_main.c:2391:5: warning: no previous prototype for ‘android_priv_cmd’ [-Wmissing-prototypes]
  224. 2391 | int android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd)
  225. | ^~~~~~~~~~~~~~~~
  226. In file included from aic8800_fdrv/rwnx_defs.h:32,
  227. from aic8800_fdrv/rwnx_main.c:25:
  228. aic8800_fdrv/rwnx_compat.h:397:5: warning: no previous prototype for ‘rwnx_select_queue’ [-Wmissing-prototypes]
  229. 397 | rwnx_select_queue(dev, skb, sb_dev)
  230. | ^~~~~~~~~~~~~~~~~
  231. aic8800_fdrv/rwnx_main.c:2616:5: note: in expansion of macro ‘rwnx_select_queue’
  232. 2616 | u16 rwnx_select_queue(struct net_device *dev, struct sk_buff *skb,
  233. | ^~~~~~~~~~~~~~~~~
  234. In file included from /usr/src/linux-headers-6.14.8-2-pve/include/linux/string.h:392,
  235. from /usr/src/linux-headers-6.14.8-2-pve/include/linux/bitmap.h:13,
  236. from /usr/src/linux-headers-6.14.8-2-pve/include/linux/cpumask.h:12,
  237. from /usr/src/linux-headers-6.14.8-2-pve/arch/x86/include/asm/paravirt.h:21,
  238. from /usr/src/linux-headers-6.14.8-2-pve/arch/x86/include/asm/cpuid.h:71,
  239. from /usr/src/linux-headers-6.14.8-2-pve/arch/x86/include/asm/processor.h:19,
  240. from /usr/src/linux-headers-6.14.8-2-pve/arch/x86/include/asm/timex.h:5,
  241. from /usr/src/linux-headers-6.14.8-2-pve/include/linux/timex.h:67,
  242. from /usr/src/linux-headers-6.14.8-2-pve/include/linux/time32.h:13,
  243. from /usr/src/linux-headers-6.14.8-2-pve/include/linux/time.h:60,
  244. from /usr/src/linux-headers-6.14.8-2-pve/include/linux/stat.h:19,
  245. from /usr/src/linux-headers-6.14.8-2-pve/include/linux/module.h:13,
  246. from aic8800_fdrv/rwnx_main.c:13:
  247. aic8800_fdrv/rwnx_main.c: In function ‘rwnx_interface_add’:
  248. aic8800_fdrv/rwnx_main.c:2837:20: warning: passing argument 1 of ‘__builtin_memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  249. 2837 | memcpy(ndev->dev_addr, params->macaddr, ETH_ALEN);
  250. | ~~~~^~~~~~~~~~
  251. /usr/src/linux-headers-6.14.8-2-pve/include/linux/fortify-string.h:645:27: note: in definition of macro ‘__fortify_memcpy_chk’
  252. 645 | __underlying_##op(p, q, __copy_size); \
  253. | ^
  254. aic8800_fdrv/rwnx_main.c:2837:9: note: in expansion of macro ‘memcpy’
  255. 2837 | memcpy(ndev->dev_addr, params->macaddr, ETH_ALEN);
  256. | ^~~~~~
  257. aic8800_fdrv/rwnx_main.c:2837:20: note: expected ‘void *’ but argument is of type ‘const unsigned char *’
  258. 2837 | memcpy(ndev->dev_addr, params->macaddr, ETH_ALEN);
  259. | ~~~~^~~~~~~~~~
  260. /usr/src/linux-headers-6.14.8-2-pve/include/linux/fortify-string.h:645:27: note: in definition of macro ‘__fortify_memcpy_chk’
  261. 645 | __underlying_##op(p, q, __copy_size); \
  262. | ^
  263. aic8800_fdrv/rwnx_main.c:2837:9: note: in expansion of macro ‘memcpy’
  264. 2837 | memcpy(ndev->dev_addr, params->macaddr, ETH_ALEN);
  265. | ^~~~~~
  266. aic8800_fdrv/rwnx_main.c:2846:20: warning: passing argument 1 of ‘__builtin_memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  267. 2846 | memcpy(ndev->dev_addr, mac_addr, ETH_ALEN);
  268. | ~~~~^~~~~~~~~~
  269. /usr/src/linux-headers-6.14.8-2-pve/include/linux/fortify-string.h:645:27: note: in definition of macro ‘__fortify_memcpy_chk’
  270. 645 | __underlying_##op(p, q, __copy_size); \
  271. | ^
  272. aic8800_fdrv/rwnx_main.c:2846:9: note: in expansion of macro ‘memcpy’
  273. 2846 | memcpy(ndev->dev_addr, mac_addr, ETH_ALEN);
  274. | ^~~~~~
  275. aic8800_fdrv/rwnx_main.c:2846:20: note: expected ‘void *’ but argument is of type ‘const unsigned char *’
  276. 2846 | memcpy(ndev->dev_addr, mac_addr, ETH_ALEN);
  277. | ~~~~^~~~~~~~~~
  278. /usr/src/linux-headers-6.14.8-2-pve/include/linux/fortify-string.h:645:27: note: in definition of macro ‘__fortify_memcpy_chk’
  279. 645 | __underlying_##op(p, q, __copy_size); \
  280. | ^
  281. aic8800_fdrv/rwnx_main.c:2846:9: note: in expansion of macro ‘memcpy’
  282. 2846 | memcpy(ndev->dev_addr, mac_addr, ETH_ALEN);
  283. | ^~~~~~
  284. aic8800_fdrv/rwnx_main.c: At top level:
  285. aic8800_fdrv/rwnx_main.c:2888:6: warning: no previous prototype for ‘aicwf_p2p_alive_timeout’ [-Wmissing-prototypes]
  286. 2888 | void aicwf_p2p_alive_timeout(struct timer_list *t)
  287. | ^~~~~~~~~~~~~~~~~~~~~~~
  288. aic8800_fdrv/rwnx_main.c:3399:5: warning: no previous prototype for ‘rwnx_send_check_p2p’ [-Wmissing-prototypes]
  289. 3399 | int rwnx_send_check_p2p(struct cfg80211_scan_request *param){
  290. | ^~~~~~~~~~~~~~~~~~~
  291. aic8800_fdrv/rwnx_main.c:4112:6: warning: no previous prototype for ‘apm_staloss_work_process’ [-Wmissing-prototypes]
  292. 4112 | void apm_staloss_work_process(struct work_struct *work)
  293. | ^~~~~~~~~~~~~~~~~~~~~~~~
  294. aic8800_fdrv/rwnx_main.c:4226:6: warning: no previous prototype for ‘apm_probe_sta_work_process’ [-Wmissing-prototypes]
  295. 4226 | void apm_probe_sta_work_process(struct work_struct *work)
  296. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  297. aic8800_fdrv/rwnx_main.c:4701:5: warning: no previous prototype for ‘rwnx_cfg80211_probe_client’ [-Wmissing-prototypes]
  298. 4701 | int rwnx_cfg80211_probe_client(struct wiphy *wiphy, struct net_device *dev,
  299. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  300. aic8800_fdrv/rwnx_main.c:4738:6: warning: no previous prototype for ‘rwnx_cfg80211_mgmt_frame_register’ [-Wmissing-prototypes]
  301. 4738 | void rwnx_cfg80211_mgmt_frame_register(struct wiphy *wiphy,
  302. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  303. aic8800_fdrv/rwnx_main.c:5369:5: warning: no previous prototype for ‘rwnx_cfg80211_channel_switch’ [-Wmissing-prototypes]
  304. 5369 | int rwnx_cfg80211_channel_switch(struct wiphy *wiphy,
  305. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  306. aic8800_fdrv/rwnx_main.c: In function ‘rwnx_cfg80211_channel_switch’:
  307. aic8800_fdrv/rwnx_main.c:5457:105: error: ‘struct cfg80211_csa_settings’ has no member named ‘punct_bitmap’
  308. 5457 | cfg80211_ch_switch_started_notify(dev, &csa->chandef, 0, params->count, params->block_tx, params->punct_bitmap);
  309. | ^~
  310.  
  311. aic8800_fdrv/rwnx_main.c:5457:9: error: too many arguments to function ‘cfg80211_ch_switch_started_notify’
  312. 5457 | cfg80211_ch_switch_started_notify(dev, &csa->chandef, 0, params->count, params->block_tx, params->punct_bitmap);
  313. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  314. /usr/src/linux-headers-6.14.8-2-pve/include/net/cfg80211.h:9059:6: note: declared here
  315. 9059 | void cfg80211_ch_switch_started_notify(struct net_device *dev,
  316. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  317. aic8800_fdrv/rwnx_main.c: At top level:
  318. aic8800_fdrv/rwnx_main.c:5704:5: warning: no previous prototype for ‘rwnx_cfg80211_change_bss’ [-Wmissing-prototypes]
  319. 5704 | int rwnx_cfg80211_change_bss(struct wiphy *wiphy, struct net_device *dev,
  320. | ^~~~~~~~~~~~~~~~~~~~~~~~
  321. aic8800_fdrv/rwnx_main.c:6436:22: error: initialization of ‘int (*)(struct wiphy *, struct net_device *, struct cfg80211_ap_update *)’ from incompatible pointer type ‘int (*)(struct wiphy *, struct net_device *, struct cfg80211_beacon_data *)’ [-Wincompatible-pointer-types]
  322. 6436 | .change_beacon = rwnx_cfg80211_change_beacon,
  323. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  324. aic8800_fdrv/rwnx_main.c:6436:22: note: (near initialization for ‘rwnx_cfg80211_ops.change_beacon’)
  325. aic8800_fdrv/rwnx_main.c:6438:28: error: initialization of ‘int (*)(struct wiphy *, struct net_device *, struct cfg80211_chan_def *)’ from incompatible pointer type ‘int (*)(struct wiphy *, struct cfg80211_chan_def *)’ [-Wincompatible-pointer-types]
  326. 6438 | .set_monitor_channel = rwnx_cfg80211_set_monitor_channel,
  327. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  328. aic8800_fdrv/rwnx_main.c:6438:28: note: (near initialization for ‘rwnx_cfg80211_ops.set_monitor_channel’)
  329. aic8800_fdrv/rwnx_main.c:6451:30: error: initialization of ‘int (*)(struct wiphy *, struct net_device *, struct cfg80211_chan_def *, u32, int)’ {aka ‘int (*)(struct wiphy *, struct net_device *, struct cfg80211_chan_def *, unsigned int, int)’} from incompatible pointer type ‘int (*)(struct wiphy *, struct net_device *, struct cfg80211_chan_def *, u32)’ {aka ‘int (*)(struct wiphy *, struct net_device *, struct cfg80211_chan_def *, unsigned int)’} [-Wincompatible-pointer-types]
  330. 6451 | .start_radar_detection = rwnx_cfg80211_start_radar_detection,
  331. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  332. aic8800_fdrv/rwnx_main.c:6451:30: note: (near initialization for ‘rwnx_cfg80211_ops.start_radar_detection’)
  333. aic8800_fdrv/rwnx_main.c:8633:5: warning: no previous prototype for ‘rwnx_ic_system_init’ [-Wmissing-prototypes]
  334. 8633 | int rwnx_ic_system_init(struct rwnx_hw *rwnx_hw){
  335. | ^~~~~~~~~~~~~~~~~~~
  336. aic8800_fdrv/rwnx_main.c:8660:5: warning: no previous prototype for ‘rwnx_ic_rf_init’ [-Wmissing-prototypes]
  337. 8660 | int rwnx_ic_rf_init(struct rwnx_hw *rwnx_hw){
  338. | ^~~~~~~~~~~~~~~
  339. aic8800_fdrv/rwnx_main.c: In function ‘rwnx_cfg80211_mgmt_tx’:
  340. aic8800_fdrv/rwnx_main.c:5204:22: warning: this statement may fall through [-Wimplicit-fallthrough=]
  341. 5204 | rwnx_vif = rwnx_vif->ap_vlan.master;
  342. | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
  343. aic8800_fdrv/rwnx_main.c:5205:9: note: here
  344. 5205 | case NL80211_IFTYPE_AP:
  345. | ^~~~
  346. aic8800_fdrv/rwnx_main.c: In function ‘rwnx_fill_station_info’:
  347. aic8800_fdrv/rwnx_main.c:5862:43: warning: this statement may fall through [-Wimplicit-fallthrough=]
  348. 5862 | sinfo->rxrate.he_ru_alloc = rx_vect1->he.ru_size;
  349. | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
  350. aic8800_fdrv/rwnx_main.c:5863:9: note: here
  351. 5863 | case FORMATMOD_HE_SU:
  352. | ^~~~
  353. aic8800_fdrv/rwnx_main.c: In function ‘rwnx_cfg80211_change_iface’:
  354. aic8800_fdrv/rwnx_main.c:3237:28: warning: this statement may fall through [-Wimplicit-fallthrough=]
  355. 3237 | vif->ap.generation = 0;
  356. | ~~~~~~~~~~~~~~~~~~~^~~
  357. aic8800_fdrv/rwnx_main.c:3239:5: note: here
  358. 3239 | case NL80211_IFTYPE_AP:
  359. | ^~~~
  360. aic8800_fdrv/rwnx_main.c: In function ‘rwnx_interface_add’:
  361. aic8800_fdrv/rwnx_main.c:2797:30: warning: this statement may fall through [-Wimplicit-fallthrough=]
  362. 2797 | vif->ap.next_mesh_pm = NL80211_MESH_POWER_ACTIVE;
  363. | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
  364. aic8800_fdrv/rwnx_main.c:2799:5: note: here
  365. 2799 | case NL80211_IFTYPE_AP:
  366. | ^~~~
  367. make[5]: *** [/usr/src/linux-headers-6.14.8-2-pve/scripts/Makefile.build:207: aic8800_fdrv/rwnx_main.o] Error 1
  368. make[4]: *** [/usr/src/linux-headers-6.14.8-2-pve/scripts/Makefile.build:465: aic8800_fdrv] Error 2
  369. make[3]: *** [/usr/src/linux-headers-6.14.8-2-pve/Makefile:2001: .] Error 2
  370. make[2]: *** [/usr/src/linux-headers-6.14.8-2-pve/Makefile:251: __sub-make] Error 2
  371. make[2]: Leaving directory '/root/aic8800_linux_drvier/drivers/aic8800'
  372. make[1]: *** [Makefile:251: __sub-make] Error 2
  373. make[1]: Leaving directory '/usr/src/linux-headers-6.14.8-2-pve'
  374. make: *** [Makefile:56: modules] Error 2
Advertisement
Add Comment
Please, Sign In to add comment