diff options
author | Hugh Dickins <hugh@veritas.com> | 2006-03-22 09:08:46 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-22 16:54:02 +0100 |
commit | d15c023b44e5d323f1f4130b85d29f08e43433b1 (patch) | |
tree | f7153643b876b25f66e6e33ab2bbc670ba05a7f7 | |
parent | [PATCH] vmscan: emove obsolete checks from shrink_list() and fix unlikely in ... (diff) | |
download | linux-d15c023b44e5d323f1f4130b85d29f08e43433b1.tar.xz linux-d15c023b44e5d323f1f4130b85d29f08e43433b1.zip |
[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: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | mm/shmem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/shmem.c b/mm/shmem.c index f523a1533ce1..37eaf42ed2c6 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -875,7 +875,7 @@ redirty: } #ifdef CONFIG_NUMA -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; |