diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2008-06-08 16:20:28 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2008-06-08 16:20:28 +0000 |
commit | 4f825f0fc4312f801c6d6503bf0d0e21d5e8c7c1 (patch) | |
tree | e2076ab8acc0ca13f3773b774cfd8c528d48ac05 | |
parent | 0aecf7e113c2ca587507ebb353476bfae4450fb4 (diff) |
don't declare foo_driver_version[] strings and turn them into defines,
nothing uses them and it saves a few bytes in the kernel.
ok claudio@
-rw-r--r-- | sys/dev/pci/if_bnx.c | 5 | ||||
-rw-r--r-- | sys/dev/pci/if_em.c | 4 | ||||
-rw-r--r-- | sys/dev/pci/if_ixgb.c | 4 |
3 files changed, 7 insertions, 6 deletions
diff --git a/sys/dev/pci/if_bnx.c b/sys/dev/pci/if_bnx.c index 7843b0739a4..d73fd9f8cd2 100644 --- a/sys/dev/pci/if_bnx.c +++ b/sys/dev/pci/if_bnx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bnx.c,v 1.60 2008/05/29 05:36:48 brad Exp $ */ +/* $OpenBSD: if_bnx.c,v 1.61 2008/06/08 16:20:27 reyk Exp $ */ /*- * Copyright (c) 2006 Broadcom Corporation @@ -146,7 +146,8 @@ void nswaph(u_int32_t *p, int wcount); /****************************************************************************/ /* BNX Driver Version */ /****************************************************************************/ -char bnx_driver_version[] = "v0.9.6"; + +#define BNX_DRIVER_VERSION "v0.9.6" /****************************************************************************/ /* BNX Debug Options */ diff --git a/sys/dev/pci/if_em.c b/sys/dev/pci/if_em.c index 9b69bbc7171..3a5d117c5b4 100644 --- a/sys/dev/pci/if_em.c +++ b/sys/dev/pci/if_em.c @@ -31,7 +31,7 @@ POSSIBILITY OF SUCH DAMAGE. ***************************************************************************/ -/* $OpenBSD: if_em.c,v 1.183 2008/06/03 12:45:27 brad Exp $ */ +/* $OpenBSD: if_em.c,v 1.184 2008/06/08 16:20:27 reyk Exp $ */ /* $FreeBSD: if_em.c,v 1.46 2004/09/29 18:28:28 mlaier Exp $ */ #include <dev/pci/if_em.h> @@ -47,7 +47,7 @@ int em_display_debug_stats = 0; * Driver version *********************************************************************/ -char em_driver_version[] = "6.2.9"; +#define EM_DRIVER_VERSION "6.2.9" /********************************************************************* * PCI Device ID Table diff --git a/sys/dev/pci/if_ixgb.c b/sys/dev/pci/if_ixgb.c index 9bc53c2b806..d50e4a3a518 100644 --- a/sys/dev/pci/if_ixgb.c +++ b/sys/dev/pci/if_ixgb.c @@ -31,7 +31,7 @@ POSSIBILITY OF SUCH DAMAGE. ***************************************************************************/ -/* $OpenBSD: if_ixgb.c,v 1.41 2008/06/03 12:27:23 reyk Exp $ */ +/* $OpenBSD: if_ixgb.c,v 1.42 2008/06/08 16:20:27 reyk Exp $ */ #include <dev/pci/if_ixgb.h> @@ -46,7 +46,7 @@ int ixgb_display_debug_stats = 0; * Driver version *********************************************************************/ -char ixgb_driver_version[] = "6.1.0"; +#define IXGB_DRIVER_VERSION "6.1.0" /********************************************************************* * PCI Device ID Table |