diff options
author | Lucas De Marchi <lucas.demarchi@intel.com> | 2023-04-01 11:51:46 +0300 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-20 02:31:31 +0300 |
commit | af049be5a33e12fb993028eb378fd61545e72f5e (patch) | |
tree | 42a093fbc78912df1918085fdc59b1e5ea8c6e3d /drivers/gpu/drm/xe/xe_pci.h | |
parent | d19ad0e80ebe3da48dc8122d6beca9d3d35df454 (diff) | |
download | linux-af049be5a33e12fb993028eb378fd61545e72f5e.tar.xz |
drm/xe: Move test infra out of xe_pci.[ch]
Move code out of xe_pci.[ch] into tests/*.[ch], like is done in other
similar compilation units. Even if this is not part of "tests for
xe_pci.c", they are functions exported and required by other tests. It's
better not to clutter the module headers and sources with them.
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://lore.kernel.org/r/20230401085151.1786204-3-lucas.demarchi@intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_pci.h')
-rw-r--r-- | drivers/gpu/drm/xe/xe_pci.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/gpu/drm/xe/xe_pci.h b/drivers/gpu/drm/xe/xe_pci.h index 9e3089549d5f..611c1209b14c 100644 --- a/drivers/gpu/drm/xe/xe_pci.h +++ b/drivers/gpu/drm/xe/xe_pci.h @@ -6,16 +6,7 @@ #ifndef _XE_PCI_H_ #define _XE_PCI_H_ -#include "tests/xe_test.h" - int xe_register_pci_driver(void); void xe_unregister_pci_driver(void); -#if IS_ENABLED(CONFIG_DRM_XE_KUNIT_TEST) -struct xe_device; - -typedef int (*xe_device_fn)(struct xe_device *); - -int xe_call_for_each_device(xe_device_fn xe_fn); -#endif #endif |