diff options
| author | Shraddha Barke <shraddha.6596@gmail.com> | 2015-10-04 10:30:10 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-04 11:59:35 +0300 |
| commit | e4ec6d23df2e5e7791fb55247a5481bb2c8d6b39 (patch) | |
| tree | 283860e556c27fd4a1ffbd0443af2603228c2770 | |
| parent | 53856b23201c780599c877d66b625fcbc5bc9dd3 (diff) | |
| download | linux-e4ec6d23df2e5e7791fb55247a5481bb2c8d6b39.tar.xz | |
Staging: lustre: ptlrpc: events: Declare as static
Declare ptl_get_pid as static since it is used only in this particular
file. Also remove declaration from corresponding header file
Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | drivers/staging/lustre/lustre/include/lustre_net.h | 1 | ||||
| -rw-r--r-- | drivers/staging/lustre/lustre/ptlrpc/events.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/lustre/lustre/include/lustre_net.h b/drivers/staging/lustre/lustre/include/lustre_net.h index 428b83d0db5e..c8d62078c6b9 100644 --- a/drivers/staging/lustre/lustre/include/lustre_net.h +++ b/drivers/staging/lustre/lustre/include/lustre_net.h @@ -2289,7 +2289,6 @@ int ptlrpc_connection_put(struct ptlrpc_connection *c); struct ptlrpc_connection *ptlrpc_connection_addref(struct ptlrpc_connection *); int ptlrpc_connection_init(void); void ptlrpc_connection_fini(void); -lnet_pid_t ptl_get_pid(void); /* ptlrpc/niobuf.c */ /** diff --git a/drivers/staging/lustre/lustre/ptlrpc/events.c b/drivers/staging/lustre/lustre/ptlrpc/events.c index afd869b205a5..183e4156950d 100644 --- a/drivers/staging/lustre/lustre/ptlrpc/events.c +++ b/drivers/staging/lustre/lustre/ptlrpc/events.c @@ -521,7 +521,7 @@ static void ptlrpc_ni_fini(void) /* notreached */ } -lnet_pid_t ptl_get_pid(void) +static lnet_pid_t ptl_get_pid(void) { lnet_pid_t pid; |
