[PATCH] drm/ttm/tests: add missing MODULE_DESCRIPTION() macros

Jeff Johnson quic_jjohnson at quicinc.com
Mon Jun 24 23:00:42 UTC 2024


On 6/9/2024 9:34 AM, Jeff Johnson wrote:
> make allmodconfig && make W=1 C=1 reports:
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/gpu/drm/ttm/tests/ttm_device_test.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/gpu/drm/ttm/tests/ttm_pool_test.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/gpu/drm/ttm/tests/ttm_resource_test.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/gpu/drm/ttm/tests/ttm_tt_test.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/gpu/drm/ttm/tests/ttm_bo_test.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/gpu/drm/ttm/tests/ttm_kunit_helpers.o
> 
> Add the missing invocations of the MODULE_DESCRIPTION() macro.
> 
> Signed-off-by: Jeff Johnson <quic_jjohnson at quicinc.com>
> ---
>  drivers/gpu/drm/ttm/tests/ttm_bo_test.c       | 1 +
>  drivers/gpu/drm/ttm/tests/ttm_device_test.c   | 1 +
>  drivers/gpu/drm/ttm/tests/ttm_kunit_helpers.c | 1 +
>  drivers/gpu/drm/ttm/tests/ttm_pool_test.c     | 1 +
>  drivers/gpu/drm/ttm/tests/ttm_resource_test.c | 1 +
>  drivers/gpu/drm/ttm/tests/ttm_tt_test.c       | 1 +
>  6 files changed, 6 insertions(+)
> 
> diff --git a/drivers/gpu/drm/ttm/tests/ttm_bo_test.c b/drivers/gpu/drm/ttm/tests/ttm_bo_test.c
> index 1f8a4f8adc92..c18547c65985 100644
> --- a/drivers/gpu/drm/ttm/tests/ttm_bo_test.c
> +++ b/drivers/gpu/drm/ttm/tests/ttm_bo_test.c
> @@ -619,4 +619,5 @@ static struct kunit_suite ttm_bo_test_suite = {
>  
>  kunit_test_suites(&ttm_bo_test_suite);
>  
> +MODULE_DESCRIPTION("KUnit tests for ttm_bo APIs");
>  MODULE_LICENSE("GPL");

FYI I'll be posting a v2 to resolve conflicts with recent MODULE_LICENSE()
changes and to handle the addition of new test modules.

/jeff


More information about the dri-devel mailing list