Commit d15c023b authored by Hugh Dickins's avatar Hugh Dickins Committed by Linus Torvalds

[PATCH] shmem: inline to avoid warning

shmem.c was named and shamed in Jesper's "Building 100 kernels" warnings:
shmem_parse_mpol is only used when CONFIG_TMPFS parses mount options; and
only called from that one site, so mark it inline like its non-NUMA stub.
Signed-off-by: default avatarHugh Dickins <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 6e5ef1a9
......@@ -875,7 +875,7 @@ redirty:
static int shmem_parse_mpol(char *value, int *policy, nodemask_t *policy_nodes)
static inline int shmem_parse_mpol(char *value, int *policy, nodemask_t *policy_nodes)
char *nodelist = strchr(value, ':');
int err = 1;
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