Message ID | 20240609-md-drivers-gpu-drm-ttm-tests-v1-1-d94123d95b4c@quicinc.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | drm/ttm/tests: add missing MODULE_DESCRIPTION() macros | expand |
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@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
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"); diff --git a/drivers/gpu/drm/ttm/tests/ttm_device_test.c b/drivers/gpu/drm/ttm/tests/ttm_device_test.c index 19eaff22e6ae..5bdfa4f88438 100644 --- a/drivers/gpu/drm/ttm/tests/ttm_device_test.c +++ b/drivers/gpu/drm/ttm/tests/ttm_device_test.c @@ -209,4 +209,5 @@ static struct kunit_suite ttm_device_test_suite = { kunit_test_suites(&ttm_device_test_suite); +MODULE_DESCRIPTION("KUnit tests for ttm_device APIs"); MODULE_LICENSE("GPL"); diff --git a/drivers/gpu/drm/ttm/tests/ttm_kunit_helpers.c b/drivers/gpu/drm/ttm/tests/ttm_kunit_helpers.c index 7b7c1fa805fc..d9d29b34b23b 100644 --- a/drivers/gpu/drm/ttm/tests/ttm_kunit_helpers.c +++ b/drivers/gpu/drm/ttm/tests/ttm_kunit_helpers.c @@ -156,4 +156,5 @@ void ttm_test_devices_fini(struct kunit *test) } EXPORT_SYMBOL_GPL(ttm_test_devices_fini); +MODULE_DESCRIPTION("TTM KUnit test helper functions"); MODULE_LICENSE("GPL"); diff --git a/drivers/gpu/drm/ttm/tests/ttm_pool_test.c b/drivers/gpu/drm/ttm/tests/ttm_pool_test.c index 0a3fede84da9..2d1928b615a0 100644 --- a/drivers/gpu/drm/ttm/tests/ttm_pool_test.c +++ b/drivers/gpu/drm/ttm/tests/ttm_pool_test.c @@ -433,4 +433,5 @@ static struct kunit_suite ttm_pool_test_suite = { kunit_test_suites(&ttm_pool_test_suite); +MODULE_DESCRIPTION("KUnit tests for ttm_pool APIs"); MODULE_LICENSE("GPL"); diff --git a/drivers/gpu/drm/ttm/tests/ttm_resource_test.c b/drivers/gpu/drm/ttm/tests/ttm_resource_test.c index 029e1f094bb0..ade487fea179 100644 --- a/drivers/gpu/drm/ttm/tests/ttm_resource_test.c +++ b/drivers/gpu/drm/ttm/tests/ttm_resource_test.c @@ -332,4 +332,5 @@ static struct kunit_suite ttm_resource_test_suite = { kunit_test_suites(&ttm_resource_test_suite); +MODULE_DESCRIPTION("KUnit tests for ttm_resource and ttm_sys_man APIs"); MODULE_LICENSE("GPL"); diff --git a/drivers/gpu/drm/ttm/tests/ttm_tt_test.c b/drivers/gpu/drm/ttm/tests/ttm_tt_test.c index fd4502c18de6..d78e1e9896d8 100644 --- a/drivers/gpu/drm/ttm/tests/ttm_tt_test.c +++ b/drivers/gpu/drm/ttm/tests/ttm_tt_test.c @@ -292,4 +292,5 @@ static struct kunit_suite ttm_tt_test_suite = { kunit_test_suites(&ttm_tt_test_suite); +MODULE_DESCRIPTION("KUnit tests for ttm_tt APIs"); MODULE_LICENSE("GPL");
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@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(+) --- base-commit: 19ca0d8a433ff37018f9429f7e7739e9f3d3d2b4 change-id: 20240609-md-drivers-gpu-drm-ttm-tests-f7b63f46eb3c