laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/dahdi-linux/+/27911 )
Change subject: wctc4xxp: Use __dev_addr_set() on kernels >= 5.15
......................................................................
wctc4xxp: Use __dev_addr_set() on kernels >= 5.15
The address list has been converted to a tree, so netdev->dev_addr
is now const and must not be written directly. The __dev_addr_set
helper can be used for this.
Change-Id: Id7b71164dfe7772b68e86cb12ac0e0974fec1498
---
M drivers/dahdi/wctc4xxp/base.c
1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/dahdi-linux refs/changes/11/27911/1
diff --git a/drivers/dahdi/wctc4xxp/base.c b/drivers/dahdi/wctc4xxp/base.c
index 7ff3456..223bbbd 100644
--- a/drivers/dahdi/wctc4xxp/base.c
+++ b/drivers/dahdi/wctc4xxp/base.c
@@ -637,7 +637,11 @@
return -ENOMEM;
priv = netdev_priv(netdev);
priv->wc = wc;
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0)
+ __dev_addr_set(netdev, our_mac, sizeof(our_mac));
+#else
memcpy(netdev->dev_addr, our_mac, sizeof(our_mac));
+#endif
# ifdef HAVE_NET_DEVICE_OPS
netdev->netdev_ops = &wctc4xxp_netdev_ops;
--
To view, visit https://gerrit.osmocom.org/c/dahdi-linux/+/27911
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: dahdi-linux
Gerrit-Branch: master
Gerrit-Change-Id: Id7b71164dfe7772b68e86cb12ac0e0974fec1498
Gerrit-Change-Number: 27911
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: newchange
Attention is currently required from: laforge.
Hello Jenkins Builder,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/dahdi-linux/+/27910
to look at the new patch set (#2).
Change subject: Fix -Wimplicit-fallthrough=5 warnings
......................................................................
Fix -Wimplicit-fallthrough=5 warnings
Modern Linux (since 5.4) builds with -Wimplicit-fallthrough=5. On some
environments (notably Debian buster) this is even an error, so building
dahdi-linux will fail.
Let's add the proper 'fallthrough' annotation of
linux/compiler_attributes.h and add a backwards-compatibility definition
for older kernels.
Change-Id: I3507876d90dd882b95c22ece51e8620ad6f0bd08
---
M drivers/dahdi/dahdi-base.c
M drivers/dahdi/wcaxx-base.c
M drivers/dahdi/wctdm24xxp/base.c
M drivers/dahdi/xpp/card_global.c
M include/dahdi/kernel.h
5 files changed, 19 insertions(+), 8 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/dahdi-linux refs/changes/10/27910/2
--
To view, visit https://gerrit.osmocom.org/c/dahdi-linux/+/27910
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: dahdi-linux
Gerrit-Branch: master
Gerrit-Change-Id: I3507876d90dd882b95c22ece51e8620ad6f0bd08
Gerrit-Change-Number: 27910
Gerrit-PatchSet: 2
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: newpatchset