提交 00898e85 编写于 作者: A Alexey Dobriyan 提交者: Linus Torvalds

ipc: uninline functions

Two functions are only called via function pointers, don't bother
inlining them.
Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Cc: Manfred Spraul <manfred@colorfullife.com>
Cc: Davidlohr Bueso <dave@stgolabs.net>
Link: http://lkml.kernel.org/r/20200710200312.GA960353@localhost.localdomainSigned-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 a3ec9f38
...@@ -585,8 +585,7 @@ static int newary(struct ipc_namespace *ns, struct ipc_params *params) ...@@ -585,8 +585,7 @@ static int newary(struct ipc_namespace *ns, struct ipc_params *params)
/* /*
* Called with sem_ids.rwsem and ipcp locked. * Called with sem_ids.rwsem and ipcp locked.
*/ */
static inline int sem_more_checks(struct kern_ipc_perm *ipcp, static int sem_more_checks(struct kern_ipc_perm *ipcp, struct ipc_params *params)
struct ipc_params *params)
{ {
struct sem_array *sma; struct sem_array *sma;
......
...@@ -711,8 +711,7 @@ static int newseg(struct ipc_namespace *ns, struct ipc_params *params) ...@@ -711,8 +711,7 @@ static int newseg(struct ipc_namespace *ns, struct ipc_params *params)
/* /*
* Called with shm_ids.rwsem and ipcp locked. * Called with shm_ids.rwsem and ipcp locked.
*/ */
static inline int shm_more_checks(struct kern_ipc_perm *ipcp, static int shm_more_checks(struct kern_ipc_perm *ipcp, struct ipc_params *params)
struct ipc_params *params)
{ {
struct shmid_kernel *shp; struct shmid_kernel *shp;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册