Skip to content

Commit 676bffa

Browse files
ddalessajgunthorpe
authored andcommitted
RDMA/hfi1: Remove pointless driver version
Driver versions have long been forbidden in the RDMA subsystem. We removed most of the code relating to them and have been very strict about not allowing. However there is some leftover versioning that we do not need. Get rid of that. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dennis Dalessandro <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent f93e91a commit 676bffa

File tree

2 files changed

+0
-21
lines changed

2 files changed

+0
-21
lines changed

drivers/infiniband/hw/hfi1/common.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -154,21 +154,6 @@
154154
*/
155155
#define HFI1_KERN_SWVERSION ((HFI1_KERN_TYPE << 31) | HFI1_USER_SWVERSION)
156156

157-
/*
158-
* Define the driver version number. This is something that refers only
159-
* to the driver itself, not the software interfaces it supports.
160-
*/
161-
#ifndef HFI1_DRIVER_VERSION_BASE
162-
#define HFI1_DRIVER_VERSION_BASE "0.9-294"
163-
#endif
164-
165-
/* create the final driver version string */
166-
#ifdef HFI1_IDSTR
167-
#define HFI1_DRIVER_VERSION HFI1_DRIVER_VERSION_BASE " " HFI1_IDSTR
168-
#else
169-
#define HFI1_DRIVER_VERSION HFI1_DRIVER_VERSION_BASE
170-
#endif
171-
172157
/*
173158
* Diagnostics can send a packet by writing the following
174159
* struct to the diag packet special file.

drivers/infiniband/hw/hfi1/driver.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,6 @@
2929
#undef pr_fmt
3030
#define pr_fmt(fmt) DRIVER_NAME ": " fmt
3131

32-
/*
33-
* The size has to be longer than this string, so we can append
34-
* board/chip information to it in the initialization code.
35-
*/
36-
const char ib_hfi1_version[] = HFI1_DRIVER_VERSION "\n";
37-
3832
DEFINE_MUTEX(hfi1_mutex); /* general driver use */
3933

4034
unsigned int hfi1_max_mtu = HFI1_DEFAULT_MAX_MTU;

0 commit comments

Comments
 (0)