Commit 92b890d8 authored by John W. Linville's avatar John W. Linville Committed by David S. Miller

[VLAN]: Add MODULE_VERSION

Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8d5f4022
...@@ -35,6 +35,8 @@ ...@@ -35,6 +35,8 @@
#include "vlan.h" #include "vlan.h"
#include "vlanproc.h" #include "vlanproc.h"
#define DRV_VERSION "1.8"
/* Global VLAN variables */ /* Global VLAN variables */
/* Our listing of VLAN group(s) */ /* Our listing of VLAN group(s) */
...@@ -42,8 +44,7 @@ struct hlist_head vlan_group_hash[VLAN_GRP_HASH_SIZE]; ...@@ -42,8 +44,7 @@ struct hlist_head vlan_group_hash[VLAN_GRP_HASH_SIZE];
#define vlan_grp_hashfn(IDX) ((((IDX) >> VLAN_GRP_HASH_SHIFT) ^ (IDX)) & VLAN_GRP_HASH_MASK) #define vlan_grp_hashfn(IDX) ((((IDX) >> VLAN_GRP_HASH_SHIFT) ^ (IDX)) & VLAN_GRP_HASH_MASK)
static char vlan_fullname[] = "802.1Q VLAN Support"; static char vlan_fullname[] = "802.1Q VLAN Support";
static unsigned int vlan_version = 1; static char vlan_version[] = DRV_VERSION;
static unsigned int vlan_release = 8;
static char vlan_copyright[] = "Ben Greear <greearb@candelatech.com>"; static char vlan_copyright[] = "Ben Greear <greearb@candelatech.com>";
static char vlan_buggyright[] = "David S. Miller <davem@redhat.com>"; static char vlan_buggyright[] = "David S. Miller <davem@redhat.com>";
...@@ -84,8 +85,8 @@ static int __init vlan_proto_init(void) ...@@ -84,8 +85,8 @@ static int __init vlan_proto_init(void)
{ {
int err; int err;
printk(VLAN_INF "%s v%u.%u %s\n", printk(VLAN_INF "%s v%s %s\n",
vlan_fullname, vlan_version, vlan_release, vlan_copyright); vlan_fullname, vlan_version, vlan_copyright);
printk(VLAN_INF "All bugs added by %s\n", printk(VLAN_INF "All bugs added by %s\n",
vlan_buggyright); vlan_buggyright);
...@@ -735,3 +736,4 @@ static int vlan_ioctl_handler(void __user *arg) ...@@ -735,3 +736,4 @@ static int vlan_ioctl_handler(void __user *arg)
} }
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_VERSION(DRV_VERSION);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment