openwrt/package/kernel/mac80211/patches/build
Shiji Yang f03163adc5 mac80211: fix build error on kernel 6.6
The virtio_find_vqs() ABI has been changed since the 6.11 kernel.
Switch back to using the old ABI to fix the build error:

../mac80211-regular/backports-6.11/drivers/net/wireless/virtual/mac80211_hwsim.c: In function 'init_vqs':
../mac80211-regular/backports-6.11/drivers/net/wireless/virtual/mac80211_hwsim.c:6632:31: error: array type has incomplete element type 'struct virtqueue_info'
 6632 |         struct virtqueue_info vqs_info[HWSIM_NUM_VQS] = {
      |                               ^~~~~~~~
../mac80211-regular/backports-6.11/drivers/net/wireless/virtual/mac80211_hwsim.c:6637:16: error: too few arguments to function 'virtio_find_vqs'
 6637 |         return virtio_find_vqs(vdev, HWSIM_NUM_VQS,
      |                ^~~~~~~~~~~~~~~
In file included from ../mac80211-regular/backports-6.11/drivers/net/wireless/virtual/mac80211_hwsim.c:38:
./include/linux/virtio_config.h:224:5: note: declared here
  224 | int virtio_find_vqs(struct virtio_device *vdev, unsigned nvqs,
      |     ^~~~~~~~~~~~~~~
../mac80211-regular/backports-6.11/drivers/net/wireless/virtual/mac80211_hwsim.c:6632:31: error: unused variable 'vqs_info' [-Werror=unused-variable]
 6632 |         struct virtqueue_info vqs_info[HWSIM_NUM_VQS] = {
      |                               ^~~~~~~~
../mac80211-regular/backports-6.11/drivers/net/wireless/virtual/mac80211_hwsim.c:6639:1: error: control reaches end of non-void function [-Werror=return-type]
 6639 | }
      | ^

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
2024-09-27 08:19:19 +02:00
..
000-fix_kconfig.patch mac80211: rebase ontop of v4.18.5 2018-09-26 16:35:33 +02:00
001-fix_build.patch mac80211: update to version 6.9.9 2024-07-12 16:38:28 +02:00
002-change_allconfig.patch mac80211: Update to version 5.3-rc4-1 2019-08-17 13:41:16 +02:00
003-remove_bogus_modparams.patch mac80211: Update to version 5.11.22-1 2021-10-23 23:17:23 +02:00
004-fix-kconf-compiling.patch mac80211: compile kconf with host gcc 2023-10-28 21:34:23 +02:00
005-fix-kconf-warnings.patch mac80211: fix kconf build warnings 2024-07-21 14:01:21 +02:00
012-kernel_build_check.patch mac80211: rebase ontop of v4.18.5 2018-09-26 16:35:33 +02:00
070-remove-broken-wext-select.patch mac80211: update to linux 6.1-rc8 2022-12-10 15:15:19 +01:00
100-backports-drop-QRTR-and-MHI.patch mac80211: update to version 6.11 2024-09-26 10:55:11 +02:00
110-backport_namepace_const.patch mac80211: update to version 6.5 2023-09-11 14:29:36 +02:00
120-headers_version_fix.patch mac80211: update to version 6.9.9 2024-07-12 16:38:28 +02:00
130-iommu_backport.patch mac80211: fix build regressions on linux 6.1 2023-09-11 18:54:13 +02:00
140-trace_backport.patch mac80211: update to version 6.11 2024-09-26 10:55:11 +02:00
150-ath_iommu_paging_domain_revert.patch mac80211: update to version 6.11 2024-09-26 10:55:11 +02:00
200-iwlwifi_thermal_backport.patch mac80211: update to version 6.11 2024-09-26 10:55:11 +02:00
210-backport_genl_split_ops.patch mac80211: update to version 6.11 2024-09-26 10:55:11 +02:00
220-list-don-t-backport-list_count_nodes.patch kernel: backport list_count_nodes() 2023-12-15 11:44:38 +01:00
230-brcmfmac_usb_driver_backport.patch mac80211: update to version 6.11 2024-09-26 10:55:11 +02:00
235-fix-init_vqs-build-error-on-kernel-6.6.patch mac80211: fix build error on kernel 6.6 2024-09-27 08:19:19 +02:00