-
Notifications
You must be signed in to change notification settings - Fork 1
Fix build failure with Linux 6.15 #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 2021.10-with-community-patches
Are you sure you want to change the base?
Fix build failure with Linux 6.15 #9
Conversation
|
Must be applied after #8 NOTE: I keep opening PR if you don't mind to keep track for Buildroot. |
|
Hi Guilio, Sorry I was a bit slow on these PRs, but catching back up. We had planned on supporting this ourselves as an external module as it seemed Microchip had abandoned the driver, but thanks to Bootlin the wilc3000 is now supported upstream. This just barely missed the cutoff for v6.12, but v6.13 and after this should use the upstream driver instead of this external module. |
Oh, I see, thanks for pointing. At this point I've asked in Buildroot ML how to exclude wilc-driver package from autobuillder to avoid build testing it against Linux version >= 6.13. I think you can close this PR then. Kind regards |
During commit: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=bb55441c57ccc5cc2eab44e1a97698b9d708871d struct cfg80211_ap_settings has been split into multiple structs including beacon. So is Linux version is 6.7+ let's use &info->beacon in place of beacon. Upstream: embeddedTS#8 Signed-off-by: Giulio Benetti <[email protected]>
With commit: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d26270061ae66b915138af7cd73ca6f8b85e6b44 strlcpy() has been superseded in favor of strscpy() so let's #define strlcpy as strscpy if Linux version 6.8+ Upstream: embeddedTS#8 Signed-off-by: Giulio Benetti <[email protected]>
During commit: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9b163e0d330debbf7dcc14b2c3e2dc19a3b50a1d is_dma_mapped member has been dropped since it was not used anymore. The DMA mapping is done directly in single spi drivers in case it's supported so having is_dma_mapped set to 1 lead to code breakage. So we can consider it always as 0 and basically guard it if Linux version is 6.10+ Upstream: embeddedTS#8 Signed-off-by: Giulio Benetti <[email protected]>
Upstream: embeddedTS#8 Signed-off-by: Giulio Benetti <[email protected]>
Commit: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7a53af85d3bbdbe06cd47b81a6d99a04dc0a3963 adds argument "unsigned int link_id" to get_tx_power(), so let's add it to cfg80211_rtw_get_txpower() according to Linux version. Signed-off-by: Giulio Benetti <[email protected]>
Commit: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8fa7292fee5c5240402371ea89ab285ec856c916 drops del_timer_sync() in favor of timer_delete{_sync}() so let's backport locally functions del_timer{_sync}() when Linux version is 6.15.0 or later. Let's also backport crc7_be() and crc_itu_t() sinsce are not selectable anymore in kernel since commit: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f5a40fcf82c1d3f26910ebe1c62fec8ae3b85f02 Signed-off-by: Giulio Benetti <[email protected]>
With commit: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=41cb08555c4164996d67c78b3bf1c658075b75f1 from_timer() has been renamed to timer_container_of() so let's rename according to linux version >= 6.16. Signed-off-by: Giulio Benetti <[email protected]>
* With commit: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b74947b4f6ff7c122a1bb6eb38bb7ecfbb1d3820 set_wiphy_params(), set/get_tx_power() and set_antenna() gain argument radio_idx to get radio index. So let's add that argument according to linux version >= 6.17. * With commit: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a5589313383074c48a1b3751d592a6e084ae0573 devm_gpio_request() is dropped in favor of devm_gpio_request_one(). devm_gpio_request_one() requires flags to setup gpio status, but it's not specified in wilc_of_parse_power_pins() so keep them as GPIOF_IN since they get defined in wilc_wlan_power() called very soon after wilc_of_parse_power_pins(). Signed-off-by: Giulio Benetti <[email protected]>
8ea401b to
2fe5db9
Compare
No description provided.