Summary: | DAHLIN-00402: dahdi-linux fails to build with kernel 6.1 | ||
Reporter: | Tzafrir Cohen (tzafrir) | Labels: | |
Date Opened: | 2023-01-10 01:56:51.000-0600 | Date Closed: | |
Priority: | Major | Regression? | No |
Status: | Triage/New | Components: | wctc4xxp |
Versions: | 3.1.0 | Frequency of Occurrence | |
Related Issues: | |||
Environment: | Debian 12 | Attachments: | |
Description: | See log in
https://bugs.debian.org/1028368 from pointer target type [-Wdiscarded-qualifiers] 678 | memcpy(netdev->dev_addr, our_mac, sizeof(our_mac)); | ~~~~~~^~~~~~~~~~ /usr/src/linux-headers-6.1.0-1-common/include/linux/fortify-string.h:469:27: note: in definition of macro ‘__fortify_memcpy_chk’ 469 | __underlying_##op(p, q, __fortify_size); \ | ^ /var/lib/dkms/dahdi/2.11.1.0.20170917~dfsg-8/build/drivers/dahdi/wctc4xxp/base.c:678:9: note: in expansion of macro ‘memcpy’ 678 | memcpy(netdev->dev_addr, our_mac, sizeof(our_mac)); | ^~~~~~ /var/lib/dkms/dahdi/2.11.1.0.20170917~dfsg-8/build/drivers/dahdi/wctc4xxp/base.c:678:22: note: expected ‘void *’ but argument is of type ‘const unsigned char *’ 678 | memcpy(netdev->dev_addr, our_mac, sizeof(our_mac)); | ~~~~~~^~~~~~~~~~ /usr/src/linux-headers-6.1.0-1-common/include/linux/fortify-string.h:469:27: note: in definition of macro ‘__fortify_memcpy_chk’ 469 | __underlying_##op(p, q, __fortify_size); \ | ^ /var/lib/dkms/dahdi/2.11.1.0.20170917~dfsg-8/build/drivers/dahdi/wctc4xxp/base.c:678:9: note: in expansion of macro ‘memcpy’ 678 | memcpy(netdev->dev_addr, our_mac, sizeof(our_mac)); | ^~~~~~ /var/lib/dkms/dahdi/2.11.1.0.20170917~dfsg-8/build/drivers/dahdi/wctc4xxp/base.c:697:9: error: too many arguments to function ‘netif_napi_add’ 697 | netif_napi_add(netdev, &wc->napi, &wctc4xxp_poll, 64); | ^~~~~~~~~~~~~~ In file included from /usr/src/linux- headers-6.1.0-1-common/include/net/inet_sock.h:19, from /usr/src/linux- headers-6.1.0-1-common/include/linux/udp.h:16, from /var/lib/dkms/dahdi/2.11.1.0.20170917~dfsg-8/build/drivers/dahdi/wctc4xxp/base.c:38: /usr/src/linux-headers-6.1.0-1-common/include/linux/netdevice.h:2569:1: note: declared here 2569 | netif_napi_add(struct net_device *dev, struct napi_struct *napi, | ^~~~~~~~~~~~~~ make[3]: *** [/usr/src/linux-headers-6.1.0-1-common/scripts/Makefile.build:255: /var/lib/dkms/dahdi/2.11.1.0.20170917~dfsg-8/build/drivers/dahdi/wctc4xxp/base.o] Error 1 make[2]: *** [/usr/src/linux-headers-6.1.0-1-common/scripts/Makefile.build:505: /var/lib/dkms/dahdi/2.11.1.0.20170917~dfsg-8/build/drivers/dahdi/wctc4xxp] Error 2 make[1]: *** [/usr/src/linux-headers-6.1.0-1-common/Makefile:2017: | ||
Comments: |