mirror of
https://github.com/torvalds/linux.git
synced 2026-04-19 07:13:56 -04:00
drm/xe/kunit: Define helper functions to allocate fake xe device
There will be more KUnit tests added that will require fake device. Define generic helper functions to avoid code duplications. Cc: Lucas De Marchi <lucas.demarchi@intel.com> Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com> Link: https://lore.kernel.org/r/20231218190629.502-6-michal.wajdeczko@intel.com Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
This commit is contained in:
committed by
Rodrigo Vivi
parent
4ceb8645bd
commit
5095d13d75
17
drivers/gpu/drm/xe/tests/xe_kunit_helpers.h
Normal file
17
drivers/gpu/drm/xe/tests/xe_kunit_helpers.h
Normal file
@@ -0,0 +1,17 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 AND MIT */
|
||||
/*
|
||||
* Copyright © 2023 Intel Corporation
|
||||
*/
|
||||
|
||||
#ifndef _XE_KUNIT_HELPERS_H_
|
||||
#define _XE_KUNIT_HELPERS_H_
|
||||
|
||||
struct device;
|
||||
struct kunit;
|
||||
struct xe_device;
|
||||
|
||||
struct xe_device *xe_kunit_helper_alloc_xe_device(struct kunit *test,
|
||||
struct device *dev);
|
||||
int xe_kunit_helper_xe_device_test_init(struct kunit *test);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user