Skip to content
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

5.13.0-27-generic Compilation issues #8

Open
samr-eroad opened this issue Jan 31, 2022 · 1 comment
Open

5.13.0-27-generic Compilation issues #8

samr-eroad opened this issue Jan 31, 2022 · 1 comment

Comments

@samr-eroad
Copy link

samr-eroad commented Jan 31, 2022

Issue:

Outright compilation error for 5.13.0.-27 generic

Error 1:

/home/user/socketcan-linux-5.0/usb-to-can_socketcan/ixx_usb_fd.c:36:25: error: expected declaration specifiers or ‘...’ before string constant 36 | MODULE_SUPPORTED_DEVICE("IXXAT Automation GmbH USB-to-CAN FD"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Noted that the modules.h in (uname -r)/include/linux directory does not have the MODULE_SUPPORTED_DEVICE define anymore

Error 2:

/home/user/socketcan-linux-5.0/usb-to-can_socketcan/ixx_usb_core.c:256:9: error: too few arguments to function ‘can_get_echo_skb’ 256 | can_get_echo_skb(netdev, context->echo_index); | ^~~~~~~~~~~~~~~~

CAN Kernel source got updated. The function signature is now in the form of

unsigned int can_get_echo_skb(struct net_device *dev, unsigned int idx, unsigned int *frame_len_ptr)

Potential Fixes:

Removing the MODULE_SUPPORTED_DEVICE and passing a nullptr for the third (additional) parameter.

@mpwalter
Copy link

see pull request #9 for a working solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants