[PATCH 15/15] drm: Move DRM_MAGIC_HASH_ORDER into drm_drv.c

Daniel Vetter daniel.vetter at ffwll.ch
Wed Sep 10 03:44:00 PDT 2014


Only used in one place ever, so put it right next to that.

Signed-off-by: Daniel Vetter <daniel.vetter at ffwll.ch>
---
 drivers/gpu/drm/drm_drv.c | 2 ++
 include/drm/drmP.h        | 8 --------
 2 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c
index fcc9d7d81a02..6a119026a76b 100644
--- a/drivers/gpu/drm/drm_drv.c
+++ b/drivers/gpu/drm/drm_drv.c
@@ -90,6 +90,8 @@ void drm_ut_debug_printk(const char *function_name, const char *format, ...)
 }
 EXPORT_SYMBOL(drm_ut_debug_printk);
 
+#define DRM_MAGIC_HASH_ORDER  4  /**< Size of key hash table. Must be power of 2. */
+
 struct drm_master *drm_master_create(struct drm_minor *minor)
 {
 	struct drm_master *master;
diff --git a/include/drm/drmP.h b/include/drm/drmP.h
index 72b059f15be3..ad952b08711e 100644
--- a/include/drm/drmP.h
+++ b/include/drm/drmP.h
@@ -143,14 +143,6 @@ int drm_err(const char *func, const char *format, ...);
 #define DRIVER_RENDER      0x8000
 
 /***********************************************************************/
-/** \name Begin the DRM... */
-/*@{*/
-
-#define DRM_MAGIC_HASH_ORDER  4  /**< Size of key hash table. Must be power of 2. */
-
-/*@}*/
-
-/***********************************************************************/
 /** \name Macros to make printk easier */
 /*@{*/
 
-- 
1.9.3



More information about the dri-devel mailing list