Hey! Thanks for making this. It's very cool. I am running into an issue with compiling the module. Here's the make.log file with the error. Any ideas?
ubuntu@ubuntu-Latitude-E7470:~/supercan$ cat /var/lib/dkms/supercan_usb/0.2.5/build/make.log
DKMS make.log for supercan_usb-0.2.5 for kernel 5.13.0-28-generic (x86_64)
Tue 08 Feb 2022 09:30:24 AM EST
make: Entering directory '/usr/src/linux-headers-5.13.0-28-generic'
CC [M] /var/lib/dkms/supercan_usb/0.2.5/build/supercan_usb.o
/var/lib/dkms/supercan_usb/0.2.5/build/supercan_usb.c: In function ‘sc_usb_netdev_close’:
/var/lib/dkms/supercan_usb/0.2.5/build/supercan_usb.c:403:3: error: too few arguments to function ‘can_free_echo_skb’
403 | can_free_echo_skb(netdev, i);
| ^~~~~~~~~~~~~~~~~
In file included from ./include/linux/can/dev.h:23,
from /var/lib/dkms/supercan_usb/0.2.5/build/supercan_usb.c:11:
./include/linux/can/skb.h:26:6: note: declared here
26 | void can_free_echo_skb(struct net_device *dev, unsigned int idx,
| ^~~~~~~~~~~~~~~~~
/var/lib/dkms/supercan_usb/0.2.5/build/supercan_usb.c: In function ‘sc_usb_process_can_txr’:
/var/lib/dkms/supercan_usb/0.2.5/build/supercan_usb.c:765:3: error: too few arguments to function ‘can_free_echo_skb’
765 | can_free_echo_skb(netdev, echo_skb_index);
| ^~~~~~~~~~~~~~~~~
In file included from ./include/linux/can/dev.h:23,
from /var/lib/dkms/supercan_usb/0.2.5/build/supercan_usb.c:11:
./include/linux/can/skb.h:26:6: note: declared here
26 | void can_free_echo_skb(struct net_device *dev, unsigned int idx,
| ^~~~~~~~~~~~~~~~~
/var/lib/dkms/supercan_usb/0.2.5/build/supercan_usb.c:779:3: error: too few arguments to function ‘can_get_echo_skb’
779 | can_get_echo_skb(netdev, echo_skb_index);
| ^~~~~~~~~~~~~~~~
In file included from ./include/linux/can/dev.h:23,
from /var/lib/dkms/supercan_usb/0.2.5/build/supercan_usb.c:11:
./include/linux/can/skb.h:24:14: note: declared here
24 | unsigned int can_get_echo_skb(struct net_device *dev, unsigned int idx,
| ^~~~~~~~~~~~~~~~
/var/lib/dkms/supercan_usb/0.2.5/build/supercan_usb.c: In function ‘sc_usb_netdev_tx_batch_unsafe’:
/var/lib/dkms/supercan_usb/0.2.5/build/supercan_usb.c:1234:4: error: too few arguments to function ‘can_free_echo_skb’
1234 | can_free_echo_skb(netdev, echo_skb_index);
| ^~~~~~~~~~~~~~~~~
In file included from ./include/linux/can/dev.h:23,
from /var/lib/dkms/supercan_usb/0.2.5/build/supercan_usb.c:11:
./include/linux/can/skb.h:26:6: note: declared here
26 | void can_free_echo_skb(struct net_device *dev, unsigned int idx,
| ^~~~~~~~~~~~~~~~~
/var/lib/dkms/supercan_usb/0.2.5/build/supercan_usb.c: In function ‘sc_usb_netdev_start_xmit’:
/var/lib/dkms/supercan_usb/0.2.5/build/supercan_usb.c:1334:3: error: too few arguments to function ‘can_put_echo_skb’
1334 | can_put_echo_skb(skb, netdev, echo_skb_index);
| ^~~~~~~~~~~~~~~~
In file included from ./include/linux/can/dev.h:23,
from /var/lib/dkms/supercan_usb/0.2.5/build/supercan_usb.c:11:
./include/linux/can/skb.h:20:5: note: declared here
20 | int can_put_echo_skb(struct sk_buff *skb, struct net_device *dev,
| ^~~~~~~~~~~~~~~~
make[1]: *** [scripts/Makefile.build:281: /var/lib/dkms/supercan_usb/0.2.5/build/supercan_usb.o] Error 1
make: *** [Makefile:1879: /var/lib/dkms/supercan_usb/0.2.5/build] Error 2
make: Leaving directory '/usr/src/linux-headers-5.13.0-28-generic'