diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2013-07-25 12:02:31 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-07-31 20:28:09 -0400 |
commit | 86e81f0e624b55fa9f1560c3b64bc80e458c5168 (patch) | |
tree | ef7be7444a1e272eab82eeb60a57cdac63e1768f /include/drm/drm_mm.h | |
parent | aed2c03c8d96ea471b86761129c213e05ab6fbef (diff) |
drm/mm: include required headers in drm_mm.h
We need BUG_ON(), spinlock_t and standard kernel data-types so include the
right headers.
Subject: [drm-intel:drm-intel-nightly 154/166] include/drm/drm_mm.h:67:2:
error: unknown type name 'spinlock_t'
Message-ID: <51f14693.g5HGdcuw2v3m8FOd%fengguang.wu@intel.com>
In case it didn't link to it correctly. Somehow this bug doesn't occur
here on my machine, hmm. But I think fixing drm_mm.h is better than
changing the include-order in drm_vma_manager.h, so this is what I
did.
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm/drm_mm.h')
-rw-r--r-- | include/drm/drm_mm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/drm/drm_mm.h b/include/drm/drm_mm.h index b87d05e17d46..98cb50ea6acb 100644 --- a/include/drm/drm_mm.h +++ b/include/drm/drm_mm.h | |||
@@ -36,7 +36,10 @@ | |||
36 | /* | 36 | /* |
37 | * Generic range manager structs | 37 | * Generic range manager structs |
38 | */ | 38 | */ |
39 | #include <linux/bug.h> | ||
40 | #include <linux/kernel.h> | ||
39 | #include <linux/list.h> | 41 | #include <linux/list.h> |
42 | #include <linux/spinlock.h> | ||
40 | #ifdef CONFIG_DEBUG_FS | 43 | #ifdef CONFIG_DEBUG_FS |
41 | #include <linux/seq_file.h> | 44 | #include <linux/seq_file.h> |
42 | #endif | 45 | #endif |