From: David Herrmann Date: Thu, 25 Jul 2013 16:02:31 +0000 (+0200) Subject: drm/mm: include required headers in drm_mm.h X-Git-Tag: v3.12-rc1~136^2~140 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=86e81f0e624b55fa9f1560c3b64bc80e458c5168;p=~emulex%2Finfiniband.git 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 Signed-off-by: Dave Airlie --- diff --git a/include/drm/drm_mm.h b/include/drm/drm_mm.h index b87d05e17d4..98cb50ea6ac 100644 --- a/include/drm/drm_mm.h +++ b/include/drm/drm_mm.h @@ -36,7 +36,10 @@ /* * Generic range manager structs */ +#include +#include #include +#include #ifdef CONFIG_DEBUG_FS #include #endif