Messages in this thread Patch in this message | | | Date | Sun, 26 Feb 2006 19:09:04 +0000 (GMT) | From | Hugh Dickins <> | Subject | [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> ---
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; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |