jimmyH / qla2xxx-ipofc

IP over Fibre Channel support for Qlogic HBAs
Other
17 stars 5 forks source link

Compiling error on Ubuntu 21.04 & Kernel 5.13 #4

Open ASTuser1 opened 3 years ago

ASTuser1 commented 3 years ago

Hi,

i know that this project seems to be more or less inactive for a certain time, but since i am not happy at all with my QLA2464s and a dedicated Host mimic a SCSI Storage device -due the fact that i cannot (or better should not) access the dedicated storage- i wanted to give FCOE a try.

Well, compiling qla2xxx-ipofc gives on my system into a long list of errors, for example:

/home/bla/qla2xxx-ipofc/qla_inline.h: In function ‘qla2x00_init_timer’: /home/bla/qla2xxx-ipofc/qla_inline.h:241:2: error: implicit declaration of function ‘init_timer’; did you mean ‘init_timers’? [-Werror=implicit-function-declaration] 241 | init_timer(&sp->u.iocb_cmd.timer); | ^~~~~~ | init_timers /home/bla/qla2xxx-ipofc/qla_inline.h:243:22: error: ‘struct timer_list’ has no member named ‘data’ 243 | sp->u.iocb_cmd.timer.data = (unsigned long)sp; | ^ /home/bla/qla2xxx-ipofc/qla_inline.h:244:32: error: assignment to ‘void ()(struct timer_list )’ from incompatible pointer type ‘void (*)(long unsigned int)’ [-Werror=incompatible-pointer-types] 244 | sp->u.iocb_cmd.timer.function = qla2x00_sp_timeout; | ^


etcetc. Lots of errors about implicit declarations , various fields have incomplete types and so on.

Is there anything i can do about it?

Many thanks !