drm: move EXPORT_SYMBOL_FOR_TESTS_ONLY to drm_util.h
In the quest to get rid of drmP.h move the newly added EXPORT_SYMBOL_FOR_TESTS_ONLY to drm_util.h. Fix the single user. Add a note to drmP.h to avoid further use of it. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Cc: Maxime Ripard <maxime.ripard@bootlin.com> Cc: Sean Paul <sean@poorly.run> Cc: David Airlie <airlied@linux.ie> Cc: Daniel Vetter <daniel@ffwll.ch> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20190112193251.20450-3-sam@ravnborg.org
This commit is contained in:
parent
e9eafcb589
commit
21376e2c3c
|
@ -27,6 +27,7 @@
|
|||
#include <drm/drm_atomic.h>
|
||||
#include <drm/drm_atomic_uapi.h>
|
||||
#include <drm/drm_print.h>
|
||||
#include <drm/drm_util.h>
|
||||
|
||||
#include "drm_internal.h"
|
||||
#include "drm_crtc_internal.h"
|
||||
|
|
|
@ -94,10 +94,11 @@ struct dma_buf_attachment;
|
|||
struct pci_dev;
|
||||
struct pci_controller;
|
||||
|
||||
#if defined(CONFIG_DRM_DEBUG_SELFTEST_MODULE)
|
||||
#define EXPORT_SYMBOL_FOR_TESTS_ONLY(x) EXPORT_SYMBOL(x)
|
||||
#else
|
||||
#define EXPORT_SYMBOL_FOR_TESTS_ONLY(x)
|
||||
#endif
|
||||
/*
|
||||
* NOTE: drmP.h is obsolete - do NOT add anything to this file
|
||||
*
|
||||
* Do not include drmP.h in new files.
|
||||
* Work is ongoing to remove drmP.h includes from existing files
|
||||
*/
|
||||
|
||||
#endif
|
||||
|
|
|
@ -37,6 +37,16 @@
|
|||
#include <linux/kgdb.h>
|
||||
#include <linux/smp.h>
|
||||
|
||||
/*
|
||||
* Use EXPORT_SYMBOL_FOR_TESTS_ONLY() for functions that shall
|
||||
* only be visible for drmselftests.
|
||||
*/
|
||||
#if defined(CONFIG_DRM_DEBUG_SELFTEST_MODULE)
|
||||
#define EXPORT_SYMBOL_FOR_TESTS_ONLY(x) EXPORT_SYMBOL(x)
|
||||
#else
|
||||
#define EXPORT_SYMBOL_FOR_TESTS_ONLY(x)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* for_each_if - helper for handling conditionals in various for_each macros
|
||||
* @condition: The condition to check
|
||||
|
|
Loading…
Reference in New Issue