package/wilc-driver: fix build failure due to wrong pointer casts
PATCH 1/1 package/wilc-driver: fix build failure due to wrong pointer casts
Add local patch pending upstream[0] to fix the bug.
[0]: https://github.com/embeddedTS/wilc3000-external-module/pull/3
Fixes:
http://autobuild.buildroot.net/results/0a0/0a022d5c053bf8f7a53349b8bae4b2168a9cd134/
--- .../wilc-driver/0005-Fix-cast-warnings.patch | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 package/wilc-driver/0005-Fix-cast-warnings.patch
package/wilc-driver/0005-Fix-cast-warnings.patch new file +43 -0
@@ -0,0 +1,43 @@ +From ebd083223883d479b2dd6f8a0da272797f90d236 Mon Sep 17 00:00:00 2001 +From: Giulio Benetti <[email protected]> +Date: Sat, 31 Dec 2022 18:38:33 +0100 +Subject: [PATCH] Fix cast warnings + +Signed-off-by: Giulio Benetti <[email protected]> +--- + cfg80211.c | 2 +- + netdev.c | 4 ++-- + 2 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/cfg80211.c b/cfg80211.c +index 016aa06..2f40c9d 100644 +--- a/cfg80211.c ++++ b/cfg80211.c +@@ -1794,7 +1794,7 @@ static int start_ap(struct wiphy *wiphy, struct net_device *dev, + if (ret != 0) + netdev_err(dev, "Error in setting channel\n"); + +- wilc_wlan_set_bssid(dev, dev->dev_addr, WILC_AP_MODE); ++ wilc_wlan_set_bssid(dev, (u8 *)dev->dev_addr, WILC_AP_MODE); + + return wilc_add_beacon(vif, settings->beacon_interval, + settings->dtim_period, &settings->beacon); +diff --git a/netdev.c b/netdev.c +index 824afea..5a1a51d 100644 +--- a/netdev.c ++++ b/netdev.c +@@ -899,9 +899,9 @@ static int wilc_mac_open(struct net_device *ndev) + vif->idx); + + if (is_valid_ether_addr(ndev->dev_addr)) +- wilc_set_mac_address(vif, ndev->dev_addr); ++ wilc_set_mac_address(vif, (u8 *)ndev->dev_addr); + else +- wilc_get_mac_address(vif, ndev->dev_addr); ++ wilc_get_mac_address(vif, (u8 *)ndev->dev_addr); + netdev_dbg(ndev, "Mac address: %pM\n", ndev->dev_addr); + + if (!is_valid_ether_addr(ndev->dev_addr)) { +-- +2.34.1 +
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Petazzoni via buildroot
AppliedQuoted 4 lines · On Sat, 31 Dec 2022 18:42:08 +0100 Giulio Benetti…
Add local patch pending upstream[0] to fix the bug.
[0]: https://github.com/embeddedTS/wilc3000-external-module/pull/3
Quoted 8 lines
Fixes:
http://autobuild.buildroot.net/results/0a0/0a022d5c053bf8f7a53349b8bae4b2168a9cd134/Signed-off-by Giulio Benetti <[email protected]>--- .../wilc-driver/0005-Fix-cast-warnings.patch | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 package/wilc-driver/0005-Fix-cast-warnings.patch
Applied to master, thanks.
Thomas
Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 12 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni via buildroot <[email protected]> writes:
Quoted 7 lines · On Sat, 31 Dec 2022 18:42:08 +0100 Giulio Benetti…
Add local patch pending upstream[0] to fix the bug.
[0]: https://github.com/embeddedTS/wilc3000-external-module/pull/3
Fixes:
http://autobuild.buildroot.net/results/0a0/0a022d5c053bf8f7a53349b8bae4b2168a9cd134/
Quoted 7 lines
Quoted 5 lines
Signed-off-by Giulio Benetti <[email protected]>---
.../wilc-driver/0005-Fix-cast-warnings.patch| 43 +++++++++++++++++++1 file changed, 43 insertions(+)create mode 100644
package/wilc-driver/0005-Fix-cast-warnings.patchApplied to master, thanks.
Committed to 2022.11.x, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot