[PATCH ibdiags 01/14] libibmad: Remove madrpc_def_timeout

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Jason Gunthorpe <jgg@xxxxxxxxxxxx>

This was never exposed in a header file, so nothing can be using it.

Fixes the compiler warning:

  warning: no previous prototype for ‘madrpc_def_timeout’ [-Wmissing-prototypes]

Signed-off-by: Jason Gunthorpe <jgg@xxxxxxxxxxxx>
---
 libibmad/src/libibmad.map | 1 -
 libibmad/src/rpc.c        | 5 -----
 2 files changed, 6 deletions(-)

diff --git a/libibmad/src/libibmad.map b/libibmad/src/libibmad.map
index 454e37c33e28ff..e08adf0ea1d4a9 100644
--- a/libibmad/src/libibmad.map
+++ b/libibmad/src/libibmad.map
@@ -111,7 +111,6 @@ IBMAD_1.3 {
 		mad_get_timeout;
 		mad_get_retries;
 		madrpc;
-		madrpc_def_timeout;
 		madrpc_init;
 		madrpc_portid;
 		madrpc_rmpp;
diff --git a/libibmad/src/rpc.c b/libibmad/src/rpc.c
index f286af71f7b3e9..0dd4c92ac4d59f 100644
--- a/libibmad/src/rpc.c
+++ b/libibmad/src/rpc.c
@@ -103,11 +103,6 @@ void mad_rpc_set_timeout(struct ibmad_port *port, int timeout)
 	port->timeout = timeout;
 }
 
-int madrpc_def_timeout(void)
-{
-	return madrpc_timeout;
-}
-
 int madrpc_portid(void)
 {
 	return ibmp->port_id;
-- 
2.21.0




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux