<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/gpu/drm/xe/tests/xe_migrate_test.h, branch master</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=master</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2024-07-12T08:49:49Z</updated>
<entry>
<title>drm/xe/kunit: Simplify xe_migrate live tests code layout</title>
<updated>2024-07-12T08:49:49Z</updated>
<author>
<name>Michal Wajdeczko</name>
<email>michal.wajdeczko@intel.com</email>
</author>
<published>2024-07-08T11:12:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=0237368193e897aadeea9801126c101e33047354'/>
<id>urn:sha1:0237368193e897aadeea9801126c101e33047354</id>
<content type='text'>
The test case logic is implemented by the functions compiled as
part of the core Xe driver module and then exported to build and
register the test suite in the live test module.

But we don't need to export individual test case functions, we may
just export the entire test suite. And we don't need to register
this test suite in a separate file, it can be done in the main
file of the live test module.

Signed-off-by: Michal Wajdeczko &lt;michal.wajdeczko@intel.com&gt;
Reviewed-by: Lucas De Marchi &lt;lucas.demarchi@intel.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20240708111210.1154-4-michal.wajdeczko@intel.com
</content>
</entry>
<entry>
<title>drm/xe: Prefer single underscore for header guards</title>
<updated>2023-12-19T23:29:21Z</updated>
<author>
<name>Lucas De Marchi</name>
<email>lucas.demarchi@intel.com</email>
</author>
<published>2023-02-25T00:15:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=3457388fcd145d64e6852ca60084e822bec81e9f'/>
<id>urn:sha1:3457388fcd145d64e6852ca60084e822bec81e9f</id>
<content type='text'>
Keep header guards consistent with regard to ifdef used. Prefer the more
commonly used in the driver.

	$ git grep  "ifndef __XE_" -- drivers/gpu/drm/xe | wc -l
	8
	$ git grep  "ifndef _XE_" -- drivers/gpu/drm/xe | wc -l
	112

Signed-off-by: Lucas De Marchi &lt;lucas.demarchi@intel.com&gt;
Reviewed-by: Matt Roper &lt;matthew.d.roper@intel.com&gt;
Signed-off-by: Rodrigo Vivi &lt;rodrigo.vivi@intel.com&gt;
</content>
</entry>
<entry>
<title>drm/xe: Fix kunit integration due to missing prototypes</title>
<updated>2023-12-19T23:29:20Z</updated>
<author>
<name>Lucas De Marchi</name>
<email>lucas.demarchi@intel.com</email>
</author>
<published>2023-02-23T05:00:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=353dfaaa31648c4e6f7f3fee5001f047ebf3ed67'/>
<id>urn:sha1:353dfaaa31648c4e6f7f3fee5001f047ebf3ed67</id>
<content type='text'>
In order to avoid  -Werror=missing-prototypes, add the prototypes
in a separate tests/&lt;test-name&gt;_test.h file that is included by both
the implementation (tests/xe_&lt;testname&gt;.c, injected in xe.ko) and the
kunit module (tests/xe_&lt;testname&gt;_test.c -&gt; xe-&lt;testname&gt;-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 &lt;lucas.demarchi@intel.com&gt;
Reviewed-by: Matthew Auld &lt;matthew.auld@intel.com&gt;
Signed-off-by: Rodrigo Vivi &lt;rodrigo.vivi@intel.com&gt;
</content>
</entry>
</feed>
