We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afcab23 commit 75ca4dcCopy full SHA for 75ca4dc
dpdk/kernel/linux/kni/kni_net.c
@@ -832,8 +832,13 @@ static const struct net_device_ops kni_net_netdev_ops = {
832
static void kni_get_drvinfo(struct net_device *dev,
833
struct ethtool_drvinfo *info)
834
{
835
+#if __GNUC__ >= 13
836
strscpy(info->version, KNI_VERSION, sizeof(info->version));
837
strscpy(info->driver, "kni", sizeof(info->driver));
838
+#else
839
+ strlcpy(info->version, KNI_VERSION, sizeof(info->version));
840
+ strlcpy(info->driver, "kni", sizeof(info->driver));
841
+#endif
842
}
843
844
static const struct ethtool_ops kni_net_ethtool_ops = {
0 commit comments