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>
17 lines
369 B
C
17 lines
369 B
C
/* 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
|