* [PATCH] shmem: inline to avoid warning
@ 2006-02-26 19:09 Hugh Dickins
0 siblings, 0 replies; only message in thread
From: Hugh Dickins @ 2006-02-26 19:09 UTC (permalink / raw)
To: Andrew Morton; +Cc: Jesper Juhl, linux-kernel
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>
---
mm/shmem.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
--- 2.6.16-rc4-git9/mm/shmem.c 2006-02-26 14:43:13.000000000 +0000
+++ linux/mm/shmem.c 2006-02-26 18:53:47.000000000 +0000
@@ -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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-02-26 19:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-26 19:09 [PATCH] shmem: inline to avoid warning Hugh Dickins
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®