ipc: uninline functions
diff mbox series

Message ID 20200710200312.GA960353@localhost.localdomain
State Accepted
Commit 00898e8599a184ae05e2c00903e85dc80d82a43d
Headers show
Series
  • ipc: uninline functions
Related show

Commit Message

Alexey Dobriyan July 10, 2020, 8:03 p.m. UTC
Two functions are only called via function pointers, don't bother
inlining them.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---

 ipc/sem.c |    3 +--
 ipc/shm.c |    3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

Patch
diff mbox series

--- a/ipc/sem.c
+++ b/ipc/sem.c
@@ -585,8 +585,7 @@  static int newary(struct ipc_namespace *ns, struct ipc_params *params)
 /*
  * Called with sem_ids.rwsem and ipcp locked.
  */
-static inline int sem_more_checks(struct kern_ipc_perm *ipcp,
-				struct ipc_params *params)
+static int sem_more_checks(struct kern_ipc_perm *ipcp, struct ipc_params *params)
 {
 	struct sem_array *sma;
 
--- a/ipc/shm.c
+++ b/ipc/shm.c
@@ -711,8 +711,7 @@  static int newseg(struct ipc_namespace *ns, struct ipc_params *params)
 /*
  * Called with shm_ids.rwsem and ipcp locked.
  */
-static inline int shm_more_checks(struct kern_ipc_perm *ipcp,
-				struct ipc_params *params)
+static int shm_more_checks(struct kern_ipc_perm *ipcp, struct ipc_params *params)
 {
 	struct shmid_kernel *shp;