mirror of
https://github.com/torvalds/linux.git
synced 2026-04-20 15:53:59 -04:00
drm/xe: Fix kunit integration due to missing prototypes
In order to avoid -Werror=missing-prototypes, add the prototypes in a separate tests/<test-name>_test.h file that is included by both the implementation (tests/xe_<testname>.c, injected in xe.ko) and the kunit module (tests/xe_<testname>_test.c -> xe-<testname>-test.ko). v2: Add header and don't add ifdef to files that are already not built when not using kunit (Matt Auld) Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com> Reviewed-by: Matthew Auld <matthew.auld@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
This commit is contained in:
committed by
Rodrigo Vivi
parent
5b7e50e2ea
commit
353dfaaa31
13
drivers/gpu/drm/xe/tests/xe_dma_buf_test.h
Normal file
13
drivers/gpu/drm/xe/tests/xe_dma_buf_test.h
Normal file
@@ -0,0 +1,13 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 AND MIT */
|
||||
/*
|
||||
* Copyright © 2023 Intel Corporation
|
||||
*/
|
||||
|
||||
#ifndef __XE_DMA_BUF_TEST_H__
|
||||
#define __XE_DMA_BUF_TEST_H__
|
||||
|
||||
struct kunit;
|
||||
|
||||
void xe_dma_buf_kunit(struct kunit *test);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user