Commit 98e0a288 authored by Shraddha Barke's avatar Shraddha Barke Committed by Greg Kroah-Hartman

Staging: lustre: ptlrpc: layout: Declare as static

Declare req_capsule_init_area and req_capsule_field_present as static
since they are used only in this particular file. Also remove the
corresponding declarations from header files.
Signed-off-by: default avatarShraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4ed50b03
...@@ -80,7 +80,6 @@ void req_capsule_init(struct req_capsule *pill, struct ptlrpc_request *req, ...@@ -80,7 +80,6 @@ void req_capsule_init(struct req_capsule *pill, struct ptlrpc_request *req,
void req_capsule_fini(struct req_capsule *pill); void req_capsule_fini(struct req_capsule *pill);
void req_capsule_set(struct req_capsule *pill, const struct req_format *fmt); void req_capsule_set(struct req_capsule *pill, const struct req_format *fmt);
void req_capsule_init_area(struct req_capsule *pill);
int req_capsule_filled_sizes(struct req_capsule *pill, enum req_location loc); int req_capsule_filled_sizes(struct req_capsule *pill, enum req_location loc);
int req_capsule_server_pack(struct req_capsule *pill); int req_capsule_server_pack(struct req_capsule *pill);
...@@ -118,9 +117,6 @@ void req_capsule_extend(struct req_capsule *pill, const struct req_format *fmt); ...@@ -118,9 +117,6 @@ void req_capsule_extend(struct req_capsule *pill, const struct req_format *fmt);
int req_capsule_has_field(const struct req_capsule *pill, int req_capsule_has_field(const struct req_capsule *pill,
const struct req_msg_field *field, const struct req_msg_field *field,
enum req_location loc); enum req_location loc);
int req_capsule_field_present(const struct req_capsule *pill,
const struct req_msg_field *field,
enum req_location loc);
void req_capsule_shrink(struct req_capsule *pill, void req_capsule_shrink(struct req_capsule *pill,
const struct req_msg_field *field, const struct req_msg_field *field,
unsigned int newlen, unsigned int newlen,
......
...@@ -1679,7 +1679,7 @@ EXPORT_SYMBOL(req_layout_fini); ...@@ -1679,7 +1679,7 @@ EXPORT_SYMBOL(req_layout_fini);
* req_capsule_msg_size(). The \a rc_area information is used by. * req_capsule_msg_size(). The \a rc_area information is used by.
* ptlrpc_request_set_replen(). * ptlrpc_request_set_replen().
*/ */
void req_capsule_init_area(struct req_capsule *pill) static void req_capsule_init_area(struct req_capsule *pill)
{ {
int i; int i;
...@@ -1688,7 +1688,6 @@ void req_capsule_init_area(struct req_capsule *pill) ...@@ -1688,7 +1688,6 @@ void req_capsule_init_area(struct req_capsule *pill)
pill->rc_area[RCL_SERVER][i] = -1; pill->rc_area[RCL_SERVER][i] = -1;
} }
} }
EXPORT_SYMBOL(req_capsule_init_area);
/** /**
* Initialize a pill. * Initialize a pill.
...@@ -2260,9 +2259,9 @@ EXPORT_SYMBOL(req_capsule_has_field); ...@@ -2260,9 +2259,9 @@ EXPORT_SYMBOL(req_capsule_has_field);
* Returns a non-zero value if the given \a field is present in the given \a * Returns a non-zero value if the given \a field is present in the given \a
* pill's PTLRPC request or reply (\a loc), else it returns 0. * pill's PTLRPC request or reply (\a loc), else it returns 0.
*/ */
int req_capsule_field_present(const struct req_capsule *pill, static int req_capsule_field_present(const struct req_capsule *pill,
const struct req_msg_field *field, const struct req_msg_field *field,
enum req_location loc) enum req_location loc)
{ {
int offset; int offset;
...@@ -2272,7 +2271,6 @@ int req_capsule_field_present(const struct req_capsule *pill, ...@@ -2272,7 +2271,6 @@ int req_capsule_field_present(const struct req_capsule *pill,
offset = __req_capsule_offset(pill, field, loc); offset = __req_capsule_offset(pill, field, loc);
return lustre_msg_bufcount(__req_msg(pill, loc)) > offset; return lustre_msg_bufcount(__req_msg(pill, loc)) > offset;
} }
EXPORT_SYMBOL(req_capsule_field_present);
/** /**
* This function shrinks the size of the _buffer_ of the \a pill's PTLRPC * This function shrinks the size of the _buffer_ of the \a pill's PTLRPC
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment