Issue with Driver compilation

65 views
Skip to first unread message

Xiao Zhu

unread,
Dec 26, 2024, 3:30:46 AM12/26/24
to corundum-nic
I encountered two errors during the "Building the driver" step while performing environment testing on Corundum, specifically when running make in the /path/to/corundum/modules/mqnic directory.
The first error occurred in the file corundum/modules/mqnic/mqnic_dev.c:137:25: error: implicit declaration of function ‘strlcpy’; did you mean ‘strscpy’?. I replaced strlcpy in the code and this error was resolved. However, I don't fully understand the code at this point. Could you clarify whether this change might cause further errors or affect the following issue?
The second error occurred after I replaced strlcpy, and it appeared in the mqnic_ethtool.c file. The error message was:

initialization of ‘int (*)(struct net_device *, struct ethtool_rxfh_param *)’ from incompatible pointer type ‘int (*)(struct net_device *, u32 *, u8 *, u8 *)’ {aka ‘int (*)(struct net_device *, unsigned int *, unsigned char *, unsigned char *)’}
error: initialization of ‘int (*)(struct net_device *, struct ethtool_rxfh_param *, struct netlink_ext_ack *)’ from incompatible pointer type ‘int (*)(struct net_device *, const u32 *, const u8 *, const u8)’ {aka ‘int (*)(struct net_device *, const unsigned int *, const unsigned char *, const unsigned char)’}

This error has not been resolved yet. Could you help me with the necessary changes?



err1.png
err2.png
Dmesg.txt

B Krishnan Iyer

unread,
Dec 26, 2024, 3:44:58 AM12/26/24
to Xiao Zhu, corundum-nic
Hi Xiao,

Seems like you are trying to compile with a newer kernel version. Use Alex's repository[1] which has patched driver. 


Regards,
B Krishnan Iyer


--
You received this message because you are subscribed to the Google Groups "corundum-nic" group.
To unsubscribe from this group and stop receiving emails from it, send an email to corundum-nic...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/corundum-nic/688b42d5-4501-4e5f-80b2-228304dc0b8dn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages