| From fb6cea4a9de989b625499654e410871bac654e60 Mon Sep 17 00:00:00 2001 |
| From: Paul Gortmaker <paul.gortmaker@windriver.com> |
| Date: Mon, 14 Feb 2011 01:14:49 -0500 |
| Subject: [PATCH] mm.h: include slab.h for kmalloc/kfree |
| |
| The upstream header cleanup that took place between the rev |
| list ^9e74e7c b66696e breaks RT pte_lock changes with: |
| |
| include/linux/mm.h: In function 'pte_lock_init': |
| include/linux/mm.h:1115: error: implicit declaration of function 'kmalloc' |
| include/linux/mm.h: In function 'pte_lock_deinit': |
| include/linux/mm.h:1127: error: implicit declaration of function 'kfree' |
| |
| The assoc. tip change which introduces this dependency is 27909c8793, |
| "mm: shrink the page frame to !-rt size" |
| |
| Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> |
| --- |
| include/linux/mm.h | 1 + |
| 1 files changed, 1 insertions(+), 0 deletions(-) |
| |
| diff --git a/include/linux/mm.h b/include/linux/mm.h |
| index 1d42c27..a5cc565 100644 |
| --- a/include/linux/mm.h |
| +++ b/include/linux/mm.h |
| @@ -6,6 +6,7 @@ |
| #ifdef __KERNEL__ |
| |
| #include <linux/gfp.h> |
| +#include <linux/slab.h> |
| #include <linux/list.h> |
| #include <linux/mmzone.h> |
| #include <linux/rbtree.h> |
| -- |
| 1.7.0.4 |
| |