Skip to content

Commit 00898e8

Browse files
Alexey Dobriyantorvalds
authored andcommitted
ipc: uninline functions
Two functions are only called via function pointers, don't bother inlining them. Signed-off-by: Alexey Dobriyan <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Cc: Manfred Spraul <[email protected]> Cc: Davidlohr Bueso <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Linus Torvalds <[email protected]>
1 parent a3ec9f3 commit 00898e8

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

ipc/sem.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -585,8 +585,7 @@ static int newary(struct ipc_namespace *ns, struct ipc_params *params)
585585
/*
586586
* Called with sem_ids.rwsem and ipcp locked.
587587
*/
588-
static inline int sem_more_checks(struct kern_ipc_perm *ipcp,
589-
struct ipc_params *params)
588+
static int sem_more_checks(struct kern_ipc_perm *ipcp, struct ipc_params *params)
590589
{
591590
struct sem_array *sma;
592591

ipc/shm.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -711,8 +711,7 @@ static int newseg(struct ipc_namespace *ns, struct ipc_params *params)
711711
/*
712712
* Called with shm_ids.rwsem and ipcp locked.
713713
*/
714-
static inline int shm_more_checks(struct kern_ipc_perm *ipcp,
715-
struct ipc_params *params)
714+
static int shm_more_checks(struct kern_ipc_perm *ipcp, struct ipc_params *params)
716715
{
717716
struct shmid_kernel *shp;
718717

0 commit comments

Comments
 (0)