thopiekar / rcraid-dkms

AMD RAIDXpert driver as DKMS package
Other
126 stars 27 forks source link

Fix build issue #9

Closed trojan577 closed 4 years ago

trojan577 commented 4 years ago

Fixes this particular error that stops the build rcraid-dkms/src/rc_init.c:335:29: error: initialization of ‘int (*)(struct scsi_device *, unsigned int, void *)’ from incompatible pointer type ‘int (*)(struct scsi_device *, int, void *)’ [-Werror=incompatible-pointer-types] 335 | .ioctl = rc_ioctl, | ^~~~~~~~ Built on Ubuntu 19.10 kernel 5.3.0-13-generic on x570 board and works perfectly so far.

thopiekar commented 4 years ago

Haha, fixed just the same thing some minutes before, except that I added if-clauses. This way the changes only apply on Linux >= 5.3.x.

thopiekar commented 4 years ago

Anyway, thank you for your time and efforts still! Maybe you will be faster next time. Would be glad to see something from you again :wink:

trojan577 commented 4 years ago

No worries, Keep up the good (and speedy) work!