D-TACQ / AFHBA404

Linux host device driver for AFHBA404 and MTCA PCIe
GNU General Public License v2.0
2 stars 8 forks source link

Compile: change user defined structs to proc_ops struct #74

Closed joshStillerman closed 2 years ago

joshStillerman commented 2 years ago

Note: field names now have 'proc_' in the front Note Note: there is no owner field (do we need this?)

Peter - When trying to build this for 5.8 under Ubuntu 20 I ran into compiler complaints that the data structures you defined are not the same as the ones in the function prototypes. I think this fixes it.

petermilne commented 2 years ago

Nice contribution, thanks Josh. The driver now compiles on by FC34 desktop, which is great, but it fails on our standard Ubuntu 18, so if you don't mind I won't merge it now. What I have done is stash it here in branch v5.8_ubuntu20; Next, step, make a merge with master with #if LINUX_VERSION_CODE >= KERNEL_VERSION(x,y,z) ugliness so that the main code compiles both ways.

petermilne commented 2 years ago

OK, there's quite a nice cross-version way to do this .. new update in 5 mins, should compile both ways.