Skip to content

Commit

Permalink
drm/xe: Fix modpost warning on kunit modules
Browse files Browse the repository at this point in the history
When built with W=1, the following warnings show up on modpost:

	  MODPOST drivers/gpu/drm/xe/Module.symvers
	WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/gpu/drm/xe/tests/xe_bo_test.o
	WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/gpu/drm/xe/tests/xe_dma_buf_test.o
	WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/gpu/drm/xe/tests/xe_migrate_test.o
	WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/gpu/drm/xe/tests/xe_pci_test.o
	WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/gpu/drm/xe/tests/xe_rtp_test.o
	WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/gpu/drm/xe/tests/xe_wa_test.o

Add the module description for each of these to fix the warning.

Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com>
Link: https://lore.kernel.org/r/20231120221904.695630-1-lucas.demarchi@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
  • Loading branch information
Lucas De Marchi authored and Rodrigo Vivi committed Dec 21, 2023
1 parent 1a3d4d7 commit 1d42506
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions drivers/gpu/drm/xe/tests/xe_bo_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ kunit_test_suite(xe_bo_test_suite);

MODULE_AUTHOR("Intel Corporation");
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("xe_bo kunit test");
MODULE_IMPORT_NS(EXPORTED_FOR_KUNIT_TESTING);
1 change: 1 addition & 0 deletions drivers/gpu/drm/xe/tests/xe_dma_buf_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ kunit_test_suite(xe_dma_buf_test_suite);

MODULE_AUTHOR("Intel Corporation");
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("xe_dma_buf kunit test");
MODULE_IMPORT_NS(EXPORTED_FOR_KUNIT_TESTING);
1 change: 1 addition & 0 deletions drivers/gpu/drm/xe/tests/xe_migrate_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ kunit_test_suite(xe_migrate_test_suite);

MODULE_AUTHOR("Intel Corporation");
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("xe_migrate kunit test");
MODULE_IMPORT_NS(EXPORTED_FOR_KUNIT_TESTING);
2 changes: 1 addition & 1 deletion drivers/gpu/drm/xe/tests/xe_pci_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,5 @@ kunit_test_suite(xe_pci_test_suite);

MODULE_AUTHOR("Intel Corporation");
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("xe_pci kunit test");
MODULE_IMPORT_NS(EXPORTED_FOR_KUNIT_TESTING);

1 change: 1 addition & 0 deletions drivers/gpu/drm/xe/tests/xe_rtp_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -313,4 +313,5 @@ kunit_test_suite(xe_rtp_test_suite);

MODULE_AUTHOR("Intel Corporation");
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("xe_rtp kunit test");
MODULE_IMPORT_NS(EXPORTED_FOR_KUNIT_TESTING);
1 change: 1 addition & 0 deletions drivers/gpu/drm/xe/tests/xe_wa_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,5 @@ kunit_test_suite(xe_rtp_test_suite);

MODULE_AUTHOR("Intel Corporation");
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("xe_wa kunit test");
MODULE_IMPORT_NS(EXPORTED_FOR_KUNIT_TESTING);

0 comments on commit 1d42506

Please sign in to comment.