Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

RDMA/ipoib: Don't set constant driver version

There is no need to set driver version in in-tree kernel code.

Link: https://lore.kernel.org/r/20200220071239.231800-2-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>

authored by

Leon Romanovsky and committed by
Jason Gunthorpe
96870720 7c119107

-9
-2
drivers/infiniband/ulp/ipoib/ipoib.h
··· 838 838 839 839 #define IPOIB_QPN(ha) (be32_to_cpup((__be32 *) ha) & 0xffffff) 840 840 841 - extern const char ipoib_driver_version[]; 842 - 843 841 #endif /* _IPOIB_H */
-3
drivers/infiniband/ulp/ipoib/ipoib_ethtool.c
··· 68 68 strlcpy(drvinfo->bus_info, dev_name(priv->ca->dev.parent), 69 69 sizeof(drvinfo->bus_info)); 70 70 71 - strlcpy(drvinfo->version, ipoib_driver_version, 72 - sizeof(drvinfo->version)); 73 - 74 71 strlcpy(drvinfo->driver, "ib_ipoib", sizeof(drvinfo->driver)); 75 72 } 76 73
-4
drivers/infiniband/ulp/ipoib/ipoib_main.c
··· 52 52 #include <linux/inetdevice.h> 53 53 #include <rdma/ib_cache.h> 54 54 55 - #define DRV_VERSION "1.0.0" 56 - 57 - const char ipoib_driver_version[] = DRV_VERSION; 58 - 59 55 MODULE_AUTHOR("Roland Dreier"); 60 56 MODULE_DESCRIPTION("IP-over-InfiniBand net driver"); 61 57 MODULE_LICENSE("Dual BSD/GPL");