From: Glauber de Oliveira Costa Date: Mon, 29 Oct 2007 21:37:19 +0000 (-0700) Subject: mm/sparse-vmemmap.c: make sure init_mm is included X-Git-Tag: v2.6.24-rc2~85 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8bca44bbd39007065cc6a4e3a50201475629a6cf;p=linux-2.6 mm/sparse-vmemmap.c: make sure init_mm is included mm/sparse-vmemmap.c uses init_mm in some places. However, it is not present in any of the headers currently included in the file. init_mm is defined as extern in sched.h, so we add it to the headers list Up to now, this problem was masked by the fact that functions like set_pte_at() and pmd_populate_kernel() are usually macros that expand to simpler variants that does not use the first parameter at all. Signed-off-by: Glauber de Oliveira Costa Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/sparse-vmemmap.c b/mm/sparse-vmemmap.c index d3b718b0c2..22620f6a97 100644 --- a/mm/sparse-vmemmap.c +++ b/mm/sparse-vmemmap.c @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include