[Intel-xe] [PATCH] drm/xe: Fix kunit integration due to missing prototypes

Matthew Auld matthew.auld at intel.com
Thu Feb 23 10:16:56 UTC 2023


On 23/02/2023 05:00, Lucas De Marchi wrote:
> 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 at intel.com>
Reviewed-by: Matthew Auld <matthew.auld at intel.com>


More information about the Intel-xe mailing list