Skip to content

Commit 255d11b

Browse files
Pekka EnbergIngo Molnar
authored andcommitted
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 <penberg@cs.helsinki.fi> Cc: Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro> LKML-Reference: <1237888761.25315.69.camel@penberg-laptop> Signed-off-by: Ingo Molnar <mingo@elte.hu>
1 parent e65a1b7 commit 255d11b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎mm/failslab.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include <linux/fault-inject.h>
2+
#include <linux/gfp.h>
23

34
static struct {
45
struct fault_attr attr;

0 commit comments

Comments
 (0)