On Tue, 03 Jul 2012 at 03:57 GMT, Jiang Liu <jiang.liu@xxxxxxxxxx> wrote: > --- a/arch/arm/mm/init.c > +++ b/arch/arm/mm/init.c > @@ -18,6 +18,7 @@ > #include <linux/initrd.h> > #include <linux/of_fdt.h> > #include <linux/highmem.h> > +#include <linux/huge_mm.h> > #include <linux/gfp.h> > #include <linux/memblock.h> > #include <linux/dma-contiguous.h> > @@ -116,7 +117,7 @@ void show_mem(unsigned int filter) > reserved++; > else if (PageSwapCache(page)) > cached++; > - else if (PageSlab(page)) > + else if (page_managed_by_slab(page)) > slab++; slab.h should #include <linux/huge_mm.h>, not each C source file calls page_managed_by_slab(). -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>