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.10.52-rt47-v7l compilation error #2

Open
Dual01 opened this issue Jan 3, 2022 · 1 comment
Open

5.10.52-rt47-v7l compilation error #2

Dual01 opened this issue Jan 3, 2022 · 1 comment

Comments

@Dual01
Copy link

Dual01 commented Jan 3, 2022

By compiling the driver on an RPI, I get the following errors:

CC [M] drivers/net/usb/ax88179_178a.o
drivers/net/usb/ax88179_178a.c:1948:3: error: ‘const struct ethtool_ops’ has no member named ‘get_settings’; did you mean ‘get_strings’?
.get_settings = ax88179_get_settings,
^~~~~~~~~~~~
get_strings
drivers/net/usb/ax88179_178a.c:1948:18: error: initialization of ‘int (*)(struct net_device )’ from incompatible pointer type ‘int ()(struct net_device *, struct ethtool_cmd )’ [-Werror=incompatible-pointer-types]
.get_settings = ax88179_get_settings,
^~~~~~~~~~~~~~~~~~~~
drivers/net/usb/ax88179_178a.c:1948:18: note: (near initialization for ‘ops.get_regs_len’)
drivers/net/usb/ax88179_178a.c:1949:3: error: ‘const struct ethtool_ops’ has no member named ‘set_settings’; did you mean ‘get_strings’?
.set_settings = ax88179_set_settings,
^~~~~~~~~~~~
get_strings
drivers/net/usb/ax88179_178a.c:1949:18: error: initialization of ‘void (
)(struct net_device *, struct ethtool_regs *, void )’ from incompatible pointer type ‘int ()(struct net_device *, struct ethtool_cmd )’ [-Werror=incompatible-pointer-types]
.set_settings = ax88179_set_settings,
^~~~~~~~~~~~~~~~~~~~
drivers/net/usb/ax88179_178a.c:1949:18: note: (near initialization for ‘ops.get_regs’)
drivers/net/usb/ax88179_178a.c:2061:21: error: initialization of ‘void (
)(struct net_device , unsigned int)’ from incompatible pointer type ‘void ()(struct net_device *)’ [-Werror=incompatible-pointer-types]
.ndo_tx_timeout = ax88179_tx_timeout,
^~~~~~~~~~~~~~~~~~
drivers/net/usb/ax88179_178a.c:2061:21: note: (near initialization for ‘ax88179_netdev_ops.ndo_tx_timeout’)
drivers/net/usb/ax88179_178a.c: In function ‘intr_callback’:
drivers/net/usb/ax88179_178a.c:578:3: warning: this statement may fall through [-Wimplicit-fallthrough=]
netif_device_detach(dev->netdev);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/usb/ax88179_178a.c:579:2: note: here
case -ENOENT:
^~~~
It would be great to get a tip what could be the reason for the failure.
Thanks
Dieter

@Dual01
Copy link
Author

Dual01 commented Jan 3, 2022

I tried now with driver version 2.0.0
seems to work, but I still get a warning:
drivers/net/usb/ax88179_178a.c: In function ‘ax_intr_callback’:
drivers/net/usb/ax88179_178a.c:529:3: warning: this statement may fall through [-Wimplicit-fallthrough=]
netif_device_detach(axdev->netdev);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/usb/ax88179_178a.c:530:2: note: here
case -ENOENT:
^~~~

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

1 participant