* [PATCH 2.6] e100, e1000, ixgb: add MODULE_VERSION tags
@ 2004-11-02 19:07 Matt Domsch
2004-11-02 20:06 ` John W. Linville
0 siblings, 1 reply; 2+ messages in thread
From: Matt Domsch @ 2004-11-02 19:07 UTC (permalink / raw)
To: netdev, linux.nics, jgarzik
Patch below adds MODULE_VERSION tags to the e100, e1000, and ixgb
drivers. Tools like DKMS will make use of this information to
determine if a given driver is older or newer than another given
driver based on this version number.
Signed-off-by: Matt Domsch <Matt_Domsch@dell.com>
--
Matt Domsch
Sr. Software Engineer, Lead Engineer
Dell Linux Solutions linux.dell.com & www.dell.com/linux
Linux on Dell mailing lists @ http://lists.us.dell.com
===== drivers/net/e100.c 1.30 vs edited =====
--- 1.30/drivers/net/e100.c 2004-10-25 02:27:41 -05:00
+++ edited/drivers/net/e100.c 2004-11-02 12:49:44 -06:00
@@ -166,6 +166,7 @@
MODULE_DESCRIPTION(DRV_DESCRIPTION);
MODULE_AUTHOR(DRV_COPYRIGHT);
MODULE_LICENSE("GPL");
+MODULE_VERSION(DRV_VERSION);
static int debug = 3;
module_param(debug, int, 0);
===== drivers/net/e1000/e1000_main.c 1.137 vs edited =====
--- 1.137/drivers/net/e1000/e1000_main.c 2004-10-25 22:41:15 -05:00
+++ edited/drivers/net/e1000/e1000_main.c 2004-11-02 12:55:04 -06:00
@@ -48,7 +48,8 @@
#else
#define DRIVERNAPI "-NAPI"
#endif
-char e1000_driver_version[] = "5.5.4-k2"DRIVERNAPI;
+#define DRV_VERSION "5.5.4-k2"DRIVERNAPI
+char e1000_driver_version[] = DRV_VERSION;
char e1000_copyright[] = "Copyright (c) 1999-2004 Intel Corporation.";
/* e1000_pci_tbl - PCI Device ID Table
@@ -196,6 +197,7 @@
MODULE_AUTHOR("Intel Corporation, <linux.nics@intel.com>");
MODULE_DESCRIPTION("Intel(R) PRO/1000 Network Driver");
MODULE_LICENSE("GPL");
+MODULE_VERSION(DRV_VERSION);
static int debug = NETIF_MSG_DRV | NETIF_MSG_PROBE;
module_param(debug, int, 0);
===== drivers/net/ixgb/ixgb_main.c 1.18 vs edited =====
--- 1.18/drivers/net/ixgb/ixgb_main.c 2004-10-25 20:04:30 -05:00
+++ edited/drivers/net/ixgb/ixgb_main.c 2004-11-02 12:56:03 -06:00
@@ -30,7 +30,8 @@
char ixgb_driver_name[] = "ixgb";
char ixgb_driver_string[] = "Intel(R) PRO/10GbE Network Driver";
-char ixgb_driver_version[] = "1.0.66-k2";
+#define DRV_VERSION "1.0.66-k2"
+char ixgb_driver_version[] = DRV_VERSION;
char ixgb_copyright[] = "Copyright (c) 2001-2004 Intel Corporation.";
/* ixgb_pci_tbl - PCI Device ID Table
@@ -138,6 +139,7 @@
MODULE_AUTHOR("Intel Corporation, <linux.nics@intel.com>");
MODULE_DESCRIPTION("Intel(R) PRO/10GbE Network Driver");
MODULE_LICENSE("GPL");
+MODULE_VERSION(DRV_VERSION);
/* some defines for controlling descriptor fetches in h/w */
#define RXDCTL_PTHRESH_DEFAULT 128 /* chip considers prefech below this */
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 2.6] e100, e1000, ixgb: add MODULE_VERSION tags
2004-11-02 19:07 [PATCH 2.6] e100, e1000, ixgb: add MODULE_VERSION tags Matt Domsch
@ 2004-11-02 20:06 ` John W. Linville
0 siblings, 0 replies; 2+ messages in thread
From: John W. Linville @ 2004-11-02 20:06 UTC (permalink / raw)
To: Matt Domsch; +Cc: netdev, linux.nics, jgarzik
On Tue, Nov 02, 2004 at 01:07:24PM -0600, Matt Domsch wrote:
> Patch below adds MODULE_VERSION tags to the e100, e1000, and ixgb
> drivers. Tools like DKMS will make use of this information to
I had recently posted patches to this effect for e100, e1000 (nearly
identical to yours) and several others. I did not, however, include
ixgb, so I'm sure that one will be quite welcome! :-)
John
--
John W. Linville
linville@tuxdriver.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-11-02 20:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-02 19:07 [PATCH 2.6] e100, e1000, ixgb: add MODULE_VERSION tags Matt Domsch
2004-11-02 20:06 ` John W. Linville
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).