]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
net/dummy: Ditch driver and module versions
authorLeon Romanovsky <leonro@mellanox.com>
Mon, 24 Feb 2020 08:52:55 +0000 (10:52 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Feb 2020 19:23:36 +0000 (11:23 -0800)
Delete constant driver and module versions in favor of
standard global version which is unique to whole kernel.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dummy.c

index 3031a5fc54276009269992061f3bd11e02711927..bab3a9bb5e6f0c7d0f83fd19de68f7b56166fd95 100644 (file)
@@ -42,7 +42,6 @@
 #include <linux/u64_stats_sync.h>
 
 #define DRV_NAME       "dummy"
-#define DRV_VERSION    "1.0"
 
 static int numdummies = 1;
 
@@ -104,7 +103,6 @@ static void dummy_get_drvinfo(struct net_device *dev,
                              struct ethtool_drvinfo *info)
 {
        strlcpy(info->driver, DRV_NAME, sizeof(info->driver));
-       strlcpy(info->version, DRV_VERSION, sizeof(info->version));
 }
 
 static const struct ethtool_ops dummy_ethtool_ops = {
@@ -212,4 +210,3 @@ module_init(dummy_init_module);
 module_exit(dummy_cleanup_module);
 MODULE_LICENSE("GPL");
 MODULE_ALIAS_RTNL_LINK(DRV_NAME);
-MODULE_VERSION(DRV_VERSION);