i40evf: change version string generation
Subsystems (2)
PATCH 13/14 i40evf: change version string generation
From: Mitch Williams <[email protected]>
Generate version strings like the PF driver does. This gives us more flexibility to add suffixes to the version string at build time.
Signed-off-by Mitch Williams <[email protected]>
Change-ID I0a5ca0783dd8fb849516bfc1e37ea070127847bd
---
V2: Only description change in the above section. No code change.
drivers/net/ethernet/intel/i40evf/i40evf_main.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
drivers/net/ethernet/intel/i40evf/i40evf_main.c +9 -1
@@ -34,7 +34,15 @@ char i40evf_driver_name[] = "i40evf";static const char i40evf_driver_string[] ="Intel(R) XL710/X710 Virtual Function Network Driver" ; -#define DRV_VERSION "1.4.1" +#define DRV_KERN "-k" + +#define DRV_VERSION_MAJOR 1 +#define DRV_VERSION_MINOR 4 +#define DRV_VERSION_BUILD 1 +#define DRV_VERSION __stringify(DRV_VERSION_MAJOR) "." \ + __stringify(DRV_VERSION_MINOR) "." \ + __stringify(DRV_VERSION_BUILD) \ + DRV_KERNconst char i40evf_driver_version[] =DRV_VERSION ;static const char i40evf_copyright[] ="Copyright (c) 2013 - 2015 Intel Corporation." ;
Signature · 1 line
2.1.0