From: Pekka Enberg Date: Tue, 24 Mar 2009 09:59:21 +0000 (+0200) Subject: kmemtrace, mm: fix slab.h dependency problem in mm/failslab.c X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=255d11bc910fd38153156a0c5ebb256657290882;p=linux-2.6-omap-h63xx.git kmemtrace, mm: fix slab.h dependency problem in mm/failslab.c Impact: cleanup mm/failslab.c depends on slab.h without including it: CC mm/failslab.o mm/failslab.c: In function ‘should_failslab’: mm/failslab.c:16: error: ‘__GFP_NOFAIL’ undeclared (first use in this function) mm/failslab.c:16: error: (Each undeclared identifier is reported only once mm/failslab.c:16: error: for each function it appears in.) mm/failslab.c:19: error: ‘__GFP_WAIT’ undeclared (first use in this function) make[1]: *** [mm/failslab.o] Error 1 make: *** [mm] Error 2 It gets included implicitly currently - but this will not be the case with upcoming kmemtrace changes. Signed-off-by: Pekka Enberg Cc: Eduard - Gabriel Munteanu LKML-Reference: <1237888761.25315.69.camel@penberg-laptop> Signed-off-by: Ingo Molnar --- diff --git a/mm/failslab.c b/mm/failslab.c index 7c6ea6493f8..9339de5f0a9 100644 --- a/mm/failslab.c +++ b/mm/failslab.c @@ -1,4 +1,5 @@ #include +#include static struct { struct fault_attr attr;