Skip to contentSkip to conversation

sunrpc: unexport rpc_malloc() and rpc_free()

PATCH New Jeff Layton 1 participant 1 message Sep 22, 2025

Subsystems (3)
lore
Share & tools
lore

Jeff Layton

author maintainer
#0 lore raw

PATCH 1/1 sunrpc: unexport rpc_malloc() and rpc_free()

These are not used outside of sunrpc code.

---
 net/sunrpc/sched.c | 2 --
 1 file changed, 2 deletions(-)
net/sunrpc/sched.c +0 -2
index 9b45fbdc90ca..016f16ca5779 100644
@@ -1074,7 +1074,6 @@ int rpc_malloc(struct rpc_task *task)
 	rqst->rq_rbuffer = (char *)rqst->rq_buffer + rqst->rq_callsize;
 	return 0;
 }
-EXPORT_SYMBOL_GPL(rpc_malloc);
 
 /**
  * rpc_free - free RPC buffer resources allocated via rpc_malloc
@@ -1095,7 +1094,6 @@ void rpc_free(struct rpc_task *task)
 	else
 		kfree(buf);
 }
-EXPORT_SYMBOL_GPL(rpc_free);
 
 /*
  * Creation and deletion of RPC task structures
Signature · 1 line
2.51.0