-
Notifications
You must be signed in to change notification settings - Fork 49
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
main.c: fix building with Linux version >= 5.13 #15
Conversation
I’ve realized only now that there is a similar patch already pending #14. Sorry I didn’t check before. |
of_get_mac_address() on Linux version >= 5.13 requires mac pointer as second argument and return an int. So let's deal with it by checking linux version to make it compatible with both Linux version >= 5.13 and not. Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
I've just updated checking for Linux >= 5.13.0, otherwise any version >= 5.12.1 fails. |
I tested the patch, it works. Thank you, Giulio.
|
Hi, sorry for the delay. For some reason I don't always get notifications for this repo and I rarely check it. Anyhow. The change looks good to me. I don't have hardware to test so I merged it as-is. Thanks! |
…lding Pending PR is now merged[1] and it fixes Linux >= 5.13 building. So let's bump xr819-xradio version. [1]: fifteenhex/xradio#15 Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
…lding Pending PR is now merged[1] and it fixes Linux >= 5.13 building. So let's bump xr819-xradio version. [1]: fifteenhex/xradio#15 Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com> Tested-by: Sergey Kuzminov <kuzminov.sergey81@gmail.com> Tested-by: Sergey Kuzminov <kuzminov.sergey81@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
of_get_mac_address() on Linux version > 5.12 requires mac pointer as second
argument and return an int. So let's deal with it by checking linux version
to make it compatible with both Linux version > 5.12 and not.
Signed-off-by: Giulio Benetti giulio.benetti@benettiengineering.com