| From 8984e54ebd99ae205174d3af3787aebb603621e8 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> |
| |
| diff --git a/include/linux/mm.h b/include/linux/mm.h |
| index 93d9c50..39fe0cc 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 |
| |