exanic-software icon indicating copy to clipboard operation
exanic-software copied to clipboard

Fix compile error on linux 6.6

Open comphilip opened this issue 1 year ago • 6 comments

Linux 6.6 has several minor changes which result in compile errors and compile warnings.

comphilip avatar Feb 02 '24 03:02 comphilip

Please merge this. I can't build exanic on ubuntu 22.04 without it.

pdavydov108 avatar Mar 28 '24 12:03 pdavydov108

By the way, I have kernel 6.5.0-26-generic #26~22.04.1-Ubuntu and I still face the same compilation errors, so probably the version checks in this patch should be downgraded to kernel 6.5 (or earlier).

pdavydov108 avatar Mar 28 '24 12:03 pdavydov108

oh, I'm afraid it's not enough. It doesn't compile if I don't change all the checks to kernel 6.5 or earlier.

pdavydov108 avatar Mar 29 '24 09:03 pdavydov108

@pdavydov108 I only tested LTS stable kernel version only (6.1 switch to 6.6), for stable and mainline kernel version, I have little of time to test. I am not familiar change logs of kernel. I just search kernel commits in https://github.com/torvalds/linux to found and lucky got the answer.

It is welcome for you to modify the version condition and test it on kernel 6.5.

comphilip avatar Apr 01 '24 03:04 comphilip

I can fix and test across the different versions and get all the various bits sorted out. It’ll just take me a bit since I’m traveling at the moment.

ppwaskie avatar Apr 01 '24 22:04 ppwaskie

The version check should be for 6.4.0 not 6.6.0 in some places.

If you want to see when the interface changed, it's useful to use a website like below

https://elixir.bootlin.com/linux/v6.4/source/include/linux/device/class.h

HFTrader avatar Apr 19 '24 18:04 HFTrader